Documentation and Live Editor shows black screen on Linux

Hello,
I'm struggling with the following problem : the documentation shows only a black screen, as you can see in the attached picture. I also noticed the same thing for the live editor, though I don't use it.
I've tried the following :
  • Changing the renderer (source) :
com.mathworks.mlwidgets.html.HtmlComponentFactory.setDefaultType('HTMLRENDERER');
The documentation now displays OK but unformatted which is not very eye-candy. The Live Editor is still black.
  • Installing missing library (source) :
Running,
ldd ~/.matlab/$MATLABVERSION/HtmlPanel/glnxa64/chromium/jxbrowser-chromium | grep -i found
I found that I was missing the deprecated libgconf library, that I installed. The return of the previous command is now empty but the problem is the same.
  • Reverting to the default renderer :
com.mathworks.mlwidgets.html.HtmlComponentFactory.setDefaultType(' ');
The problem persists.
My computer is running Manjaro Linux with KDE. Java is installed through jre-openjdk (up to date, version 12.0.2). MATLAB version is R2019a.
I'd like to try a few things before trying the full reinstallation of MATLAB, so I'm all ears.
Cheers,
Guillaume

5 件のコメント

Joshitha R
Joshitha R 2020 年 9 月 3 日
I'm a Manjaro Linux user as well.
I was installing a few other packages and l guess I lost some other files which fix the black screen issue.
Reinstalling libselinux and libsepol doesn't help anymore.
Any idea what are the additional packages I may require?
Guillaume Le Goc
Guillaume Le Goc 2020 年 9 月 3 日
I do have a problem also, related to another package. I think MATLAB wants to use its own rather than the system's and somehow it breaks documentation and so on.
What's the error message displayed when launching MATLAB from a terminal ? Mine is related to pango, like here. There is a solution but it didn't work, even though I didn't dig into it.
I also came across this on Arch forums, but I didn't test yet.
Joshitha R
Joshitha R 2020 年 9 月 3 日
Yep, my error is also related to pango:
/usr/local/MATLAB/R2019b/bin/glnxa64/jcef_helper: symbol lookup error: /usr/lib/libpango-1.0.so.0: undefined symbol: g_ptr_array_copy
The fix given in the first link doesn't help (I also don't know how to go about the 'relinking' mentioned in one of the 2 answers)
Have no idea on how to work out the solution given here as well:
Joshitha R
Joshitha R 2020 年 9 月 3 日
FOUND A FIX!!
the error that was actually thrown to me was:
/usr/local/MATLAB/R2019b/bin/glnxa64/jcef_helper: symbol lookup error: /usr/lib/libpango-1.0.so.0: undefined symbol: g_ptr_array_copy
these are the commands I used:
mkdir $Matlab_root/cefclient/sys/os/glnxa64/0_excluded
mv $Matlab_root/cefclient/sys/os/glnxa64/libg* $Matlab_root/cefclient/sys/os/glnxa64/0_excluded
I can now view my Documentation window and the Live scripts
Guillaume Le Goc
Guillaume Le Goc 2020 年 9 月 3 日
Yay that worked !
Basically it's the solution proposed in the Matlab Answers post we mentionned but moving all libg related libraries.
Cheers !

サインインしてコメントする。

 採用された回答

Guillaume Le Goc
Guillaume Le Goc 2019 年 10 月 22 日

1 投票

The problem appeared again on MATLAB R2019b. I also noticed that the "Log in" button didn't work, while outputing the libselinux library was missing . Installing SELinux library solved all the problems (black screen on doc & livescripts and the Log in button).

1 件のコメント

Harisanker Pradeep
Harisanker Pradeep 2019 年 12 月 5 日
This worked for me. Here's the link to the libselinux aur repo -> https://aur.archlinux.org/packages/libselinux/

サインインしてコメントする。

その他の回答 (1 件)

Chidvi Modala
Chidvi Modala 2019 年 8 月 13 日

0 投票

1 件のコメント

Guillaume Le Goc
Guillaume Le Goc 2019 年 8 月 14 日
I didn't want to disable all desktop effects (there are many in KDE...). Oddly, reinstalling MATLAB fixed the problem. Not sure what happened there.

サインインしてコメントする。

カテゴリ

ヘルプ センター および File ExchangeStartup and Shutdown についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by