Solved Kodi Helix crashing when seeking movies
#1
Hello, am using current git version master branch. I observed since quite some while that seeking within movies causes kodi quite often to crash to desktop. This happens for h.264 movies on local harddrive but even more often on mpeg4 clips, common on internet.

i have here the debug log with extra debugging for ffmpeg and some other components and the crash dump.

Hope this helps. If you need something else just ask.

Here is my google drive directory with the crash dump and debug log file. Couldn't upload them to pastebin or similar due to their filesize Sad
logs
Reply
#2
try without oibaf ppa.
Reply
#3
same. i installed oibafs to see if it fixes this. problem happens on stock ubuntu 13.10, stock ubuntu 14.10 and with oibaf.

this started (i think so) since about a week more or less. and it is very annoying as in around 50% times trying to seek within a movie kodi crashes to desktop.

simply playing them causes no issues.

edit2: it seems to not happen on some flv streams. so i think it is only related to severa codecs.
Reply
#4
Capture it in gdb, please.
First decide what functions / features you expect from a system. Then decide for the hardware. Don't waste your money on crap.
Reply
#5
do i need any additional libs for debugging?

edit: can't as it says no debugging symbols found. trying to rebuild it with symbols. if you have an hint how to do it the easiest way don't hesitat to tell me.
Reply
#6
here you go. it stops here:
Code:
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7fff4c0f4700 (LWP 13627)]
VAAPI::CFFmpegPostproc::Filter (this=0x7fff284dbee0, outPic=...) at VAAPI.cpp:3043
3043      if(outPic.frame->pkt_pts != AV_NOPTS_VALUE)

on a second try at first it didn't crashed when seeking, so i continued seeking forward multiple times and sometimes backward until it crashed.

here the result in gdb:
Code:
*** Error in `/usr/src/xbmc-stuff/xbmc/xbmc.bin': double free or corruption (out): 0x00007fff30f735d0 ***

Program received signal SIGABRT, Aborted.
[Switching to Thread 0x7fff6b015700 (LWP 16274)]
0x00007ffff0137d27 in __GI_raise (sig=sig@entry=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:56
56    ../nptl/sysdeps/unix/sysv/linux/raise.c: Datei oder Verzeichnis nicht gefunden.

and here the backtrace for it:
Code:
#0  0x00007ffff0137d27 in __GI_raise (sig=sig@entry=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:56
#1  0x00007ffff0139418 in __GI_abort () at abort.c:89
#2  0x00007ffff01799f4 in __libc_message (do_abort=do_abort@entry=1, fmt=fmt@entry=0x7ffff0282a40 "*** Error in `%s': %s: 0x%s ***\n")
    at ../sysdeps/posix/libc_fatal.c:175
#3  0x00007ffff0181006 in malloc_printerr (ptr=<optimized out>, str=0x7ffff0282b70 "double free or corruption (out)", action=1) at malloc.c:4996
#4  _int_free (av=<optimized out>, p=<optimized out>, have_lock=0) at malloc.c:3840
#5  0x00000000009758ff in deallocate (this=0x7fff483325e8, __p=<optimized out>) at /usr/include/c++/4.9/ext/new_allocator.h:110
#6  _M_deallocate_node (this=0x7fff483325e8, __p=<optimized out>) at /usr/include/c++/4.9/bits/stl_deque.h:544
#7  _M_pop_front_aux (this=0x7fff483325e8) at /usr/include/c++/4.9/bits/deque.tcc:528
#8  pop_front (this=0x7fff483325e8) at /usr/include/c++/4.9/bits/stl_deque.h:1438
#9  VAAPI::COutput::StateMachine (this=this@entry=0x7fff48331e18, signal=signal@entry=3, port=port@entry=0x0, msg=0x7fff30f66f40) at VAAPI.cpp:1381
#10 0x0000000000975c2c in VAAPI::COutput::Process (this=0x7fff48331e18) at VAAPI.cpp:1558
#11 0x0000000001c5a30a in CThread::Action (this=0x7fff48331e18) at Thread.cpp:221
#12 0x0000000001c5a5d3 in CThread::staticThread (data=0x7fff48331e18) at Thread.cpp:131
#13 0x00007ffff618f0a5 in start_thread (arg=0x7fff6b015700) at pthread_create.c:309
#14 0x00007ffff01fb84d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

seems to have multiple reasons.
Reply
#7
and a third one, this time i reverted oibaf ppa. it seems to be the same case as the last one (second try):
Code:
#0  0x00007ffff0160d27 in __GI_raise (sig=sig@entry=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:56
#1  0x00007ffff0162418 in __GI_abort () at abort.c:89
#2  0x00007ffff01a29f4 in __libc_message (do_abort=do_abort@entry=1, fmt=fmt@entry=0x7ffff02aba40 "*** Error in `%s': %s: 0x%s ***\n")
    at ../sysdeps/posix/libc_fatal.c:175
#3  0x00007ffff01aa006 in malloc_printerr (ptr=<optimized out>, str=0x7ffff02abb70 "double free or corruption (out)", action=1) at malloc.c:4996
#4  _int_free (av=<optimized out>, p=<optimized out>, have_lock=0) at malloc.c:3840
#5  0x00007fffdc86eb8f in ?? () from /usr/lib/x86_64-linux-gnu/libdrm_intel.so.1
#6  0x00007fffdc86fdce in ?? () from /usr/lib/x86_64-linux-gnu/libdrm_intel.so.1
#7  0x00007fffdc87000b in ?? () from /usr/lib/x86_64-linux-gnu/libdrm_intel.so.1
#8  0x00007fff5c9e53c9 in ?? () from /usr/lib/x86_64-linux-gnu/dri/i965_drv_video.so
#9  0x00007fff5c9e9361 in ?? () from /usr/lib/x86_64-linux-gnu/dri/i965_drv_video.so
#10 0x00007fff5c9ea3df in ?? () from /usr/lib/x86_64-linux-gnu/dri/i965_drv_video.so
#11 0x00007fff5c9ef992 in ?? () from /usr/lib/x86_64-linux-gnu/dri/i965_drv_video.so
#12 0x00007fff5c9cd381 in ?? () from /usr/lib/x86_64-linux-gnu/dri/i965_drv_video.so
#13 0x0000000000972613 in VAAPI::COutput::ProcessPicture (this=this@entry=0x7fff382a8a38, pic=...) at VAAPI.cpp:1817
#14 0x00000000009754ac in VAAPI::COutput::StateMachine (this=this@entry=0x7fff382a8a38, signal=signal@entry=3, port=port@entry=0x0, msg=<optimized out>)
    at VAAPI.cpp:1468
#15 0x0000000000975c2c in VAAPI::COutput::Process (this=0x7fff382a8a38) at VAAPI.cpp:1558
#16 0x0000000001c5a30a in CThread::Action (this=0x7fff382a8a38) at Thread.cpp:221
---Type <return> to continue, or q <return> to quit---
#17 0x0000000001c5a5d3 in CThread::staticThread (data=0x7fff382a8a38) at Thread.cpp:131
#18 0x00007ffff618f0a5 in start_thread (arg=0x7fff4c0fd700) at pthread_create.c:309
#19 0x00007ffff022484d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111
Reply
#8
which libva1 and i965-va-driver do you have?

can you try the trusty one from https://launchpad.net/~wsnipex/+archive/ubuntu/vaapi
you'll probably have to rebuilt them for utopic
Reply
#9
i don't understand your question. What exactly do you mean by "which"? version?

ok, i installed your ppa, chenged it from utpoic to trusty so it can upgrade to your libs and it crashed as usually again:
Code:
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7fff54f1c700 (LWP 4569)]
0x00000000009757c6 in VAAPI::COutput::StateMachine (this=this@entry=0x7fff3c27ed18, signal=signal@entry=3, port=port@entry=0x0, msg=0x7fff313dcd80)
    at VAAPI.cpp:1380
1380                m_currentPicture = m_bufferPool.decodedPics.front();
(gdb) backtrace
#0  0x00000000009757c6 in VAAPI::COutput::StateMachine (this=this@entry=0x7fff3c27ed18, signal=signal@entry=3, port=port@entry=0x0, msg=0x7fff313dcd80)
    at VAAPI.cpp:1380
#1  0x0000000000975c2c in VAAPI::COutput::Process (this=0x7fff3c27ed18) at VAAPI.cpp:1558
#2  0x0000000001c5a30a in CThread::Action (this=0x7fff3c27ed18) at Thread.cpp:221
#3  0x0000000001c5a5d3 in CThread::staticThread (data=0x7fff3c27ed18) at Thread.cpp:131
#4  0x00007ffff618f0a5 in start_thread (arg=0x7fff54f1c700) at pthread_create.c:309
#5  0x00007ffff022484d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111
Reply
#10
Code:
thread apply all bt
we need and always the corresponding xbmc.log in debug form
First decide what functions / features you expect from a system. Then decide for the hardware. Don't waste your money on crap.
Reply
#11
i already attached that to the first post.

but i redo a gdb and attach the new log file during that run also here.

here link to google drive directory containing the gdb output you desired + the full debug log from kodi itself:
https://drive.google.com/folderview?id=0...sp=sharing
Reply
#12
please try my git master branch, it's always a couple of patches ahead of mainline. for example I have not merged this one which may be the cause of this segfaults: https://github.com/FernetMenta/xbmc/comm...7c6a9a5a9d
Reply
#13
is this the url to clone?
https://github.com/FernetMenta/xbmc.git
Reply
#14
Yes - master branch.
First decide what functions / features you expect from a system. Then decide for the hardware. Don't waste your money on crap.
Reply
#15
ok. i am currently cloning. will build and test and report later back.
Reply

Logout Mark Read Team Forum Stats Members Help
Kodi Helix crashing when seeking movies1