OSMC crashes when switching one of the users

Hi,

I’m a complete amateur so please go easy on me if this has been answered already - I did have a search but couldn’t see anything in the forum.

I have a Vero V, although the issue was the same on my Vero 4K+ too.

Every time I log off one of the users, I get a sad face on a blue screen. The Vero then reboots itself to the profile I was about to switch too. Strangely, this doesn’t happen when I log off the other profile. Happens every single time, and doesn’t seem to be specific to an update. Have done several updates and hardware changes and it still persists. I had wondered if it was a corrupted profile, but didn’t want to delete one or both of them unnecessarily.

Vero V is connected to an LG TV only with a Harmony remote. No other peripherals connected.

I hopefully have recreated the issue here in the log:

https://paste.osmc.tv/rewudakelo

Thanks in advance for any help.

Hi,

Welcome. We never give any of our users a hard time. Please always feel free to ask away.

Honestly, profiles in Kodi haven’t been maintained for some time. I’ve actually upstreamed some fixes to Kodi in the past to improve things, but they are problematic. They stem from the old Xbox days of XBMC (now Kodi) where a profile was allocated to a controller / gamer ID.

It does not get a lot of attention these days and Team Kodi want to remove and re-implement profile support. Discussions on this have somewhat stalled.

In terms of your specific crash, I can see:

Aug 25 14:36:51.623650 osmc mediacenter[2505]: /usr/bin/mediacenter: line 219:  2946 Bus error               sudo -u osmc MALLOC_MMAP_THRESHOLD_=8192 LIRC_SOCKET_PATH=/var/run/lirc/lircd $KODI --standalone -fs

That’s an odd one.
I wonder if it may be caused by an add-on.

Assuming the Vero 4K+ is now redundant, could you try a fresh install and see if you can reproduce on it with profiles but an installation without add-ons?

Alternatively, if you are familiar with SSH, I could suggest how we could start a fresh Kodi user environment where you could try to reproduce the issue with profiles. Kodi profiles aren’t renowned for being stable but things shouldn’t be this bad and I think something else is causing you an issue.

Sam

Hi Sam,

Thanks so much for replying and interesting to hear that profiles are a longstanding Kodi issue. I think I’ll go for the fresh install you suggested. Seems like the most surefire way to sort if out. I’ll have a go and report back. Thanks once again.

Tom

Hi Tom

Cheers. Keep me posted.

Sam

So I think I have got to the bottom of things. It seems that after a clean install, everything works fine. I set up two profiles and it changes between them without issue. However as soon as I modify the skin menus (and as prompted install the Skin Shortcut add-on), it crashes when logging out of the non-master profile. It’s fine logging out of the master profile though. I’m using the default OSMC skin. It’s nothing to do with previous apps / settings because I haven’t imported the previous backup yet.

The workaround is to simply not modify the skin menus and thus avoid having to install the problematic Skin Shortcut add-on. That said, any ideas welcome.

Hi,

I’ve seen this before. My solution to switch back to the master profile is to use exit rather than log off. It takes a bit longer but exits cleanly. Depending on your settings it can either auto login in to the master profile or show the login in screen.

Regards Tom.

1 Like

I have no idea if this would be behind it, but I know that Kodi doesn’t always have add-ons enabled on all profiles when one is installed. I would check both profiles at settings>system>add-ons>manage dependencies> and check to see if the skin shortcuts add-on is enabled in both profiles.

Thanks, that’s a good shout to exit rather than log off and then auto log in again. Takes about the same time as the crash and logging in, but it’s much better to not have repeated crashes.

1 Like

I’ll try this out and report back! Thanks so much for the idea.

That’s a good point…

I can see Profiles getting ripped out of Kodi completely and then possibly reimplemented at a later date. It was mainly used in the Xbox days when there were actual profiles.

Just to close this down, I decided to cheat and opt for the default Kodi skin (Estuary). Not as good at the OSMC one but it has avoided the issue. Thanks everyone for your help. I really appreciate it.

2 Likes