[BUG-11007] Perspective Designer Error when attempting Save/Commit

I have two Perspective views open, one called Title and one Tank. I am looking at Tile and select the tab for tank and the following error pops up:

ExecutionException: java.lang.RuntimeException: Could not save View ‘Title’. Expected string, found JSUndefined
caused by RuntimeException: Could not save View ‘Title’. Expected string, found JSUndefined

Ignition v8.0.0-beta0 (b2018111002)
Java: Azul Systems, Inc. 11.0.1

This error can be caused by a variety of things, it’d be helpful if we had some more context as to how you got to this point.

I have two views open in the designer. It happens when I go from one to the other. I did notice that if I just leave a view open in the designer this pops up in the output console:

16:57:33.883 [Browser Events Thread] INFO Perspective.Designer.BrowserConsole - onerrorLogger: {“stack”:“TypeError: Cannot read property ‘rootComponent’ of undefined\n at SelectionStore.get selectedComponents (http://localhost:8088/res/perspective/js/PerspectiveDesigner.js:25291:47)\n at trackDerivedFunction (http://localhost:8088/res/perspective/js/mobx.umd-3.3.1.js:3125:20)\n at ComputedValue.computeValue (http://localhost:8088/res/perspective/js/mobx.umd-3.3.1.js:1608:19)\n at ComputedValue.trackAndCompute (http://localhost:8088/res/perspective/js/mobx.umd-3.3.1.js:1597:43)\n at ComputedValue.get (http://localhost:8088/res/perspective/js/mobx.umd-3.3.1.js:1556:26)\n at SelectionStore. (http://localhost:8088/res/perspective/js/mobx.umd-3.3.1.js:3484:27)\n at SelectionStore.get (http://localhost:8088/res/perspective/js/mobx.umd-3.3.1.js:1061:32)\n at SelectionStore.get areProperSiblings (http://localhost:8088/res/perspective/js/PerspectiveDesigner.js:25600:45)\n at trackDerivedFunction (http://localhost:8088/res/perspective/js/mobx.umd-3.3.1.js:3125:20)\n at ComputedValue.computeValue (http://localhost:8088/res/perspective/js/mobx.umd-3.3.1.js:1608:19)”,“message”:“Cannot read property ‘rootComponent’ of undefined”,“name”:“TypeError”,“logData”:{“msg”:“Uncaught Exception”,“errorMsg”:“Uncaught TypeError: Cannot read property ‘rootComponent’ of undefined”,“url”:“http://localhost:8088/res/perspective/js/react-dom.development-16.4.2.js","line number”:17479,“column”:5}}
16:57:33.883 [Browser Events Thread] INFO Perspective.Designer.BrowserConsole - Uncaught TypeError: Cannot read property ‘rootComponent’ of undefined

After that, whenever I click on a tab, the aforementioned error is thrown.

We’ve noticed this behavior quite often when Designer sessions have been open for long durations, during which they’ve (temporarily) lost connection to the Gateway one or more times. To my recollection, we haven’t lost any data, despite the warning. Consider Saving once more and then closing your Designer and re-launching it.

Until we reach launch, the recommended mantra is “save often”, just-in-case.

If the Save/Relaunch recommendation doesn’t work, please let us know (including if you do believe you’ve lost any saved progress).

This issue was fixed in the build that was uploaded on 11/28. Please let us know if you continue to see this behavior after upgrading.