Matlab 2021b crashed when running with sudo / root

20 ビュー (過去 30 日間)
Sheng Yang
Sheng Yang 2021 年 12 月 30 日
コメント済み: Madhurjya Kalita 2024 年 1 月 28 日
I want to update my Matlab 2021b to update1. When running `sudo matlab`, the matlab kept crashed. All work well if I did not use sudo or root. Below is the crash report:
```
Gtk-Message: 20:28:26.173: Failed to load module "canberra-gtk-module"
No protocol specified
No protocol specified
No protocol specified
No protocol specified
No protocol specified
No protocol specified
No protocol specified
No protocol specified
No protocol specified
[1230/202830.057996:FATAL:gpu_data_manager_impl_private.cc(439)] GPU process isn't usable. Goodbye.
--------------------------------------------------------------------------------
Trace trap detected at 2021-12-30 20:28:30 +0800
--------------------------------------------------------------------------------
Configuration:
Crash Decoding : Disabled - No sandbox or build area path
Crash Mode : continue (default)
Default Encoding : UTF-8
Deployed : false
GNU C Library : 2.31 stable
Graphics Driver : Unknown hardware
Graphics card 1 : 0x10de ( 0x10de ) 0x1c03 Version 495.44.0.0 (0-0-0)
Graphics card 2 : 0x8086 ( 0x8086 ) 0x5912 Version 0.0.0.0 (0-0-0)
Java Version : Java 1.8.0_202-b08 with Oracle Corporation Java HotSpot(TM) 64-Bit Server VM mixed mode
MATLAB Architecture : glnxa64
MATLAB Entitlement ID : 2791268
MATLAB Root : /usr/local/MATLAB/R2021b
MATLAB Version : 9.11.0.1769968 (R2021b)
OpenGL : hardware
Operating System : Ubuntu 20.04.3 LTS
Process ID : 12043
Processor ID : x86 Family 6 Model 158 Stepping 9, GenuineIntel
Session Key : b9b68fda-24ac-43ae-88bb-e8aaede21386
Static TLS mitigation : Enabled: Full
Window System : The X.Org Foundation (12013000), display :1
Fault Count: 1
Abnormal termination:
Trace trap
Current Thread: 'Chrome_IOThread' id 140607141922560
Register State (from fault):
RAX = 0000000000000000 RBX = 00007fe1a6bf2a84
RCX = 0000000000000000 RDX = 0000000000000000
RSP = 00007fe1a6bf2a00 RBP = 00007fe1a6bf2ec0
RSI = 0000000000000000 RDI = 00007fe1b3310a28
R8 = 0000000000000000 R9 = 00007fe2f8074300
R10 = 0000000000000063 R11 = 0000000000000000
R12 = 00007fe1a6bf2ee0 R13 = 00007fe1a6bf2ed0
R14 = 00007fe1a6bf2a60 R15 = aaaaaaaaaaaaaaaa
RIP = 00007fe1ae51b074 EFL = 0000000000000246
CS = 0033 FS = 0000 GS = 0000
Stack Trace (from fault):
[ 0] 0x00007fe1ae51b074 /usr/local/MATLAB/R2021b/bin/glnxa64/libcef.so+66486388
[ 1] 0x00007fe1acd72637 /usr/local/MATLAB/R2021b/bin/glnxa64/libcef.so+41678391
[ 2] 0x00007fe1acd7050e /usr/local/MATLAB/R2021b/bin/glnxa64/libcef.so+41669902
[ 3] 0x00007fe1acd6f23f /usr/local/MATLAB/R2021b/bin/glnxa64/libcef.so+41665087
[ 4] 0x00007fe1acd78c90 /usr/local/MATLAB/R2021b/bin/glnxa64/libcef.so+41704592
[ 5] 0x00007fe1acd7a761 /usr/local/MATLAB/R2021b/bin/glnxa64/libcef.so+41711457
[ 6] 0x00007fe1acbc4259 /usr/local/MATLAB/R2021b/bin/glnxa64/libcef.so+39916121
[ 7] 0x00007fe1ae8d8523 /usr/local/MATLAB/R2021b/bin/glnxa64/libcef.so+70407459
[ 8] 0x00007fe1ae6c48ab /usr/local/MATLAB/R2021b/bin/glnxa64/libcef.so+68229291
[ 9] 0x00007fe1ae8dc0c8 /usr/local/MATLAB/R2021b/bin/glnxa64/libcef.so+70422728
[ 10] 0x00007fe1ae8dd26d /usr/local/MATLAB/R2021b/bin/glnxa64/libcef.so+70427245
[ 11] 0x00007fe1ae6c0b5b /usr/local/MATLAB/R2021b/bin/glnxa64/libcef.so+68213595
[ 12] 0x00007fe1ae6d89ca /usr/local/MATLAB/R2021b/bin/glnxa64/libcef.so+68311498
[ 13] 0x00007fe1ae6d819f /usr/local/MATLAB/R2021b/bin/glnxa64/libcef.so+68309407
[ 14] 0x00007fe1ac91e048 /usr/local/MATLAB/R2021b/bin/glnxa64/libcef.so+37138504
[ 15] 0x00007fe1ac91d3bc /usr/local/MATLAB/R2021b/bin/glnxa64/libcef.so+37135292
[ 16] 0x00007fe1ac918e9e /usr/local/MATLAB/R2021b/bin/glnxa64/libcef.so+37117598
[ 17] 0x00007fe1ac90ffde /usr/local/MATLAB/R2021b/bin/glnxa64/libcef.so+37081054
[ 18] 0x00007fe1ac92301b /usr/local/MATLAB/R2021b/bin/glnxa64/libcef.so+37158939
[ 19] 0x00007fe1ae5c0544 /usr/local/MATLAB/R2021b/bin/glnxa64/libcef.so+67163460
[ 20] 0x00007fe1ae6bc7d6 /usr/local/MATLAB/R2021b/bin/glnxa64/libcef.so+68196310
[ 21] 0x00007fe1ae5c075c /usr/local/MATLAB/R2021b/bin/glnxa64/libcef.so+67163996
[ 22] 0x00007fe1ae55ff24 /usr/local/MATLAB/R2021b/bin/glnxa64/libcef.so+66768676
[ 23] 0x00007fe1ae53901e /usr/local/MATLAB/R2021b/bin/glnxa64/libcef.so+66609182
[ 24] 0x00007fe1acbdf78d /usr/local/MATLAB/R2021b/bin/glnxa64/libcef.so+40028045
[ 25] 0x00007fe1ae5798e7 /usr/local/MATLAB/R2021b/bin/glnxa64/libcef.so+66873575
[ 26] 0x00007fe1ae5b3aa5 /usr/local/MATLAB/R2021b/bin/glnxa64/libcef.so+67111589
[ 27] 0x00007fe329bc1609 /lib/x86_64-linux-gnu/libpthread.so.0+00038409
[ 28] 0xaaaaaaaaaaaaaaaa <unknown-module>+00000000
** This crash report has been saved to disk as /root/matlab_crash_dump.12043-1 **
MATLAB is exiting because of fatal error
[1] 12042 killed sudo matlab
```

採用された回答

Sivani Pentapati
Sivani Pentapati 2022 年 1 月 5 日
This is caused by a bug and our developers are aware about it and will try to fix it in future releases.
  1 件のコメント
Abdelkader Saad
Abdelkader Saad 2022 年 2 月 13 日
Any news? Can't run Matlab because of this issue and I need sudo access for my script to run. Purging and reinstalling fixes it for a run or two, then it starts again, it's not a sustainable solution.

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

その他の回答 (4 件)

Francis Gagnon
Francis Gagnon 2022 年 3 月 23 日
@Sheng Yang I have the same problem. FYI it's possible to update with the terminal by going to :
<matlabInstallPath>/bin/glnxa64/
and running :
sudo ./update_installer
If nothing shows you may need to run :
xhost +SI:localuser:root
before running the installer.
  1 件のコメント
Bryan Esser
Bryan Esser 2023 年 1 月 13 日
Thank you so much @Francis Gagnon!
xhost +SI:localuser:root did the trick for me

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


Sebastian Kazmarek Præsius
Sebastian Kazmarek Præsius 2022 年 8 月 8 日
I had this issue as well. A solution was to run as "sudo -u USERNAME matlab", where USERNAME is the name of the non-root user.
  1 件のコメント
Madhurjya Kalita
Madhurjya Kalita 2024 年 1 月 28 日
Thanks man you saved me :-)

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


ubaid ur rehman ahmad
ubaid ur rehman ahmad 2022 年 1 月 20 日
Hi
Is there a solution for this problem.
Thanks,
Ubaid

Kevin Moerman
Kevin Moerman 2022 年 3 月 14 日
I have this in version R2022a and Ubuntu 20.04. Any solutions yet? @Sivani Pentapati
  1 件のコメント
Winston Zhang
Winston Zhang 2022 年 5 月 28 日
Same problem on R2022a and Arch. I was working until a week or two ago tho.

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

カテゴリ

Help Center および 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