Solved Kodi 15.2 - Infinite loop at startup
#1
Hi,

I can't run anymore Kodi, it enters an infinite loop when starting. It shows Kodi logo, then briefly the background, the, back to black screen and again Kodi logo.
I can ssh to the computer.

I'm using Openelec 6.0 on a dedicated computer, didn't change anything between yesterday when it was working and today. I've only noticed than killing conmand made Kodi going out of the loop and launching "properly", but without any content available, and not visible anymore on the network.

Crashlog (generated every 2-3 seconds while looping): http://pastebin.com/ZCQhWaeX
Kodi log: http://pastebin.com/Cgcg5rn0

Any idea, suggestion, is welcome !

Thanks!
Reply
#2
Both logs don't tell anything. The kodi log is no Debug Log and the crashlog has no backtrace ...
First decide what functions / features you expect from a system. Then decide for the hardware. Don't waste your money on crap.
Reply
#3
Since you can ssh, try...

1. Disabling Kodi. This will allow OpenELEC to start, but still give you scope to hack about

I'm way behind on this... it used to be touch /var/lock/xbmc.disabled and then restart, and Kodi wouldn't then launch; however, I've seen posts saying that this doesn't work any more (my family is using my boxes at the moment, so I can't test...). If this doesn't work, you can try systemctl stop kodi.service to temporarily stop it (and systemctl start to restart it, obviously).

2. Enable debug logging

Clearly a challenge if Kodi won't stay upright. However, you already have an advancedsettings.xml file, so you can enable debugging in that...add this to that file: <loglevel hide="false">3</loglevel>

... then restart Kodi as above.

I have no idea how to get a backtrace in OE, but let's see what a debug log has to say....

PS How did you hit on killing conmand? Seems a bit random...
Reply
#4
Thanks for your answers...

My bad for the debug... results with it enabled: http://pastebin.com/RBhD16r2

Latest line is the most interesting:
Code:
13:34:16 T:139634151028608   ERROR: SQL: Undefined MySQL error: Code (1017)
                                            Query: SELECT idVersion FROM version

MySQL database is hosted in my NAS (unraid), in a docker image. I discovered that something went wrong with Docker, and I've reinstalled the image. But now, I have user rights issue with prevent the user account associated to Kodi to access the DB. Globally, the database seems screwed, I'll probably have to delete it all and restart (event the default MySQL user has no rights to access any DB...).

gdb is not installed on Openelec, and they disallow installation of extra packages, wo I can't get a backtrace.

Why did I come up with the idea of killing conmand ? Good question Smile My guess was that something was blocking Kodi and kept it in an infinite loop. Since there's not so much process running, I just gave a try to each of the ones, and conmand was one of them Smile


It seems I'll be good to go with a complete rescan of the library to get everything back to normal. Will keep you posted.

Thanks.
Reply
#5
If you still have data at all accessible, have a look at this thread that I posted awhile back: http://forum.kodi.tv/showthread.php?tid=209208

That would at least allow you to hang on to your library even if you trash the whole mysql setup...
Reply
#6
Hi Prof,

Thanks for the suggestion... I've seen you message too late unfortunately, but I'll keep it just in case !

Now that the libraries have been scanned, everything is back to normal.
Reply

Logout Mark Read Team Forum Stats Members Help
Kodi 15.2 - Infinite loop at startup0