[BUG-11007] Perspective View Crashes

I’ve been having some sporadic “crashes” - for lack of a better word - of a Perspective view that I’m playing around with. There isn’t much in it, just an XY Chart. So far it has only happened when I’m not actively using the Designer. This time I had the Designer open in the background while working in some other programs (Chrome, Excel, etc), and then go back to find the View unresponsive/showing a white screen. This most recent one occurred somewhere in the 15-45 minute range from the time I opened the view. Doesn’t allow me to add components to it. Only recourse is to close the View - losing any unsaved work - and re-open it. Below is what is printed in the Designer Console and a screenshot of the unresponsive view in the Designer (can provide a gateway backup if that will help).

The Gateway and Designer are running on the same machine. 2015 MacBook Pro, 16 GB Ram, MacOSX Sierra 10.12.6. Ignition 8.0.0-beta0 (b2018110513).

12:17:25.011 [Browser Events Thread] INFO Perspective.Designer.BrowserConsole - store.Views: Cannot send 'view-stop', disconnected. view=#3@D
12:17:25.016 [Browser Events Thread] INFO Perspective.Designer.BrowserConsole - [mobx] Encountered an uncaught exception that was thrown by a reaction or observer component, in: 'Reaction[selection-config-details]
12:17:25.027 [Browser Events Thread] INFO Perspective.Designer.BrowserConsole - [mobx] Encountered an uncaught exception that was thrown by a reaction or observer component, in: 'Reaction[deep-selection-sync]
12:17:25.027 [Browser Events Thread] INFO Perspective.Designer.BrowserConsole - [mobx] Encountered an uncaught exception that was thrown by a reaction or observer component, in: 'Reaction[structure-sync]
12:17:30.137 [Browser Events Thread] INFO Perspective.Designer.BrowserConsole - onerrorLogger: {"stack":"TypeError: Cannot read property 'props' of undefined\n    at SelectionStore.get deepSelection (http://localhost:8088/res/perspective/js/PerspectiveDesigner.js:25335:30)\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 shouldCompute (http://localhost:8088/res/perspective/js/mobx.umd-3.3.1.js:3076:29)\n    at Reaction.runReaction (http://localhost:8088/res/perspective/js/mobx.umd-3.3.1.js:3308:17)\n    at runReactionsHelper (http://localhost:8088/res/perspective/js/mobx.umd-3.3.1.js:3446:35)\n    at reactionScheduler (http://localhost:8088/res/perspective/js/mobx.umd-3.3.1.js:3424:47)\n    at http://localhost:8088/res/perspective/js/mobx.umd-3.3.1.js:3453:71","message":"Cannot read property 'props' of undefined","name":"TypeError","logData":{"msg":"Uncaught Exception","errorMsg":"Uncaught TypeError: Cannot read property 'props' of undefined","url":"http://localhost:8088/res/perspective/js/mobx-react-4.3.3.js","line number":794,"column":17}}
12:17:30.137 [Browser Events Thread] INFO Perspective.Designer.BrowserConsole - Uncaught TypeError: Cannot read property 'props' of undefined
12:17:30.151 [Browser Events Thread] INFO Perspective.Designer.BrowserConsole - The above error occurred in the <ViewEditor> component:
    in ViewEditor (created by Designer)
    in Designer

Consider adding an error boundary to your tree to customize error handling behavior.
Visit https://fb.me/react-error-boundaries to learn more about error boundaries.
12:17:30.151 [Browser Events Thread] INFO Perspective.Designer.BrowserConsole - onerrorLogger: {"stack":"TypeError: Cannot read property 'props' of undefined\n    at SelectionStore.get deepSelection (http://localhost:8088/res/perspective/js/PerspectiveDesigner.js:25335:30)\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 shouldCompute (http://localhost:8088/res/perspective/js/mobx.umd-3.3.1.js:3076:29)\n    at Reaction.runReaction (http://localhost:8088/res/perspective/js/mobx.umd-3.3.1.js:3308:17)\n    at runReactionsHelper (http://localhost:8088/res/perspective/js/mobx.umd-3.3.1.js:3446:35)\n    at reactionScheduler (http://localhost:8088/res/perspective/js/mobx.umd-3.3.1.js:3424:47)\n    at http://localhost:8088/res/perspective/js/mobx.umd-3.3.1.js:3453:71","message":"Cannot read property 'props' of undefined","name":"TypeError","logData":{"msg":"Uncaught Exception","errorMsg":"Uncaught TypeError: Cannot read property 'props' of undefined","url":"http://localhost:8088/res/perspective/js/react-dom.development-16.4.2.js","line number":17479,"column":5}}
12:17:30.151 [Browser Events Thread] INFO Perspective.Designer.BrowserConsole - Uncaught TypeError: Cannot read property 'props' of undefined

Any chance your laptop is going to sleep during this time?

Nope, it is set to never sleep and I was using it the entire time (from when I opened the view to when I went back to the Designer to see it had “crashed”).

It looks like you’re momentarily losing connection to the gateway. This is a known issue in the perspective designer that we’re working on.

Sounds good. Let me know if there is anything else I can provide or test.

Also, just in case it helps - I’m guessing it’s old news though. I closed the unresponsive view and this error popped up (two of them actually, identical errors):

ExecutionException: java.lang.RuntimeException: Could not save View 'Main'. Expected string, found JSUndefined
	caused by RuntimeException: Could not save View 'Main'. Expected string, found JSUndefined

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

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

A post was split to a new topic: [Bug]Unable to save view

Hello, my perspective components show me an error of "cannot read property name of undefined " after I upgrading the ignition to 8.0.16. I have not change anything in that page. So would that be a problem that I can fix?

cannot read property name of undefined is usually encountered when a script (or binding transform) is attempting to reference an object or value which doe snot exist. This can occur if you rename components, restructure a View by altering the path of a component (by nesting within containers), or if you have Tag bindings and that tag has been renamed. It could also happen if a script uses something like a database query and that query no longer returns results because of db structure changes or a faulted connection.

There are way too many causes for us to help you with the error unless you can give us more context. If you can provide the full error from the Designer console, or if you could supply the view.json file, we could help a bit more.