HEIF image decoder crashes when first HEIF image has to be decoded

  • I just installed the new version of LibreELEC (beta 2023.01) on my Odroid C2 SBC and I noticed that the HEIF addon does not work. As soon as I enable it and I want to open a folder that contains HEIF images, LibreELEC auto-reboots. I cannot find a way to make logs or whatever, but it seems a pretty serious bug when it auto reboots with no error or information. The user accessible log functionality only shows that the system started correctly.

    If you need any more information please let me know.

  • Does the whole OS fault and reboot or (more likely) does Kodi crash and restart? - If the latter, please pastebin the latest Kodi crash log. It can be found under /storage/.kodi/temp/

  • I am sorry, my family needed the media player so I had to revert the whole install back to the previous working version. A lot of work because I could not backup the contents of the eMMC card. That is why I have waited until I was prepared to reinstall everything from scratch.

    So I tried it again, because now the final version is released. But unfortunately, the HEIF plugin still crashes.

    This is what happens. As soon as it tries to open, read or access HEIF files (because they exist in a directory that I am entering in the Pictures tab) the screen goes black, and I am back at the starting screen. When I first setup LibreELEC I chose among others the Dutch language and it was installed. But then I installed the HEIF plugin, accessed a directory with HEIF images and poof! Back at the startup screen and back in English, so nothing was even saved what I changed in the settings. I don't know what I can show in the logs mentioned, these are the last lines of kodi.old.log:

    2023-04-19 18:37:20.951 T:882 info <general>: CActiveAESink::OpenSink - initialize sink

    2023-04-19 18:37:20.951 T:882 info <general>: CAESinkALSA::Initialize - Attempting to open device "default"

    2023-04-19 18:37:20.958 T:882 info <general>: CAESinkALSA::Initialize - Opened device "default"

    2023-04-19 18:37:20.959 T:882 info <general>: CAESinkALSA::InitializeHW - Your hardware does not support AE_FMT_FLOAT, trying other formats

    2023-04-19 18:37:20.959 T:882 info <general>: CAESinkALSA::InitializeHW - Using data format AE_FMT_S24NE4

    2023-04-19 18:37:24.084 T:874 info <general>: Loading skin file: MyPics.xml, load type: KEEP_IN_MEMORY

    2023-04-19 18:37:24.400 T:990 error <general>: Read - Error( -14, read call failed with "" )

    2023-04-19 18:37:24.400 T:990 warning <general>: underflow: Error reading file - assuming eof

    2023-04-19 18:37:26.570 T:990 error <general>: Read - Error( -14, read call failed with "" )

    2023-04-19 18:37:26.570 T:990 warning <general>: underflow: Error reading file - assuming eof

    2023-04-19 18:37:27.878 T:990 error <general>: Read - Error( -14, read call failed with "" )

    2023-04-19 18:37:27.878 T:990 warning <general>: underflow: Error reading file - assuming eof

    When I am ssh-ed into LibreELEC, that connection remains active so I think you are right that the Kodi app crashes.

    The lines that I pasted above are everything that is new after what is written to the log just be starting Kodi up. And these lines I have to take out of the kodi.old.log, because it immediately creates a new log when it restarts. So watch for the kodi.log and the differences in kodi.old.log It is just those lines. I hope it is of any help, and sorry for the delay. My family want to watch videos, I can't tinker to long with this box ….

  • Hello,

    I have the same issue.

    Some background:

    • I have tried the same HEIC addon with Libreelec Matrix and it was slow to load images so I decided to go to latest and check if it was better.
    • Did backup and then downloaded to "/storage/.update" folder the correct version and rebooted.
    • All looks good except that the HEIC plugin is crashing kodi in Nexus compared to being slow in previous version Matrix.

    It looks like just Kodi restarting since it's fast. I do not see crash log in "/storage/.kodi/temp" folder. At least in Matrix I could see those kind of logs.

    The logs does not say much:

    Code
    2023-05-01 22:14:43.008 T:1361     info <general>: Starting Kodi (20.1 (20.1.0) Git:20.1-Nexus). Platform: Linux ARM 32-bit
    2023-05-01 22:14:43.008 T:1361     info <general>: Using Release Kodi x32
    2023-05-01 22:14:43.008 T:1361     info <general>: Kodi compiled 2023-03-18 by GCC 12.2.0 for Linux ARM 32-bit version 6.1.19 (393491)
    2023-05-01 22:14:43.008 T:1361     info <general>: Running on BCM2835 with LibreELEC (official): 11.0.1, kernel: Linux ARM 32-bit version 6.1.19
    2023-05-01 22:14:43.008 T:1361     info <general>: FFmpeg version/source: 4.4.1-Kodi
    2023-05-01 22:14:43.008 T:1361     info <general>: Host CPU: ARMv7 Processor rev 4 (v7l), 4 cores available
    2023-05-01 22:14:43.008 T:1361     info <general>: ARM Features: Neon enabled

    Noticed that there is an option to enable debug logging but not sure which on to choose for this one.

  • Hello chewitt,

    Didn't see new version of libreelc or kodi that could fix this issue.

    I can supply more logs as needed (need to understand what to enable to collect).

    Thank you,

    Bruno

  • Does the whole OS fault and reboot or (more likely) does Kodi crash and restart? - If the latter, please pastebin the latest Kodi crash log. It can be found under /storage/.kodi/temp/

    Hello chewitt,

    I'm having the same issue. Raspberry Pi 3 Model B+. I use kodi strickly as a photo frame by using the slideshow screensaver. As the majoirty of my photos are not .heic, I've opted to update my photo frame setup. I know the slideshow screen saver doesn't parse .heic files as released, but I was able to modify the pyton code (as directed in another thread) to build a library including the .heic files.

    I'm running Kodi (20.1 (20.1.0) Git:20.1-Nexus). Platform: Linux ARM 32-bit with the the decoder plugin added. (Version 20.1.0.5 by spiff)

    I can make Kodi crash every time by using the File Manager and browsing to a network share (Windows SMB) that contains .heic images, and then selecting one to view.

    The log you referenced (kodi.old in \storage\.kodi\temp) always has these as the last lines before kodi restarts.

    I would love to help assist in any way I can. Please advise.

    Mark

    Code
    2023-06-29 19:40:08.588 T:1152    error <general>: DoWork - Direct texture file loading failed for special://masterprofile/Thumbnails/a/ac6dbd14.jpg
    2023-06-29 19:40:09.815 T:1136     info <general>: CPythonInvoker(2, /storage/.kodi/addons/screensaver.picture.slideshow/default.py): waiting on thread 1698689664
    2023-06-29 19:40:10.082 T:1148     info <general>: CDVDVideoCodecFFmpeg::Open() Using codec: HEVC (High Efficiency Video Coding)
    2023-06-29 19:40:10.123 T:1068     info <general>: Loading skin file: Settings.xml, load type: KEEP_IN_MEMORY
    2023-06-29 19:40:11.306 T:1068     info <general>: Attempting to default to: 
    2023-06-29 19:40:11.306 T:1068     info <general>: Loading skin file: FileManager.xml, load type: KEEP_IN_MEMORY
    2023-06-29 19:40:17.747 T:1068     info <general>: Loading skin file: SlideShow.xml, load type: KEEP_IN_MEMORY
  • Not sure if others have same issue but found out why it was failing for me the HEIC plugin.

    In bottom of this page

    - https://wiki.libreelec.tv/hardware/raspberry-pi

    It mentions

    Quote

    If you need HEVC support on older Raspberry Pi 01/2/3 hardware use LibreELEC 9.2.x and do not update to LibreELEC 10.x or 11.x.

    If you have Raspberry Pi 4 or 400 hardware, use LibreELEC 10.x or newer to benefit from better HEVC and 4K HDR support.

    I have Raspberry Pi 02 and since HEIC plugin from my understanding uses HEVC, I needed to downgrade to version 9.2.8 to get the plugin to work.

    It's working fine now :)