XBOX Kodi freezes at startup on Xbox Series X
#1
Hi,
First post here. This forum has been an invaluable source of answers and I've always been able to find a solution to my problems in the past, but this time, I can't find any and I need to post a request.
The issue seems somewhat similar to one posted on GitHub (https://github.com/xbmc/xbmc/issues/25501) but it hasn't been resolved. I'm not that poster by the way...

My setup: Xbox Series X, plugged into a 4k TV - it has been running like this for over 3 years
My issue: when I'm logged into my Xbox user, I start Kodi from the start screen, it goes past the splash screen and it tries to load the Pictures widget that comes a the default start screen then it freezes. You can see here below how it looks - the wheel is stuck and doesn't move anymore. Yes, there is a mouse arrow at the top left, this is new and I believe that both started together:
Image

The funny thing: when I switch to one of my kids' account and start Kodi, it doesn't freeze. The arrow is also there, then disappears, but the system works.

The log: I cannot get the log from my user, as my Kodi is literally frozen, so I cannot access the logs from there. The only thing I can do is put the log as started from my daughter's account, I'm not sure how far it helps as that one worked but at least, it is on the same Xbox: https://paste.kodi.tv/raliqetomikodi

The addons I have, all installed through the add-on manager:
- Youtube addon
- RTS addon (Swiss TV)
- one to remap the keys for the Xbox controller
- the SMB/Samba add-on

I don't remember having installed another add-on - it is possible but unlikely as I only use Kodi for video content stored on my NAS.

Not sure what else I can add.
Reply
#2
Have you tried disabling / temporarily removing the YouTube add-on?
Reply
#3
Hi billy, this would have been my next move, but unfortunately, the app freezes before I can do anything so I can't access any setting/parameter setting.

Yes, I know I could de-install it and re-install it but this is last resort. Configuring Kodi, esp. all the NAS directories and such, is a *real* pain on an Xbox as I have to do it through the controller. So yes, I am aware that I may not be able to avoid that path, but I'm trying to exhaust other options before that...

For example, to pursue billy's idea: on a computer, I'd try to go into the add-ons directory within home and delete/rename the add-ons files and try again. Not as clean as disabling them through Kodi, but worth a try. But I can't do that on an Xbox (can't I?)
Reply
#4
Maybe Kodi crashes when reading media. You could disconnect the Xbox temporarily.
Reply
#5
I usually use the Kodi file manager to backup / restore Kodi bits, but I can see where the app locking up might be challenging. That said, did you happen to see a neighboring thread where Kodi backup to USB flash drive is described? Mayhaps that could help you make a safety net with which to try a fresh / clean installation so you can rule out things as you reintroduce them. https://forum.kodi.tv/showthread.php?tid...pid3201013

For reference, I chimed in here because I had an experience similar to this recently. Right when the July Xbox update was installed, Kodi started locking up at launch. What I forgot was that I also updated the YouTube add-on (to 7.0.9 beta 3?). Oddly enough I found that using a USB keyboard and continuously tapping the left or right arrows just before launching Kodi, to keep the cursor in motion, prevented it from locking up. Although I was beginning to think I was nukk'n-futz, it was observable and repeatable. So, the fam adjusted to using the voodoo to keep Kodi working, and subsequently I never raised an issue here. I thought / was hoping MS broke something that might get fixed in a future update, LOL.

But recently I stumbled over 25501 (GH issue), which lead me to https://github.com/anxdpanic/plugin.vide...issues/839. Here was someone else that had a similar experience and both independently found and used the voodoo successfully. In the end, after updating the YouTube add-on to the latest version that was available at that time (7.0.9 beta9?), no more Kodi lock-ups when launching.
Reply
#6
Hi sarbes, thanks for the idea. Unfortunately, I don't even get to playing any media, it freezes really at startup and I can't do anything.

Hi billy, many thanks for all these insights!
- The USB backup: I need to look into this, this is something I have been wondering about for a while precisely to avoid the situation I'm currently in Undecided  I was also wondering about enriching the advancedsettings.xml, I care mostly about database for the library - already in the xml file - and NAS paths, the rest I could live with
- The voodoo trick: I'll definitely try it out or play around it - this is why I mentioned the mouse cursor as I believe there is something to it; I just need to found a USB keyboard somewhere in the house Big Grin
- The Youtube addon: now I understand your initial reply - I'll try the voodoo trick (next week as I'm on a trip) to get "past" the initial freeze, this was the kick I needed
Reply
#7
Fwiw, my observstion with xbox recently seems that controller responsiveness is rather random. No input registers for like 10 kodi starts, but input does register on the 11th start sort of thing. Seems like some kind of race condition to me, but getting a log is quite the challenge given lack of input response when it's broken.

I did at first notice that getting rid of a broken weather plugin seemed to help for a bit, so it may well be plugin-related.
Reply
#8
So, I tried the Voodoo stuff with the controller (d-pad) and it worked - I tested it multiple times, starting Kodi with and without touching the controller and this made a huge difference. I uninstalled the two "non-standard" add-ons (RTS and Youtube) and problem is gone. For the record, the YT add-on was on 7.0.6.3 and taking it back to 7.0.5 did actually seem to work but I played it safe and uninstalled it.

Thank you all, issue is kind of solved - root cause not fully confirmed, but I can live with the solution proposed.
Reply
#9
(2024-08-14, 10:35)sarbes Wrote: Maybe Kodi crashes when reading media. You could disconnect the Xbox temporarily.

The issue appears to be caused by this bit of Python code 
Code:
xbmc.getCondVisibility('System.IdleTime(10)')
.

Replacing it with the following was enough to resolve the freezes.
Code:
xbmc.getGlobalIdleTime() >= 10

At first glance both bits of code appear to be doing the same thing, so no idea why the former would lock Kodi up

https://github.com/xbmc/xbmc/blob/cdfc75...o.cpp#L521
https://github.com/xbmc/xbmc/blob/cdfc75...c.cpp#L374
Reply
#10
Please report your findings on GitHub issues, thanks.
Reply

Logout Mark Read Team Forum Stats Members Help
Kodi freezes at startup on Xbox Series X0