2021-04-06, 16:10
Hi,
kodi crashes when x264 playback was kept too long in paused state.
Starting from a memory usage of ~660m (VSZ value displayed by top)
kodi adds around 1m/sec to around 1900m when it crashes.
To create the logs I used sample nr. 6 from the Kodi wiki:
https://kodi.wiki/view/Samples#Codecs.2C..._Subtitles
Using sample nr. 11 (mpeg2) the memory usage does not increase.
I saw these crashes with locally stored H.264 files and H.264 streams,
but not with other codecs.
Hitting play again to end the paused-state does not release the increased
memory usage. Each pause state adds more memory being used by kodi
so the crash can only be prevented by not using pause at all.
Please note that this crash is not caused by oom, the system has
16gb ram with more than 10gb free.
kodi debug log (shortened in-between by removing duplicate
CDRMAtomicRequest::LogAtomicRequest entries):
https://gist.github.com/bkuhls/b293532e6...c905cf6322
gdb backtrace: https://gist.github.com/bkuhls/45a5a9915...26f2494856
syslog:
kodi crashes when x264 playback was kept too long in paused state.
Starting from a memory usage of ~660m (VSZ value displayed by top)
kodi adds around 1m/sec to around 1900m when it crashes.
To create the logs I used sample nr. 6 from the Kodi wiki:
https://kodi.wiki/view/Samples#Codecs.2C..._Subtitles
Using sample nr. 11 (mpeg2) the memory usage does not increase.
I saw these crashes with locally stored H.264 files and H.264 streams,
but not with other codecs.
Hitting play again to end the paused-state does not release the increased
memory usage. Each pause state adds more memory being used by kodi
so the crash can only be prevented by not using pause at all.
Please note that this crash is not caused by oom, the system has
16gb ram with more than 10gb free.
kodi debug log (shortened in-between by removing duplicate
CDRMAtomicRequest::LogAtomicRequest entries):
https://gist.github.com/bkuhls/b293532e6...c905cf6322
gdb backtrace: https://gist.github.com/bkuhls/45a5a9915...26f2494856
syslog:
Quote:traps: kodi.bin[1485] trap int3 ip:7fa7545c57d6 sp:7fff943e3880 error:0 in i965_dri.so[7fa75447b000+1363000]