OSMC crashing when opening photos

Hey

Using a fresh installation of OSMC (Pi 2) with the May update, when I open hi res photos OSMC crashes.

The log shows:

23:20:51 1474.682983 T:1491506160   ERROR: COMXCoreComponent::WaitForOutputDone OMX.broadcom.resize wait event timeout
23:20:51 1474.683228 T:1491506160   ERROR: COMXImageDec::Decode m_omx_resize.WaitForOutputDone result(0x80001011)
23:20:51 1474.683228 T:1491506160  NOTICE: DecodeJpeg: unable to decode /home/osmc/Photos/Wedding/Hi Res/mgphoto1099.jpg 270x180
23:20:51 1474.685669 T:1883239408   ERROR: COMXCoreComponent::DecoderEventHandler OMX.broadcom.image_decode - OMX_ErrorStreamCorrupt, Bitstream corrupt
23:20:51 1474.685791 T:1491506160   ERROR: COMXCoreComponent::WaitForCommand - OMX.broadcom.image_decode failed with omx_err(0x8000100b)

Sometimes the photo shows on the screen, but things get very slow and suddenly sad face :frowning:

I can send more logs if necessary, unless anybody knows if this is a known issue.

Cheers
Jamie

Well the best might be to upload the picture and share the link (e.g. Dropbox) so that people could check if they can replicate your issue

Hey

Here’s a link:

Photo

There’s approx 1,100 wedding photos that exhibit the same issue, so I didn’t think it was one particular image causing trouble. More likely large/hi res images so surprised if I’m alone :confused:

Cheers
Jamie

Some more info - the crash also sometimes happens when opening the folder. The “scanning media info” gets to 100% and then OSMC crashes. Sometimes the folder will open and let me scroll through the images but crashes on opening one.

The thumbnails appear to be showing OK.

So I just tried to play some music and the thing has crashed again. I’ll post logs later, it was spitting out Python errors for the skin helper. I’m running Emminence 2 so that could be why.

The photos are still crashing in Confluence though.

See: [exif] Fix for out-of-memory errors with large numbers of jpegs by popcornmix · Pull Request #9796 · xbmc/xbmc · GitHub

I have backported this commit to my jarvis branch, so it should be improved in future builds.

I checked you picture on my OSMC, no problem at all.
So maybe your problem is related to the issue @popcornmix linked to, which happens if you have more than 200 pictures in the picture folder

Ah it could well be; there are ~1,100 photos in that folder. I tried another folder with far less photos and that worked OK.

Same problem here:
Rpi 1 connected via S Video
If I am openning a Jpeg picture I got the sad face and this in the log:

11:59:23 1049.579834 T:2658137072 ERROR: COMXCoreComponent::WaitForInputDone OMX.broadcom.image_decode wait event timeout
11:59:24 1050.272949 T:2918556656 ERROR: OpenConnection - could not opening a connection to the CEC adapter
11:59:24 1050.274048 T:2926945264 ERROR: CecLogMessage - could not start CEC communications
11:59:28 1054.516602 T:2953835504 ERROR: COMXCoreComponent::DecoderEventHandler OMX.broadcom.image_decode - OMX_ErrorStreamCorrupt, Bitstream corrupt
11:59:28 1054.517578 T:2710692848 ERROR: COMXCoreTunel::Deestablish - Error WaitForCommand port 60 on component OMX.broadcom.image_decode omx_err(0x8000100b)
11:59:28 1054.519043 T:2953835504 ERROR: COMXCoreComponent::DecoderEventHandler OMX.broadcom.image_decode - OMX_ErrorStreamCorrupt, Bitstream corrupt
11:59:28 1054.520142 T:2658137072 ERROR: COMXCoreTunel::Deestablish - Error WaitForCommand port 60 on component OMX.broadcom.image_decode omx_err(0x8000100b)
11:59:33 1059.420654 T:2658137072 ERROR: COMXCoreComponent::WaitForOutputDone OMX.broadcom.image_encode wait event timeout
11:59:33 1059.421143 T:2658137072 ERROR: COMXReEnc::ReEncode smb://NASEE2544/Bilder/xxxx/2016_xxxxko/P1150299.JPG m_omx_encoder.WaitForOutputDone result(0x80001011)
11:59:34 1060.305054 T:2926945264 ERROR: CecLogMessage - RegisterLogicalAddress - vc_cec_set_logical_address(E) returned invalid arg (8)
11:59:34 1060.305664 T:2926945264 ERROR: CecLogMessage - Open - vc_cec could not be initialised
11:59:34 1060.306641 T:2926945264 ERROR: CecLogMessage - could not open a connection (try 1)
11:59:35 1061.311279 T:2926945264 ERROR: CecLogMessage - RegisterLogicalAddress - vc_cec_set_logical_address(E) returned invalid arg (8)
11:59:35 1061.312012 T:2926945264 ERROR: CecLogMessage - Open - vc_cec could not be initialised
11:59:35 1061.312256 T:2926945264 ERROR: CecLogMessage - could not open a connection (try 2)
11:59:36 1062.316406 T:2926945264 ERROR: CecLogMessage - RegisterLogicalAddress - vc_cec_set_logical_address(E) returned invalid arg (8)
11:59:36 1062.316772 T:2926945264 ERROR: CecLogMessage - Open - vc_cec could not be initialised
11:59:36 1062.317139 T:2926945264 ERROR: CecLogMessage - could not open a connection (try 3)
11:59:37 1063.321167 T:2926945264 ERROR: CecLogMessage - RegisterLogicalAddress - vc_cec_set_logical_address(E) returned invalid arg (8)
11:59:37 1063.366699 T:2926945264 ERROR: CecLogMessage - Open - vc_cec could not be initialised
11:59:37 1063.367065 T:2926945264 ERROR: CecLogMessage - could not open a connection (try 4)
11:59:37 1064.019409 T:2836681712 ERROR: COMXCoreComponent::WaitForEvent OMX.broadcom.image_decode wait event 0x00000003 timeout 1000
11:59:37 1064.019775 T:2836681712 ERROR: COMXReEnc::ReEncode smb://NASEE2544/Bilder/xxxx/2016_xxxxko/P1150479.JPG WaitForEvent:OMX_EventPortSettingsChanged failed (80001011)
11:59:38 1064.279663 T:2811515888 ERROR: COMXCoreComponent::WaitForOutputDone OMX.broadcom.image_encode wait event timeout
11:59:38 1064.279907 T:2811515888 ERROR: COMXReEnc::ReEncode smb://NASEE2544/Bilder/xxxx/2016_xxxxko/P1150478.JPG m_omx_encoder.WaitForOutputDone result(0x80001011)
11:59:38 1064.333984 T:2926945264 ERROR: CecLogMessage - RegisterLogicalAddress - vc_cec_set_logical_address(E) returned invalid arg (8)
11:59:38 1064.334351 T:2926945264 ERROR: CecLogMessage - Open - vc_cec could not be initialised
11:59:38 1064.334717 T:2926945264 ERROR: CecLogMessage - could not open a connection (try 5)
11:59:39 1065.336670 T:2926945264 ERROR: CecLogMessage - RegisterLogicalAddress - vc_cec_set_logical_address(E) returned invalid arg (8)
11:59:39 1065.346313 T:2926945264 ERROR: CecLogMessage - Open - vc_cec could not be initialised
11:59:39 1065.346680 T:2926945264 ERROR: CecLogMessage - could not open a connection (try 6)
11:59:39 1065.957642 T:2953835504 ERROR: COMXCoreComponent::DecoderEventHandler OMX.broadcom.image_decode - OMX_ErrorStreamCorrupt, Bitstream corrupt
11:59:39 1065.958862 T:2710692848 ERROR: COMXCoreTunel::Deestablish - Error WaitForCommand port 60 on component OMX.broadcom.image_decode omx_err(0x8000100b)
11:59:40 1066.350342 T:2926945264 ERROR: CecLogMessage - RegisterLogicalAddress - vc_cec_set_logical_address(E) returned invalid arg (8)
11:59:40 1066.350830 T:2926945264 ERROR: CecLogMessage - Open - vc_cec could not be initialised
11:59:40 1066.351074 T:2926945264 ERROR: CecLogMessage - could not open a connection (try 7)
11:59:41 1067.354858 T:2926945264 ERROR: CecLogMessage - RegisterLogicalAddress - vc_cec_set_logical_address(E) returned invalid arg (8)
11:59:41 1067.355591 T:2926945264 ERROR: CecLogMessage - Open - vc_cec could not be initialised
11:59:41 1067.356079 T:2926945264 ERROR: CecLogMessage - could not open a connection (try 8)
11:59:42 1068.094360 T:2658137072 ERROR: COMXCoreComponent::WaitForInputDone OMX.broadcom.image_decode wait event timeout
11:59:42 1068.358887 T:2926945264 ERROR: CecLogMessage - RegisterLogicalAddress - vc_cec_set_logical_address(E) returned invalid arg (8)
11:59:42 1068.359741 T:2926945264 ERROR: CecLogMessage - Open - vc_cec could not be initialised
11:59:42 1068.360229 T:2926945264 ERROR: CecLogMessage - could not open a connection (try 9)
11:59:43 1069.362183 T:2926945264 ERROR: CecLogMessage - RegisterLogicalAddress - vc_cec_set_logical_address(E) returned invalid arg (8)
11:59:43 1069.362427 T:2926945264 ERROR: CecLogMessage - Open - vc_cec could not be initialised
11:59:43 1069.362671 T:2926945264 ERROR: CecLogMessage - could not open a connection (try 10)
11:59:44 1070.363525 T:2918556656 ERROR: OpenConnection - could not opening a connection to the CEC adapter
11:59:44 1070.364258 T:2926945264 ERROR: CecLogMessage - could not start CEC communications
11:59:44 1070.366577 T:2953835504 ERROR: COMXCoreComponent::DecoderEventHandler OMX.broadcom.image_decode - OMX_ErrorStreamCorrupt, Bitstream corrupt
11:59:44 1070.367554 T:2836681712 ERROR: COMXCoreTunel::Deestablish - Error WaitForCommand port 60 on component OMX.broadcom.image_decode omx_err(0x8000100b)
11:59:45 1071.715454 T:2953835504 ERROR: COMXCoreComponent::DecoderEventHandler OMX.broadcom.image_decode - OMX_ErrorStreamCorrupt, Bitstream corrupt
11:59:45 1071.716309 T:2710692848 ERROR: COMXCoreTunel::Deestablish - Error WaitForCommand port 60 on component OMX.broadcom.image_decode omx_err(0x8000100b)
11:59:46 1072.162842 T:2811515888 ERROR: COMXCoreComponent::WaitForInputDone OMX.broadcom.image_decode wait event timeout
11:59:48 1074.747681 T:2953835504 ERROR: COMXCoreComponent::DecoderEventHandler OMX.broadcom.image_decode - OMX_ErrorStreamCorrupt, Bitstream corrupt
11:59:48 1074.748901 T:2710692848 ERROR: COMXCoreTunel::Deestablish - Error WaitForCommand port 60 on component OMX.broadcom.image_decode omx_err(0x8000100b)

The CEC message is due to missing HDMI and should not affect it.
About 400 images are in this folder

edit:
Also happens on openelec with RPi 3. In that case it does no crashes and only shows an error message

Just a general file system related comment - having 11,000 files in the same directory is really not a good idea…

It’s actually 1,100 but at a file system level I’m also pretty sure EXT4 can handle 11,000 files.

Is this issue now fixed?

It remains unfixed on the latest release fro my Vero. All the tests I’ve have done shows that it is the image size that causes the issue. I now use a Chromecast to show pictures on the TV direct from the PC as it works.

Same issue here.

Still unfixed, and I agree it’s probably the size as the pictures take quite a bit to load as well.

1 Like

I have the same problem when displaying photos on my Pi 2 and Pi 3 running Kodi on Openelec.

Regards
Rob

You probably need to take this to the Kodi forums then!

We believe this is a Kodi issue or a specific Kodi function and as such you should look at addressing the issue there. We are unable to resolve your issue. If you do believe that this is an OSMC specific issue, please let us know.