LibreELEC.tv
LibreELEC.tv copied to clipboard
[BUG] LE settings addon causes crashes when switching profiles
Describe the bug
When switching profiles, eg from master user to a separate profile, kodi crashes if LE settings addon is included in system image.
The issue was originally reported on the forum https://forum.libreelec.tv/thread/23657-le-10-0b1-crash-after-profile-change/
To Reproduce
- Clean LE installation, accept defaults in wizard
- Create one (or two) profiles in settings->profiles, accept defaults, enable "Show login screen on startup"
- reboot LE
- select master profile in login screen
- log out of master profile
- select first created profile in login screen
- kodi crashes
Informations
- LE Version: LE 10b1, master
- Hardware Platform: RPi4, forum users also reported Generic
Log file
Kodi crash log: http://ix.io/2Vrs
Additional context
The crash log points to python's _asyncio.so lib which indicates the crash is probably caused by the LE settings addon.
Building an image without LE settings addon results in working profile switching without crashes.
Log file from switching between master and both test profiles back and forth several times: http://ix.io/2Vrv
Can you enable LE settings add-on debugging and post another log please?
Here's a log with DEBUG=1 in kodi.conf: http://ix.io/2Vt3
it's a long shot but can you test this patch? https://termbin.com/y454
the patch didn't help - kodi is still crashing http://ix.io/2VwX
Does it crash if you disable/enable the add-on?
enabling/disabling isn't possible in kodi, probably because it's flagged as a system addon

If I disable Bluetooth (Settings -> Services), I can switch profiles at will.
If I disable Bluetooth (Settings -> Services), I can switch profiles at will.
Not in my case. Still crashing.
EDIT: I'm on LE 10b2 x86 generic.
Still crashing on LE 10b3, x86 generic.
Multiple profiles support in Kodi is broken for some time and should be removed if someone finds time to do it.
Multiple profiles support in Kodi is broken for some time and should be removed if someone finds time to do it.
What do you mean it's broken in Kodi? I have several Kodi 19.1 installations which are all running fine with multiple profiles. It's just crashing in LibreELEC, not in Kodi. I heard of that the whole code has to be rewritten beause it's ugly code. Don't get me wrong but just because the code is bad doesn't mean it's broken? It would be too sad if multiple profiles were removed, this is the main reason I am using Kodi/LibreELEC because that way I can manage all of my familiy members individually and keep kids away from things that do not belong to them.
FYI: latest nightly is still crashing with the same _asyncio.so backtrace http://ix.io/3utf
just a warning, looks like nobody is looking into the issue so LE10 final will have this broken
#5724 #5725
@HiassofT - is this still an issue. Did the asyncio changes in python address or partially address it?
Looks like we just forgot to close the issue. Tested with LE master, profile logoff/logon works fine