Sad Face - every boot

Hmm, my Pi 2 has been sitting quietly for a week or so. Thought I would fire up the TV and check things out. Pi seemed to be running (based on LEDS) but the screen was black. I did a reboot.
The OSMC splash screen shows up, then I get the sad face screen. After 10-15 seconds, the screen blanks, then back with another sad face. This goes on for around 2-3 minutes.

I can ssh in just fine, did a sudo journalctl - saw some errors about not being able to start GUI. Everything else seemed fine.

So, I did an apt-get update; apt-get dist-uprade. The dist-upgrade loaded a newer version. Did the reboot - same sad face and cycle. I did a shutdown. Took the SD card and put it into a Linux server. Did an fsck -f on both boot and /root. No problems reported…

I also tried to rename /home/osmc/.kodi to /home/osmc/.kodi.old. Reboot. .kodi re-created - but still sad face.

Here is the grab-logs -A output:

I would really prefer not to reformat and reinstall. I have the plex media server and a custom button based shutdown script installed. I can re-install both - just a bit time consuming :wink:

Any recommendations would be appreciated.

Don’t install Qt5 like that. OSMC offers its own QT5 BSP


Your crash is being caused because you have indirectly installed the following generic OpenGLES libraries:

ii  libegl1-mesa:armhf                    10.3.2-1+deb8u1                   armhf        free implementation of the EGL API -- runtime
ii  libegl1-mesa-dev:armhf                10.3.2-1+deb8u1                   armhf        free implementation of the EGL API -- development files
ii  libegl1-mesa-drivers:armhf            10.3.2-1+deb8u1                   armhf        free implementation of the EGL API -- hardware drivers

According to your apt history.log these were installed as a dependency when you ran the following command:

apt-get install qt5-default qtmultimedia5-dev qtscript5-dev qt5-qmake libmediainfo-dev zlib1g-dev libzen-dev libcurl4-openssl-dev libpulse-dev

I suspect that they are a dependency of qt5-default. You will need to purge these packages, for example:

sudo apt-get purge qt5-default libegl1-mesa libegl1-mesa-dev libegl1-mesa-drivers

I would do an autoremove afterwards for good measure:

sudo apt-get autoremove

You can’t have those mesa-gl libraries installed on the Pi as they are a software OpenGL ES implementation which is not compatible with Kodi and prevents Kodi making use of the Pi’s hardware acceleration.

Ahh, Sam and Simon you guys are great! I did indeed play around with MediaElch. It didn’t have a Raspberry Pi version so I downloaded the development tools and did make.
It was the one that pulled in all the qt5 stuff.
I had not done a reboot for quite some time. So, it appeared to not effect OSMC.

I have done the apt-get purge and autoremove.
No more sad face!
Thanks again for the investigative work.