Why do I get a com.mathworks.html.BrowserCreationException error when running certain MATLAB commands on Linux?
2 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
MathWorks Support Team
le 20 Juin 2019
Réponse apportée : MathWorks Support Team
le 2 Juil 2019
I get a Java error such as the following every time I call 'uisetcolor', 'webmap', or any other commands that use the JxBrowser on my Linux machine. It always seems to be a "com.mathworks.html.BrowserCreationException" error. How can I fix this?
e.g.
>> uisetcolor
Error using matlab.ui.internal.dialog.WebColorChooser/show (line 74)
Java exception occurred:
com.mathworks.html.BrowserCreationException: com.mathworks.html.BrowserCreationException: com.teamdev.jxbrowser.chromium.internal.ipc.IPCException: IPC process
exited. Exit code: 127
at com.mathworks.mlwidgets.html.LightweightChromiumBrowserBuilder.buildBrowser(LightweightChromiumBrowserBuilder.java:52)
at com.mathworks.mlwidgets.html.LightweightBrowserBuilder.buildBrowser(LightweightBrowserBuilder.java:189)
Caused by: com.mathworks.html.BrowserCreationException: com.teamdev.jxbrowser.chromium.internal.ipc.IPCException: IPC process exited. Exit code: 127
at com.mathworks.html.jxbrowser.chromium.LightweightChromiumBrowser.<init>(LightweightChromiumBrowser.java:35)
at com.mathworks.mlwidgets.html.LightweightChromiumBrowserBuilder.buildBrowser(LightweightChromiumBrowserBuilder.java:40)
... 1 more
Caused by: com.teamdev.jxbrowser.chromium.internal.ipc.IPCException: IPC process exited. Exit code: 127
at com.teamdev.jxbrowser.chromium.internal.ipc.d.run(Unknown Source)
at java.lang.Thread.run(Thread.java:748)
Error in uisetcolor_helper>showDialog (line 67)
ccDialog.show;
Error in uisetcolor_helper (line 12)
selectedColor = showDialog(ccDialog);
Error in uisetcolor (line 37)
selectedColor = uisetcolor_helper(varargin{:});
Réponse acceptée
MathWorks Support Team
le 13 Août 2019
1) Please make sure you are using MATLAB on a supported version of Linux, as “minimal” or “core” installations of Linux may lack the necessary software packages required to run MATLAB.
2) Please try installing any missing JxBrowser dependencies. You can see any missing dependencies by running `ldd` on the 'jxbrowser-chromium' executable that ships with MATLAB.
e.g.
>> cd(fullfile(matlabroot,'sys','jxbrowser-chromium','glnxa64','chromium'))
>> !ldd jxbrowser-chromium | grep -i found
libgconf-2.so.4 => not found
This example indicates that we are missing the "libgconf-2-4" dependency, which can be installed with a package manager such as `apt`.
NOTE: The exact location of the 'jxbrowser-chromium' executable may be different depending on the version of MATLAB you are using. The example above is from R2019a.
See the link below for another example of using `ldd` and installing dependencies.
0 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Introduction to Installation and Licensing dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!