Rpi 3 crashes playing video

I installed the latest build from 2-2024 on my rpi 3 and shortly after playing a video (10 minutes) the video freezes and then a minute later the sad face appears. Below is what’s in the log;

Apr 10 18:12:52 osmc kernel: kthreadd invoked oom-killer: gfp_mask=0x400dc0(GFP_KERNEL_ACCOUNT|__GFP_ZERO), order=1, o>
Apr 10 18:12:52 osmc kernel: CPU: 1 PID: 2 Comm: kthreadd Tainted: G C 5.15.92-1-osmc #1
Apr 10 18:12:52 osmc kernel: Hardware name: BCM2835
Apr 10 18:12:52 osmc kernel: Backtrace:
Apr 10 18:12:52 osmc kernel: [<80be11e8>] (dump_backtrace) from [<80be1430>] (show_stack+0x20/0x24)
Apr 10 18:12:52 osmc kernel: r7:816144c0 r6:00000000 r5:80e07480 r4:60060113
Apr 10 18:12:52 osmc kernel: [<80be1410>] (show_stack) from [<80be6abc>] (dump_stack_lvl+0x70/0x94)
Apr 10 18:12:52 osmc kernel: [<80be6a4c>] (dump_stack_lvl) from [<80be6af8>] (dump_stack+0x18/0x1c)
Apr 10 18:12:52 osmc kernel: r7:816144c0 r6:81613f00 r5:8151ddf8 r4:81613f00
Apr 10 18:12:52 osmc kernel: [<80be6ae0>] (dump_stack) from [<80be4248>] (dump_header+0x64/0x328)
Apr 10 18:12:52 osmc kernel: [<80be41e4>] (dump_header) from [<803200f4>] (oom_kill_process+0x254/0x260)
Apr 10 18:12:52 osmc kernel: r10:00001000 r9:81332188 r8:80000000 r7:816144c0 r6:80e17970 r5:8151ddf8
Apr 10 18:12:52 osmc kernel: r4:81613f00
Apr 10 18:12:52 osmc kernel: [<8031fea0>] (oom_kill_process) from [<80320784>] (out_of_memory+0x120/0x504)
Apr 10 18:12:52 osmc kernel: r7:81208480 r6:81208480 r5:81613f00 r4:8151ddf8
Apr 10 18:12:52 osmc kernel: [<80320664>] (out_of_memory) from [<80387cbc>] (__alloc_pages+0xa58/0x194c)
Apr 10 18:12:52 osmc kernel: r8:81205058 r7:812057d0 r6:0000172d r5:00000000 r4:00000000
Apr 10 18:12:52 osmc kernel: [<80387264>] (__alloc_pages) from [<801246f0>] (copy_process+0x254/0x19a0)
Apr 10 18:12:52 osmc kernel: r10:00000000 r9:81540fc0 r8:ffffffff r7:00000000 r6:8151df18 r5:87323f00
Apr 10 18:12:52 osmc kernel: r4:00800700
Apr 10 18:12:52 osmc kernel: [<8012449c>] (copy_process) from [<801260ec>] (kernel_clone+0xb0/0x43c)
Apr 10 18:12:52 osmc kernel: r10:00000000 r9:8151c000 r8:00000000 r7:843da980 r6:8151df18 r5:00800700
Apr 10 18:12:52 osmc kernel: r4:00000011
Apr 10 18:12:52 osmc kernel: [<8012603c>] (kernel_clone) from [<80126600>] (kernel_thread+0x7c/0xa4)
Apr 10 18:12:52 osmc kernel: r10:00000001 r9:8151c000 r8:80154f7c r7:843da980 r6:80154f7c r5:843da980
Apr 10 18:12:52 osmc kernel: r4:00000011
Apr 10 18:12:52 osmc kernel: [<80126584>] (kernel_thread) from [<80155640>] (kthreadd+0x194/0x218)
Apr 10 18:12:52 osmc kernel: r6:8134fd1c r5:8120f050 r4:843da994
Apr 10 18:12:52 osmc kernel: [<801554ac>] (kthreadd) from [<801000d4>] (ret_from_fork+0x14/0x20)
Apr 10 18:12:52 osmc kernel: Exception stack(0x8151dfb0 to 0x8151dff8)
Apr 10 18:12:52 osmc kernel: dfa0: 00000000 00000000 00000000 00000000
Apr 10 18:12:52 osmc kernel: dfc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
Apr 10 18:12:52 osmc kernel: dfe0: 00000000 00000000 00000000 00000000 00000013 00000000
Apr 10 18:12:52 osmc kernel: r10:00000000 r9:00000000 r8:00000000 r7:00000000 r6:00000000 r5:801554ac
Apr 10 18:12:52 osmc kernel: r4:00000000 r3:00000000
Apr 10 18:12:52 osmc kernel: Mem-Info:
Apr 10 18:12:52 osmc kernel: active_anon:660 inactive_anon:176006 isolated_anon:0
active_file:152 inactive_file:616 isolated_file:32
unevictable:0 dirty:0 writeback:0
slab_reclaimable:4268 slab_unreclaimable:5788
mapped:996 shmem:1912 pagetables:869 bounce:0
kernel_misc_reclaimable:0
free:4880 free_pcp:43 free_cma:877
Apr 10 18:12:52 osmc kernel: Node 0 active_anon:2640kB inactive_anon:704024kB active_file:584kB inactive_file:2364kB u>
Apr 10 18:12:52 osmc kernel: DMA free:19520kB min:16384kB low:20480kB high:24576kB reserved_highatomic:4096KB active_a>
Apr 10 18:12:52 osmc kernel: lowmem_reserve: 0 0 0
Apr 10 18:12:52 osmc kernel: DMA: 4224kB (UMEHC) 3038kB (UMEHC) 17016kB (UMEC) 13732kB (UMEHC) 8564kB (UMEHC) 24>
Apr 10 18:12:52 osmc kernel: 2788 total pagecache pages
Apr 10 18:12:52 osmc kernel: 0 pages in swap cache
Apr 10 18:12:52 osmc kernel: Swap cache stats: add 0, delete 0, find 0/0
Apr 10 18:12:52 osmc kernel: Free swap = 0kB
Apr 10 18:12:52 osmc kernel: Total swap = 0kB
Apr 10 18:12:52 osmc kernel: 242688 pages RAM
Apr 10 18:12:52 osmc kernel: 0 pages HighMem/MovableOnly
Apr 10 18:12:52 osmc kernel: 6749 pages reserved
Apr 10 18:12:52 osmc kernel: 131072 pages cma reserved

Any ideas or suggestions would be appricated

Can we see the full logs?

I’ll reproduce it later today. Do you want just the kodi.log file or others too? Is the best way to share them is just paste the text here in a message, or can I attach the files?

To get a better understanding of the problem you are experiencing we need more information from you. The best way to get this information is for you to upload logs that demonstrate your problem. You can learn more about how to submit a useful support request here.

Depending on the used skin you have to set the settings-level to standard or higher, in summary:

  • enable debug logging at settings->system->logging

  • reboot the OSMC device twice(!)

  • reproduce the issue

  • upload the log set (all configs and logs!) either using the Log Uploader method within the My OSMC menu in the GUI or the ssh method invoking command grab-logs -A

  • publish the provided URL from the log set upload, here

Thanks for your understanding. We hope that we can help you get up and running again shortly.

OSMC skin screenshot:

So I had set the CODEC information for MPG2 and WVC1 in My OSMC->GPU & CODEC. Before you ask, yes, I have license keys for both MPG2 and WVC1. Yesterday, I moved the CODEC info from My OSMC->GPU to the config.txt file, and today I turned on debug logging and now I can’t get it to fail where before it would crash in 10 minutes or less. When I put the licenses in My OSMC I had typed them in as “0x9…” (without the quotes) and I don’t know if the “0x” confused it or not. in the config.txt file as “decode_MPG2=0x9…”. Not sure if resolved the issue but it’s no longer failing, and I didn’t have time to move it back the way it was when it failed.

Something to look at eh?

Codec keys don’t get used on new versions of OSMC and this shouldn’t be visible anymore in settings.

Interesting…well the codec key setting is still visible and set-able too.

BUT…it still crashes. My logs are at https://paste.osmc.tv/iseruwasiv

This time it got the OOM and it wasn’t even playing a movie. It was just sitting there displaying the default skin.

That comment about the keys not being used was a mistake. The hardware acceleration didn’t work initially when the switch as made to the newer video stack when you had purchased keys installed but that had changed a couple years ago with updates from the RPi Foundation. Sam had forgotten about that probably because it isn’t a subject that comes up very often. By the time that update came a lot of people had already moved to running RPi 4’s and they, along with all the other newer Pi’s don’t have this hardware decoding ability for these two codecs.

As for your crash I would turn off UPnP and see if that goes away. That is what Kodi looks to have been busy with when it crashed so that may narrow things down a bit if you can isolate it as the trigger.

Will do…thank you