Initializing MATLAB Graphics failed in Linux.

Hi
I just installed R2020b on Linux and when I start Matlab I get this error;
Warning: Initializing MATLAB Graphics failed.
This indicates a potentially serious problem in your MATLAB setup, which should be resolved as soon as possible. Error detected was:
MATLAB:hg:InvalidProperty
Unrecognized property screenpixelsperinch for class Root.
> In hgrc (line 165)
In matlab.graphics.internal.initialize (line 15)
I tried things like
matlab -softwareopengl
export GTK_PATH=/usr/lib/x86_64-linux-gnu/gtk-2.0
but did not work for my problem and there is one more thing but I think it's not caused this graphic problem. When I start Matlab
Failed to load module "pk-gtk-module"
I get this error too in the terminal.

5 件のコメント

Walter Roberson
Walter Roberson 2021 年 3 月 7 日
The failed to load itself is considered informative; https://www.mathworks.com/matlabcentral/answers/479778-gtk-message-16-17-51-771-failed-to-load-module-canberra-gtk-module#answer_396583 but you might want to install the libraries mentioned in the Answers there.
Ismail Alperen Akar
Ismail Alperen Akar 2021 年 3 月 8 日
編集済み: Ismail Alperen Akar 2021 年 3 月 8 日
Already installed these but I still get the error
sudo apt-get install packagekit-gtk3-module
sudo apt-get install libcanberra-gtk-module
I installed R2020a too but I still get the error.
Walter Roberson
Walter Roberson 2021 年 3 月 8 日
The only times I have seen screenpixelsperinch marked as unrecognized was a case where MATLAB could not find any graphics driver -- not vendor opengl, not the linux work-alike. If I recall correctly one of the times was driver install issues, and the other time was libc.so incompatibility.
Ismail Alperen Akar
Ismail Alperen Akar 2021 年 3 月 8 日
I updated drivers and error still exist. I don't know how to figure it out. Thanks for your help.
Walter Roberson
Walter Roberson 2021 年 3 月 8 日
I recommend contacting Mathwork Support for free installation assistance.

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

回答 (1 件)

Sai Veeramachaneni
Sai Veeramachaneni 2021 年 3 月 11 日

0 投票

Hi,
Your issue might be related to this known bug. I suggest you to contact support for startup issues
Thanks

カテゴリ

ヘルプ センター および File ExchangeIntroduction to Installation and Licensing についてさらに検索

製品

リリース

R2020b

質問済み:

2021 年 3 月 7 日

回答済み:

2021 年 3 月 11 日

Community Treasure Hunt

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

Start Hunting!

Translated by