xbmc / imagedecoder.raw

RAW image decoder for Kodi
GNU General Public License v2.0
9 stars 13 forks source link

Canon CR2 raw image Decoder crash/error #20

Open knopfsocke opened 5 years ago

knopfsocke commented 5 years ago

When Opening a CR2 RAW Picture (Source: Canon EOS 400D) from my external USB Drive with the RAW Image Decoder Plugin, Libreelec looks like freezing and after a while it restarts Libreelec (assumption because welcome screen appears again). No thumbnail neither any "exif" data is shown.

Tested with my Raspberry Pi 3 and the latest RAW Image Decoder Plugin from Official Repository:

Opening the same image on a Debian Desktop or Windows 10 image viewer works.

A Libreelec Forum Member also tried it with the following result:

Klojum: Your demo picture doesn't load for me in Kodi 18RC4 in Ubuntu Linux 1604. Kodi doesn't crash, but there is no thumbnail and no picture displayed. It does display on Ubuntu's own picture viewer, just lots of error entries in the log and this is spammed numerous times quite a lot...

Attached you find the image (.CR2) and the log files in the .zip: kodilog.zip

Thanks in advance

lrusak commented 5 years ago

Please avoid changing the issue template when creating an issue.

Can you check your memory usage when trying to open a RAW image?? from an ssh session just do

watch -n1 free -m

Then try opening the RAW image.

I have a feeling the memory burden of RAW files on low memory systems might be to demanding.

knopfsocke commented 5 years ago

Sorry, I was not aware of changing the template...

You are right, the memory usage is almost at 100%. After a while memory is free again, that's the moment shortly before the welcome screen appears. You can find the piped output here: freemem.txt

Previously I installed the latest stable Raspbian image on the same HW. The default image viewer is able to open the same picture. Maybe swap is enabled in Raspbian?

Are you able to open the RAW image on hardware with more memory? Maybe I should try to install kodi on another machine with more memory for further investigations.

lrusak commented 5 years ago

Sorry, I was not aware of changing the template...

Apologies, There is no issue template for this repo. I thought this was in the main xbmc repo for some reason....

You are right, the memory usage is almost at 100%. After a while memory is free again, that's the moment shortly before the welcome screen appears. You can find the piped output here: freemem.txt

Previously I installed the latest stable Raspbian image on the same HW. The default image viewer is able to open the same picture. Maybe swap is enabled in Raspbian?

default swap file size in LibreELEC is only 128MB. You can try increasing that if you like. Also check that the swap service is running with systemctl status swap.service

knopfsocke commented 5 years ago

Swap seems to be disabled by default on raspberrypi (reduce memory I/O access on flash drive?).

I edited swap.conf and created a swap file. After a reboot, swap was avl. I checked again with the "free" command line tool. It shows swap memory now, but swap is never used when opening the image. So problem still exists. Here my "free" output: freemem_with_swap.txt

AlwinEsch commented 3 years ago

Is this crash situation still present or can the issue be closed?