Standalone GUI application gives error at uigetfile. But if run from matlab, the script works fine

4 views (last 30 days)
  • MATLAB Version: 9.7.0.1140744 (R2019b) Prerelease
  • MATLAB License Number: Prerelease
  • Operating System: Microsoft Windows 10 Pro Version 10.0 (Build 18362)
  • Java Version: Java 1.8.0_202-b08 with Oracle Corporation Java HotSpot(TM) 64-Bit Server VM mixed mode
Hi all,
This is regarding a TI mmWave application (mmwave_industrial_toolbox_3_6_2\labs\lab0013_traffic_monitoring_16xx\gui) . The script when run from matlab works as expected. But when the App is compiled to a standalone, these errors appear. Note that I have put some fprintf()'s here and there.
How can I fix this?
Any guidance would be much appreciated. Please do not ask me to post this in TI's e2e because they said me to post it here.
Errors ->
== Entering the Setup ==
== Came to the pushbuttonBrowse_CreateFcn ==
== Came to the pushbuttonBrowse_Callback ==
Unable to resolve the name connector.internal.webwindowmanager.instance.windowList.
Error in matlab.internal.webwindowmanager/get.windowList (line 122)
Error in matlab.internal.webwindowmanager/findAllWebwindows (line 91)
Error in matlab.ui.internal.dialog.DialogUtils.disableAllWindowsSafely (line 24)
Error in uigetputfile_helper (line 54)
Error in uigetfile (line 130)
Error in setup>pushbuttonBrowse_Callback (line 209)
Error in gui_mainfcn (line 95)
Error in setup (line 42)
Error in matlab.graphics.internal.figfile.FigFile/read>@(hObject,eventdata)setup('pushbuttonBrowse_Callback',hObject,eventdata,guidata(hObject))
Error in uiwait (line 81)
Error in setup>setup_OpeningFcn (line 72)
Error in gui_mainfcn (line 220)
Error in setup (line 40)
Error in tm_demo (line 6)
Error using uiwait (line 81)
Error while evaluating UIControl Callback.
I will put the pushbuttonBrowse_Callback here,
% --- Executes on button press in pushbuttonBrowse.
function pushbuttonBrowse_Callback(hObject, eventdata, handles)
% hObject handle to pushbuttonBrowse (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
% Select Chirp Config File
fprintf('== Came to the pushbuttonBrowse_Callback ==\n');
[filename, pathname] = I will('*.cfg','Pick a Chirp file');
fprintf('== Came to the a ==\n');
configurationFileName = [pathname filename];
fprintf('== Came to the a ==\n');
handles.cfg.filename = configurationFileName;
fprintf('== Came to the c ==\n');
if (filename ~= 0)
% Read Chirp Configuration file
cliCfg = readCfg(handles.cfg.filename);
[Params cliCfg] = parseCfg(cliCfg);
% Display chirp table
hTable = findobj('Tag', 'uitableChirp');
hTable = displayChirpParams(Params, hTable);
hGtrackTable = findobj('Tag', 'uitableGtrackParams');
% Update handles
handles.cfg.cliCfg = cliCfg;
handles.params = Params;
guidata(hObject,handles)
% Display gtrack params
% check if params set in CLI commands
if(isfield(Params, 'gtrackAdvanced'))
if(isfield(Params.gtrackAdvanced,'sceneryParam'))
temp = Params.gtrackAdvanced.sceneryParam;
temp =[reshape(temp(3:10),4,2)'; reshape(temp(12:19),4,2)'];
temp = cellfun(@str2num,temp);
hTable = findobj('Tag', 'uitableScenery');
displayGtrackParams(temp, hTable);
data = hTable.Data;
handles.box.boundaryBox = data(1:2,:);%cellfun(@str2num,data(1:2,:));
handles.box.staticBox = data(3:4,:); %cellfun(@str2num,data(3:4,:));
handles.box.numBoundary = sum(any(handles.box.boundaryBox,2));
handles.box.numStatic = sum(any(handles.box.staticBox,2));
guidata(hObject,handles)
drawRadarRoom(handles);
end
if(isfield(Params.gtrackAdvanced,'allocationParam'))
displayGtrackParams(Params.gtrackAdvanced.allocationParam, findobj('Tag', 'uitableAllocation'));
end
if(isfield(Params.gtrackAdvanced,'stateParam'))
displayGtrackParams(Params.gtrackAdvanced.stateParam, findobj('Tag', 'uitableState'));
end
end
% Update scenePreview
drawRadarRoom(handles);
end
fprintf('== End of Browse Callback ==\n');
guidata(hObject,handles)

Answers (1)

Cris LaPierre
Cris LaPierre on 27 Aug 2019
Edited: Cris LaPierre on 27 Aug 2019
Looks like you have an incorrect function name. What is "I will" supposed to be?
fprintf('== Came to the pushbuttonBrowse_Callback ==\n');
[filename, pathname] = I will('*.cfg','Pick a Chirp file');
If you have the 19b prerelease, I assume you also have 19a. What happens when you create a standalone app using 19a instead? Do you get the same error messages?
  1 Comment
Cris LaPierre
Cris LaPierre on 27 Aug 2019
Edited: Cris LaPierre on 27 Aug 2019
I was able to test it in 19a. It worked there. I made a simple gui in 19b prerelease that just is a pushbutton with uigetfile and that also does not work. I don't get the error messages you see, but uigetfile doesn't launch.
I'll provide feedback internally.
If you have a chance, you might also want to report this issue to Customer Support.

Sign in to comment.

Categories

Find more on Programming Utilities in Help Center and File Exchange

Products


Release

R2019a

Community Treasure Hunt

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

Start Hunting!