Kodi hangs after every video ends, or on pause or stop.

  • I'm running LibreELEC 12.2.0 on an RPi 5.

    Things had been going smoothly til the grandkids got hold of the remote and really messed things up! I did a full reinstall of 12.2.0 (reflashed the SD card, reconfigured everything from scratch), and since then, things still aren't working smoothly.

    At the end of a video (all files live on my UNRAID server), Kodi will just hang. I usually fast forward through the credits, so I let it just play through at regular speed. Still hangs. The screen goes black, my Kore remote on my phone says that it can't connect, it just sits there doing nothing. Sometimes, it will report that the video has finished playing, but usually not (I've got HomeAssistant monitoring play status to turn lights up/down - sometimes the lights come back up, usually not). I've left it sitting like this overnight and it'll still be like that in the morning.

    I end up pressing the power button until the Pi shuts down. I just remembered that I can SSH into the box (wouldn't let me change the default password, but that's another question...), so I've done that and issues a 'reboot' command, and it does that just fine.

    I looked in the logfiles directory, but there was nothing there.

    I use Kodi for Emby to connect to my Emby instance for Movie and TV Show playback and it happens with both of TV Shows and movies I also have an SMB share for sports (which just don't categorize well), and it hangs at the end of playback on those, too. Often, it will hang when I hit Pause or Stop on the Kore remote, also.

    Basically, I can watch one video of some sort, then I have to restart the machine to get some sort of response out of it.

    What the heck should I be looking at to figure out what's going wrong?

  • For kicks, update to the latest LE12.2 nightly. It probably doesn't fix anything, but you never know.

    On the assumption it doesn't: enable debug logging in Kodi, then reboot to get a clean log, then demonstrate the problem, then SSH in and run "pastekodi" to pastebin logs and generate a URL you can share here. The logfiles dir will not show anything; it is 'special' and auto-generates a set of logs when (and only when) accesed over SMB. However that results in you creating and uploading a zip archive to the forum that everyone on staff avoids investigating because we have to download, unzip, and open files. It sounds petty, but repeat it 10,000 times and the novelty wears off vs. just clicking a URL link.