GUIDE 'myGuiName.fig' ERROR Can't open the figure window

3 vues (au cours des 30 derniers jours)
KMM
KMM le 16 Fév 2019
Réponse apportée : KMM le 19 Fév 2019
I built a GUI in 2015a and can no longer open the GUI figure window. Here's the error
com.mathworks.toolbox.matlab.guide.palette.GObjectProxy(adpt{i},str,parentHeight,view)
Java exception occurred:
java.lang.NullPointerException
at com.mathworks.toolbox.matlab.guide.palette.GObjectProxy.updateAppearance(GObjectProxy.java:794)
at com.mathworks.toolbox.matlab.guide.palette.GObjectProxy.updateUIControl(GObjectProxy.java:761)
at com.mathworks.toolbox.matlab.guide.palette.GObjectProxy.updateProxy(GObjectProxy.java:406)
at com.mathworks.toolbox.matlab.guide.palette.MObjectProxy.init(MObjectProxy.java:164)
at com.mathworks.toolbox.matlab.guide.palette.GObjectProxy.<init>(GObjectProxy.java:167)
at com.mathworks.jmi.NativeMatlab.SendMatlabMessage(Native Method)
at com.mathworks.jmi.NativeMatlab.sendMatlabMessage(NativeMatlab.java:266)
at com.mathworks.jmi.MatlabLooper.sendMatlabMessage(MatlabLooper.java:120)
at com.mathworks.jmi.Matlab.mtFevalConsoleOutput(Matlab.java:1778)
at com.mathworks.jmi.MatlabWorker.feval(MatlabWorker.java:195)
at com.mathworks.jmi.MatlabWorker.feval(MatlabWorker.java:172)
at com.mathworks.toolbox.matlab.guide.utils.LayoutWorker.runOnMatlabThread(LayoutWorker.java:51)
at com.mathworks.jmi.MatlabWorker$2.run(MatlabWorker.java:79)
at com.mathworks.jmi.MatlabWorker.start(MatlabWorker.java:248)
at com.mathworks.toolbox.matlab.guide.utils.LayoutWorker.start(LayoutWorker.java:70)
at com.mathworks.toolbox.matlab.guide.utils.LayoutWorker.fevalConsoleOutput(LayoutWorker.java:41)
at com.mathworks.toolbox.matlab.guide.LayoutLooper.readFigure(LayoutLooper.java:711)
at com.mathworks.toolbox.matlab.guide.LayoutEditor.openLayoutEditor(LayoutEditor.java:2014)
at com.mathworks.toolbox.matlab.guide.LayoutEditor.openLayoutEditor(LayoutEditor.java:1977)
Any suggestions would be greatly appreciated.
  3 commentaires
KMM
KMM le 18 Fév 2019
Thank you for offering to help. I've tracked it down to guidefunc.m line 2137
prox{i} = com.mathworks.toolbox.matlab.guide.palette.GObjectProxy(adpt{i},str,parentHeight,view);
where i = 119
in a loop that goes to 466
There are 466 'kids'
This is in the function localScanChildren
The error is below. Is this a JAVA issue?
************************************************************************************************************
K>> prox{i} = com.mathworks.toolbox.matlab.guide.palette.GObjectProxy(adpt{i},str,parentHeight,view);
Java exception occurred:
java.lang.NullPointerException
at com.mathworks.toolbox.matlab.guide.palette.GObjectProxy.updateAppearance(GObjectProxy.java:794)
at com.mathworks.toolbox.matlab.guide.palette.GObjectProxy.updateUIControl(GObjectProxy.java:761)
at com.mathworks.toolbox.matlab.guide.palette.GObjectProxy.updateProxy(GObjectProxy.java:406)
at com.mathworks.toolbox.matlab.guide.palette.MObjectProxy.init(MObjectProxy.java:164)
at com.mathworks.toolbox.matlab.guide.palette.GObjectProxy.<init>(GObjectProxy.java:167)
at com.mathworks.jmi.NativeMatlab.SendMatlabMessage(Native Method)
at com.mathworks.jmi.NativeMatlab.sendMatlabMessage(NativeMatlab.java:266)
at com.mathworks.jmi.MatlabLooper.sendMatlabMessage(MatlabLooper.java:120)
at com.mathworks.jmi.Matlab.mtFevalConsoleOutput(Matlab.java:1778)
at com.mathworks.jmi.MatlabWorker.feval(MatlabWorker.java:195)
at com.mathworks.jmi.MatlabWorker.feval(MatlabWorker.java:172)
at com.mathworks.toolbox.matlab.guide.utils.LayoutWorker.runOnMatlabThread(LayoutWorker.java:51)
at com.mathworks.jmi.MatlabWorker$2.run(MatlabWorker.java:79)
at com.mathworks.jmi.MatlabWorker.start(MatlabWorker.java:248)
at com.mathworks.toolbox.matlab.guide.utils.LayoutWorker.start(LayoutWorker.java:70)
at com.mathworks.toolbox.matlab.guide.utils.LayoutWorker.fevalConsoleOutput(LayoutWorker.java:41)
at com.mathworks.toolbox.matlab.guide.LayoutLooper.readFigure(LayoutLooper.java:711)
at com.mathworks.toolbox.matlab.guide.LayoutEditor.openLayoutEditor(LayoutEditor.java:2014)
at com.mathworks.toolbox.matlab.guide.LayoutEditor.openLayoutEditor(LayoutEditor.java:1977)
Walter Roberson
Walter Roberson le 18 Fév 2019
That is a section of MATLAB code that I am not familiar with.
As an experiment I would suggest going into MATLAB Preferences and increase Java Heap -- just in case the problem is running out of memory at the Java level. You will need to restart MATLAB after increasing the heap for it to take effect.

Connectez-vous pour commenter.

Réponses (1)

KMM
KMM le 19 Fév 2019
Thanks for the suggestion. I get the same error after increasing Java Heap and restarting. Attached is the window that pops up.

Catégories

En savoir plus sur Migrate GUIDE Apps dans Help Center et File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by