XBMC crashes when I start to play video [Ubuntu 8.10, XBMC PRE-9.04 R19085)
#1
Sad 
XBMC now crashes whenever I try to play a matroska (mkv) videofile.

The problem started after I installed the nvidia-180-libvdpau library on my non-nvidia system to get xbmc running again. Other than that I dont know.

(btw. Boxee works fine, but I prefer XBMC)

Hardware:
- GIGABYTE GA-EG45M-DS2H (motherboard)
- 3Ghz INTEL Core 2 Duo E8400
- 4GB RAM

HTPC is hooked up to a 42" Toshiba full-hd LCD TV trough HDMI. Resolution is fine (full HD). Sound working trough sp/dif.

Distro: Ubuntu 8.10, updated as of 2009-04-02
Architecture: i686
Install Method: PPA intrepid source
SVN Rev.: XBMC PRE-9.04 R19085

Debug Log:
http://pastebin.com/m5dc87a2e

Backtrace:
It crashes out to the desktop, so I tried this, but I cant seem to get a core dump. Cant find the file.

Crashlog from terminal:
Code:
X Error of failed request:  BadDrawable (invalid Pixmap or Window parameter)
  Major opcode of failed request:  128 (XFree86-DRI)
  Minor opcode of failed request:  7 ()
  Resource id in failed request:  0x4600477
  Serial number of failed request:  9131
  Current serial number in output stream:  9131
Locking assertion failure.  Backtrace:
#0 /usr/lib/libxcb-xlib.so.0 [0xb6d287c7]
#1 /usr/lib/libxcb-xlib.so.0(xcb_xlib_lock+0x2e) [0xb6d2896e]
#2 /usr/lib/libX11.so.6 [0xb72f1619]
#3 /usr/lib/libGL.so.1(XF86DRIGetDrawableInfo+0x42) [0xb765bd92]
#4 /usr/lib/libGL.so.1 [0xb765b755]
#5 /usr/lib/dri/i965_dri.so(__driUtilUpdateDrawableInfo+0xc1) [0xb5f7a921]
#6 /usr/lib/dri/i965_dri.so [0xb5f7b427]
#7 /usr/lib/libGL.so.1 [0xb765ac5c]
#8 /usr/lib/libGL.so.1(glXMakeCurrentReadSGI+0xdc) [0xb7638e6c]
#9 /usr/lib/libGL.so.1(glXMakeCurrent+0x2b) [0xb763914b]
#10 /usr/local/share/xbmc/xbmc.bin(_ZN7Surface8CSurface11MakeCurrentEv+0x2c) [0x82b799c]
#11 /usr/local/share/xbmc/xbmc.bin(_ZN15CGraphicContext15ValidateSurfaceEPN7Surface8CSurfaceE+0x202) [0x820bc52]
#12 /usr/local/share/xbmc/xbmc.bin(_ZN15CGraphicContext10BeginPaintEPN7Surface8CSurfaceEb+0x2c) [0x820bcdc]
#13 /usr/local/share/xbmc/xbmc.bin(_ZN10CGLTextureD1Ev+0x26) [0x82a9cf6]
#14 /usr/local/share/xbmc/xbmc.bin(_ZN8CTexture4FreeEv+0x47) [0x82aa3e7]
#15 /usr/local/share/xbmc/xbmc.bin(_ZN11CTextureMapD0Ev+0x23) [0x82ab203]
#16 /usr/local/share/xbmc/xbmc.bin(_ZN18CGUITextureManager7CleanupEv+0x5d) [0x82aa9bd]
#17 /usr/local/share/xbmc/xbmc.bin(_ZN18CGUITextureManagerD1Ev+0x1a) [0x82ad69a]
#18 /lib/tls/i686/cmov/libc.so.6(exit+0x89) [0xb73cdd89]
#19 /usr/lib/libX11.so.6 [0xb72e9d4e]
X Error of failed request:  BadDrawable (invalid Pixmap or Window parameter)
  Major opcode of failed request:  128 (XFree86-DRI)
  Minor opcode of failed request:  9 ()
  Resource id in failed request:  0x4600002
  Serial number of failed request:  9132
  Current serial number in output stream:  9132

Mediainfo:

Works:
Code:
General
Complete name                    : dummyfile.avi
Format                           : AVI
Format/Info                      : Audio Video Interleave
File size                        : 175 MiB
Duration                         : 21mn 59s
Overall bit rate                 : 1 110 Kbps
Writing application              : Nandub v1.0rc2
Writing library                  : Nandub build 1853/release

Video
Format                           : MPEG-4 Visual
Format profile                   : Streaming Video@L1
Format settings, BVOP            : Yes
Format settings, QPel            : No
Format settings, GMC             : No warppoints
Format settings, Matrix          : Default (H.263)
Muxing mode                      : Packed bitstream
Codec ID                         : XVID
Codec ID/Hint                    : XviD
Duration                         : 21mn 59s
Bit rate                         : 964 Kbps
Width                            : 512 pixels
Height                           : 384 pixels
Display aspect ratio             : 4/3
Frame rate                       : 29.970 fps
Resolution                       : 24 bits
Colorimetry                      : 4:2:0
Scan type                        : Progressive
Bits/(Pixel*Frame)               : 0.164
Stream size                      : 152 MiB (87%)
Writing library                  : XviD 1.1.2 (UTC 2006-11-01)

Audio
Format                           : MPEG Audio
Format version                   : Version 1
Format profile                   : Layer 3
Codec ID                         : 55
Codec ID/Hint                    : MP3
Duration                         : 21mn 59s
Bit rate mode                    : Variable
Bit rate                         : 132 Kbps
Nominal bit rate                 : 128 Kbps
Channel(s)                       : 2 channels
Sampling rate                    : 48.0 KHz
Resolution                       : 16 bits
Stream size                      : 20.8 MiB (12%)
Alignment                        : Aligned on interleaves
Interleave, duration             : 24 ms (0.72 video frame)
Interleave, preload duration     : 439 ms
Writing library                  : LAME3.90.
Encoding settings                : ABR

Does not work, and crashes XBMC:
Code:
General
Complete name                    : dummyfile.mkv
Format                           : Matroska
File size                        : 4.37 GiB
Duration                         : 1h 44mn
Overall bit rate                 : 5 997 Kbps
Encoded date                     : UTC 2009-03-26 01:22:06
Writing application              : mkvmerge v2.4.2 ('Oh My God') built on Jan 18 2009 17:30:28
Writing library                  : libebml v0.7.7 + libmatroska v0.8.1

Video
ID                               : 1
Format                           : AVC
Format/Info                      : Advanced Video Codec
Format profile                   : [email protected]
Format settings, CABAC           : Yes
Format settings, ReFrames        : 5 frames
Muxing mode                      : Container [email protected]
Codec ID                         : V_MPEG4/ISO/AVC
Duration                         : 1h 44mn
Bit rate                         : 5 111 Kbps
Nominal bit rate                 : 5 355 Kbps
Width                            : 1 280 pixels
Height                           : 536 pixels
Display aspect ratio             : 2.35
Frame rate                       : 23.976 fps
Resolution                       : 24 bits
Colorimetry                      : 4:2:0
Scan type                        : Progressive
Bits/(Pixel*Frame)               : 0.311
Writing library                  : x264 core 67 r1120 8544346
Encoding settings                : cabac=1 / ref=5 / deblock=1:0:0 / analyse=0x3:0x133 / me=umh / subme=7 / psy_rd=1.0:0.0 / mixed_ref=1 / me_range=16 / chroma_me=1 / trellis=1 / 8x8dct=1 / cqm=0 / deadzone=21,11 / chroma_qp_offset=-2 / threads=6 / nr=0 / decimate=1 / mbaff=0 / bframes=3 / b_pyramid=1 / b_adapt=1 / b_bias=0 / direct=1 / wpredb=1 / keyint=250 / keyint_min=25 / scenecut=40 / rc=2pass / bitrate=5355 / ratetol=1.0 / qcomp=0.60 / qpmin=10 / qpmax=51 / qpstep=4 / cplxblur=20.0 / qblur=0.5 / ip_ratio=1.40 / pb_ratio=1.30 / aq=1:1.00
Language                         : English

Audio
ID                               : 2
Format                           : AC-3
Format/Info                      : Audio Coding 3
Codec ID                         : A_AC3
Duration                         : 1h 44mn
Bit rate mode                    : Constant
Bit rate                         : 640 Kbps
Channel(s)                       : 6 channels
Channel positions                : Front: L C R, Surround: L R, LFE
Sampling rate                    : 48.0 KHz

Matroska files worked fine earlier, before the nvidia stuff, but now it crashes XBMC. And I have tried several different files.

If you need anything else to help me figure this out, please tell me.

Thanks.
Reply
#2
Start off by checking this post here:

Sticky: HOW-TO post about a problem in a useful manner
Reply
#3
Thanks, I should have seen that myself. I updated the first post now. Smile
Reply
#4
Does the crash occur when you play files that aren't h264?

It might be helpful also to have a little bit of info about the file. MediaInfo is a very useful application for gathering this information.
Reply
#5
Great, thanks again. Updated the first post. Smile

It seems that it only is matroska (mkv) files that makes XBMC crash.
Reply
#6
Yeah, I thought it might be directly related the VDPAU feature. That's why the AVI works fine because it's not using VDPAU. That's completely out of my realm though. There is a thread that is dedicated and probably has a bunch of info in it:

http://forum.xbmc.org/showthread.php?tid=45525

Don't double post but check that thread out in the mean time, probably someone will be able to help in a little while.
Reply
#7
It happened after I installed nvidia library, to get xbmc to start. I dont have any nvidia hardware on my system.

Everything worked fine before nvidia-180-libvdpau got forced in as an dependency of xbmc.

Edit:
Im removing the dev version of XBMC and installing the stable one... at least that one works.
If anyone have a solution to my problem, please keep answering. Smile
Reply
#8
Interesting, I hadn't noticed that you had said that there was no nvidia card in your system.
Reply
#9
Try latest build so that it includes the below change:

Revision 19139 elupus fixed: vdpau should (as help text says) default to off in configure ....
Reply
#10
Thanks for the help, looks like it is fixed.

But I actually think I will stick with the stable version for now, I just spent good amount of time setting up the library properly. The library was not backwards compatible (going from latest svn to stable).
Reply
#11
I can confirm this with my Intel GMA. Checking out latest SVN now.
Reply
#12
The same happens to me. I updated to the build 19239 and now when I start a movie it crash.

Is there anythink that I can do atm?

EDIT: With Render set to software instead of Auto it works. I guess its the hw-decoding that mix things up on non NVIDIA system.

/Söder
Reply
#13
+1
-I'm on a Intel 965 system, setting the renderer to software it works again.

Cheers,
C
Reply
#14
Please ensure a trac ticket is open for this issue as it may affect many users.
Reply

Logout Mark Read Team Forum Stats Members Help
XBMC crashes when I start to play video [Ubuntu 8.10, XBMC PRE-9.04 R19085)0