v16 Crash when displaying pictures (folder with thousands of pictures)
#1
Hi all,

I am running KODI on OSMC. Video works fine but I have issues with pictures. Whenever I try to display pictures from folders with several hundred or thousand pictures KODI crashes. When I copy lets say about 300 pictures to the folder it is working fine. But I have a big picture library and like to use folders with several thousand pictures.

The pictures are located on a Windows 7 machine and I share the folder. This folder is directly mounted.

For mount I use the following command:
Code:
#!/bin/bash
mount -t cifs //192.168.178.20/pictures /media/mount_pics -o username=tombar,password=XXXX

Within the logfile I can see the following:

Code:
10:40:20 2406.503662 T:1956709296  NOTICE: special://profile/ is mapped to: special://masterprofile/
10:40:20 2406.503906 T:1956709296  NOTICE: -----------------------------------------------------------------------
10:40:20 2406.503906 T:1956709296  NOTICE: Starting Kodi (16.1). Platform: Linux ARM (Thumb) 32-bit
10:40:20 2406.503906 T:1956709296  NOTICE: Using Release Kodi x32 build (version for Raspberry Pi)
10:40:20 2406.503906 T:1956709296  NOTICE: Kodi compiled May  3 2016 by GCC 4.9.2 for Linux ARM (Thumb) 32-bit version 3.16.7 (200711)
10:40:20 2406.504150 T:1956709296  NOTICE: Running on Open Source Media Center 2016.05-1, kernel: Linux ARM 32-bit version 4.4.8-3-osmc
10:40:20 2406.504150 T:1956709296  NOTICE: FFmpeg statically linked, version: 2.8.6-kodi-2.8.6-Jarvis-16.0
10:40:20 2406.504150 T:1956709296  NOTICE: Host CPU: ARMv7 Processor rev 4 (v7l), 4 cores available
10:40:20 2406.504150 T:1956709296  NOTICE: ARM Features: Neon disabled

Code:
10:55:30 3316.905273 T:1535722480   DEBUG: COMXCoreComponent::AllocInputBuffers component(OMX.broadcom.image_decode) - port(320), nBufferCountMin(2), nBufferCountActual(2), nBufferSize(402672), nBufferAlignmen(16)
10:55:30 3316.911621 T:1535722480   DEBUG: COMXCoreComponent::Initialize OMX.broadcom.egl_render input port 220 output port 221 m_handle 0x43f4948
10:55:30 3316.912598 T:1535722480   DEBUG: COMXCoreComponent::UseEGLImage component(OMX.broadcom.egl_render) - port(221), nBufferCountMin(1), nBufferCountActual(1), nBufferSize(15360) nBufferAlignmen(16)
10:55:30 3316.941406 T:1535722480   DEBUG: COMXCoreComponent::Deinitialize : OMX.broadcom.image_decode handle 0x43a31f0
10:55:30 3316.942383 T:1535722480   DEBUG: COMXCoreComponent::Deinitialize : OMX.broadcom.egl_render handle 0x43f4948
10:55:30 3316.942627 T:1535722480   DEBUG: DecodeJpegToTexture: decoded special://skin/backgrounds/settings.jpg 1024x576
10:55:31 3317.062012 T:1855976432   DEBUG: PushCecKeypress - received key d8 duration 446 (rep:0 size:0)
10:55:31 3317.062256 T:1855976432   DEBUG: PushCecKeypress - ignored key d8
10:55:32 3318.060791 T:1793721328   DEBUG: script.module.osmcsetting.updates :  - blurp 367 - Settings.xml
10:55:32 3318.403320 T:1855976432   DEBUG: PushCecKeypress - received key d8 duration 0 (rep:0 size:0)
10:55:32 3318.403320 T:1855976432   DEBUG: PushCecKeypress - added key d8
10:55:32 3318.422607 T:1956709296   DEBUG: OnKey: menu (0xd8) pressed, action is PreviousMenu
10:55:32 3318.422852 T:1956709296   DEBUG: CGUIWindowManager::PreviousWindow: Deactivate
10:55:32 3318.662598 T:1956709296   DEBUG: ------ Window Deinit (Settings.xml) ------
10:55:32 3318.672607 T:1956709296   DEBUG: CGUIWindowManager::PreviousWindow: Activate new
10:55:32 3318.672607 T:1956709296   DEBUG: ------ Window Init (Home.xml) ------
10:55:32 3318.844727 T:1855976432   DEBUG: PushCecKeypress - received key d8 duration 441 (rep:0 size:0)
10:55:32 3318.844971 T:1855976432   DEBUG: PushCecKeypress - ignored key d8
10:55:34 3320.738770 T:1855976432   DEBUG: PushCecKeypress - received key a9 duration 0 (rep:0 size:0)
10:55:34 3320.738770 T:1855976432   DEBUG: PushCecKeypress - added key a9
10:55:34 3320.769775 T:1956709296   DEBUG: OnKey: 169 (0xa9) pressed, action is Left
10:55:35 3321.081787 T:1855976432   DEBUG: PushCecKeypress - received key a9 duration 343 (rep:0 size:0)
10:55:35 3321.081787 T:1855976432   DEBUG: PushCecKeypress - ignored key a9
10:55:35 3321.335449 T:1855976432   DEBUG: PushCecKeypress - received key a9 duration 0 (rep:0 size:0)
10:55:35 3321.335693 T:1855976432   DEBUG: PushCecKeypress - added key a9
10:55:35 3321.363770 T:1956709296   DEBUG: OnKey: 169 (0xa9) pressed, action is Left
10:55:35 3321.675293 T:1855976432   DEBUG: PushCecKeypress - received key a9 duration 340 (rep:0 size:0)
10:55:35 3321.675537 T:1855976432   DEBUG: PushCecKeypress - ignored key a9
10:55:35 3321.969238 T:1855976432   DEBUG: PushCecKeypress - received key a9 duration 0 (rep:0 size:0)
10:55:35 3321.969238 T:1855976432   DEBUG: PushCecKeypress - added key a9
10:55:35 3321.969971 T:1956709296   DEBUG: OnKey: 169 (0xa9) pressed, action is Left
10:55:36 3322.306396 T:1855976432   DEBUG: PushCecKeypress - received key a9 duration 338 (rep:0 size:0)
10:55:36 3322.306396 T:1855976432   DEBUG: PushCecKeypress - ignored key a9
10:55:36 3322.998535 T:1855976432   DEBUG: PushCecKeypress - received key a9 duration 0 (rep:0 size:0)
10:55:36 3322.998535 T:1855976432   DEBUG: PushCecKeypress - added key a9
10:55:36 3323.001709 T:1956709296   DEBUG: OnKey: 169 (0xa9) pressed, action is Left
10:55:37 3323.444580 T:1855976432   DEBUG: PushCecKeypress - received key a9 duration 446 (rep:0 size:0)
10:55:37 3323.444824 T:1855976432   DEBUG: PushCecKeypress - ignored key a9
10:55:37 3323.833252 T:1855976432   DEBUG: PushCecKeypress - received key a9 duration 0 (rep:0 size:0)
10:55:37 3323.833496 T:1855976432   DEBUG: PushCecKeypress - added key a9
10:55:37 3323.845947 T:1956709296   DEBUG: OnKey: 169 (0xa9) pressed, action is Left
10:55:38 3324.173584 T:1855976432   DEBUG: PushCecKeypress - received key a9 duration 340 (rep:0 size:0)
10:55:38 3324.173828 T:1855976432   DEBUG: PushCecKeypress - ignored key a9
10:55:38 3324.529785 T:1855976432   DEBUG: PushCecKeypress - received key  b duration 0 (rep:0 size:0)
10:55:38 3324.529785 T:1855976432   DEBUG: PushCecKeypress - added key  b
10:55:38 3324.537109 T:1956709296   DEBUG: OnKey: 11 (0x0b) pressed, action is Select
10:55:38 3324.537354 T:1956709296   DEBUG: Activating window ID: 10002
10:55:38 3324.780029 T:1956709296   DEBUG: ------ Window Deinit (Home.xml) ------
10:55:38 3324.789307 T:1956709296   DEBUG: ------ Window Init (MyPics.xml) ------
10:55:38 3324.789307 T:1956709296    INFO: Loading skin file: MyPics.xml, load type: KEEP_IN_MEMORY
10:55:38 3324.869873 T:1855976432   DEBUG: PushCecKeypress - received key  b duration 340 (rep:0 size:0)
10:55:38 3324.869873 T:1855976432   DEBUG: PushCecKeypress - ignored key  b
10:55:38 3324.882324 T:1956709296   DEBUG: CGUIMediaWindow::GetDirectory ()
10:55:38 3324.882324 T:1956709296   DEBUG:   ParentPath = []
10:55:38 3324.892090 T:1596978160   DEBUG: Thread BackgroundLoader start, auto delete: false
10:55:38 3324.895752 T:1596978160   DEBUG: Thread BackgroundLoader 1596978160 terminating
10:55:40 3326.062012 T:1855976432   DEBUG: PushCecKeypress - received key a7 duration 0 (rep:0 size:0)
10:55:40 3326.062256 T:1855976432   DEBUG: PushCecKeypress - added key a7
10:55:40 3326.072754 T:1956709296   DEBUG: OnKey: 167 (0xa7) pressed, action is Down
10:55:40 3326.505371 T:1855976432   DEBUG: PushCecKeypress - received key a7 duration 444 (rep:0 size:0)
10:55:40 3326.505371 T:1855976432   DEBUG: PushCecKeypress - ignored key a7
10:55:42 3328.055908 T:1956709296    INFO: CheckIdle - Closing session to http://mirrors.kodi.tv (easy=0x6f484028, multi=0x61bc4808)
10:55:45 3331.314697 T:1855976432   DEBUG: PushCecKeypress - received key a7 duration 0 (rep:0 size:0)
10:55:45 3331.314697 T:1855976432   DEBUG: PushCecKeypress - added key a7
10:55:45 3331.352783 T:1956709296   DEBUG: OnKey: 167 (0xa7) pressed, action is Down
10:55:45 3331.654053 T:1855976432   DEBUG: PushCecKeypress - received key a7 duration 339 (rep:0 size:0)
10:55:45 3331.654053 T:1855976432   DEBUG: PushCecKeypress - ignored key a7
10:55:47 3333.442627 T:1855976432   DEBUG: PushCecKeypress - received key  b duration 0 (rep:0 size:0)
10:55:47 3333.442871 T:1855976432   DEBUG: PushCecKeypress - added key  b
10:55:47 3333.460205 T:1956709296   DEBUG: OnKey: 11 (0x0b) pressed, action is Select
10:55:47 3333.462646 T:1956709296   DEBUG: CGUIMediaWindow::GetDirectory (/media/mount_pics/)
10:55:47 3333.462646 T:1956709296   DEBUG:   ParentPath = []
10:55:47 3333.776611 T:1855976432   DEBUG: PushCecKeypress - received key  b duration 334 (rep:0 size:0)
10:55:47 3333.776855 T:1855976432   DEBUG: PushCecKeypress - ignored key  b
10:55:47 3333.964600 T:1956709296   DEBUG: ------ Window Init (DialogBusy.xml) ------
10:55:50 3336.803223 T:1855976432   DEBUG: PushCecKeypress - received key a7 duration 0 (rep:0 size:0)
10:55:50 3336.803223 T:1855976432   DEBUG: PushCecKeypress - added key a7
10:55:50 3336.803467 T:1956709296   DEBUG: OnKey: 167 (0xa7) pressed, action is Down
10:55:51 3337.028320 T:1855976432   DEBUG: PushCecKeypress - received key a7 duration 225 (rep:0 size:0)
10:55:51 3337.028564 T:1855976432   DEBUG: PushCecKeypress - ignored key a7
10:55:54 3340.254395 T:1956709296   DEBUG: Saving fileitems [/media/mount_pics/]
10:55:54 3340.254883 T:1956709296   DEBUG:   -- items: 3, sort method: 0, ascending: true
10:55:54 3340.259521 T:1596978160   DEBUG: Thread BackgroundLoader start, auto delete: false
10:55:54 3340.430420 T:1956709296   DEBUG: ------ Window Deinit (DialogBusy.xml) ------
10:55:55 3341.062012 T:1596978160   DEBUG: COMXCoreComponent::Initialize OMX.broadcom.image_decode input port 320 output port 321 m_handle 0x61b45dd0
10:55:55 3341.063477 T:1596978160   DEBUG: COMXCoreComponent::Initialize OMX.broadcom.resize input port 60 output port 61 m_handle 0x61b90190
10:55:55 3341.064453 T:1596978160   DEBUG: COMXCoreComponent::AllocInputBuffers component(OMX.broadcom.image_decode) - port(320), nBufferCountMin(2), nBufferCountActual(2), nBufferSize(3253248), nBufferAlignmen(16)
10:55:55 3341.083740 T:1596978160   DEBUG: COMXCoreComponent::AllocOutputBuffers component(OMX.broadcom.resize) - port(61), nBufferCountMin(1), nBufferCountActual(1), nBufferSize(64512) nBufferAlignmen(16)
10:55:55 3341.262207 T:1855976432   DEBUG: PushCecKeypress - received key a7 duration 0 (rep:0 size:0)
10:55:55 3341.262451 T:1855976432   DEBUG: PushCecKeypress - added key a7
10:55:55 3341.295654 T:1956709296   DEBUG: OnKey: 167 (0xa7) pressed, action is Down
10:55:55 3341.339600 T:1884287984   ERROR: COMXCoreComponent::DecoderEventHandler OMX.broadcom.image_decode - OMX_ErrorStreamCorrupt, Bitstream corrupt
10:55:55 3341.340820 T:1596978160   ERROR: Previous line repeats 1 times.
10:55:55 3341.340820 T:1596978160   ERROR: COMXCoreComponent::FreeInputBuffers WaitForCommand:OMX_CommandPortDisable failed on OMX.broadcom.image_decode omx_err(0x8000100b)
10:55:55 3341.341309 T:1596978160   DEBUG: COMXCoreComponent::Deinitialize : OMX.broadcom.image_decode handle 0x61b45dd0
10:55:55 3341.342285 T:1596978160   DEBUG: COMXCoreComponent::Deinitialize : OMX.broadcom.resize handle 0x61b90190
10:55:55 3341.666992 T:1596978160   DEBUG: COMXCoreComponent::Initialize OMX.broadcom.image_decode input port 320 output port 321 m_handle 0x6f480c78
10:55:55 3341.667969 T:1596978160   DEBUG: COMXCoreComponent::Initialize OMX.broadcom.resize input port 60 output port 61 m_handle 0x61b935c8
10:55:55 3341.668701 T:1596978160   DEBUG: COMXCoreComponent::AllocInputBuffers component(OMX.broadcom.image_decode) - port(320), nBufferCountMin(2), nBufferCountActual(2), nBufferSize(3176576), nBufferAlignmen(16)
10:55:55 3341.688232 T:1596978160   DEBUG: COMXCoreComponent::AllocOutputBuffers component(OMX.broadcom.resize) - port(61), nBufferCountMin(1), nBufferCountActual(1), nBufferSize(64512) nBufferAlignmen(16)
10:55:55 3341.698486 T:1855976432   DEBUG: PushCecKeypress - received key a7 duration 436 (rep:0 size:0)
10:55:55 3341.698730 T:1855976432   DEBUG: PushCecKeypress - ignored key a7
10:55:56 3342.403320 T:1855976432   DEBUG: PushCecKeypress - received key a7 duration 0 (rep:0 size:0)
10:55:56 3342.403564 T:1855976432   DEBUG: PushCecKeypress - added key a7
10:55:56 3342.404297 T:1956709296   DEBUG: OnKey: 167 (0xa7) pressed, action is Down
10:55:56 3342.845947 T:1855976432   DEBUG: PushCecKeypress - received key a7 duration 442 (rep:0 size:0)
10:55:56 3342.846191 T:1855976432   DEBUG: PushCecKeypress - ignored key a7
10:55:56 3342.917480 T:1596978160   ERROR: COMXCoreComponent::WaitForInputDone OMX.broadcom.image_decode wait event timeout
10:55:56 3342.917969 T:1596978160   DEBUG: COMXCoreComponent::Deinitialize : OMX.broadcom.image_decode handle 0x6f480c78
10:55:56 3342.918945 T:1596978160   DEBUG: COMXCoreComponent::Deinitialize : OMX.broadcom.resize handle 0x61b935c8
10:55:57 3343.223877 T:1596978160   DEBUG: COMXCoreComponent::Initialize OMX.broadcom.image_decode input port 320 output port 321 m_handle 0x61b901e8
10:55:57 3343.225098 T:1596978160   DEBUG: COMXCoreComponent::Initialize OMX.broadcom.resize input port 60 output port 61 m_handle 0x61b9e430
10:55:57 3343.225830 T:1596978160   DEBUG: COMXCoreComponent::AllocInputBuffers component(OMX.broadcom.image_decode) - port(320), nBufferCountMin(2), nBufferCountActual(2), nBufferSize(3276560), nBufferAlignmen(16)
10:55:57 3343.262939 T:1596978160   DEBUG: COMXCoreComponent::AllocOutputBuffers component(OMX.broadcom.resize) - port(61), nBufferCountMin(1), nBufferCountActual(1), nBufferSize(64512) nBufferAlignmen(16)
10:55:57 3343.518799 T:1884287984   ERROR: COMXCoreComponent::DecoderEventHandler OMX.broadcom.image_decode - OMX_ErrorStreamCorrupt, Bitstream corrupt
10:55:57 3343.520020 T:1596978160   ERROR: Previous line repeats 1 times.
10:55:57 3343.520264 T:1596978160   ERROR: COMXCoreComponent::FreeInputBuffers WaitForCommand:OMX_CommandPortDisable failed on OMX.broadcom.image_decode omx_err(0x8000100b)
10:55:57 3343.520752 T:1596978160   DEBUG: COMXCoreComponent::Deinitialize : OMX.broadcom.image_decode handle 0x61b901e8
10:55:57 3343.521973 T:1596978160   DEBUG: COMXCoreComponent::Deinitialize : OMX.broadcom.resize handle 0x61b9e430
10:55:57 3343.668945 T:1855976432   DEBUG: PushCecKeypress - received key a6 duration 0 (rep:0 size:0)
10:55:57 3343.669189 T:1855976432   DEBUG: PushCecKeypress - added key a6
10:55:57 3343.672852 T:1956709296   DEBUG: OnKey: 166 (0xa6) pressed, action is Up
10:55:57 3343.799316 T:1596978160   DEBUG: COMXCoreComponent::Initialize OMX.broadcom.image_decode input port 320 output port 321 m_handle 0x61b9b080
10:55:57 3343.800537 T:1596978160   DEBUG: COMXCoreComponent::Initialize OMX.broadcom.resize input port 60 output port 61 m_handle 0x61b9e430
10:55:57 3343.801025 T:1596978160   DEBUG: COMXCoreComponent::AllocInputBuffers component(OMX.broadcom.image_decode) - port(320), nBufferCountMin(2), nBufferCountActual(2), nBufferSize(2996688), nBufferAlignmen(16)
10:55:57 3343.819824 T:1596978160   DEBUG: COMXCoreComponent::AllocOutputBuffers component(OMX.broadcom.resize) - port(61), nBufferCountMin(1), nBufferCountActual(1), nBufferSize(64512) nBufferAlignmen(16)
10:55:57 3344.013428 T:1855976432   DEBUG: PushCecKeypress - received key a6 duration 345 (rep:0 size:0)
10:55:57 3344.013672 T:1855976432   DEBUG: PushCecKeypress - ignored key a6
10:55:58 3344.101318 T:1884287984   ERROR: COMXCoreComponent::DecoderEventHandler OMX.broadcom.image_decode - OMX_ErrorStreamCorrupt, Bitstream corrupt
10:55:58 3344.103760 T:1596978160   ERROR: COMXCoreComponent::FreeInputBuffers WaitForCommand:OMX_CommandPortDisable failed on OMX.broadcom.image_decode omx_err(0x8000100b)
10:55:58 3344.104736 T:1596978160   DEBUG: COMXCoreComponent::Deinitialize : OMX.broadcom.image_decode handle 0x61b9b080
10:55:58 3344.106445 T:1596978160   DEBUG: COMXCoreComponent::Deinitialize : OMX.broadcom.resize handle 0x61b9e430
10:55:58 3344.108398 T:1596978160   DEBUG: cached image 'special://masterprofile/Thumbnails/6/67cbc724.png' size 270x270
10:55:58 3344.733154 T:1855976432   DEBUG: PushCecKeypress - received key  b duration 0 (rep:0 size:0)
10:55:58 3344.733398 T:1855976432   DEBUG: PushCecKeypress - added key  b
10:55:58 3344.739502 T:1956709296   DEBUG: OnKey: 11 (0x0b) pressed, action is Select
10:55:59 3345.072754 T:1855976432   DEBUG: PushCecKeypress - received key  b duration 339 (rep:0 size:0)
10:55:59 3345.072998 T:1855976432   DEBUG: PushCecKeypress - ignored key  b
10:55:59 3345.140869 T:1596978160   DEBUG: COMXCoreComponent::Initialize OMX.broadcom.image_decode input port 320 output port 321 m_handle 0x61b303f8
10:55:59 3345.142578 T:1596978160   DEBUG: COMXCoreComponent::Initialize OMX.broadcom.resize input port 60 output port 61 m_handle 0x61b22dd8
10:55:59 3345.143799 T:1596978160   DEBUG: COMXCoreComponent::AllocInputBuffers component(OMX.broadcom.image_decode) - port(320), nBufferCountMin(2), nBufferCountActual(2), nBufferSize(5352432), nBufferAlignmen(16)
10:55:59 3345.163574 T:1596978160   DEBUG: COMXCoreComponent::AllocOutputBuffers component(OMX.broadcom.resize) - port(61), nBufferCountMin(1), nBufferCountActual(1), nBufferSize(64512) nBufferAlignmen(16)
10:55:59 3345.566650 T:1884287984   ERROR: COMXCoreComponent::DecoderEventHandler OMX.broadcom.image_decode - OMX_ErrorStreamCorrupt, Bitstream corrupt
10:55:59 3345.566650 T:1596978160   ERROR: COMXCoreComponent::FreeInputBuffers WaitForCommand:OMX_CommandPortDisable failed on OMX.broadcom.image_decode omx_err(0x8000100b)
10:55:59 3345.567383 T:1596978160   DEBUG: COMXCoreComponent::Deinitialize : OMX.broadcom.image_decode handle 0x61b303f8
10:55:59 3345.568604 T:1596978160   DEBUG: COMXCoreComponent::Deinitialize : OMX.broadcom.resize handle 0x61b22dd8
10:55:59 3345.857666 T:1596978160   DEBUG: COMXCoreComponent::Initialize OMX.broadcom.image_decode input port 320 output port 321 m_handle 0x61bad980
10:55:59 3345.859131 T:1596978160   DEBUG: COMXCoreComponent::Initialize OMX.broadcom.resize input port 60 output port 61 m_handle 0x61b22dd8
10:55:59 3345.860107 T:1596978160   DEBUG: COMXCoreComponent::AllocInputBuffers component(OMX.broadcom.image_decode) - port(320), nBufferCountMin(2), nBufferCountActual(2), nBufferSize(3100768), nBufferAlignmen(16)
10:55:59 3345.873779 T:1596978160   DEBUG: COMXCoreComponent::AllocOutputBuffers component(OMX.broadcom.resize) - port(61), nBufferCountMin(1), nBufferCountActual(1), nBufferSize(64512) nBufferAlignmen(16)
10:56:01 3347.077393 T:1596978160   ERROR: COMXCoreComponent::WaitForInputDone OMX.broadcom.image_decode wait event timeout
10:56:01 3347.078125 T:1596978160   DEBUG: COMXCoreComponent::Deinitialize : OMX.broadcom.image_decode handle 0x61bad980
10:56:01 3347.079346 T:1596978160   DEBUG: COMXCoreComponent::Deinitialize : OMX.broadcom.resize handle 0x61b22dd8
10:56:01 3347.361328 T:1596978160   DEBUG: COMXCoreComponent::Initialize OMX.broadcom.image_decode input port 320 output port 321 m_handle 0x6f480c78
10:56:01 3347.362793 T:1596978160   DEBUG: COMXCoreComponent::Initialize OMX.broadcom.resize input port 60 output port 61 m_handle 0x61b22dd8
10:56:01 3347.363525 T:1596978160   DEBUG: COMXCoreComponent::AllocInputBuffers component(OMX.broadcom.image_decode) - port(320), nBufferCountMin(2), nBufferCountActual(2), nBufferSize(2862800), nBufferAlignmen(16)
10:56:01 3347.376953 T:1596978160   DEBUG: COMXCoreComponent::AllocOutputBuffers component(OMX.broadcom.resize) - port(61), nBufferCountMin(1), nBufferCountActual(1), nBufferSize(64512) nBufferAlignmen(16)
10:56:01 3347.581055 T:1884287984   ERROR: COMXCoreComponent::DecoderEventHandler OMX.broadcom.image_decode - OMX_ErrorStreamCorrupt, Bitstream corrupt
10:56:01 3347.582520 T:1596978160   ERROR: COMXCoreComponent::FreeInputBuffers WaitForCommand:OMX_CommandPortDisable failed on OMX.broadcom.image_decode omx_err(0x8000100b)
10:56:01 3347.583008 T:1596978160   DEBUG: COMXCoreComponent::Deinitialize : OMX.broadcom.image_decode handle 0x6f480c78
10:56:01 3347.584229 T:1596978160   DEBUG: COMXCoreComponent::Deinitialize : OMX.broadcom.resize handle 0x61b22dd8
10:56:01 3347.875488 T:1596978160   DEBUG: COMXCoreComponent::Initialize OMX.broadcom.image_decode input port 320 output port 321 m_handle 0x61bad980
10:56:01 3347.876953 T:1596978160   DEBUG: COMXCoreComponent::Initialize OMX.broadcom.resize input port 60 output port 61 m_handle 0x61b22dd8
10:56:01 3347.877930 T:1596978160   DEBUG: COMXCoreComponent::AllocInputBuffers component(OMX.broadcom.image_decode) - port(320), nBufferCountMin(2), nBufferCountActual(2), nBufferSize(3056896), nBufferAlignmen(16)
10:56:01 3347.891602 T:1596978160   DEBUG: COMXCoreComponent::AllocOutputBuffers component(OMX.broadcom.resize) - port(61), nBufferCountMin(1), nBufferCountActual(1), nBufferSize(64512) nBufferAlignmen(16)
10:56:03 3349.096191 T:1596978160   ERROR: COMXCoreComponent::WaitForInputDone OMX.broadcom.image_decode wait event timeout
10:56:03 3349.096924 T:1596978160   DEBUG: COMXCoreComponent::Deinitialize : OMX.broadcom.image_decode handle 0x61bad980
10:56:03 3349.098145 T:1596978160   DEBUG: COMXCoreComponent::Deinitialize : OMX.broadcom.resize handle 0x61b22dd8
10:56:03 3349.100098 T:1596978160   DEBUG: cached image 'special://masterprofile/Thumbnails/2/2ec6a0a9.png' size 270x270
10:56:03 3349.527344 T:1956709296   DEBUG: CGUIMediaWindow::GetDirectory (/media/mount_pics/1/)
10:56:03 3349.527588 T:1596978160   DEBUG: Thread BackgroundLoader 1596978160 terminating
10:56:03 3349.527588 T:1956709296   DEBUG:   ParentPath = [/media/mount_pics/]
10:56:03 3349.643555 T:1596978160   DEBUG: Thread BackgroundLoader start, auto delete: false
10:56:04 3350.239990 T:1596978160   DEBUG: Loading items: 1035, directory: /media/mount_pics/1/ sort method: 0, ascending: true

Any idea what might be wrong?
Reply
#2
See: https://github.com/xbmc/xbmc/pull/9796

While the fix isn't in Jarvis, I've added it to my Jarvis backports tree so this patch will appear in the next OSMC build.
Reply
#3
Thx popcornmix,

how exactly will the patch look like? Avoiding reading exif information of all pictures upfront? Exif should only be extracted for the picture that is currently displayed. This would also be better from an performance perspective when loading the folder.

Thanks a lot.
Tombar
Reply
#4
The patch does what it says in the comment - reduces the size of the comment strings from 64K each to 2K each.

The upfront reading of all photos exif information is a bad design decision that is a much bigger job to fix (and not code I know about).
There is a similar issue with adding every mp3 file to a playlist when playing an mp3 from the songs node which can also be slow and wasteful in memory.

But these are really feature requests rather than bug reports. The code behaves as designed. The design is just not scalable to large libraries.
Reply
#5
thx a lot. Does the feature request already exist?

Is there any way to disable loading exif information at all in any config file? I do not really need it.

Tombar
Reply
#6
(2016-05-29, 13:52)Tombar Wrote: Is there any way to disable loading exif information at all in any config file? I do not really need it.

It used to be a gui option but was removed. I have reinstated it into Milhouse nightly builds, but not in Jarvis.
Reply
#7
can I disable it by settings some values manually in Jarvis? The GUI should "just" set a flag within a config file, or?
Reply
#8
(2016-05-29, 14:57)Tombar Wrote: can I disable it by settings some values manually in Jarvis? The GUI should "just" set a flag within a config file, or?

Nope. There are code changes as well as config settings.
Reply
#9
ok, thanks a lot for the info. Then I will wait until this is fixed within one of the next versions.
Reply
#10
Experiencing exactly the same with a Pi3 running the nightlies (currently #802). Has that fix been backported at all?? Anything I can do myself to not run into this issue?? Krypton on Windows does not seem to have this issue at all..

thnx

Dennis
Reply
#11
(2016-08-05, 15:30)cdvreede Wrote: Experiencing exactly the same with a Pi3 running the nightlies (currently #802). Has that fix been backported at all?? Anything I can do myself to not run into this issue?? Krypton on Windows does not seem to have this issue at all..

How many photos are in a directory? The "fix" reduces the memory used per photo by a significant factor.
But it will still crash with enough photos on any platform.
The Windows machine will have more RAM so will take more photos before you hit the crash.
Reply
#12
177 jpegs - yes they are big and in a hierarchy of about 77k files. Would creating separate data sources for the subdirectories (I organize by year) make a difference or are all thumbnails loaded anyway??

thnx
Reply
#13
did some testing - looks like if I disable the Show EXIF and automatically generate thumbnails settings things work on the PI3. Same settings however on a PI2 (same network, same build, same source) doesn't show me any pictures at all - goes directly into a KODI restart if I try to display a picture. Same Pi worked fine, well sort off, on Jarvis when displaying pictures..

any ideas??

thnx
Reply
#14
I'm don't think 177 jpegs is enough for out of memory.
Out-of-memory will generate a message in kernel log about kodi.bin being killed - run dmesg from ssh to check.

If it is some other crash then a debug log and the crash log (newest file in .kodi/temp/kodi_crashlog_*.log) might be useful.

It is quite possibly just one jpeg (possibly corrupt) that is causing the crash.
You may be able to track it down (copy half the jpegs into a new folder and see if that crashes, if not try the other half and repeat a few times).
Reply

Logout Mark Read Team Forum Stats Members Help
Crash when displaying pictures (folder with thousands of pictures)0