How to debug a suddenly closing/crashing appdesigner app
I am working on an more or less complex appdesigner application wich controls a test stand in a laboratory. So I can not give an example or reproduce the error.
After a random runtime of 10 min. to 2 h the app closes without any message, so I am not sure if I should call this a "crash". The first error message comes from a listener that can not execute since the object was deleted.
By setting a breakpoint in the delete(app) function, created by appdesigner, I was able get a callstack.
"MyApp.mlapp fcn: MyApp.delete ;line 1686"
"FigureController.m fcn: FigureController.onViewKilled ;line 820"
"FigurePlatformHost.m fcn: FigurePlatformHost.onViewKilled ;line 59"
"CEFFigurePlatformHost.m fcn: @(event,data)this.onViewKilled() ;line 94"
"Callback.m fcn: Callback.execute ;line 128"
"webwindow.m fcn: webwindow.onCustomEvent ;line 1528"
"webwindow.m fcn: @(source,data)obj.onCustomEvent(data.Type,data.Data) ;line 349"
"Channel.m fcn: Channel.onCustomEvent ;line 575"
"Channel.m fcn: @(source,data)obj.onCustomEvent(data.Type,data.Data) ;line 473"
The Channel file is +matlabshared+asyncio+internalChannel.m
In the last line of the callstack, the "Custom" Event of the Channel is raised. The event data is
data.Type = "processExit"
data.Data = struct with fields: exitStatus: 3
The event source is a asyncioimpl.Channel, which is a c++ implementation of the Channel and the debugger can not look into this.
Is there any way of tracing the cause of this error?
Thank you for your help!I am working on an more or less complex appdesigner application wich controls a test stand in a laboratory. So I can not give an example or reproduce the error.
After a random runtime of 10 min. to 2 h the app closes without any message, so I am not sure if I should call this a "crash". The first error message comes from a listener that can not execute since the object was deleted.
By setting a breakpoint in the delete(app) function, created by appdesigner, I was able get a callstack.
"MyApp.mlapp fcn: MyApp.delete ;line 1686"
"FigureController.m fcn: FigureController.onViewKilled ;line 820"
"FigurePlatformHost.m fcn: FigurePlatformHost.onViewKilled ;line 59"
"CEFFigurePlatformHost.m fcn: @(event,data)this.onViewKilled() ;line 94"
"Callback.m fcn: Callback.execute ;line 128"
"webwindow.m fcn: webwindow.onCustomEvent ;line 1528"
"webwindow.m fcn: @(source,data)obj.onCustomEvent(data.Type,data.Data) ;line 349"
"Channel.m fcn: Channel.onCustomEvent ;line 575"
"Channel.m fcn: @(source,data)obj.onCustomEvent(data.Type,data.Data) ;line 473"
The Channel file is +matlabshared+asyncio+internalChannel.m
In the last line of the callstack, the "Custom" Event of the Channel is raised. The event data is
data.Type = "processExit"
data.Data = struct with fields: exitStatus: 3
The event source is a asyncioimpl.Channel, which is a c++ implementation of the Channel and the debugger can not look into this.
Is there any way of tracing the cause of this error?
Thank you for your help! I am working on an more or less complex appdesigner application wich controls a test stand in a laboratory. So I can not give an example or reproduce the error.
After a random runtime of 10 min. to 2 h the app closes without any message, so I am not sure if I should call this a "crash". The first error message comes from a listener that can not execute since the object was deleted.
By setting a breakpoint in the delete(app) function, created by appdesigner, I was able get a callstack.
"MyApp.mlapp fcn: MyApp.delete ;line 1686"
"FigureController.m fcn: FigureController.onViewKilled ;line 820"
"FigurePlatformHost.m fcn: FigurePlatformHost.onViewKilled ;line 59"
"CEFFigurePlatformHost.m fcn: @(event,data)this.onViewKilled() ;line 94"
"Callback.m fcn: Callback.execute ;line 128"
"webwindow.m fcn: webwindow.onCustomEvent ;line 1528"
"webwindow.m fcn: @(source,data)obj.onCustomEvent(data.Type,data.Data) ;line 349"
"Channel.m fcn: Channel.onCustomEvent ;line 575"
"Channel.m fcn: @(source,data)obj.onCustomEvent(data.Type,data.Data) ;line 473"
The Channel file is +matlabshared+asyncio+internalChannel.m
In the last line of the callstack, the "Custom" Event of the Channel is raised. The event data is
data.Type = "processExit"
data.Data = struct with fields: exitStatus: 3
The event source is a asyncioimpl.Channel, which is a c++ implementation of the Channel and the debugger can not look into this.
Is there any way of tracing the cause of this error?
Thank you for your help! appdesigner, debug, crash MATLAB Answers — New Questions