VideoPlayer crashes a few seconds after starting to play a video at times

Hello OSMC team,

I have an issue with the VideoPlayer which seems to sporadically crash every once in a while and I hope you can help to try figure out wjy this is happening.

This happens sometimes when I start a video, When this happens “ps aux” runs but it hang at what it’s probably the process that is hanging.

Tried restarting kodi, althought technically it’s the VideoPlayer that is causing the issue so the stuck images remains on the screen until the power to the Rpi is removed and re-applyied.

Apr 10 22:08:12 Pi-OSMC-Lon-LR kernel: Unable to handle kernel paging request at virtual address 2c52d000
Apr 10 22:08:12 Pi-OSMC-Lon-LR kernel: pgd = a75e0000
Apr 10 22:08:12 Pi-OSMC-Lon-LR kernel: [2c52d000] *pgd=05eae831, *pte=0717e79d, *ppte=00000000
Apr 10 22:08:12 Pi-OSMC-Lon-LR kernel: Internal error: Oops: 2817 [#1] PREEMPT SMP ARM
Apr 10 22:08:12 Pi-OSMC-Lon-LR kernel: Modules linked in: binfmt_misc cmac arc4 ecb bnep md4 hmac nls_utf8 cifs hci_uart btbcm bluetooth 8021q garp stp llc uinput brcmfmac brcmutil cfg80211 ir_sony_decoder ir_rc5_decoder ir_sharp_decoder ir_lirc_codec ir_nec_decoder ir_jvc_decoder ir_xmp_decoder ir_sanyo_decoder lirc_dev ir_mce_kbd_decoder rfkill r820t sg rtl2832 i2c_mux uas dvb_usb_rtl28xxu dvb_usb_v2 dvb_core rc_core evdev joydev bcm2835_gpiomem bcm2835_thermal bcm2835_wdt uio_pdrv_genirq uio snd_bcm2835 snd_pcm snd_timer snd fuse ipv6
Apr 10 22:08:12 Pi-OSMC-Lon-LR kernel: CPU: 3 PID: 16462 Comm: VideoPlayer Not tainted 4.4.27-9-osmc #1
Apr 10 22:08:12 Pi-OSMC-Lon-LR kernel: Hardware name: BCM2709
Apr 10 22:08:12 Pi-OSMC-Lon-LR kernel: task: 85fab600 ti: 85d7c000 task.ti: 85d7c000
Apr 10 22:08:12 Pi-OSMC-Lon-LR kernel: PC is at v7_dma_flush_range+0x1c/0x34
Apr 10 22:08:12 Pi-OSMC-Lon-LR kernel: LR is at vcsm_vma_cache_clean_page_range.part.7+0xbc/0x100
Apr 10 22:08:12 Pi-OSMC-Lon-LR kernel: pc : [<80029820>]    lr : [<804ab8e8>]    psr: 28000013\x0asp : 85d7de30  ip : 85d7de58  fp : 85d7de54
Apr 10 22:08:12 Pi-OSMC-Lon-LR kernel: r10: 2c52d000  r9 : 2c545fff  r8 : 2c546000
Apr 10 22:08:12 Pi-OSMC-Lon-LR kernel: r7 : a75e0b18  r6 : 2c546000  r5 : 85eae4b4  r4 : 2c52e000
Apr 10 22:08:12 Pi-OSMC-Lon-LR kernel: r3 : 0000003f  r2 : 00000040  r1 : 2c52e000  r0 : 2c52d000
Apr 10 22:08:12 Pi-OSMC-Lon-LR kernel: Flags: nzCv  IRQs on  FIQs on  Mode SVC_32  ISA ARM  Segment user
Apr 10 22:08:12 Pi-OSMC-Lon-LR kernel: Control: 10c5383d  Table: 275e006a  DAC: 00000055
Apr 10 22:08:12 Pi-OSMC-Lon-LR kernel: Process VideoPlayer (pid: 16462, stack limit = 0x85d7c210)
Apr 10 22:08:12 Pi-OSMC-Lon-LR kernel: Stack: (0x85d7de30 to 0x85d7e000)
Apr 10 22:08:12 Pi-OSMC-Lon-LR kernel: de20:                                     acf3cb80 85d7dea8 2c546000 85d7df08
Apr 10 22:08:12 Pi-OSMC-Lon-LR kernel: de40: 85d7c018 85e95380 85d7df2c 85d7de58 804adf14 804ab838 01f68f3a 00000000
Apr 10 22:08:12 Pi-OSMC-Lon-LR kernel: de60: 00000001 00000000 2dbc8cbc 00014081 00000000 9758a8c8 85fab648 00000000
Apr 10 22:08:12 Pi-OSMC-Lon-LR kernel: de80: 00000003 001c0000 2c642000 00006000 00000003 001c0000 2c687000 00006000
Apr 10 22:08:12 Pi-OSMC-Lon-LR kernel: dea0: 00000003 001c0000 2c52da00 00018600 00000000 00000000 00000000 00000000
Apr 10 22:08:12 Pi-OSMC-Lon-LR kernel: dec0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
Apr 10 22:08:12 Pi-OSMC-Lon-LR kernel: dee0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
Apr 10 22:08:12 Pi-OSMC-Lon-LR kernel: df00: 85d7df2c ad3c4301 ad3c4300 37fa9b80 ad2eec68 8080496f 00000004 00000000
Apr 10 22:08:12 Pi-OSMC-Lon-LR kernel: df20: 85d7dfa4 85d7df30 801f8654 804acd2c 85d7df54 85d7df40 80036cd8 800b0d60
Apr 10 22:08:12 Pi-OSMC-Lon-LR kernel: df40: 80b70040 80b70040 85d7df6c 85d7df58 80068d6c 80036c40 00000002 80b6d54c
Apr 10 22:08:12 Pi-OSMC-Lon-LR kernel: df60: 85d7df9c 85d7df70 8001dc64 80068cf8 00000002 00000004 00018600 00000004
Apr 10 22:08:12 Pi-OSMC-Lon-LR kernel: df80: 00018600 00006000 00000036 800170c4 85d7c000 00000000 00000000 85d7dfa8
Apr 10 22:08:12 Pi-OSMC-Lon-LR kernel: dfa0: 80016f40 801f82bc 00000004 00018600 00000004 8080496f 37fa9b80 37fa9b80
Apr 10 22:08:12 Pi-OSMC-Lon-LR kernel: dfc0: 00000004 00018600 00006000 00000036 2c52da00 37fa9c30 0019e000 00159000
Apr 10 22:08:12 Pi-OSMC-Lon-LR kernel: dfe0: 765fbabc 37fa9b74 765eafbc 75ce7106 48000030 00000004 00000000 00000000
Apr 10 22:08:12 Pi-OSMC-Lon-LR kernel: [<80029820>] (v7_dma_flush_range) from [<804ab8e8>] (vcsm_vma_cache_clean_page_range.part.7+0xbc/0x100)
Apr 10 22:08:12 Pi-OSMC-Lon-LR kernel: [<804ab8e8>] (vcsm_vma_cache_clean_page_range.part.7) from [<804adf14>] (vc_sm_ioctl+0x11f4/0x136c)
Apr 10 22:08:12 Pi-OSMC-Lon-LR kernel: [<804adf14>] (vc_sm_ioctl) from [<801f8654>] (SyS_ioctl+0x3a4/0x640)
Apr 10 22:08:12 Pi-OSMC-Lon-LR kernel: [<801f8654>] (SyS_ioctl) from [<80016f40>] (ret_fast_syscall+0x0/0x1c)
Apr 10 22:08:12 Pi-OSMC-Lon-LR kernel: Code: e3a02004 e1a02312 e2423001 e1c00003 (ee070f3e) 
Apr 10 22:08:12 Pi-OSMC-Lon-LR kernel: ---[ end trace 8d09cc45eb3022ff ]---
Apr 10 22:11:21 Pi-OSMC-Lon-LR kernel: Console: switching to colour frame buffer device 240x67

Full log included here:
removed

I only recently replaced the minisd card so I think it’s unlikely to be an issue with reading on the card.

Solution:
Soft reboot doesn’t work , plsae remove and re-apply the power.

Thanks for your help.

How do you power the device?

Your crash is an out-of-memory killer.
You didn’t have debug enabled when capturing the log, so diagnosis is limited.
I did spot:

                                              <network>
                                                <buffermode>1</buffermode>
                                                <cachemembuffersize>20</cachemembuffersize>
                                                <readbufferfactor>157286400</readbufferfactor>
                                              </network>

Looks like your cachemembuffersize and readbufferfactor are swapped…
And the names of the tags have changed on kodi 17.
http://kodi.wiki/view/HOW-TO%3AModify_the_video_cache

You also have many banned repos/add-ons installed, so you are unlikely to get help here.
Please remove and confirm if problem still occurs.

Thanks for pointing out the wrong sub network tags, I’ve swapped the values around, and removed most unsupported addon i think.

Do you have a new log after the changes?

That there’s a kernel panic, aka “oops”.

the issue didn’t occur that often to begin with but sometimes was quite regular.

Maybe was the erroneous/swapped readbufferfactor and cachemembuffersize which could have caused the out of memory issue.

I haven’t seen the issue since, so it’s looking good so far, I’ll update you and provide more logs if the issue persists, which should be obvious in the next few days.