Unable to launch MATLABWindow

14 views (last 30 days)
Juan
Juan on 13 Oct 2024
Answered: Govind KM on 13 Oct 2024
Dear All,
I have Ubuntu 24.02.1 LTS
I am running MATLAB R2024a
The key message I can understand is:
Error using matlab.internal.cef.webwindow (line 403)
MATLABWindow application failed to launch. Unable to launch the MATLABWindow application.
The exit code was: 1
Do I have a missing library, somewhere. And if so which repository can I load it from?
( e.g., I have libXss1 but not libgconf-2-4)
Thank you,
gllore
MY error emssages are as follows:
Warning: An error occurred while reading the desktop configuration file.
Exception in thread "AWT-EventQueue-0": java.lang.NullPointerException
at com.mathworks.mde.liveeditor.LiveEditorTabManager.showEditorInBrowser(LiveEditorTabManager.java:964)
at com.mathworks.mde.liveeditor.LiveEditorTabManager.handleClientDisplayed(LiveEditorTabManager.java:310)
at com.mathworks.mde.liveeditor.LiveEditorTabManager$2.run(LiveEditorTabManager.java:293)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:758)
at java.awt.EventQueue.access$500(EventQueue.java:97)
at java.awt.EventQueue$3.run(EventQueue.java:709)
at java.awt.EventQueue$3.run(EventQueue.java:703)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:74)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:728)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:205)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
Exception in thread "AWT-EventQueue-0": java.lang.NullPointerException
at com.mathworks.mde.liveeditor.LiveEditorTabManager.showEditorInBrowser(LiveEditorTabManager.java:964)
at com.mathworks.mde.liveeditor.LiveEditorTabManager.handleClientDisplayed(LiveEditorTabManager.java:310)
at com.mathworks.mde.liveeditor.LiveEditorTabManager.handleClientHierarchyChanged(LiveEditorTabManager.java:276)
at com.mathworks.mde.liveeditor.LiveEditorClient$40.hierarchyChanged(LiveEditorClient.java:1822)
at java.awt.AWTEventMulticaster.hierarchyChanged(AWTEventMulticaster.java:499)
at java.awt.Component.processHierarchyEvent(Component.java:6706)
at java.awt.Component.processEvent(Component.java:6325)
at java.awt.Container.processEvent(Container.java:2239)
at java.awt.Component.dispatchEventImpl(Component.java:4889)
at java.awt.Container.dispatchEventImpl(Container.java:2297)
at java.awt.Component.dispatchEvent(Component.java:4711)
at java.awt.Component.createHierarchyEvents(Component.java:5555)
at java.awt.Container.createHierarchyEvents(Container.java:1448)
at java.awt.Container.createHierarchyEvents(Container.java:1444)
at java.awt.Container.createHierarchyEvents(Container.java:1444)
at java.awt.Component.show(Component.java:1639)
at java.awt.Component.show(Component.java:1671)
at java.awt.Component.setVisible(Component.java:1623)
at javax.swing.JComponent.setVisible(JComponent.java:2644)
at com.mathworks.widgets.desk.DTTabbedDocumentPane.show(DTTabbedDocumentPane.java:371)
at com.mathworks.widgets.desk.DTTabbedDocumentPane.toFront(DTTabbedDocumentPane.java:251)
at com.mathworks.widgets.desk.DTDocumentContainer.toFront(DTDocumentContainer.java:532)
at com.mathworks.widgets.desk.DTDocumentContainer.propertyChange(DTDocumentContainer.java:1817)
at com.mathworks.widgets.desk.DTOccupant.forwardPropertyChange(DTOccupant.java:1197)
at com.mathworks.widgets.desk.DTClient.itemStateChanged(DTClient.java:1641)
at com.mathworks.widgets.desk.DTInternalFrame.setSelected(DTInternalFrame.java:364)
at com.mathworks.widgets.desk.DTClient.setSelected(DTClient.java:488)
at com.mathworks.widgets.desk.DTOccupant.setSelected(DTOccupant.java:822)
at com.mathworks.widgets.desk.DTDocumentContainer.setSelected(DTDocumentContainer.java:1071)
at com.mathworks.widgets.desk.DTDocumentContainer.setSelected(DTDocumentContainer.java:1037)
at com.mathworks.widgets.desk.DTGroup.setSelected(DTGroup.java:1077)
at com.mathworks.widgets.desk.DTSelectionManager.eventDispatched(DTSelectionManager.java:421)
at java.awt.Toolkit$SelectiveAWTEventListener.eventDispatched(Toolkit.java:2427)
at java.awt.Toolkit$ToolkitEventMulticaster.eventDispatched(Toolkit.java:2319)
at java.awt.Toolkit$ToolkitEventMulticaster.eventDispatched(Toolkit.java:2318)
at java.awt.Toolkit$ToolkitEventMulticaster.eventDispatched(Toolkit.java:2318)
at java.awt.Toolkit$ToolkitEventMulticaster.eventDispatched(Toolkit.java:2318)
at java.awt.Toolkit$ToolkitEventMulticaster.eventDispatched(Toolkit.java:2318)
at java.awt.Toolkit$ToolkitEventMulticaster.eventDispatched(Toolkit.java:2318)
at java.awt.Toolkit$ToolkitEventMulticaster.eventDispatched(Toolkit.java:2318)
at java.awt.Toolkit$ToolkitEventMulticaster.eventDispatched(Toolkit.java:2318)
at java.awt.Toolkit$ToolkitEventMulticaster.eventDispatched(Toolkit.java:2318)
at java.awt.Toolkit$ToolkitEventMulticaster.eventDispatched(Toolkit.java:2318)
at java.awt.Toolkit.notifyAWTEventListeners(Toolkit.java:2277)
at java.awt.Component.dispatchEventImpl(Component.java:4785)
at java.awt.Container.dispatchEventImpl(Container.java:2297)
at java.awt.Component.dispatchEvent(Component.java:4711)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4904)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4532)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4476)
at java.awt.Container.dispatchEventImpl(Container.java:2283)
at java.awt.Window.dispatchEventImpl(Window.java:2746)
at java.awt.Component.dispatchEvent(Component.java:4711)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:760)
at java.awt.EventQueue.access$500(EventQueue.java:97)
at java.awt.EventQueue$3.run(EventQueue.java:709)
at java.awt.EventQueue$3.run(EventQueue.java:703)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:74)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:84)
at java.awt.EventQueue$4.run(EventQueue.java:733)
at java.awt.EventQueue$4.run(EventQueue.java:731)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:74)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:730)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:205)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
Error using matlab.internal.cef.webwindow (line 403)
MATLABWindow application failed to launch. Unable to launch the MATLABWindow application.
The exit code was: 1
Error in matlab.internal.webwindow/createImplementation (line 327)
implObj = matlab.internal.cef.webwindow(varargin{:});
Error in matlab.internal.webwindow (line 163)
obj.impl = obj.createImplementation(varargin{:});
Error in updateinstaller.shutdownclient.launchUpdateShutdownClient (line 15)
obj.instWin = matlab.internal.webwindow(url, debugPort, cefPosition);
Exception in thread "AWT-EventQueue-0": java.lang.NullPointerException
at com.mathworks.mde.liveeditor.LiveEditorTabManager.showEditorInBrowser(LiveEditorTabManager.java:964)
at com.mathworks.mde.liveeditor.LiveEditorTabManager.handleClientDisplayed(LiveEditorTabManager.java:310)
at com.mathworks.mde.liveeditor.LiveEditorClient$39.clientActivated(LiveEditorClient.java:1708)
at com.mathworks.widgets.desk.DTClient.fireClientEvent(DTClient.java:1454)
at com.mathworks.widgets.desk.DTClient.itemStateChanged(DTClient.java:1644)
at com.mathworks.widgets.desk.DTInternalFrame.setSelected(DTInternalFrame.java:364)
at com.mathworks.widgets.desk.DTClient.setSelected(DTClient.java:488)
at com.mathworks.widgets.desk.DTSelectionManager.eventDispatched(DTSelectionManager.java:421)
at java.awt.Toolkit$SelectiveAWTEventListener.eventDispatched(Toolkit.java:2427)
at java.awt.Toolkit$ToolkitEventMulticaster.eventDispatched(Toolkit.java:2319)
at java.awt.Toolkit$ToolkitEventMulticaster.eventDispatched(Toolkit.java:2318)
at java.awt.Toolkit$ToolkitEventMulticaster.eventDispatched(Toolkit.java:2318)
at java.awt.Toolkit$ToolkitEventMulticaster.eventDispatched(Toolkit.java:2318)
at java.awt.Toolkit$ToolkitEventMulticaster.eventDispatched(Toolkit.java:2318)
at java.awt.Toolkit$ToolkitEventMulticaster.eventDispatched(Toolkit.java:2318)
at java.awt.Toolkit$ToolkitEventMulticaster.eventDispatched(Toolkit.java:2318)
at java.awt.Toolkit$ToolkitEventMulticaster.eventDispatched(Toolkit.java:2318)
at java.awt.Toolkit$ToolkitEventMulticaster.eventDispatched(Toolkit.java:2318)
at java.awt.Toolkit$ToolkitEventMulticaster.eventDispatched(Toolkit.java:2318)
at java.awt.Toolkit.notifyAWTEventListeners(Toolkit.java:2277)
at java.awt.Component.dispatchEventImpl(Component.java:4785)
at java.awt.Container.dispatchEventImpl(Container.java:2297)
at java.awt.Component.dispatchEvent(Component.java:4711)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4904)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4532)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4476)
at java.awt.Container.dispatchEventImpl(Container.java:2283)
at java.awt.Window.dispatchEventImpl(Window.java:2746)
at java.awt.Component.dispatchEvent(Component.java:4711)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:760)
at java.awt.EventQueue.access$500(EventQueue.java:97)
at java.awt.EventQueue$3.run(EventQueue.java:709)
at java.awt.EventQueue$3.run(EventQueue.java:703)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:74)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:84)
at java.awt.EventQueue$4.run(EventQueue.java:733)
at java.awt.EventQueue$4.run(EventQueue.java:731)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:74)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:730)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:205)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
>>

Answers (1)

Govind KM
Govind KM on 13 Oct 2024
A possible reason for this error is the use of a different version of Java than the one shipped with MATLAB. More details along with resolution steps can be found in the MATLAB Answers post below:
If the issue still persists, you can consider contacting MathWorks Technical Support:
Hope this helps!

Categories

Find more on Startup and Shutdown in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!