[RPi4] Music playback stops at random, Kodi freezes

  • Hi all,

    it started a couple of months ago with a short freeze of playback but got worse and worse over the last weeks/days. Music stops for a couple seconds up to a minute and then continues. Looks like Kodi freezes but nothing is (visually) happening but CPU temperature increases by a couple of °C. I play flac/mp3 from an external SSD connected to the RPi4.

    And I cannot find out why this happens. Before that (whatever that is) it did work just perfectly. /shrug

    You can see a bin-ed debug log here.

    Because it's about music playback I included component specific logging (Audio component and audio/video timing), maybe that helps.

    Any ideas? Thanks so much in advance!

    Best,

    RC

    RPi4, LibreElec 11.0.1, Kodi 20.1

  • Well,

    did you check the SSD ?

    Maybe there is a problem and the Pi can't sometimes read the Data from the SSD anymore ?

    SSDs didn't last as long as HDDs did.

    I assume that the SSD is connected with an USB-Cable to the Pi.

    Did you try another USB-Cable and / or another USB-Port on the Pi ?

    Did the SSD get her Power from the Pi or did it have her own power supply ?

    1. Upgrade to the latest stable LE release.
    2. Provide a complete log.
    Please provide a full debug log.

    How to post a log (wiki)

    1. Enable debugging in Settings>System Settings>Logging
    2. Restart Kodi
    3. Replicate the problem
    4. Generate a log URL (do not post/upload logs to the forum)

    use "Settings > LibreELEC > System > Paste system logs" or run "pastekodi" over SSH, then post the URL link
  • Hi guys,

    thank you so much!

    Niceguy The SSD is indeed connected through USB with the RPi4 and also gets its power from it. I ran the Mac version of chkdsk with the SSD: all looks fine. I thought about to much stress for the RPi and checked vcgencmd get_throttled but this gives just the regular 0x0.

    I changed the USB port on the RPi now, let's see if this helps (that would be weird and awesome at the same time ;)).

    Da Flex : sorry, if my log was not a propper one (full debug log from LE but without a restart). Since this issue appears super random, it is hard to replicate "on command". Might be a very long log then - is that still ok if posted as you request?

    I hadn't changed the LE version because all went well for a long time and the issue suddenly appeared sort of. As you mentioned the newer LE version: Has this been a known issue on LE? Then, I'd need a day off for updateing LE and Kodi and everythin (noob alert) :D

    Again, your answers are much appreciated! Thanks!

    Best

    RC

  • Great, thanks again!

    Just as an interlude: Right now, the USB port change actually seems to work (wtf?!), but I don't really trust it.

    I created the advancedsettings.xml here /storage/.kodi/userdata/ as noted in another post of you Da Flex , but also found an advancedsettings.xml with different content here /usr/share/kodi/system , where I actually first tried to include the loglevel command but I am unable to write/replace said file :/

    I'll have the log running then with the new advancedsettings.xml (I guess?), when trying to upload through SSH, pastekodi does not work right now apparently, as ix.io replies "taking a break" (will try again later, then). My Kodi/LE does not offer the Paste system logs function...

    Keep you posted and again, Thanks so much!

  • Hi guys,

    just a quick update after a little over a week: I am surprised (but also a bit glad), that -- until now that is -- the change of the USB port on the RPi4 appears to be the solution. At least the glitches/stops did not occur until then.

    I am not sure about the forum rules about cussing, but what the flying f***?!? How can that be?

    I'll post a log, if this occurs again - until then, thanks again so much Niceguy and Da Flex for the cosiderate help!
    Cheers,
    RC

  • USB 2.0 ports provide different speeds and current draw limits to USB 3.0 ports. Power and bandwidth on a specific port (and the upstream hub) are also shared between other devices connected to the same hub). I'd guess you had the device in a 2.0 port and have now moved it to a 3.0 port .. or something like that.

  • thanks but unfortunately no - the two USB 3.0 ports of the RPi4 do not work with the SSD (although it has a USB 3.0 port itself), but I moved from one USB 2.0 to just the other USB 2.0. port. So it is a difference between the two USB 2.0 ports... I know, super weird.

  • thanks but unfortunately no - the two USB 3.0 ports of the RPi4 do not work with the SSD (although it has a USB 3.0 port itself), but I moved from one USB 2.0 to just the other USB 2.0. port. So it is a difference between the two USB 2.0 ports... I know, super weird.

    That strange indeed. At the RPi's the USB ports current limit is for total current (around 1.2A), theoretically no individual port current limit. I think your SSD need power that these ports barely can provide. Looks like one of the USB2 port can handle it for now, but the question how long and how stable.
    Two thing:
    I think in the config.txt can be activated the high current output adding the line "max_usb_current = 1" (you should have a proper power source for RPi).
    You can use an external powered USB-HUB connected whichever RPi USB port (the SSD will be powered by HUB).