GUIDE/GUIs not working- some files inaccessible.

4 次查看(过去 30 天)
Hi all,
I'm trying to run a GUIDE GUI which I made at work, on a University computer. The original GUI was developed on r2011a but it works fine on r2013a also. The Uni PCs are running r2013a but my code doesn't work.
I tried opening GUIDE from the command line and when I get the initial dialogue asking what type of GUI I'd like to create/open, I get the following errors:
>> guide
Previously accessible file "Q:\Matlab.810604 \MATLAB\R2013a\toolbox\matlab\datatypes\@opaque\double.m" is now inaccessible.
Error in javacomponentundoc_helper>createHierarchyListeners (line 506)
addlistener(hUicontainer, 'ObjectBeingDestroyed', @(o,e) deleteExistingHierarchyListeners(o,e));
Error in javacomponentundoc_helper/createPanel (line 197)
createHierarchyListeners(hUicontainer, @handleVisible);
Error in javacomponentundoc_helper (line 113)
createPanel;
Error in javacomponent (line 114)
[hcomponent, hcontainer] = javacomponentundoc_helper(varargin{:});
Error in guidetemplate (line 26)
[jc, hc] = javacomponent(quickstartpanel, [], hDialog);
Error in guide (line 70)
guidetemplate;
After choosing "Blank GUI (default)" I get further warning/errors:
Previously accessible file "Q:\Matlab.810604 \MATLAB\R2013a\toolbox\matlab\datatypes\@opaque\toChar.m" is now inaccessible.
Error in opaque/char (line 89)
Error in tempname (line 24)
tmp_name = fullfile(dirname, ['tp' strrep(char(java.util.UUID.randomUUID),'-','_')]);
Error in guidetemplate/processDialogResult (line 160)
temp = tempname;
Error in guidetemplate/dialogCallback (line 104)
processDialogResult(quickstartpanel);
Warning: Error occurred while evaluating listener callback.
I haven't been able to find a solution through MATLAB Central or the documentation. Any pointerrs would be great! :-)
Louis Vallance
P.S. I can't access Q:\ because it's a protected directory. The Uni doesn't want students tampering with their program files ;-)
  2 个评论
Jan
Jan 2013-9-30
编辑:Jan 2013-9-30
I do not understand the first paragraph exactly. Please explain again: Where does the program run, where did you develop it and where does the error occur? Does the problem concern an existing GUI or are you talking about the creation of a new one?
fsgeek
fsgeek 2013-9-30
Hi Jan,
The program was developed on a computer where I work, using r2011a. The whole program runs fine from that computer. When I run the same program from a University computer (I run the GUIDE-generated .m file which starts the GUI) I get the very long list of errors which I posted as my reply to your other comment.
In order to troubleshoot MATLAB on the University PCs, I tried starting GUIDE by its self to create a totally separate, blank GUI and I get the list of errors which I posted as my original question.
Overall it looks like I get the same problem whether I'm trying to run my existing program, or start a new GUI. I'm sorry I can't be more specific about the Q drive as it's not an area I can access.
Thanks

请先登录,再进行评论。

采纳的回答

Image Analyst
Image Analyst 2013-9-30
Try launching GUIDE with the file's path as it sits on your local hard drive, so it doesn't try to do anything with any prior file on the Q drive:
guide('c:\fullpath\mymfile.fig')

更多回答(1 个)

Jan
Jan 2013-9-30
It looks really strange, that there are a different number of spaces in the path: "Q:\Matlab.810604 \" and ""Q:\Matlab.810604 \MATLAB\R2013a".
What does "I can't access Q:\" exactly mean: No write or even no read permissions?
Did you change the path during Matlab runs? E.g. addpath or path commands, but without < rehash?
  1 个评论
fsgeek
fsgeek 2013-9-30
I haven't knowingly changed paths at any point, but I'll look further into this. The Uni's Q drive is completely invisible to students. No read/write permissions whatsoever.
Interestingly, when I try to run my GUI code, it crashes before it finishes executing the GUIDE initialization code on line 19:
gui_mainfcn(gui_State, varargin{:});
With the following error/warning combination:
Previously accessible file "Q:\Matlab.810604 \MATLAB\R2013a\toolbox\matlab\datatypes\@opaque\double.m" is now inaccessible.
Error in uitools.uibuttongroup/childAddedCbk (line 22)
set(hgroup, 'SelectedObject', double(ch));
Warning: Error occurred while evaluating listener callback.
> In graphics\private\hgloadStructDbl at 95
In Q:\Matlab.810604 \MATLAB\R2013a\toolbox\matlab\graphics\hgload.p>hgload at 70
In openfig at 72
In gui_mainfcn>local_openfig at 286
In gui_mainfcn at 159
In findleyGUI at 19
Previously accessible file "Q:\Matlab.810604 \MATLAB\R2013a\toolbox\matlab\datatypes\@opaque\double.m" is now inaccessible.
Error in uitools.uibuttongroup/childAddedCbk (line 22)
set(hgroup, 'SelectedObject', double(ch));
Warning: Error occurred while evaluating listener callback.
> In graphics\private\hgloadStructDbl at 95
In Q:\Matlab.810604\MATLAB\R2013a\toolbox\matlab\graphics\hgload.p>hgload at 70
In openfig at 72
In gui_mainfcn>local_openfig at 286
In gui_mainfcn at 159
In findleyGUI at 19
Previously accessible file "Q:\Matlab.810604\MATLAB\R2013a\toolbox\matlab\datatypes\@opaque\double.m" is now inaccessible.
Error in uitools.uibuttongroup/childAddedCbk (line 22)
set(hgroup, 'SelectedObject', double(ch));
Warning: Error occurred while evaluating listener callback.
> In graphics\private\hgloadStructDbl at 95
In Q:\Matlab.810604\MATLAB\R2013a\toolbox\matlab\graphics\hgload.p>hgload at 70
In openfig at 72
In gui_mainfcn>local_openfig at 286
In gui_mainfcn at 159
In findleyGUI at 19
Previously accessible file "Q:\Matlab.810604\MATLAB\R2013a\toolbox\matlab\datatypes\@opaque\double.m" is now inaccessible.
Error in uitools.uibuttongroup/childAddedCbk>valueChangedCbk (line 49)
set(hgroup, 'SelectedObject', double(ctrl));
Warning: Error occurred while evaluating listener callback.
> In graphics\private\hgloadStructDbl at 95
In Q:\Matlab.810604\MATLAB\R2013a\toolbox\matlab\graphics\hgload.p>hgload at 70
In openfig at 72
In gui_mainfcn>local_openfig at 286
In gui_mainfcn at 159
In findleyGUI at 19
Previously accessible file "Q:\Matlab.810604\MATLAB\R2013a\toolbox\matlab\datatypes\@opaque\double.m" is now inaccessible.
Error in hgloadStructDbl>figload_reset (line 264)
l = double(find(handle(fig),'Tag','legend','-class','scribe.legend'));
Error in hgloadStructDbl (line 139)
figload_reset(hFigures(i));
Error in Q:\Matlab.810604 \MATLAB\R2013a\toolbox\matlab\graphics\hgload.p>hgload (line 70)
Error in openfig (line 72)
[fig, savedvisible] = hgload(filename, struct('Visible','off'));
Error in gui_mainfcn>local_openfig (line 286)
gui_hFigure = openfig(name, singleton, visible);
Error in gui_mainfcn (line 159)
gui_hFigure = local_openfig(gui_State.gui_Name, gui_SingletonOpt, gui_Visible);
Error in findleyGUI (line 19)
gui_mainfcn(gui_State, varargin{:});
I feel bad inundating you with so much output text- I have no idea why it goes so crazy :-)

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Migrate GUIDE Apps 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by