MATLAB Answers


On Linux, MATLAB editor and command window freeze when a help window is closed

Asked by Shane Snover on 3 Sep 2018
Latest activity Edited by Rubem Pacelli on 17 Jul 2019
I'm using Ubuntu 18.04 and MATLAB r2018a. When I pull up a help window using for example `doc magic` and then close this window with the 'X' button in the GUI, the whole MATLAB GUI freezes. It appears that I am still able to type in them, as evidenced by some of my typing being present upon restarting MATLAB in my *.m file. I am not sure how to debug this further, as it appears to purely be a GUI problem. In the terminal which I used to start MATLAB, there is no additional output.
The only output to the terminal I have appears on startup:
Gtk-Message: 18:05:40.313: Failed to load module "canberra-gtk-module"


Actually, while I typed up this question I let it sit frozen for a while and it unfroze. In the Command Window I found the following exception text:
Exception in thread "AWT-EventQueue-0" com.teamdev.jxbrowser.chromium.internal.ipc.IPCException: Failed to execute shutdown post message.
at com.teamdev.jxbrowser.chromium.internal.ipc.IPC.c(Unknown Source)
at com.teamdev.jxbrowser.chromium.internal.ipc.IPC.stop(Unknown Source)
at com.teamdev.jxbrowser.chromium.Browser.a(Unknown Source)
at com.teamdev.jxbrowser.chromium.Browser.dispose(Unknown Source)
at com.mathworks.html.jxbrowser.chromium.JxBrowserChromiumComponent.doBrowserDisposal(
at com.mathworks.html.jxbrowser.chromium.JxBrowserChromiumComponent.access$400(
at com.mathworks.html.jxbrowser.chromium.JxBrowserChromiumComponent$
at java.awt.event.InvocationEvent.dispatch(
at java.awt.EventQueue.dispatchEventImpl(
at java.awt.EventQueue.access$500(
at java.awt.EventQueue$
at java.awt.EventQueue$
at Method)
at java.awt.EventQueue.dispatchEvent(
at java.awt.EventDispatchThread.pumpOneEventForFilters(
at java.awt.EventDispatchThread.pumpEventsForFilter(
at java.awt.EventDispatchThread.pumpEventsForHierarchy(
at java.awt.EventDispatchThread.pumpEvents(
at java.awt.EventDispatchThread.pumpEvents(
Workaround that worked for me: com.mathworks.mlwidgets.html.HtmlComponentFactory.setDefaultType('HTMLRENDERER');
If you need to un-freeze now, find the Linux process called "jxbrowser-chromium", and (If your problem is the same as mine), kill the non-defunct one.

Sign in to comment.




2 Answers

Answer by Akshay Khadse on 10 Sep 2018

MATLAB R2018a is not yet supported on Ubuntu 18.04.
Please refer the System Requirements page to know more about the currently supported Linux distributions.


Sign in to comment.

Answer by Rubem Pacelli on 17 Jul 2019

I have same problems here (same matlab version too). I don't know how fix it.

  1 Comment

Try type this code:

Sign in to comment.