Matlab App Designer Save Button Unresponsive
Mostra commenti meno recenti
I am a student using Matlab App Designer (r2019a) for my final year university project and recently I have been running into a few problems, I cannot find a solution online so I am hoping somebody on here has experience with this.
I am in the process of creating an app and it is currently sat at 20,000 lines. This means that my laptop is unfortunately not powerful enough to use to continue creating code (it takes over 10 minutes sometimes to run the app from within app designer and even longer to load app designer itself) - so I am now trying to use university computers (note my laptop is Mac and the university computers windows). I used to be able to run through remote desktop on my laptop and it would work without any issues, however this is now not an option.
When I open App Designer through a university computer (whether that be in person or on remote desktop), the app will not save.
When I press to save work, nothing happens and the * indicating unsaved changes never goes away, no matter how long I wait for. I do not receive any error codes and cannot cancel by using Ctrl+C.
This also means I cannot run the app through app designer - as it saves before running. I now know that this is not a problem with running the app as I can run it through the command window without any issues, just with no saved changes.
I have tried several things, including increasing java heap memory, running on a local network (it currently runs through onedrive), checking the profiler etc; all of which do not solve the problem.
I do not think it is an issue with Mac vs Windows, as it used to work without any issues when remote desktop was used from my laptop previously (before I essentially returned to office).
Has anyone had this issue before? Has anyone resolved this type of issue before?
Thanks in advance.
14 Commenti
Mario Malic
il 16 Feb 2021
Did you get any answer from support related to previous question?
George Barrass
il 16 Feb 2021
Mario Malic
il 16 Feb 2021
I do not think it is an issue with Mac vs Windows, as it used to work without any issues when remote desktop was used from my laptop previously. This doesn't eliminate your laptop from being the problem. Maybe you know someone who uses iOS and has better hardware, with more RAM than your laptop to test it out.
George Barrass
il 16 Feb 2021
Mario Malic
il 16 Feb 2021
When I open App Designer through a university computer (whether that be in person or on remote desktop), the app will not save. Do you have previous versions of the app when it had less lines to test out the save functionality? How did you make an app with that many lines (in short period?), did you continue someone elses work? If the latter, did they use the same version of MATLAB to code the app?
It's unlikely that someone will have something to add on this question, as this question is of the software nature and not many people know stuff except the staff. How many gigs of RAM does your laptop have?
George Barrass
il 16 Feb 2021
Mario Malic
il 16 Feb 2021
Yep, most likely it's the RAM.
Just a note, I am working on the app for 6 months or so, and I have 3k lines in App Designer, and few k outside of it. I wonder if you have an issue of duplicating components or if you actually need that many components. You can check this in App Designer yourself, without unzipping file like explained below.
Before going further, WARNING: do not to edit anything in the file.
First, copy your app to some other folder so you don't mess up your original file. What you'll do is to unzip the file into the new folder.
Find and open
\matlab\document.xml
Here's the example of duplicate components
Test1EditField matlab.ui.control.NumericEditField
WidthEditFieldLabel matlab.ui.control.Label
WidthEditField matlab.ui.control.NumericEditField
DoesnotapplyCheckBox_14 matlab.ui.control.CheckBox
DoesnotapplyCheckBox_15 matlab.ui.control.CheckBox
RowEditFieldLabel matlab.ui.control.Label
RowEditField matlab.ui.control.EditField
TestLabel matlab.ui.control.Label
DeckDropDown_5Label matlab.ui.control.Label
DeckDropDown_5 matlab.ui.control.DropDown
DeckDropDown_3 matlab.ui.control.DropDown
DeckDropDown_3 matlab.ui.control.DropDown
See this double DeckDropDown_3, there are plenty of those down the file, usually when you copy and paste the components, they should have the different number, just like these two checkboxes with 14 and 15. The components do not have to be in order, you may see them at some other place down the list.
George Barrass
il 16 Feb 2021
Mario Malic
il 16 Feb 2021
You mentioned that you're using the OneDrive, did you try to copy the file on to Uni PC locally, and run it from there? Maybe there's an issue saving the file to OneDrive.
George Barrass
il 16 Feb 2021
Mario Malic
il 16 Feb 2021
Modificato: Mario Malic
il 16 Feb 2021
To be honest, this could be something most of us here have no experience of, as most of users here are volunteers who help in coding, and this is a software issue. Due to the fact that this is a software issue and it is not possible to find out what causes the problem, App Designer is quite new and digging into its internal stuff is time inefficient for volunteers. The best bet is the customer service, I think it's possible to share your app with them under NDA, this way is just a wild guessing which probably won't lead anywhere.
I think it's worth of a try to try it on different computer and different version of MATLAB. BTW, I do recall some questions that App Designer would slow down once certain number of components is reached, which was fixed in newer versions.
George Barrass
il 16 Feb 2021
Mario Malic
il 16 Feb 2021
I would suggest to go for latest version if available. This post says that there have been massive improvements from 2020a.
App Designer apps are forward (dont know about backward) compatible between the versions, the first time you launch an app in the new version there will be updating process to the new version.
Good luck on your project!
George Barrass
il 16 Feb 2021
Risposte (0)
Categorie
Scopri di più su Develop Apps Using App Designer in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!