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

조회 수: 25 (최근 30일)
Shane Snover
Shane Snover 2018년 9월 3일
답변: Hugo Diaz 2019년 11월 28일
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"
  댓글 수: 2
Shane Snover
Shane Snover 2018년 9월 3일
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(JxBrowserChromiumComponent.java:96)
at com.mathworks.html.jxbrowser.chromium.JxBrowserChromiumComponent.access$400(JxBrowserChromiumComponent.java:20)
at com.mathworks.html.jxbrowser.chromium.JxBrowserChromiumComponent$RemoveRunnable.run(JxBrowserChromiumComponent.java:82)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:756)
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:80)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:726)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
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)
Aidan Farrell
Aidan Farrell 2018년 9월 26일
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.

댓글을 달려면 로그인하십시오.

답변 (3개)

Akshay Khadse
Akshay Khadse 2018년 9월 10일
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.

Rubem Pacelli
Rubem Pacelli 2019년 7월 17일
I have same problems here (same matlab version too). I don't know how fix it.
  댓글 수: 1
Rubem Pacelli
Rubem Pacelli 2019년 7월 17일
편집: Rubem Pacelli 2019년 7월 17일
Try type this code:
com.mathworks.mlwidgets.html.HtmlComponentFactory.setDefaultType('HTMLRENDERER');

댓글을 달려면 로그인하십시오.


Hugo Diaz
Hugo Diaz 2019년 11월 28일
This works for me, Ubuntu 18. HTMLRENDERER, also works but it looks horrible.
com.mathworks.mlwidgets.html.HtmlComponentFactory.setDefaultType('HTMLPANEL');

카테고리

Help CenterFile Exchange에서 Startup and Shutdown에 대해 자세히 알아보기

태그

제품


릴리스

R2018a

Community Treasure Hunt

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

Start Hunting!

Translated by