v18 kodi crashes when fast forwarding a recording
#1
koid crashes when fast forwarding a recording as documented in the below extracts of the kodi_crashlog:
Quote:[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Core was generated by `/usr/local/lib/kodi/kodi-x11 --standalone'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0  0x0000000000c04409 in VideoPicture::SetParams(VideoPicture const&) ()
[Current thread is 1 (Thread 0x7fc43940b700 (LWP 2601))]

...

Thread 1 (Thread 0x7fc43940b700 (LWP 2601)):
#0  0x0000000000c04409 in VideoPicture::SetParams(VideoPicture const&) ()
#1  0x0000000000c26d45 in VAAPI::COutput::Flush() ()
#2  0x0000000000c27b2f in VAAPI::COutput::StateMachine(int, Actor:Tonguerotocol*, Actor::Message*) ()
#3  0x0000000000c280ac in VAAPI::COutput:Tonguerocess() ()
#4  0x0000000000f26a65 in CThread::Action() ()
#5  0x0000000000f29f62 in CThread:ConfusedtaticThread(void*) ()
#6  0x00007fc5035266ba in start_thread (arg=0x7fc43940b700) at pthread_create.c:333
#7  0x00007fc4fab0241d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109
I can reproduce this (often but not always) by starting playback of a recording,  ff at 32x speed and then press play. Somtimes it crashes even before I press play or any other key. 

Interestingly, sometimes after a crash I completely lose audio in kodi (via hdmi), requirung reboot to make kodi work again with audio output.
Reply
#2
looks more like a VAAPI issue. can you build with debug symbols and post complete backtrace after a crash?
Reply
#3
Sure, but I'd need some guidance on how to do this. So far, I have only built from sources following the docs provided with it.
Reply
#4
run cmake for Kodi with -DCMAKE_BUILD_TYPE=Debug
Reply
#5
Ok. Thanks. Just started to build... Will feedback later today.
Reply
#6
I could trigger 3 crashes. Do you require only the complete crash logs uploaded or anything else?

Here are the three crash logs:
kodi_crashlog-20180505_143412.log
kodi_crashlog-20180505_144009.log
kodi_crashlog-20180505_144128.log
Reply
#7
could you please test https://github.com/xbmc/xbmc/pull/13857
Reply
#8
Well, looks like this small change had a huge effect. With the change applied I was no longer able to recreate the crashes.

Many thanks for your quick help.
Reply
#9
great, it is in master now
Reply
#10
Maybe I just didn't try hard enough or it is not that easy to recreate after the fix has been applied. Unfortunately, today I ran into the same issue again. The crashlog showed the same ouput as in my initial post.

Code was pulled from github on May 7.

I will once again build with debug symbols and post crashlog info as soon as I re-encounter the problem.
Reply
#11
please try with https://github.com/xbmc/xbmc/pull/13863/...2ae6abe944
Reply
#12
Thanks. Just built. Will report back when the crash recurs. This time I will test more thoroughly.

Edit: First test with the same recording that crashed kodi yesterday looks good. Smile
Reply

Logout Mark Read Team Forum Stats Members Help
kodi crashes when fast forwarding a recording0