I have started this post because @ActionA decided to close the thread we were all using to investigate the freezing issues we are experiencing as discussed in this thread April update causes System freezes - #181 by sam_nazarko even though the issue is not resolved inthe current and Krypton builds and the issues I am experiencing and it seems many others are as described by the OP @Sir_Mc_Tod in that thread. The thread seemed to latterly focus on SMB server releated issues. I do not believe this is the issue. My builds do not serve any content merely consume it, I assume using the SMB Client as all my media is on a NAS server and is shared with the network as a number of SMB shares. All favours of client consume this media, mostly Rpi 1 B+ and latterly Rpi 2 & 3, but also Android and Ubuntu Clients running current Kodi Versions. There are no issues related to these issues with clients other than the Rpi.
As a description of the symptoms, OSMC works perfectly for a while (there seems to be no consistent time when it exhibits the problem) when navigating the UI or after playing media and then returning to the TV show or Movie browser banners/thumbnails are not displayed. Sometimes the UI remains navigable for a short while but no thumbnails or banners are visible. Other times OSMC is frozen and unresponsive. SSH’ing in and either:
sudo systemctl restart mediacenter
or
sudo reboot now
Will return OSMC to fully working again until this issue repeats. This is exactly as described in the previous post by the OP in this thread April update causes System freezes - #181 by sam_nazarko which contains logs and various testing cycles from users. SO if you have these issue then please read the previous post first then contribute here. If your issue IS NOT related to OSMC freezing and missing thumbnails banners unresponsive UI then please don’t post here or we will have another thread closed incorrectly!
I have tested: (see my posts in previous thread)
Stock Rpi1 B+ running the latest OSMC (No addons etc.)
Rpi1 B+ Krypton builds (see OSMC test builds for Krypton 17 (continued))
As above with our standard addons etc.
All exhibit the problem.
It’s important to get information post-crash, and it may give us clues. If you’re still able to SSH in to the device to issue the reboot command, that may be helpful.
When this next happens, can you try issuing the following commands:
There was a report of an out of memory issue. This would explain the Kodi crash, and if systemd was unable to kill Kodi, then this would also explain the hanging on the screen. It would also be good to know if you can get Kodi running reliably again without rebooting, by issuing the following command:
sudo systemctl restart mediacenter
I will check with @popcornmix if anything can be grabbed from the VC side which may give us clues as to what’s going on.
I think closing the other thread wasn’t the worst idea. We had a lot of noise there and it was hard to keep track of things. If the problem truly is the same across all devices, then we only need to work closely with one or two users to fix it for everyone.
@sam_nazarko Thanks Sam but as we previously investigated and I reported the OOM didn’t seem to be the issue. I don’t think OSMC crashes as I can SSH in and restart the mediacenter most if not all of the time certainly recently all of the time.
OK!
Is there a command to capture the logs you require to disk for sanitising before uploading?
You can edit the Kodi log manually then paste-log it. I doubt dmesg will have anything sensitive in it, but you can do dmesg > spart_dmesg, edit accordingly and paste-log afterwards.
Please try downloading these debug versions of the Pi firmware:
osmc@osmc:~$ sudo vcgencmd set_logging_level=2147483648
error=1 error_msg=“Command not registered”
tailing log I get lots of these errors:
19:41:49 81.778992 T:2742846448 NOTICE: Previous line repeats 1 times.
19:41:49 81.779320 T:2742846448 ERROR: COMXCoreComponent::WaitForEvent OMX.broadcom.image_decode wait event 0x00000003 timeout 1000
19:41:49 81.779533 T:2742846448 ERROR: COMXTexture::Decode WaitForEvent:OMX_EventPortSettingsChanged failed (80001011)
19:41:49 81.779701 T:2742846448 NOTICE: DecodeJpegToTexture: unable to decode to texture special://masterprofile/Thumbnails/2/2a5ea635.jpg 360x540
19:42:09 102.016205 T:2786362352 NOTICE: script.grab.fanart: Grab Fanart Service Started
OSMC is NOT working as it should. No thumbnails are displayed and no TV show banners from booting up. UI responsive but nothing plays and OSMC freexes when trying to play anything.
After following your changes above the pi is unstable and OSMC is unusable. I has to revert back to startx=1 and comment out the load firmware lines to get a working system back!
Please give us full logs, and what was asked previously. We need more than snippets
Did that work?
When we hit OpenMAX errors it quickly becomes out of my knowledge, but the key is to get as many clues as possible.
Have you tried installing the first version of OSMC that worked and updating each package on at a time? This was suggested in the previous thread but I’m not sure if anyone followed up with it.
I am very happy that you created a new thread about this. It seems my english isnt as good as i thought it was
Just as an update from my side.
With the Actions i last described (and the May update) I was able to reduce the frequency of freezes from twice a Day to once a week.
Usage Profile is
Up time 24/7
Idle 18-20 hours a Day
Mainly video playback (from a nas via nfs, mysql database on nas)
@sam_nazarko It freezes in just the same way each time.
As an aside in order for me to test builds faster. I have a large media collection on the NAS and I have been installing from scratch then rsyncing the userdata folder over from a backup so that I get the thumbnails etc. populated.
Can you confirm which folders in userdata should be rsynced to achieve this otherwise it takes forever for kodi to sync the thumbnails etc.
@popcornmix@sam_nazarko OK i have been testing a build compiled on the 22nd Feb 2016. There are no symptoms present. Navigation is fine thumbnails.Banners etc. display correctly. No freezing. This uses the same addons skins etc as our normal builds. Mythtv Client for Live TV.
This was built from scratch then booted once. Thumbnails and Textures13.db and userdata xml files were rsynced from a backup so that it would connect to our mysql server and have all thumbnails locally and not take forever to re-fetch them.
Thanks for your feedback so far. It’s appreciated.
I had a chat with @popcornmix. Let’s try updating firmware first. You can update to the firmware that’s in the latest version of OSMC by following these commands:
I’d like it if you could run your device for 24 hours, assuming the bug normally presents within 24 hours, and then report back. Then we’ll try the kernel. Then we can move on to Kodi. Failing that – system libs…