[x86-64] System crash during NFS access

  • Hi friends,

    (LibreELEC 12.2.1)

    I have - all of a sudden - an issue with LibreELEC freezing whenever I attempt do interact anything from my NAS. The weird part is, that after approx. 5 minutes or so, it de-freezes. In particular I noticed the following:

    - Clean up library: freezes upon attempt to clean, after a few minutes de-freeze and clean up has completed

    - Playing a movie: upon hitting "Enter" on the thumbnail - freezes and after a few minutes de-freeze and plays movie

    I did not make any changes whatsoever on my NAS or in Kodi, up until yesterday, everything played fine as always until the freezing issues popped up.

    My NAS is accessible from my network without any problems.

    Shall I try to reproduce for a log with the following settings?

    <loglevel>3</loglevel>
          <setting id="debug.extralogging">true</setting>
    <setting id="debug.setextraloglevel">131072</setting>

    Any help much appreciated

  • Shall I try to reproduce for a log with the following settings?

    <loglevel>3</loglevel>
          <setting id="debug.extralogging">true</setting>
    <setting id="debug.setextraloglevel">131072</setting>

    Reproduce the issue with log level 1. Anything else is overkill.

  • Hi Da Flex

    thanks for your help! Here is the result from my test session from just now:

    Created advancedsettings.xml with

    <loglevel>1</loglevel>
         <setting id="debug.extralogging">true</setting>
    <setting id="debug.setextraloglevel">131072</setting>

    Removed a video title from my NAS (for test purposes), then ran a “Clean Library”. To my surprise, this time it did not freeze and the “Clean Library” wen through.

    I then tried to play a movie and again - Kodi freezes upon clicking on the Movie thumbnail. After 4 minutes of freezing, the movie starts playing …

    I am super curious as to why the freeze happens.

    You can see it in the log that I pressed 21:59h to play and 22:03h (4 minutes later it only started to play). In between: freeze …

    Another weird thing I observed from the logs:

    2026-04-28 21:59:31.285 T:823     error <general>: GetDirectory - Error getting /storage/videos/Chess 26-10-2024/
    2026-04-28 21:59:31.304 T:823     error <general>: GetDirectory - Error getting /storage/videos/Chess/Rating Climb/

    These were videos (video folders) I placed on my internal Kodi HD (not on my external NAS) to watch years ago! I have also deleted them years ago. Why are they still being requested somehow in the log?

    Also - not sure if this is related to the freezing - lots of:

    2026-04-28 22:03:06.368 T:900     error <general>: NFS: Failed to mount nfs share:  (nfs_service failed)

    Why is that? Up until recently I never had any issues (since years) and didn't change anything on my NAS. Please see attached NFS version running on my Synology. Shall I set it down to v3 maybe?

    Third question:

    2026-04-28 21:59:36.383 T:823     error <general>: GetDirectory - Error getting nfs://10.30.11.27/volume1/media/movies/en/Miss You Already (2015)/
    2026-04-28 21:59:45.598 T:823      info <general>: CleanDatabase: Cleaning videodatabase done. Operation took 14888 ms

    This was the Movie that I removed for test purposes for the Clean Library test. Does Clean Library remove those entries that fail with this Error?

    Seeing all of that ... would you say maybe a clean new install of LibreELEC might be better? I have been upgrading inplace for 5 years or so straight. Appreciate your help!

  • There is something wrong with your advancedsettings.xml file, so you're still at log level 0:

    Code
    2026-04-28 21:49:46.726 T:823     error <general>: Error loading special://profile/advancedsettings.xml, no <advancedsettings> node
    2026-04-28 21:49:46.726 T:823      info <general>: Default Video Player: VideoPlayer
    2026-04-28 21:49:46.726 T:823      info <general>: Default Audio Player: paplayer
    2026-04-28 21:49:46.726 T:823      info <general>: Disabled debug logging due to GUI setting. Level 0.

    PS: Also have a look at this thread:

    ronbaby
    April 27, 2026 at 5:28 AM
  • There is something wrong with your advancedsettings.xml file, so you're still at log level 0:

    Code
    2026-04-28 21:49:46.726 T:823     error <general>: Error loading special://profile/advancedsettings.xml, no <advancedsettings> node
    2026-04-28 21:49:46.726 T:823      info <general>: Default Video Player: VideoPlayer
    2026-04-28 21:49:46.726 T:823      info <general>: Default Audio Player: paplayer
    2026-04-28 21:49:46.726 T:823      info <general>: Disabled debug logging due to GUI setting. Level 0.

    [/thread]

    I don't get it ... I was able to reproduce the Clean Library freeze (about 4 minutes of freeze before it went through) with the following in /storage/.kodi/userdata/advancedsettings.xml

    <advancedsettings>
    <loglevel>1</loglevel>
    <debug>
    <showloginfo>false</showloginfo>
    </debug>
    </advancedsettings>

    Why does it say this part:

    2026-04-29 21:38:58.796 T:948 info <general>: Loaded settings file from special://profile/advancedsettings.xml
    2026-04-29 21:38:58.796 T:948 info <general>: Contents of special://profile/advancedsettings.xml are...
    <advancedsettings>
    <!-- Logging -->
    <loglevel>1</loglevel>
    <!-- 0=none, 1=normal, 2=debug -->
    <debug>
    <showloginfo>false</showloginfo>
    </debug>
    </advancedsettings>
                                                      
    2026-04-29 21:38:58.796 T:948 warning <CSettingsManager>: missing version attribute
    2026-04-29 21:38:58.796 T:948 info <general>: Default Video Player: VideoPlayer
    2026-04-29 21:38:58.796 T:948 info <general>: Default Audio Player: paplayer
    2026-04-29 21:38:58.796 T:948 info <general>: Disabled debug logging due to GUI setting. Level 1.

    See attached newly generated log ... I also noticed that additionally a crash log was generated (attached as well). Could the NFS issues be due to a mismatch of NFS version (LibreELEC: 3, Synology NAS: 4)?

    In any case, I think I will make a clean, new install and verify all NFS related permissions in accordance with the Wiki to double-check.

    If you spot anything in both logs: thanks in advance!

    *Update:*

    I checked the crash log again and I think I may have found something:

    2026-04-29 21:36:40.134 T:892 debug <general>: NFS: Context for 172.30.11.26 not open - get a new context.

    End of last year, I moved placed and switched to a new private subnet: 10.XX.XX.X instead of 172.XX.XX.1. I changed all my IPs in Kodi for the shared folder on my NAS already, but somehow Kodi still searches for some parts in the old subnet. Maybe that is the part that is leading to internal timeouts which become visible as a freeze in the GUI. End of last year I already rebuild my database file and the issues were gone .... apparently they are back.

    From an outside perspective it looks problematic to me if you change your local IPs (or IP subnet in my case) for the NFS shares in your Kodi installation. Not sure at which places Kodi still saves the old IP for the share (or if its cached anywhere). Could this be some sort of bug?

    Anyway: I will make a complete fresh install and I have a good feeling that this may resolve things. I will also make sure NFS version on client (Kodi) and Synology (Media NAS) side are on par.