Issues with Grids in the App Designer

8 visualizaciones (últimos 30 días)
Jesper Bjerregaard
Jesper Bjerregaard el 28 de Jul. de 2021
Comentada: Khaleel el 31 de Ag. de 2022
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 comentarios
Adam Danz
Adam Danz el 15 de Mzo. de 2022
Please report this to tech support as a bug.
Khaleel
Khaleel el 31 de Ag. de 2022
Nikola: Bugs like this happen in all langagues, not just MATLAB

Iniciar sesión para comentar.

Respuestas (0)

Categorías

Más información sobre Develop Apps Using App Designer en Help Center y File Exchange.

Etiquetas

Productos


Versión

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by