[Rpi4] Big delay showing video (and frequent crashes)

  • My hardware: raspberry pi4 with 4gb of ram, a HiFiBerry audio and a hard disk connected via usb

    Software: Libreelec 12.0 with aeon nox skin

    From some weeks (also before the switch from 11.X to 12.0 version, nothing changed) I have a lot of delay trying to see normal videos (taken from a nfs server but nothing changed switching to samba and also from the system disc).

    If I look into the kodi log I cannot see anything, as the system was freezed: when the video starts I can see many errors in kodi.log like

    Code
    2024-05-19 21:57:10.706 T:8076  warning <general>: OutputPicture - timeout waiting for buffer

    If I look in dmesg I can see this error:

    Could the problem coming from some extension because it started after I installed some extension to the skin but I cannot understand the wrong one?

    EDIT: the dmesg error seems to be unrelated to the problem because sometime it does not appear

    Edited once, last by lnoferin (May 19, 2024 at 9:26 PM).

  • The timeout messages are harmless. The kernel splat is undesirable but ultimately harmless too (it's a WARNING, not an ERROR).

    TL/DR: If you don't know what something is in a log, always share the entire log, because then you share all the actually useful info and not just the couple of irrelevant bits that you (wrongly) guessed were important.

  • Try again with the default skin.

    I am trying with estuary skin but nothing changed


    The timeout messages are harmless. The kernel splat is undesirable but ultimately harmless too (it's a WARNING, not an ERROR).

    Yes, understood!

    TL/DR: If you don't know what something is in a log, always share the entire log, because then you share all the actually useful info and not just the couple of irrelevant bits that you (wrongly) guessed were important.

    I am trying to look at the debug log (enabled from the skin menu) but it became really too verbose: which log module should I have to enable to look for my problem?

    Edited once, last by lnoferin: Merged a post created by lnoferin into this post. (May 20, 2024 at 2:27 PM).

  • I am trying to look at the debug log (enabled from the skin menu) but it became really too verbose: which log module should I have to enable to look for my problem?

    This is a log with some log module enabled with estuary skin trying to see a movie in the samba share:

    debian Pastezone

    I think the relevant lines are 517-518: almost five minutes waiting to start the reproduction.

  • Code
    2024-05-20 15:41:02.962 T:7382     info <general>: Disabled debug logging due to GUI setting. Level 0.

    Not helpful.

    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
  • So you get HiFiBerry sound without having a HiFiBerry card in the audio output device list?

    No, I removed the hifberry in config.txt to try for my problem and rebooted but now I cannot use the hifiberry and I am using the hdmi audio output.

    (Normally I switch between the two audio devices - plus bluetooth - via the audio chooser addon)

  • Code
    2024-05-20 15:41:02.962 T:7382     info <general>: Disabled debug logging due to GUI setting. Level 0.

    Not helpful.

    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

    Here the full log, without hifiberry in config.txt

    https://paste.libreelec.tv/arriving-flamingo.log

    P.S.: thanks a lot for your help!

  • Code
    2024-05-20 16:27:42.819 T:3339    debug <general>: NFS: Context for 192.168.1.100/export/Musica not open - get a new context.
    2024-05-20 16:27:42.820 T:3339    debug <general>: NFS: version: 3
    2024-05-20 16:27:42.826 T:3339    debug <general>: NFS: Connected to server 192.168.1.100 and export /export/Musica
    2024-05-20 16:27:42.826 T:3339    debug <general>: NFS Server max read chunksize (1048576) is bigger than client setting - Using client value 131072
    2024-05-20 16:27:42.826 T:3339    debug <general>: NFS Server max write chunksize (1048576) is bigger than client setting - Using client value 131072
    2024-05-20 16:27:42.826 T:3339    debug <general>: NFS: chunks: r/w 131072/131072
    2024-05-20 16:27:42.828 T:3339    error <general>: NFS: Failed to stat(export/Musica/I/I Mother Earth/Dig/folder.jpg) stat call failed with "NFS: Lookup of /I/I Mother Earth/Dig/folder.jpg failed with NFS3ERR_NOENT(-2)"

    Try without NFS. If you have the option to update to NFSv4 on your server, please do.

  • Code
    2024-05-20 16:27:42.820 T:3339    debug <general>: NFS: version: 3
    
    Try without NFS. If you have the option to update to NFSv4 on your server, please do.

    But the videos are on a samba share and the music works fine!