Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[fixed upstream] xbmc crashing when playing a video
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
Saundersx
Apprentice
Apprentice


Joined: 11 Apr 2005
Posts: 290

PostPosted: Wed Jan 20, 2010 2:10 am    Post subject: [fixed upstream] xbmc crashing when playing a video Reply with quote

xbmc seems to be crashing for me for the last month or two. I keep rolling back using

Code:
ESVN_REVISION=25779 emerge -av xbmc


as this version works for me. I got fed up with it today and decided to look into it. Starting it and using "gdb --pid=`pidof xbmc.bin`" dumped these

Code:
(gdb) c                                                                                                 
Continuing.                                                                                             
[New Thread 0x7f8b02685910 (LWP 27245)]                                                                 
[New Thread 0x7f8b010e3910 (LWP 27246)]                                                                 
[New Thread 0x7f8afbfff910 (LWP 27247)]                                                                 
[New Thread 0x7f8afb7fe910 (LWP 27248)]                                                                 
[New Thread 0x7f8afadf3910 (LWP 27249)]                                                                 
[New Thread 0x7f8afa5f2910 (LWP 27250)]                                                                 
[New Thread 0x7f8af9df1910 (LWP 27251)]                                                                 
[New Thread 0x7f8af93eb910 (LWP 27252)]                                                                 
[Thread 0x7f8b02685910 (LWP 27245) exited]                                                               
[Thread 0x7f8af93eb910 (LWP 27252) exited]                                                               
[Thread 0x7f8af9df1910 (LWP 27251) exited]
[Thread 0x7f8afa5f2910 (LWP 27250) exited]
[Thread 0x7f8afb7fe910 (LWP 27248) exited]
[Thread 0x7f8afadf3910 (LWP 27249) exited]
[Thread 0x7f8afbfff910 (LWP 27247) exited]
[Thread 0x7f8b010e3910 (LWP 27246) exited]
[New Thread 0x7f8b018e4910 (LWP 27253)]
[New Thread 0x7f8b010e3910 (LWP 27254)]
[New Thread 0x7f8afadf3910 (LWP 27255)]
[Thread 0x7f8b018e4910 (LWP 27253) exited]
[New Thread 0x7f8afb7fe910 (LWP 27256)]
[New Thread 0x7f8b0268a910 (LWP 27257)]
[New Thread 0x7f8afbfff910 (LWP 27258)]
[New Thread 0x7f8afa5f2910 (LWP 27259)]
[New Thread 0x7f8af9df1910 (LWP 27260)]
[New Thread 0x7f8af95f0910 (LWP 27261)]
[New Thread 0x7f8af7fbb910 (LWP 27262)]

Program received signal SIGBUS, Bus error.
[Switching to Thread 0x7f8b0268a910 (LWP 27257)]
0x0000000000a706be in CDVDDemuxFFmpeg::GetChapter() ()
(gdb)


Code:
(gdb) c
Continuing.
[Thread 0x7f43134e3910 (LWP 27430) exited]
[New Thread 0x7f4312742910 (LWP 27455)]
[Thread 0x7f4312742910 (LWP 27455) exited]
[New Thread 0x7f4312742910 (LWP 27456)]
[Thread 0x7f4312742910 (LWP 27456) exited]
[New Thread 0x7f430b7fe910 (LWP 27458)]
[New Thread 0x7f430a9e7910 (LWP 27459)]
[New Thread 0x7f430a1e6910 (LWP 27460)]
[New Thread 0x7f43099e5910 (LWP 27461)]
[New Thread 0x7f43091e4910 (LWP 27462)]
[New Thread 0x7f43089e3910 (LWP 27463)]
[New Thread 0x7f4303fff910 (LWP 27464)]
[Thread 0x7f430b7fe910 (LWP 27458) exited]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7f430a9e7910 (LWP 27459)]
0x0000000000a71d7c in CDVDDemuxFFmpeg::Read() ()
(gdb)


then I unmasked ffmpeg and x264 to get the newest versions but apparently that fixed nothing

Code:
(gdb) c
Continuing.
[New Thread 0x7f1652bf5910 (LWP 18296)]
[Thread 0x7f1652bf5910 (LWP 18296) exited]
[New Thread 0x7f1652bf5910 (LWP 18297)]
[Thread 0x7f1652bf5910 (LWP 18297) exited]
[New Thread 0x7f1652bf5910 (LWP 18298)]
[Thread 0x7f1652bf5910 (LWP 18298) exited]
[New Thread 0x7f164bfff910 (LWP 18303)]
[New Thread 0x7f164b7fe910 (LWP 18304)]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7f164b7fe910 (LWP 18304)]
0x0000000000a72a6a in CDVDDemuxFFmpeg::Open(CDVDInputStream*) ()
(gdb)


the xbmc crashlog is full of poop but here is the part it crashes

Code:

############## XBMC CRASH LOG ###############     

################ SYSTEM INFO ################
 Date: Tue Jan 19 21:49:27 AST 2010         
 XBMC Options:                               
 Arch: x86_64                               
 Kernel: Linux 2.6.31-zen9 #1 ZEN SMP PREEMPT Wed Dec 2 04:16:31 AST 2009
 Release: lsb_release not available                                     
############## END SYSTEM INFO ##############                           

############### STACK TRACE #################
=====>  Core file: /usr/share/xbmc/scripts/core
        =========================================
[New Thread 18272]                               
[New Thread 18264]                               
[New Thread 18303]                               
[New Thread 18273]                               
Core was generated by `/usr/share/xbmc/xbmc.bin'.
Program terminated with signal 11, Segmentation fault.
#0  0x0000000000a72a6a in CDVDDemuxFFmpeg::Open(CDVDInputStream*) ()

Thread 5 (Thread 18273):
#0  0x00007f166524150d in pthread_cond_timedwait@@GLIBC_2.3.2 ()
   from /lib/libpthread.so.0                                   
#1  0x00007f166022b494 in SDL_CondWaitTimeout () from /usr/lib/libSDL-1.2.so.0
#2  0x00000000005b97c2 in ?? ()                                               
#3  0x00000000005b9924 in WaitForSingleObject(CXHandle*, unsigned int) ()     
#4  0x00000000005d677f in CAlarmClock::Process() ()                           
#5  0x000000000063a7bf in CThread::staticThread(void*) ()                     
#6  0x00007f166523d2f7 in start_thread () from /lib/libpthread.so.0           
#7  0x00007f165fa3c38d in clone () from /lib/libc.so.6                       
#8  0x0000000000000000 in ?? ()                                               

Thread 4 (Thread 18303):
#0  0x00007f1665241289 in pthread_cond_wait@@GLIBC_2.3.2 ()
   from /lib/libpthread.so.0                               
#1  0x00007f166022b3ce in SDL_CondWait () from /usr/lib/libSDL-1.2.so.0
#2  0x00000000005b97d5 in ?? ()                                       
#3  0x00000000005b9924 in WaitForSingleObject(CXHandle*, unsigned int) ()
#4  0x000000000088d137 in CApplicationMessenger::SendMessage(ThreadMessage&, bool) ()
#5  0x000000000088f387 in CApplicationMessenger::WindowManagerProcess(bool) ()       
#6  0x00000000009f4ff2 in CGUIWindowManager::Process(bool) ()                       
#7  0x00000000008514ad in CGUIDialogProgress::StartModal() ()                       
#8  0x0000000000a52317 in CDlgCache::OpenDialog() ()                                 
#9  0x0000000000a52417 in CDlgCache::Process() ()                                   
#10 0x000000000063a7bf in CThread::staticThread(void*) ()                           
#11 0x00007f166523d2f7 in start_thread () from /lib/libpthread.so.0                 
#12 0x00007f165fa3c38d in clone () from /lib/libc.so.6                               
#13 0x0000000000000000 in ?? ()                                                     

Thread 3 (Thread 18264):
#0  0x00007f1665241289 in pthread_cond_wait@@GLIBC_2.3.2 ()
   from /lib/libpthread.so.0                               
#1  0x00007f166022b3ce in SDL_CondWait () from /usr/lib/libSDL-1.2.so.0
#2  0x00000000005b97d5 in ?? ()                                       
#3  0x00000000005b9924 in WaitForSingleObject(CXHandle*, unsigned int) ()
#4  0x000000000063a3bf in CThread::WaitForSingleObject(CXHandle*, unsigned int)
    ()                                                                         
#5  0x0000000000923f94 in CDVDPlayer::OpenFile(CFileItem const&, CPlayerOptions const&) ()
#6  0x000000000067ca3d in CApplication::PlayFile(CFileItem const&, bool) ()               
#7  0x00000000007465bc in PLAYLIST::CPlayListPlayer::Play(int, bool, bool) ()             
#8  0x000000000071394f in CGUIWindowVideoBase::PlayMovie(CFileItem const*) ()             
#9  0x00000000007140a8 in CGUIWindowVideoBase::OnPlayMedia(int) ()                       
#10 0x000000000071ae18 in CGUIWindowVideoFiles::OnPlayMedia(int) ()                       
#11 0x0000000000862127 in CGUIMediaWindow::OnClick(int) ()                               
#12 0x00000000007130ce in CGUIWindowVideoBase::OnResumeItem(int) ()                       
#13 0x000000000071315a in CGUIWindowVideoBase::OnClick(int) ()                           
#14 0x00000000008659e5 in CGUIMediaWindow::OnMessage(CGUIMessage&) ()                     
#15 0x0000000000716780 in CGUIWindowVideoBase::OnMessage(CGUIMessage&) ()                 
#16 0x000000000071c1b8 in CGUIWindowVideoFiles::OnMessage(CGUIMessage&) ()               
#17 0x0000000000986981 in CGUIBaseContainer::OnClick(int) ()                             
#18 0x00000000009eed2c in CGUIWindow::OnAction(CAction const&) ()                         
#19 0x00000000008625f5 in CGUIMediaWindow::OnAction(CAction const&) ()                   
#20 0x00000000007197be in CGUIWindowVideoBase::OnAction(CAction const&) ()               
#21 0x000000000071af3c in CGUIWindowVideoFiles::OnAction(CAction const&) ()               
#22 0x00000000009f5309 in CGUIWindowManager::OnAction(CAction const&) ()                 
#23 0x000000000067e19f in CApplication::OnAction(CAction&) ()                             
#24 0x0000000000680ef0 in CApplication::OnKey(CKey&) ()                                   
#25 0x00000000006811da in CApplication::ProcessKeyboard() ()                             
#26 0x00000000006812cf in CApplication::OnEvent(XBMC_Event&) ()                           
#27 0x00000000008f41ac in CWinEventsSDL::MessagePump() ()                                 
#28 0x0000000000682054 in CApplication::FrameMove() ()                                   
#29 0x00000000008a5f1e in CXBApplicationEx::Run() ()                                     
#30 0x00000000008a6512 in main ()                                                         

Thread 2 (Thread 18272):
#0  0x00007f165f9ace81 in vfprintf () from /lib/libc.so.6
#1  0x00007f165fa4fae9 in __vsnprintf_chk () from /lib/libc.so.6
#2  0x00007f165fa4fa2b in __snprintf_chk () from /lib/libc.so.6
#3  0x00007f16637cc321 in cdio_get_default_device_linux ()     
   from /usr/lib/libcdio.so.12                                 
#4  0x00007f16637ca516 in cdio_open_am () from /usr/lib/libcdio.so.12
#5  0x0000000000ab51d1 in MEDIA_DETECT::CLibcdio::GetDeviceFileName() ()
#6  0x00000000005b5b37 in CreateFile(char const*, unsigned int, unsigned int, _SECURITY_ATTRIBUTES*, unsigned int, unsigned int, CXHandle*) ()                                                                   
#7  0x0000000000adf7e5 in XFILE::CFileHD::Open(CURL const&) ()                                           
#8  0x0000000000ad34a3 in XFILE::CFile::Open(CStdStr<char> const&, unsigned int) ()                     
#9  0x0000000000ae7223 in XFILE::CFileSpecialProtocol::Open(CURL const&) ()                             
#10 0x0000000000ad34a3 in XFILE::CFile::Open(CStdStr<char> const&, unsigned int) ()                     
#11 0x0000000000a3a1f6 in TiXmlDocument::LoadFile(char const*, TiXmlEncoding)                           
    ()                                                                                                   
#12 0x0000000000624ab7 in CScraperParser::LoadFromXML() ()                                               
#13 0x00000000007f8ae1 in CVideoDatabase::GetScraperForPath(CStdStr<char> const&, SScraperInfo&, VIDEO::SScanSettings&, int&) ()                                                                                 
#14 0x000000000073d102 in VIDEO::CVideoInfoScanner::DoScan(CStdStr<char> const&, VIDEO::SScanSettings) ()
#15 0x000000000073e41b in VIDEO::CVideoInfoScanner::Process() ()                                         
#16 0x000000000063a7bf in CThread::staticThread(void*) ()                                               
#17 0x00007f166523d2f7 in start_thread () from /lib/libpthread.so.0                                     
#18 0x00007f165fa3c38d in clone () from /lib/libc.so.6                                                   
#19 0x0000000000000000 in ?? ()                                                                         

Thread 1 (Thread 18304):
#0  0x0000000000a72a6a in CDVDDemuxFFmpeg::Open(CDVDInputStream*) ()
#1  0x0000000000a74b9c in CDVDFactoryDemuxer::CreateDemuxer(CDVDInputStream*)
    ()                                                                       
#2  0x0000000000928050 in CDVDPlayer::OpenDemuxStream() ()                   
#3  0x000000000092906f in CDVDPlayer::Process() ()                           
#4  0x000000000063a7bf in CThread::staticThread(void*) ()                   
#5  0x00007f166523d2f7 in start_thread () from /lib/libpthread.so.0         
#6  0x00007f165fa3c38d in clone () from /lib/libc.so.6                       
#7  0x0000000000000000 in ?? ()                                             
############# END STACK TRACE ###############                               

################# LOG FILE ##################
---------------------------------------> tons of scraper/scanning content cut out
21:48:51 T:139733732682000 M:1571315712   DEBUG: Open - av_find_stream_info starting
21:48:51 T:139733732682000 M:1571962880   DEBUG: ffmpeg[4B7FE910]: [NULL] Invalid and inefficient vfw-avi packed B frames detected
21:48:51 T:139733732682000 M:1571454976   DEBUG: Open - av_find_stream_info finished
21:48:51 T:139733732682000 M:1571454976    INFO: ffmpeg[4B7FE910]: Input #0, avi, from '/myth/mythtv/video/TV/AmericanDad/1x05 - Roger Codger.avi':
21:48:51 T:139733732682000 M:1571454976    INFO: ffmpeg[4B7FE910]:   Duration: 00:21:11.01, start: 0.000000, bitrate: 1154 kb/s
21:48:51 T:139733732682000 M:1571454976    INFO: ffmpeg[4B7FE910]:     Stream #0.0: Video: mpeg4, yuv420p, 512x384 [PAR 1:1 DAR 4:3], 23.98 tbr, 23.98 tbn, 23.98 tbc
21:48:51 T:139733732682000 M:1571454976    INFO: ffmpeg[4B7FE910]:     Stream #0.1: Audio: mp3, 48000 Hz, 2 channels, s16, 128 kb/s
------------------------------------------> iirc it crashed right here then I 'c'ontinued it from gdb
21:49:26 T:139733826332944 M:1571561472   DEBUG: Thread 139733826332944 terminating (autodelete)
21:49:26 T:139733834725648 M:1571561472   DEBUG: Thread 139733834725648 terminating (autodelete)



anyone else with this issue? I think it's pretty clear there is a problem with ffmpeg. Heres my version

Code:
[ebuild   R   ] media-video/ffmpeg-0.5_p20601-r1  USE="3dnow 3dnowext X alsa encode hardcoded-tables ieee1394 ipv6 jpeg2k mmx mmxext mp3 network sdl theora threads v4l v4l2 vdpau vorbis x264 xvid zlib (-altivec) -bindist -cpudetection -custom-cflags -debug -dirac -doc -faac -faad -gsm -jack -opencore-amr -oss -pic -schroedinger -speex -ssse3 -test" VIDEO_CARDS="nvidia" 0 kB


Last edited by Saundersx on Fri Feb 12, 2010 7:43 am; edited 1 time in total
Back to top
View user's profile Send private message
BitJam
Advocate
Advocate


Joined: 12 Aug 2003
Posts: 2508
Location: Silver City, NM

PostPosted: Fri Jan 29, 2010 10:07 pm    Post subject: Reply with quote

I've got this same problem. I'm going to try your roll-back workaround. Thanks.

I haven't been able to get recent versions of xbmc to even compile:
Code:
/usr/include/libavutil/crc.h:41: error: too few arguments to function 'uint32_t av_crc(const AVCRC*, uint32_t, const uint8_t*, size_t)'

that header file is from the ffmeg-0.5_p20373 package.

edit: Rolling back did indeed fix the crashing problem. Thanks. I have no clue on how to move forward though.
Back to top
View user's profile Send private message
Saundersx
Apprentice
Apprentice


Joined: 11 Apr 2005
Posts: 290

PostPosted: Tue Feb 02, 2010 9:43 pm    Post subject: Reply with quote

I got it compiling and plays everything (so far), crashes on the apple movie trailer video plugin but so far thats the only problem.

Code:
hedgehog /usr/local/portage/media-tv/xbmc $ colordiff /usr/local/portage/media-tv/xbmc/xbmc-9999.ebuild /usr/portage/media-tv/xbmc/xbmc-9999.ebuild
159,161c159,160
<               --enable-external-libass \
<               --disable-avahi \
<               --enable-optimizations \
---
>               --disable-optimizations \
>               --enable-external-libraries \


the "--disable-avahi" I prefer and "--enable-external-libass" is necessary for compiling . And I really think stuff like "--enable-optimizations" and disabling all external/enabling certain external stuff should be options on the ebuild.
Back to top
View user's profile Send private message
Saundersx
Apprentice
Apprentice


Joined: 11 Apr 2005
Posts: 290

PostPosted: Fri Feb 12, 2010 7:43 am    Post subject: Reply with quote

just a heads up to anyone else having this problem, this has been fixed upstream.

http://trac.xbmc.org/ticket/8681
Back to top
View user's profile Send private message
gryzor
n00b
n00b


Joined: 24 Jul 2005
Posts: 28

PostPosted: Sun Feb 14, 2010 11:11 am    Post subject: Reply with quote

notice how they write "AFAIK external ffmpeg is broken anyway, dont expect it to run stable." in that bug. Not hand-editing the xbmc-9999.ebuild and removing "--enable-external-libraries" will make it run like poop. Throw in ./bootstrap just above it to get a perfect compile every time.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum