PDA

View Full Version : XBMC crashes when playing any video


bejean
2008-06-01, 00:46
I got the latest from svn today and built it on my gentoo amd64 box. It seems to build and run fine, but on attempting to play any video, it crashes and the xbmc process dies. Here is my xbmc.log

21:34:03 T:825111264 M: 5812224 DEBUG: new file set audiostream:0
21:34:03 T:825111264 M: 5812224 DEBUG: CPlayerCoreFactor::GetPlayers(/mnt/library/downloads/[DB] Naruto Shippuuden 061[nzbmatrix.com]/[DB]_Naruto_Shippuuden_061_[877ABD8F].avi)
21:34:03 T:825111264 M: 5812224 DEBUG: request to delete file that does not exist: Z:\xbmc.edl
21:34:03 T:1175013712 M: 5804032 DEBUG: Running thread 1175013712
21:34:03 T:1175013712 M: 5804032 DEBUG: thread start, auto delete: 1
21:34:03 T:825111264 M: 5804032 NOTICE: DVDPlayer: Opening: /mnt/library/downloads/[DB] Naruto Shippuuden 061[nzbmatrix.com]/[DB]_Naruto_Shippuuden_061_[877ABD8F].avi
21:34:03 T:825111264 M: 5804032 WARNING: CDVDMessageQueue::Put MSGQ_NOT_INITIALIZED
21:34:03 T:1166621008 M: 5795840 DEBUG: Running thread 1166621008
21:34:03 T:1166621008 M: 5795840 DEBUG: thread start, auto delete: 0
21:34:03 T:1166621008 M: 5795840 NOTICE: Creating InputStream
21:34:03 T:1166621008 M: 5795840 NOTICE: Creating Demuxer
21:34:03 T:1166621008 M: 5787648 DEBUG: Open - av_find_stream_info starting
21:34:03 T:1166621008 M: 5787648 DEBUG: Open - av_find_stream_info finished
21:34:03 T:1166621008 M: 5787648 INFO: ffmpeg: Input #0, avi, from '/mnt/library/downloads/[DB] Naruto Shippuuden 061[nzbmatrix.com]/[DB]_Naruto_Shippuuden_061_[877ABD8F].avi':
21:34:03 T:1166621008 M: 5787648 INFO: ffmpeg: Duration: 00:22:55.9, start: 0.000000, bitrate: 1036 kb/s
21:34:03 T:1166621008 M: 5787648 INFO: ffmpeg: Stream #0.0: Video: h264, yuv420p, 856x480 [PAR 0:1 DAR 0:1], 23.98 tb(r)
21:34:03 T:1166621008 M: 5787648 INFO: ffmpeg: Stream #0.1: Audio: mp3, 48000 Hz, stereo, 128 kb/s
21:34:03 T:1166621008 M: 5787648 INFO: CDVDFactorySubtitle::GetSubtitles, searching subtitles
21:34:03 T:1166621008 M: 5787648 DEBUG: CacheSubtitles: START
21:34:03 T:1166621008 M: 5787648 DEBUG: CacheSubtitles: Checking for common subirs...
21:34:03 T:1166621008 M: 5787648 DEBUG: CacheSubtitles: Done (time: 1 ms)
21:34:03 T:1166621008 M: 5787648 DEBUG: CacheSubtitles: Searching for subtitles...
21:34:03 T:1166621008 M: 5787648 DEBUG: CacheSubtitles: Done (time: 1 ms)
21:34:03 T:1166621008 M: 5787648 DEBUG: CacheSubtitles: END (total time: 2 ms)
21:34:03 T:1166621008 M: 5787648 INFO: CDVDFactorySubtitle::GetSubtitles, searching subtitles done
21:34:03 T:1166621008 M: 5787648 NOTICE: Opening video stream: 0 source: 256
21:34:03 T:1166621008 M: 5787648 NOTICE: Creating video codec with codec id: 28
21:34:03 T:1166621008 M: 5787648 DEBUG: FactoryCodec - Video: FFmpeg - Opening
21:34:03 T:1166621008 M: 5787648 DEBUG: FactoryCodec - Video: FFmpeg - Opened
21:34:03 T:1166621008 M: 5787648 NOTICE: Creating video thread
21:34:03 T:1158228304 M: 5779456 DEBUG: Running thread 1158228304
21:34:03 T:1158228304 M: 5779456 DEBUG: thread start, auto delete: 0
21:34:03 T:1158228304 M: 5779456 NOTICE: running thread: video_thread
21:34:03 T:1166621008 M: 5779456 NOTICE: Opening audio stream: 1 source: 256
21:34:03 T:1166621008 M: 5779456 NOTICE: Finding audio codec for: 86017
21:34:03 T:1166621008 M: 5779456 DEBUG: FactoryCodec - Audio: passthrough - Opening
21:34:03 T:1166621008 M: 5779456 DEBUG: FactoryCodec - Audio: passthrough - Failed
21:34:03 T:1166621008 M: 5779456 DEBUG: FactoryCodec - Audio: libmad - Opening
21:34:03 T:1166621008 M: 5779456 DEBUG: SECTION:LoadDLL(Q:\system\players\dvdplayer\libmad-i486-linux.so)
21:34:03 T:1166621008 M: 5779456 DEBUG: Loading: /mnt/library/xbmc-live/xbmc/system/players/dvdplayer/libmad-i486-linux.so
21:34:03 T:1166621008 M: 5779456 ERROR: Unable to load /mnt/library/xbmc-live/xbmc/system/players/dvdplayer/libmad-i486-linux.so, reason: /mnt/library/xbmc-live/xbmc/system/players/dvdplayer/libmad-i486-linux.so: wrong ELF class: ELFCLASS32
21:34:03 T:1166621008 M: 5779456 DEBUG: FactoryCodec - Audio: libmad - Failed
21:34:03 T:1166621008 M: 5779456 DEBUG: FactoryCodec - Audio: FFmpeg - Opening
21:34:03 T:1166621008 M: 6385664 DEBUG: FactoryCodec - Audio: FFmpeg - Opened
21:34:03 T:1166621008 M: 6385664 NOTICE: Creating audio thread
21:34:03 T:1116264784 M: 6377472 DEBUG: Running thread 1116264784
21:34:03 T:1116264784 M: 6377472 DEBUG: thread start, auto delete: 0
21:34:03 T:1116264784 M: 6377472 NOTICE: running thread: CDVDPlayerAudio::Process()
21:34:03 T:1166621008 M: 6377472 DEBUG: Playback has started
21:34:03 T:1166621008 M: 6377472 INFO: Loading skin file: DialogProgress.xml
21:34:03 T:1166621008 M: 6377472 DEBUG: GL: Sharing screen surface for thread 1166621008
21:34:04 T:1166621008 M: 6377472 DEBUG: Load DialogProgress.xml: 100.00ms (11.32 ms xml load)
21:34:04 T:825111264 M: 6377472 DEBUG: ------------------- GUI_MSG_WINDOW_INIT
21:34:04 T:825111264 M: 6377472 DEBUG:
21:34:04 T:825111264 M: 6377472 DEBUG: -------------------
21:34:04 T:825111264 M: 6377472 DEBUG: Load progress_back.png: 1.3ms (bundled)
21:34:04 T:825111264 M: 6377472 DEBUG: Load progress_mid.png: 1.3ms (bundled)
21:34:04 T:825111264 M: 6377472 DEBUG: Load progress_right.png: 0.0ms (bundled)
21:34:04 T:825111264 M: 6377472 DEBUG: Load progress_left.png: 0.0ms (bundled)
21:34:04 T:825111264 M: 6377472 DEBUG: Load seekslider.png: 0.0ms (bundled)
21:34:04 T:825111264 M: 6377472 DEBUG: Alloc resources: 3.18ms (0.00 ms skin load, 0.23 ms preload)


Nothing jumps out at me as looking specifically wrong. The only thing that looked even a little suspicious was this:

21:34:03 T:1166621008 M: 5779456 ERROR: Unable to load /mnt/library/xbmc-live/xbmc/system/players/dvdplayer/libmad-i486-linux.so, reason: /mnt/library/xbmc-live/xbmc/system/players/dvdplayer/libmad-i486-linux.so: wrong ELF class: ELFCLASS32

Any pointers?

bejean
2008-06-01, 00:50
Oh right, details. System is a single-core amd64 on an Asus A8N-VM CSM (nVidia C51 chipset with onboard Geforce 6150 video)

wattazoum
2008-06-01, 01:32
The CPU is AMD64 but is the OS ubuntu 64 ?
If it's the case, how did you get XBMC running on your system ?

This may be the cause of your problem.

bejean
2008-06-01, 01:48
it's gentoo not ubuntu, and yes, everything is built for amd64.

drewjacks0n
2008-06-01, 05:18
bejean:

Unfortunately you are in no man's land. At this point all development has taken place on 32 bit ubuntu (7.04/7.10/8.04). Thats not to say it won't work in fedora, gentoo, <whatever distro you want>, just don't expect much help from this board. FWIW I bet you'd have better luck building xbmc on 32bit gentoo.

bmfrosty
2008-06-01, 08:21
@bejean

Do me a favor please? Try building from an older SVN. Like 13000, and see if the problem persists. I'm curious about the latest few ffmpeg updates.

malloc
2008-06-01, 09:55
bejean: I need to build that library for amd64. That's the fix.

drewjacks0n: not all development is on 32-bit. I work on the 64-bit port.

malloc
2008-06-01, 09:58
Note to all 64-bit users: Adding an indication that this is a 64-bit system is more likely to get my attention.

malloc
2008-06-01, 10:35
Okay, apparently latest svn has this fixed. Don't thank me, thank another dev who I won't name so that nobody harasses him to build other stuff.

bejean
2008-06-02, 00:34
That fixed the libmad error I was getting, but it still crashes when I try to play anything. I tried running it from a terminal, and noticed that it spits this out there when it crashes:

Floating point exception

bejean
2008-06-02, 00:49
Okay, it looks like this problem is related to ALSA, not xbmc. It may even be specifically with the Intel HD audio driver. I found the solution in this (http://xbmc.org/forum/archive/index.php/t-29076.html) thread from a few months ago. I emerged alsa-libs with the "debug" use flag. Not sure why this helps, but thanks for the support.