Linux XBMC segfaults when playing movie with AMD OSS VDPAU
#1
Hi guys,

After using nVidia for years for HTPC hardware, I've decided to switch to AMD because of their improved and finally acceptable open source support.

So I bought a AMD A8-6500T which has a nice 45 watt TDP.

While both DPM (dynamic power saving) and even UVD acceleration work pretty well (using the r600g driver) in nearly all video players (I tested VLC, Mythtv and Mplayer), it doesn't in XBMC.

Most of the times when I start playing a 1080p h264 video, XBMC will freeze. When it doesn't freeze, it will start playing nicely (with just 10-15% CPU), until I press the forward button a few times (which will skip at every press approx. 10 minutes of video). Then XBMC crashes with a segfault.

At the software side, I use an up to date (29-12-13) 32bit Arch Linux which currently has XBMC 12.3, Linux 3.12 and Mesa 10.0.1. I start XBMC with a new ~/.xbmc folder with no special configuration (just disabling VA-API acceleration, leaving only VDPAU enabled). The problems don't appear when I also disable VDPAU, but XBMC uses then 80-90% CPU.

Most of the videos I play are converted blu-ray rips (ripped from original blu-rays using Makemkv), with mencoder/x264 using the following commands:
Code:
# Pass 1
mencoder "$INPUTFILE" -ovc x264 -x264encopts bitrate=9000:pass=1:turbo=1:me=umh:me_range=32:subq=5:nodct_decimate:threads=8 -of rawvideo -ofps 24/10001 -mc 0 -noskip -nosound -o /dev/null
# Pass 2
mencoder "$INPUTFILE" -ovc x264 -x264encopts bitrate=9000:pass=2:turbo=0:me=umh:me_range=32:subq=5:nodct_decimate:threads=8 -of rawvideo -ofps 24/10001 -mc 0 -noskip -nosound -o output.h264
# Muxing into mp4
MP4Box -fps 23.976024 output.h264 "$OUTFILE"
Unfortunately, I can't provide a sample, because the problems only appear during fast forwarding of big (>1h) movies (yes, Big Buck Bunny runs fine Smile )

Debug info:

dmesg:
http://pastebin.com/qRqBpkD9

lspci:
http://pastebin.com/taVjt90z

vdpauinfo:
http://pastebin.com/7A38HWmV

Xorg.0.log:
http://pastebin.com/3QRYvsif

xbmc_crashlog:
This file was too big for pastebin, because of the following duplicate (I think non-relevant) line:
20:20:03 T:2837986112 DEBUG: CheckPlayerInit - dropping packet type:1 dts:4215711000.000000 to get to start point at 4215794000.000000
So I removed the duplicate in order to get it on pastebin:
http://pastebin.com/NLnACHJX
The complete uncut file can be found at Ubuntu One:
http://ubuntuone.com/5WJnyCVezZpc48j1uvDxDV

xbmc.log:
The same holds for xbmc.log
Short version:
http://pastebin.com/7x5uySez
Complete version:
http://ubuntuone.com/1AFEjfpirEyMazapkorzhX

So with that information, could anyone help me with this problem?
Reply
#2
You need v13 as described here: http://forum.xbmc.org/showthread.php?tid=174854 I cannot make that topic more sticky.

In you case the driver crashes:
Quote:0xa78179ac in vlVdpPresentationQueueQuerySurfaceStatus () from /usr/lib/vdpau/libvdpau_r600.so.1
First decide what functions / features you expect from a system. Then decide for the hardware. Don't waste your money on crap.
Reply
#3
Thank you for the quick response!

v13 is still alpha, I don't mind upgrading it on this new box, but because I use a shared library via Mysql, upgrading one box will mean that I have to upgrade every box in my house to v13 / an alpha version, which I rather not do.
So I will wait until v13 is stable and use Mplayer for now as external player in XBMC.

fritsch Wrote:I cannot make that topic more sticky.
Yes, I read that topic off course! But there is nowhere stated that you need version 13, only that you have to install XBMC in Ubuntu from a PPA. Since Ubuntu uses mostly outdated software, this could also be the most recent stable version (12.3). After tracing the PPA, I see that it indeed points to v13 alpha. But, since I don't use Ubuntu, I didn't trace that PPA. So, couldn't you add this information about v13 to the first post in that topic to help people that are using other distros than Ubuntu?
Reply
#4
We needed a whole lot of code to get vdpau running smooth on radeons. All those changes went into v13. Yes, will do.
First decide what functions / features you expect from a system. Then decide for the hardware. Don't waste your money on crap.
Reply
#5
Done - it's now even red.
First decide what functions / features you expect from a system. Then decide for the hardware. Don't waste your money on crap.
Reply
#6
Thanks again!
And also thanks for all those code changes! Thanks to you guys can all the XBMC users enjoy great open source driver support on AMD hardware! Smile
Reply

Logout Mark Read Team Forum Stats Members Help
XBMC segfaults when playing movie with AMD OSS VDPAU0