Linux Kodi random crash
#1
Hi, 

currently I'm facing an issue with my kodi that it randomly freeze and crash during media playback, mostly video. 
I'm running it on RPi 4 with 2GB RAM and OS is running on SSD drive attached via USB 3.0. 

System info:
Kodi compiled 2022-03-05 by GCC 10.2.0 for Linux ARM 32-bit version 5.10.95 (330335)
Running on BCM2835 with LibreELEC (official): 10.0.2, kernel: Linux ARM 64-bit version 5.10.95
FFmpeg version/source: 4.3.2-Kodi

Today I was able to finally replicate my issue while debug logs where enabled. 
What happen was during movie playback (it's played from network drive attached via UNC over 1GB LAN) kodi become irresponsive, and "caching" information was shown in upper left corner. Then after few minutes playback was not possible anymore. 
Attached logs  shows all what happen since system boot until freeze and stops at ffmpeg ERROR. 

https://paste.kodi.tv/juwigidodi.kodi
Reply
#2
The forum moderators have determined that banned addons (wiki) are present on your system. To receive assistance here, these banned items must be removed. If a clean log is not submitted within 3 days, then the relevant post(s) will be removed after this time.
Reply
#3
Hi, 

according to the logs "Open Wizard" is an add-on that's blacklisted therefore I've deleted it and reproduced issue I'm facing with. 

I've generated new debug kodi.log link:
https://paste.kodi.tv/uyeyufijor.kodi

Thanks
Reply
#4
Can you confirm the issue is random (i.e. the same part of the file sometimes plays correctly and sometimes hangs)?
And it occurs only with h.264 video?

It's a long shot, but could you try with over_voltage=2 in config.txt?
Reply
#5
Hi, 

thanks popcornmix for reaching me out. 

yes, it looks random too me. It also happen on h.265  
I took your long shot and overclock with over_voltage=2, then rebooted. Started same file again and it worked so to make sure if that's the case I've #over_voltage=2 and start over again. Guess what, file was playing and kodi didn't crashed  Huh
I also can observe kodi going to hand and reboot when photos are loaded, so I did enabled debug logs -> restart -> start photo album. Then kodi also hang and rebooted. 
To help debugging that I've attached

kodi.log
https://paste.kodi.tv/qugecolipo.kodi

kodi.old.log 
https://paste.kodi.tv/hebihaneja.kodi

last error:
ERROR <general>: CAESinkALSA - snd_pcm_writei(-32) Broken pipe - trying to recover


Next I've tried to replicate that and with success - system hand and eventually rebooted

kodi.log
https://paste.kodi.tv/nemafizuqu.kodi

kodi.old.log
https://paste.kodi.tv/iyiwivison.kodi

last error:
ERROR <general>: ffmpeg[0x45d7410X]: [mjpeg] unable to decode APP fields: Invalid data found when processing input

My guess it's something to do with 4K output not enough resources to process.
Reply
#6
I'd prefer to focus on the video crashes.
I'd say kodi has known issues with photos
(either running out of memory when too many photos are in a directory, or crashing on a corrupted file).

The first log had an error case the codec guy hadn't seen before:
Code:
ERROR <general>: ffmpeg[0x54c1b08X]: [h264_v4l2m2m] Unexpectedly large retry count: 256

I'd like to know if you ever see that with over_voltage=2.
If you do, do you have a file where it occurs repeatably?
Reply
#7
photo crash issue is not know to me, is there an workaround for that, like increase memory assignment?

over_voltage=2 is now applied, played failing file but no luck so far. I'll keep trying.
Reply
#8
(2022-05-24, 21:59)1kohm Wrote: photo crash issue is not know to me, is there an workaround for that, like increase memory assignment?
A google search shows many posts about crashes with photos and slideshows when there are many photos in one directory.
Disabling extract exif information in settings allows it to run with more photos before exceeding memory (but will still hit the limit eventually).
Reply

Logout Mark Read Team Forum Stats Members Help
Kodi random crash0