App Designer Error Message.
조회 수: 16 (최근 30일)
이전 댓글 표시
I randomly get the following error message in my app designer app.
- How to I determine which line of code is causing the issue? The error does not occur when stepping through the code. Matlab does not provide a line number for the error/ warning.
- How do fix the issue?
Warning: Error occurred while executing the listener callback for event Action defined for class matlab.graphics.interaction.graphicscontrol.AxesControl:
Dot indexing is not supported for variables of this type.
Error in matlab.graphics.interaction.graphicscontrol.InteractionObjects.DataTipBaseInteraction/response
Error in matlab.graphics.interaction.graphicscontrol.InteractionObjects.InteractionBase/responseevent
Error in matlab.graphics.interaction.graphicscontrol.InteractionObjects.InteractionBase
Error in matlab.graphics.interaction.graphicscontrol.GenericControl/process
Error in matlab.graphics.interaction.graphicscontrol.layoutable.LayoutableControl/process
Error in matlab.graphics.interaction.graphicscontrol.layoutable.GridLayoutableControl/process
Error in matlab.graphics.interaction.graphicscontrol.AxesControl/process
Error in matlab.graphics.interaction.graphicscontrol.ControlManager/processMessage
> In matlab.graphics.interaction.graphicscontrol/GenericControl/process
In matlab.graphics.interaction.graphicscontrol.layoutable/LayoutableControl/process
In matlab.graphics.interaction.graphicscontrol.layoutable/GridLayoutableControl/process
In matlab.graphics.interaction.graphicscontrol/AxesControl/process
In matlab.graphics.interaction.graphicscontrol/ControlManager/processMessage
Warning: Error occurred while executing the listener callback for event ButtonMotion defined for class matlab.graphics.primitive.canvas.HTMLCanvas:
Dot indexing is not supported for variables of this type.
Error in matlab.graphics.controls.internal.PointerMixin/hasUserModifiedPointer
Error in matlab.graphics.controls.internal.PointerMixin/updatePointer
Error in matlab.graphics.controls.WebToolbarController/handleMouseMotion
Error in matlab.graphics.controls.ToolbarController>@(e,d)obj.handleMouseMotion(e,d)
댓글 수: 1
dpb
2022년 8월 15일
That's something broke in the internal TMW graphics code -- think you'll need to send this to official support to have any chance of any resolution.
답변 (1개)
Yash
2023년 9월 2일
Hi,
The line "Dot indexing is not supported for variables of this type." indicates that you are using dot indexing on wrong variable type. Dot indexing is generally used for struct and Table data types, not for arrays.
Also, see this line "Error occurred while executing the listener callback for event ButtonMotion defined for class matlab.graphics.primitive.canvas.HTMLCanvas:". This suggests that the error is in the callback function for the Button Motion event.
The best method to detect the error is to debug by creating breakpoints. Create breakpoints at the lines where you suspect the error might have occurred. When you would step in one by one, you will eventually get the line causing the error.
To remove the error you need to check the data type and apply the dot indexing properly.
If the issue is still not resolved, kindly share the code for better understanding.
댓글 수: 2
dpb
2023년 9월 5일
dbstop if error
and
dbstack
might be of some benefit here to pinpoint the way you get to the problem.
Were you able to followup on the previous suggestion to build a sample case that generates the problem and submit it to MW support?
참고 항목
카테고리
Help Center 및 File Exchange에서 Develop Apps Using App Designer에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!