Logging; how to find corrupt media file that crashes Kodi ?

  • I have some media file that while Kodi scrapes the media content it'll crash and restart.

    What log file do I look in and what do I look for?

    I'm noticing a bunch of log files in the logging directory when I browse the IP address of the LibreElect Kodi.

    One that is marked CRASH has a bunch of media files but I was thinking that the last media file would have crashed it but I dont think it did.

    Thanks,

    • Official Post

    The correct path is always /storage/.kodi/temp/kodi.log .. just start the tail, then start the library scan, and when Kodi crashes the output will stop at the point where it crashes. Use a large scroll-back buffer in Terminal.app or PuTTY (or whatever SSH client you use) and the copy/paste to pastebin and share the log. You cannot stop the tail and use the built-in paste, as by this point Kodi has probably restarted which will generate a new log file.