Raspberry Pi 3 - crashes / reboots after 17.6 update

updated my Pi 3 to the lastes 17.6 OSMC yesterday and facing constant crashes while watching a movie and even ferquent reboots when in idle mode. Also I noticed CPU temperature is higher (up to 70 degress celsius) than it used to be in idle mode bfore the upgrade. any suggestions on how to fix the issue?

Providing debug logs would be a good start.

1 Like

ok, it looks like the crashes are caused by high CPU temperature > 70 degrees Celsius. I have backed up my data and fully re-installed OSMC using the default skin and the CPU stays at about 54 degrees, higher than on a Rb Pi 2 which in the same environment runs at abozt 41 degrees but I guess 54 is pretty much acceptable.

Then I noticed once I try to switch to the Confluence skin, OSMC would crash but restarts with that skin and at frirst all looks good. However just after one or two minutes the CPU temperature is up as much as 70 degrees or more.

Is the Confluence skin still compatible with current OSMC?

now even more interesting, I switched back to the default skin, uninstalled Confluence, turnd off RSS feeds and backed up my stuff using the Backup addon. The re-installed again. Back to about 54 degrees celsius. As soon as I restore my settings/database/addons but stay on the default skin, the CPU usage goes up and now I do see a temperature of about 67 to 69 degrees celsius in idle mode.

67.7’C

it’s obviusly kodi causing the high CPU load.

root 3903 0.0 0.3 5792 2540 ? S 13:15 0:00 sudo -u osmc /usr/lib/kodi/kodi.bin --standalone -fs --lircdev /var/run/lirc/lircd
osmc 3904 82.0 35.8 960248 274912 ? Sl 13:15 0:48 /usr/lib/kodi/kodi.bin --standalone -fs --lircdev /var/run/lirc/lircd
osmc 4328 0.0 0.2 5136 2088 pts/0 R+ 13:16 0:00 ps aux

Is there any way to determine what makes kodi utlize the CPU most when in idle mode?

Those temperatures are typical, in my experience. The Pi 3 runs noticeably hotter and will often benefit from a heat sink. Good airflow ithrough the enclosure is also more important with the Pi 3.

You might find that CPU on the main menu is lower using the Estuary skin. By contrast, CPU is likely to be lower on sub-menus with the OSMC skin.

thanks, yes, I wouldn’t bee too much concerned about 54 degrees but on the other hand that’s already a lot in idle mode. I noticed that with the December upgrade there was also an Rb Pi firmware update included if I’m not mistaken. Maybe that has added to the CPU usage.

Temperatures over 80 degrees which I now have seen in idle mode are surely not acceptable and will ultimately damage the Pi. Even OSMC shows a red thermometer next to the clock which I have never seen before.

Currently trying to revert back to 2017.06 OSMC and see if that changes anything.

2017.06 doesn’t helo either. As soon as I restore my stuff I end up with the following temperature in idle mode: 80.1’C

High temperature is the result. We need to find out what is the cause.

Please run the following command when you expect to see high temperatures and show us the output:

top -n20 -d15 -b | grep kodi.bin 

It will run for 5 minutes and give us the CPU usage of kodi.bin every 15 seconds.

ok, will do, just again freshly installed 2017.12-1 and used the default skin, nothing else changed. Here’s the CPU usage result.

388 osmc 20 0 525228 83016 45992 S 10.5 10.8 0:12.32 kodi.bin
388 osmc 20 0 525228 83016 45992 S 11.2 10.8 0:14.01 kodi.bin
388 osmc 20 0 525228 83016 45992 S 9.7 10.8 0:15.47 kodi.bin
388 osmc 20 0 525228 83016 45992 S 9.6 10.8 0:16.91 kodi.bin
388 osmc 20 0 525228 83016 45992 S 9.5 10.8 0:18.34 kodi.bin
388 osmc 20 0 525228 83016 45992 S 9.6 10.8 0:19.79 kodi.bin
388 osmc 20 0 525228 83016 45992 S 9.7 10.8 0:21.25 kodi.bin
388 osmc 20 0 525228 83016 45992 S 9.6 10.8 0:22.69 kodi.bin
388 osmc 20 0 525228 83020 45992 S 9.7 10.8 0:24.15 kodi.bin
388 osmc 20 0 525228 83020 45992 S 9.6 10.8 0:25.60 kodi.bin
388 osmc 20 0 525228 83024 45992 S 10.4 10.8 0:27.17 kodi.bin
388 osmc 20 0 525228 83024 45992 S 9.6 10.8 0:28.62 kodi.bin
388 osmc 20 0 525228 83024 45992 S 9.8 10.8 0:30.09 kodi.bin
388 osmc 20 0 525228 83024 45992 S 9.6 10.8 0:31.54 kodi.bin
388 osmc 20 0 525228 83024 45992 S 9.7 10.8 0:33.00 kodi.bin
388 osmc 20 0 525228 83024 45992 S 9.8 10.8 0:34.47 kodi.bin
388 osmc 20 0 525228 83024 45992 S 9.8 10.8 0:35.94 kodi.bin
388 osmc 20 0 525228 83024 45992 S 9.7 10.8 0:37.40 kodi.bin
388 osmc 20 0 525228 83024 45992 S 9.7 10.8 0:38.86 kodi.bin
388 osmc 20 0 525228 83024 45992 S 9.8 10.8 0:40.33 kodi.bin

temperature is: 49.9’C

Now I’m going to restore my stuff and go for the Confluence skin.

interesting, this time it didn’t crash when I loaded the Confluence skin, temperature increased but still on a lower level: 52.6’C

after the restore of settings / addons the temperature immediately went up to 75+ degrees celsius.

CPU usage shows:

  385 osmc      20   0  929524 290840  45984 R 155.6 38.0   1:50.04 kodi.bin
  385 osmc      20   0  986868 346416  45984 R 157.5 45.2   2:13.73 kodi.bin
  385 osmc      20   0 1046260 405028  45984 S 156.7 52.9   2:37.30 kodi.bin
  385 osmc      20   0 1062644 405036  45984 R 161.6 52.9   3:01.59 kodi.bin
  385 osmc      20   0 1046260 405016  45984 R 160.8 52.9   3:25.77 kodi.bin
  385 osmc      20   0 1046260 405020  45984 R 161.6 52.9   3:50.08 kodi.bin
  385 osmc      20   0 1046260 405020  45984 R 158.9 52.9   4:13.96 kodi.bin
  385 osmc      20   0 1046260 405012  45984 S 158.8 52.9   4:37.85 kodi.bin
  385 osmc      20   0 1046260 405012  45984 S 131.6 52.9   4:57.64 kodi.bin
  385 osmc      20   0 1046260 405012  45984 S  91.6 52.9   5:11.40 kodi.bin
  385 osmc      20   0 1062644 405012  45984 S  92.7 52.9   5:25.32 kodi.bin
  385 osmc      20   0 1046260 405000  45984 S  93.0 52.9   5:39.31 kodi.bin
  385 osmc      20   0 1046260 405000  45984 S  91.8 52.9   5:53.12 kodi.bin
  385 osmc      20   0 1046260 405048  45984 R  93.4 52.9   6:07.17 kodi.bin
  385 osmc      20   0 1046260 405048  45984 R  94.3 52.9   6:21.36 kodi.bin
  385 osmc      20   0 1046260 405048  45984 S  94.5 52.9   6:35.56 kodi.bin
  385 osmc      20   0 1046260 405048  45984 R  93.9 52.9   6:49.69 kodi.bin
  385 osmc      20   0 1046260 405048  45984 R  95.4 52.9   7:04.03 kodi.bin
  385 osmc      20   0 1284852 422640  45984 S  93.1 55.2   7:18.02 kodi.bin
  385 osmc      20   0 1309428 422832  45984 S  95.1 55.2   7:32.33 kodi.bin

I’ve formatted the table but it’s clear that kodi.bin is running at around 53%. That’s far too high.

You mentioned using the Confluence skin, which is now on its way out. What do you see now when using the Estuary skin?

You might also find it useful to go through your addons and disable them one by one until the CPU drops.

I tried switching back to Estuary before and did never lower CPU usage after it showed high values.

Is the Confluence skin being worked on? If yes, how will I know when I need to update?

Started disabling addons but it looks I can’t deactivate MyOSMC addon. Trying it will result in freeze of the GUI. However via terminal I’m still able to connect and temperature went down to 45 degrees. After rebooting MyOSM shows still enabled and temperature is higher again, but lower than before, around 60 degrees. Looks like it’s not a single addon but maybe some combination of several things.

Is there any reason why I can’t deactivate MyOSMC?

turned back on two programm addons: Backup + RSS Editor and the CPU temperature increased by about six degrees. tuning on more addons will potentially show similar results until temp. goes up to 75 or degrees again…

First off, an apology. I misread the table columns. The CPU was running at around 160%, then 90-95%, not 53%, so even worse. The 53% figure refers to memory, which is also way too high on a Pi3.

You can switch off the My OSMC add-on through the web interface: Settings > Add-ons. (It’s at the bottom of the screen.)

I believe that Confluence development has effectively stopped but there are some community-based modifications/enhancements still appearing.

well, I used setting addons and as described the whole GUI freezes if I try to deactiavte MyOSMC, not sure if that is normal.

So you would recommend not to use Confluence anymore? That would be really a pitty as I will surely not use the skins with a vertical menu on a TV. These are surely nice and might be good for usage on tablets or PCs but IMHO don’t offer the same usability as Confluence always did.

For now I think your problem is probably with the add-ons. At some point you’ll probably need to move away from Confluence.

well, I’ll try a few things now… next fresh install and I will first copy only my cfg files back, if that works, then the media DB + thumbnails and might then carefully try to install addons manually, one by one.

Anyway thanks a lot for your patience and help with the matter!

a new day, back to work :wink:

I did a fresh install again, loaded the Confluence skin and added a weather data provider. CPU usage stays at about 6% in idle mode, already higher than expected but might be acceptable. Memory usage was about 12%.

As soon as I copy my cfg files back in an do a restart (not having copied media database, thumbnails and plugin data) the CPU usage is +85% and with the result of high CPU temperature.

I removed my cfg files, copied the ones back in I produced after initial setup and CPU usage is back at 6%.

Now I tried turning on RSS feeds. That change alone drives CPU usage up to almost 30%. Turning it back of brings it back to 6%.

400 osmc 20 0 533976 93260 45452 S 5.9 12.2 1:32.13 kodi.bin
400 osmc 20 0 533976 93260 45452 S 6.2 12.2 1:33.07 kodi.bin
400 osmc 20 0 535500 94104 45452 S 9.1 12.3 1:34.44 kodi.bin
400 osmc 20 0 535500 94104 45452 R 10.9 12.3 1:36.08 kodi.bin
400 osmc 20 0 535972 94472 45688 R 27.3 12.3 1:40.19 kodi.bin
400 osmc 20 0 535972 94472 45688 S 28.3 12.3 1:44.45 kodi.bin
400 osmc 20 0 527780 94608 45688 R 29.0 12.4 1:48.82 kodi.bin
400 osmc 20 0 527780 94608 45688 S 28.6 12.4 1:53.12 kodi.bin
400 osmc 20 0 527780 94608 45688 S 26.0 12.4 1:57.03 kodi.bin
400 osmc 20 0 527780 94608 45688 R 24.8 12.4 2:00.77 kodi.bin
400 osmc 20 0 527772 94504 45688 S 20.1 12.3 2:03.79 kodi.bin
400 osmc 20 0 527772 94504 45688 S 9.2 12.3 2:05.17 kodi.bin
400 osmc 20 0 527772 94504 45688 S 7.7 12.3 2:06.33 kodi.bin
400 osmc 20 0 527772 94504 45688 S 7.8 12.3 2:07.50 kodi.bin
400 osmc 20 0 527772 94504 45688 S 8.1 12.3 2:08.72 kodi.bin
400 osmc 20 0 527772 94504 45688 S 5.9 12.3 2:09.61 kodi.bin
400 osmc 20 0 527772 94504 45688 R 6.0 12.3 2:10.52 kodi.bin
400 osmc 20 0 527772 94504 45688 S 6.2 12.3 2:11.46 kodi.bin
400 osmc 20 0 527772 94504 45688 S 6.4 12.3 2:12.42 kodi.bin
400 osmc 20 0 527772 94504 45688 S 6.2 12.3 2:13.35 kodi.bin

I think there’s something wrong with the video output or some other stuff at Kernel level that produces these results.

Not sure how to take it from there. At least I want to add my metadata providers but probably that will also add to CPU usage although I would think it should have no effect when in idle mode.

Interesting enough when watching a HD movie I got a shot peak of 27% CPU load but then it stays below 20%, might be ok as well I guess.

400 osmc 20 0 527772 94504 45688 S 5.0 12.3 2:44.38 kodi.bin
400 osmc 20 0 527772 94504 45688 S 4.6 12.3 2:45.07 kodi.bin
400 osmc 20 0 529360 97208 47032 S 19.6 12.7 2:48.02 kodi.bin
400 osmc 20 0 576648 111784 48248 S 26.9 14.6 2:52.07 kodi.bin
400 osmc 20 0 577672 112312 48248 S 14.1 14.7 2:54.20 kodi.bin
400 osmc 20 0 598152 116468 48248 S 16.7 15.2 2:56.72 kodi.bin
400 osmc 20 0 601224 119480 48248 S 18.3 15.6 2:59.48 kodi.bin
400 osmc 20 0 601224 119480 48248 S 17.3 15.6 3:02.09 kodi.bin
400 osmc 20 0 601224 119480 48248 S 15.3 15.6 3:04.40 kodi.bin
400 osmc 20 0 601224 119480 48248 S 14.7 15.6 3:06.61 kodi.bin

Looks like OSMC on a Rb Pi 3 has become a very sensitive thing :frowning:

Those are fine. Kodi is always active. I see 11% on an idle system with the Estuary skin.

If you can offer something more concrete, we can investigate further. My own feeling is that one or more of the add-ons needs to be fixed.

If you want to post logs (grab-logs -A) we can take it further. Please also list all the add-ons you have installed.