Kodi crash randomly overnight

  • Hello,

    I have LE 9.2.0 running on a RPi3.

    Recently, I realized that my system uptime was always a few hours, instead of days. I then noticed that every night the system reboots by itself during the night. Normally, at the end of the evening, I just close the TV and let the RPi3 running.

    When trying to look at the kodi logs (in /storage/.kodi/temp), I found the following interesting files:

    1. -rw-r--r-- 1 root root 62.5K Jan 19 22:28 kodi_crashlog_20200119222837.log
    2. -rw-r--r-- 1 root root 79.7K Jan 21 03:34 kodi_crashlog_20200121033352.log
    3. -rw-r--r-- 1 root root 379.7K Jan 23 01:45 kodi_crashlog_20200123014549.log
    4. -rw-r--r-- 1 root root 70.3K Jan 24 05:15 kodi_crashlog_20200124051550.log
    5. -rw-r--r-- 1 root root 98.1K Jan 29 01:55 kodi_crashlog_20200129015542.log
    6. -rw-r--r-- 1 root root 69.7K Jan 30 02:58 kodi_crashlog_20200130025802.log
    7. -rw-r--r-- 1 root root 66.3K Feb 1 00:43 kodi_crashlog_20200201004302.log
    8. -rw-r--r-- 1 root root 277.6K Feb 10 12:38 kodi_crashlog_20200210123826.log
    9. -rw-r--r-- 1 root root 119.9K Feb 13 03:29 kodi_crashlog_20200213032858.log
    10. -rw-r--r-- 1 root root 56.3K Feb 14 00:49 kodi_crashlog_20200214004853.log

    If it can be useful, here are the pastebin of the last 2 crashes:

    Let me know if more crash dumps would help?

    I briefly looked at the crash dumps, and the cause all seems to be inside the thread 1 of Kodi. Except the last crash, the previous ones all seem the same.

    How do I start from here?

    Thanks in advance!

  • How do I start from here?

    2019-04-11 12:28:42.297 T:1937336768 NOTICE: Disabled debug logging due to GUI setting. Level 0.

    It's always good to enable debugging so the Kodi log is more detailed. Do so, restart Kodi, and reproduce the error(s) for a new log file.

  • Quote

    It's always good to enable debugging so the Kodi log is more detailed. Do so, restart Kodi, and reproduce the error(s) for a new log file.

    It's funny, I enabled debug log yesterday, restarted and my system ran overnight without a crash. It did not restart by itself.

    However, as a related question: is there a way to keep debug log enabled, but without the annoying top left overlay displayed constantly on the screen. I think I saw that in a custom xml, but I cannot find it back.

    As I cannot yet pinpoint to something specific I did to cause the numerous crash every night, I'd like to keep running in debug log to hopefully catch the issue again.

    Thank you in advance ! :)

  • Ok, I found it. [SOLVED] Reboot and Shutdown Crash

    Posting it back in case it can help someone:

    1. <advancedsettings>
    2.   <loglevel>1</loglevel>
    3. </advancedsettings> 

    That should enable debug logging but without that annoying overlay on the screen.

    I'll try that and see if it helps.

  • Hello,

    With debug log enabled I was able to catch another nighly crash. It ran for 4 days, so bear with the long debug log...

    dmesg: http://ix.io/2c68

    kodi.log: http://ix.io/2c69

    kodi.old.log: Kodi old log for post https://forum.libreelec.tv/thread/21384-kodi-crash-randomly-overnight-and-reboot-rpi3 · GitHub (I think I reached the paste limit)

    kodi_crashlog_20200218083716.log: kodi_crashlog_20200218083716.log · GitHub

    Let me know if this is sufficient.

    Thanks a lot!

  • Hello,

    I again got a very similar crash. Let me know if you need more logs, but the crash dump was at the same place (pasted below).

    I do embedded programming as a living, so I tried to see if I could find anything.

    I found this:

    It seems as if the xbmc/GUIInfoLabel.cpp at master · xbmc/xbmc · GitHub : Get()) method is causing a too big string.

    From: libstdc++-v3 Source: basic_string.tcc Source File

    1. 00462 _S_create(size_type __capacity, size_type __old_capacity,
    2. 00463 const _Alloc& __alloc)
    3. 00464 {
    4. 00465 typedef basic_string<_CharT, _Traits, _Alloc> __string_type;
    6. 00467 // 83. String::npos vs. string::max_size()
    7. 00468 if (__capacity > _S_max_size)
    8. 00469 __throw_length_error(__N("basic_string::_S_create"));

    Please anyone... Where do I continue from here?

    Thanks again!

  • mgouin

    Changed the title of the thread from “Kodi crash randomly overnight and reboot RPi3” to “Kodi crash randomly overnight”.