Issues with Grids in the App Designer

8 次查看(过去 30 天)
Hi,
I'm currently designing a rather extensive app, and I've run into an issue I can't seem to grasp.
The problem arises when I run my app and afterwards try to open it in App Designer. I get the error below, not from running the app, but just opening it in App Designer. It only occurs after I've run the app. If I close down MATLAB compleatly, re-open MATLAB, and then open the app in App Designer again, the error does not occur. But as soon as I've actually run and used the app, I can no longer open the app in App Designer.
I've tried to clear the work space and the memory without any influence.
Error in executing callback registered with ViewModel:
Children may only be set to a permutation of itself.
Error in appdesservices.internal.interfaces.controller.DesignTimeParentingController/arrangeNewlyAddedChild (line 87)
obj.Model.Children = arrangeChildren;
Error in appdesservices.internal.interfaces.controller.DesignTimeParentingController/processClientCreatedPeerNode (line 265)
obj.arrangeNewlyAddedChild(child, componentIndex);
Error in appdesservices.internal.interfaces.controller.DesignTimeParentingController/handlePeerNodeAdded (line 315)
obj.processClientCreatedPeerNode(peerNode);
Error in appdesservices.internal.interfaces.controller.DesignTimeParentingController>@(varargin)obj.handlePeerNodeAdded(varargin{:}) (line 175)
obj.ChildAddedListener = addlistener(obj.ProxyView.PeerNode,'childAdded', @obj.handlePeerNodeAdded);
Error in viewmodel.internal.factory.ManagerFactoryProducer>@(src,event)callback(src,viewmodel.internal.factory.ManagerFactoryProducer.convertStructToEventData(event)) (line 106)
proxyCallback = @(src, event)callback(src, ...
As far as I can tell it seems to be related to my grids. That, at least, is the pop up message I get, when opening the app in App Designer.
The app usually looks something like this:
But after running it and re-opening it in App Designer it looks like this (please take note of the modified component browser (almost all components are missing)):
I'm not sure how to debug this or why it's happening. It didn't use to behave like this, it just startet occuring - I'm not sure exactly when. I haven't updated MATLAB and it was initially designed and is still running on version R2021a.
  3 个评论
Khaleel
Khaleel 2022-8-31
Nikola: Bugs like this happen in all langagues, not just MATLAB

请先登录,再进行评论。

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Develop Apps Using App Designer 的更多信息

产品


版本

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by