I am fairly certain this is related to this, so going to call it out first, this is on MacOS Seqouia's public beta. Need to use it for testing something else, and am hoping if thats the case I can sort a work-around for Ignition Designers. Full willing to acknowledge this is beta software, just hoping someone sees this and an error is obvious to them that might correct it temporarily.
After updating I have started to run into an inconsistent issue where JXBrowser crashes when the designer opens, but its pretty inconsistent what causes it.
If I create a fresh gateway (all using docker) and then open a designer, life is good and everything works. However something eventually causes the following error when Perspective starts:
08:25:20.721 [Designer-Startup] INFO Perspective.Designer -- Starting up Perspective module. Mode: Trial
8:25:26.369 ERROR Chromium process exit code: 133
08:25:26.370 [Thread-9] ERROR com.teamdev.jxbrowser -- Chromium process exit code: 133
8:25:26.371 ERROR Crash dump dir: /Users/kgamble/Library/Application Support/JxBrowser/7.36.3/CrashReports
08:25:26.371 [Thread-9] ERROR com.teamdev.jxbrowser -- Crash dump dir: /Users/kgamble/Library/Application Support/JxBrowser/7.36.3/CrashReports
08:25:26.387 [Thread-9] ERROR designer.JXBrowserUtil -- Browser Engine has reported a crash with exit code 133: EngineCrashed{exitCode=133}
08:25:26.698 [Designer-Startup] ERROR Perspective.WorkspaceRootConfig -- Unable to set up session props adapter
com.teamdev.jxbrowser.ObjectClosedException: Attempted to use a closed object.
You're trying to call a method of a closed object. Usually, it happens when you
call the `close()` method of an object (or its owner) prior to calling methods
of that object.
Another common cause of this exception is working with cached DOM or JavaScript
objects. For example, if you navigate to another web page and try to call
a method of a DOM or a JavaScript object from the previous page, you will get
this exception.
It's also possible that the native Chromium process has crashed. In that case,
all the objects that belong to that process are closed automatically.
The following article explains this exception in detail: https://links.teamdev.com/jxbrowser-object-closed-exception
at com.teamdev.jxbrowser.internal.rpc.ServiceConnectionImpl.checkNotClosed(ServiceConnectionImpl.java:243)
at com.teamdev.jxbrowser.internal.rpc.ServiceConnectionImpl.invoke(ServiceConnectionImpl.java:211)
at com.teamdev.jxbrowser.navigation.internal.NavigationImpl.loadAndWait(NavigationImpl.java:227)
at com.teamdev.jxbrowser.navigation.internal.NavigationImpl.loadUrlAndWait(NavigationImpl.java:104)
at com.teamdev.jxbrowser.navigation.internal.NavigationImpl.loadUrlAndWait(NavigationImpl.java:91)
at com.teamdev.jxbrowser.navigation.internal.NavigationImpl.loadUrlAndWait(NavigationImpl.java:83)
at com.teamdev.jxbrowser.browser.internal.BrowserImpl.initializeMainFrame(BrowserImpl.java:401)
at com.teamdev.jxbrowser.profile.internal.ProfileImpl.newBrowser(ProfileImpl.java:150)
at com.teamdev.jxbrowser.engine.internal.EngineImpl.newBrowser(EngineImpl.java:425)
at com.inductiveautomation.perspective.designer.workspace.pageconfig.SessionPropsAdapter.<init>(SessionPropsAdapter.java:82)
at com.inductiveautomation.perspective.designer.workspace.pageconfig.WorkspaceRootConfig.init(WorkspaceRootConfig.java:40)
at com.inductiveautomation.perspective.designer.workspace.ViewWorkspace.<init>(ViewWorkspace.java:150)
at com.inductiveautomation.perspective.designer.DesignerHook.lambda$startup$4(DesignerHook.java:249)
at java.base/java.util.Optional.ifPresent(Unknown Source)
at com.inductiveautomation.perspective.designer.DesignerHook.startup(DesignerHook.java:234)
at com.inductiveautomation.ignition.designer.IgnitionDesigner$LoadedModule.startup(IgnitionDesigner.java:1994)
at com.inductiveautomation.ignition.designer.IgnitionDesigner.startupModule(IgnitionDesigner.java:1202)
at com.inductiveautomation.ignition.designer.IgnitionDesigner.loadProject(IgnitionDesigner.java:998)
at com.inductiveautomation.ignition.designer.IgnitionDesigner$StartupProjectDialogHandler.lambda$new$2(IgnitionDesigner.java:2058)
at java.base/java.lang.Thread.run(Unknown Source)
A few notes from my searches:
- Sometimes it is
Chromium process exit code: 139
and not 133, but can't figure out what that means. - When I look in the listed Crash Dump dir, there is nothing there. In fact I can see several JXBrowser versions over time all with skeleton file structures underneath and no files.
- I attempted something I found in a separate post to add a
-Djxbrowser.chromium.dir="/Users/kgamble/.ignition/cache/.jxbrowser"
JVM arg, but that didn't fix it either. - Once this crash happens for the first time, I can't get it not to keep doing that. Removing the designer, reinstalling it, restarting the gateway, etc.
I have tried a few things based off forum searches and googling, but no luck.
Open to any ideas here, and as always I appreciate any help!