Matlab 2021b crashed when running with sudo / root
Show older comments
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
```
Accepted Answer
More Answers (4)
Sebastian Kazmarek Præsius
on 8 Aug 2022
4 votes
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 Comment
Madhurjya Kalita
on 28 Jan 2024
Thanks man you saved me :-)
Francis Gagnon
on 23 Mar 2022
@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 Comment
Bryan Esser
on 13 Jan 2023
xhost +SI:localuser:root did the trick for me
ubaid ur rehman ahmad
on 20 Jan 2022
1 vote
Hi
Is there a solution for this problem.
Thanks,
Ubaid
Kevin Moerman
on 14 Mar 2022
0 votes
I have this in version R2022a and Ubuntu 20.04. Any solutions yet? @Sivani Pentapati
1 Comment
Winston Zhang
on 28 May 2022
Same problem on R2022a and Arch. I was working until a week or two ago tho.
Categories
Find more on Downloads in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!