0

I recently installed MATLAB R2018b and experienced crashing on startup. Whenever I ran matlab from the terminal the splash would pop up for a few seconds, then the entire OS would freeze. I was forced to hard reset my computer as I was completely locked out. Because of this, no error messages or logs have been created at any point in time.

The problem seems similar to: https://nl.mathworks.com/matlabcentral/answers/405904-matlab-crashes-on-startup-when-using-jvm-ubuntu-16-04-1?s_tid=mlc_ans_email_view#answer_362302. I can run MATLAB successfully if I start it with the -nojvm option.

Thanks in advance for any help.

Pepijn
  • 31
  • can you run htop (or just top) when you start matlab and monitor your systems resources? – j-money Feb 27 '19 at 15:56
  • Error messages in /var/log/syslog? Or crash files in /var/crash? – user535733 Feb 27 '19 at 16:00
  • I ran with top, it used quite a lot of resources but that's normal for MATLAB at startup. I can't check the error files since the system completely hangs and I have to reset using the power button on my laptop. – Pepijn Feb 28 '19 at 10:45
  • Last lines in syslog are:

    Feb 28 12:31:49 pepijn-HP-Laptop-15-db0xxx rtkit-daemon[1191]: The canary thread is apparently starving. Taking action. Feb 28 12:31:49 pepijn-HP-Laptop-15-db0xxx rtkit-daemon[1191]: Demoting known real-time threads. Feb 28 12:31:49 pepijn-HP-Laptop-15-db0xxx rtkit-daemon[1191]: Successfully demoted thread 1603 of process 1601 (n/a).

    And this looks like an error:

    Feb 28 12:29:35 pepijn-HP-Laptop-15-db0xxx kernel: [ 732.131024] watchdog: BUG: soft lockup - CPU#0 stuck for 22s! [MATLAB:2835]

    There are two crash files, I'll try to analyze them.

    – Pepijn Feb 28 '19 at 11:45
  • Unfortunately still not solved. Trying some things out with the MATLAB helpdesk seems to indicate this is a system issue related to Ryzen. – Pepijn Mar 11 '19 at 15:40

1 Answers1

0

Unfortunately still not solved. Trying some things out with the MATLAB helpdesk seems to indicate this is a system issue related to Ryzen. There seems to be known issues with Linux on various Ryzens:

Other than that, there are many discussions on this soft lockup problem, none with a clear solution. Causes include graphics card, graphics driver, kernel, BIOS settings, power supply, etc.:

Pepijn
  • 31
  • Ran a graphics benchmark test to check if my GPU was working properly, and the performance is fine (score ~2000 in glmark2). – Pepijn Mar 13 '19 at 09:17