Issues with Grids in the App Designer
10 次查看(过去 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 个评论
回答(0 个)
另请参阅
类别
在 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!