Kodi Community Forum
Linux crash when playing content with VDPAU enabled - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: General Support (https://forum.kodi.tv/forumdisplay.php?fid=111)
+---- Forum: Linux (https://forum.kodi.tv/forumdisplay.php?fid=52)
+---- Thread: Linux crash when playing content with VDPAU enabled (/showthread.php?tid=128457)

Pages: 1 2 3 4 5 6 7


RE: crash when playing content with VDPAU enabled - SweetS2K - 2012-06-16

(2012-05-19, 21:34)TheSane Wrote: Edit:
User@XBMC:/usr/src/xbmc$ sudo apt-get build-dep xbmc
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to find a source package for xbmc

Got this also... remedied by adding the PPAs. Should I add the "unstable" PPA repository? Or does it matter?

Also note, you need to use "sudo make -j2".

In the home stretch, but have one more quesitons. The default XBMC directory seems to be "~/.xbmc"... If I want to keep all settings should I use the following:
$sudo make install DESTDIR=$HOME/.xbmc

Any advice appreciated!

Thanks!
Ken


RE: crash when playing content with VDPAU enabled - FernetMenta - 2012-06-16

There are binaries available now for testing:
http://forum.xbmc.org/showthread.php?tid=119855&pid=1128394#pid1128394


RE: crash when playing content with VDPAU enabled - SweetS2K - 2012-06-16

Thank you!



RE: crash when playing content with VDPAU enabled - wsnipex - 2012-06-16

NOTE: FernetMentas Master branch with vdpau support is currently only available here: ppa:wsnipex/xbmc-xvba-testing


RE: crash when playing content with VDPAU enabled - kingmob - 2012-06-19

(2012-05-23, 17:59)kingmob Wrote:
(2012-05-23, 17:48)VanillaXtract Wrote: assuming you are user xbmc:
In a terminal
Code:
sudo usermod -a -G root xbmc
sudo visudo

Then add the following line at the end of the file.
xbmc ALL = (ALL) NOPASSWD: /sbin/shutdown, /sbin/reboot
Yeah I know, but for some weird reason this has never worked for me in XBMCbuntu for any command. Works fine in ubuntu...

Bit late, but just wanted to say I solved this problem in case someone comes across this in the future Wink
Apparently you HAVE to use a seperate custom sudoers file in the included /etc/sudoers.d directory. Just put all the added lines in your own file, add it there and it works. Be careful not to have the same lines in both files, because sudo will fail to work and you won't have any root acces anymore (guess how I found that out Wink).


RE: crash when playing content with VDPAU enabled - VanillaXtract - 2012-07-02

(2012-06-19, 13:50)kingmob Wrote: Bit late, but just wanted to say I solved this problem in case someone comes across this in the future Wink
Apparently you HAVE to use a seperate custom sudoers file in the included /etc/sudoers.d directory. Just put all the added lines in your own file, add it there and it works. Be careful not to have the same lines in both files, because sudo will fail to work and you won't have any root acces anymore (guess how I found that out Wink).
I guess that makes sense since xbmc does the same with repos.



RE: crash when playing content with VDPAU enabled - fullmoonguru - 2012-07-02

I'm having the same error but it's not a broken pipe. Here's my log:

Code:
12:11:35 T:7187104 WARNING: Skin has invalid include: AlbumThumbViewItemFocusAnim
12:11:38 T:3001006960 WARNING: CreateLoader - Unsupported protocol(sources) in sources://logo.png
12:11:38 T:3063933808 WARNING: CreateLoader - Unsupported protocol(sources) in sources://../logo.png
12:11:38 T:3072326512 WARNING: CreateLoader - Unsupported protocol(sources) in sources://../../logo.png
12:11:38 T:2976447344 WARNING: CreateLoader - Unsupported protocol(sources) in sources://../../../logo.png
12:11:38 T:3001006960 WARNING: CreateLoader - Unsupported protocol(sources) in sources://logo.png
12:11:38 T:3063933808 WARNING: CreateLoader - Unsupported protocol(sources) in sources://../logo.png
12:11:38 T:2976447344 WARNING: CreateLoader - Unsupported protocol(sources) in sources://../../../logo.png
12:11:38 T:3072326512 WARNING: CreateLoader - Unsupported protocol(sources) in sources://../../logo.png
12:11:40 T:7187104   ERROR: Texture manager unable to load file: /media/Data/mythtv/logo.png
12:11:40 T:7187104   ERROR: Texture manager unable to load file: /media/Data/mythtv/../logo.png
12:11:40 T:7187104   ERROR: Texture manager unable to load file: /media/Data/mythtv/../../logo.png
12:11:40 T:7187104   ERROR: Texture manager unable to load file: /media/Data/mythtv/../../../logo.png
12:11:41 T:2976447344 WARNING: CreateLoader - Unsupported protocol(sources) in sources://logo.png
12:11:41 T:3063933808 WARNING: Previous line repeats 1 times.
12:11:41 T:3063933808 WARNING: CreateLoader - Unsupported protocol(sources) in sources://../logo.png
12:11:41 T:3001006960 WARNING: CreateLoader - Unsupported protocol(sources) in sources://../../../logo.png
12:11:41 T:3063933808 WARNING: CreateLoader - Unsupported protocol(sources) in sources://../logo.png
12:11:41 T:3072326512 WARNING: CreateLoader - Unsupported protocol(sources) in sources://../../logo.png
12:11:41 T:3001006960 WARNING: Previous line repeats 1 times.
12:11:41 T:3001006960 WARNING: CreateLoader - Unsupported protocol(sources) in sources://../../../logo.png
12:11:43 T:7187104   ERROR: Texture manager unable to load file: /media/Data/mythtv/videos/logo.png
12:11:43 T:7187104   ERROR: Texture manager unable to load file: /media/Data/mythtv/videos/../logo.png
12:11:43 T:7187104   ERROR: Texture manager unable to load file: /media/Data/mythtv/videos/../../logo.png
12:11:43 T:7187104   ERROR: Texture manager unable to load file: /media/Data/mythtv/videos/../../../logo.png
12:11:45 T:7187104   ERROR: Texture manager unable to load file: /media/Data/mythtv/logo.png
12:11:45 T:7187104   ERROR: Texture manager unable to load file: /media/Data/mythtv/../logo.png
12:11:45 T:7187104   ERROR: Texture manager unable to load file: /media/Data/mythtv/../../logo.png
12:11:45 T:7187104   ERROR: Texture manager unable to load file: /media/Data/mythtv/../../../logo.png
12:11:54 T:7187104   ERROR: Texture manager unable to load file: /media/Data/mythtv/videos/Torrent Downloads/logo.png
12:11:54 T:7187104   ERROR: Texture manager unable to load file: /media/Data/mythtv/videos/Torrent Downloads/../logo.png
12:11:54 T:7187104   ERROR: Texture manager unable to load file: /media/Data/mythtv/videos/Torrent Downloads/../../logo.png
12:11:54 T:7187104   ERROR: Texture manager unable to load file: /media/Data/mythtv/videos/Torrent Downloads/../../../logo.png
12:12:19 T:7187104  NOTICE: DVDPlayer: Opening: /media/Data/mythtv/videos/Torrent Downloads/MotoGP.2012.Round07.Netherlands.Race.EurosportUK.BBCi.MPEG-2.English-RFM.ts
12:12:19 T:7187104 WARNING: CDVDMessageQueue(player)::Put MSGQ_NOT_INITIALIZED
12:12:19 T:2966420336  NOTICE: Creating InputStream
12:12:19 T:2966420336  NOTICE: Creating Demuxer
12:12:20 T:2966420336  NOTICE: Opening video stream: 0 source: 256
12:12:20 T:2966420336  NOTICE: Creating video codec with codec id: 2
12:12:20 T:2966420336  NOTICE: CDVDVideoCodecFFmpeg::Open() Creating VDPAU(720x576, 2)
12:12:21 T:2966420336  NOTICE: vdp_device = 0x00000001 vdp_st = 0x00000000
12:12:21 T:2966420336  NOTICE: VDPAU Decoder capabilities:
12:12:21 T:2966420336  NOTICE: name          level macbs width height
12:12:21 T:2966420336  NOTICE: ------------------------------------
12:12:21 T:2966420336  NOTICE: MPEG1             0  8192  2048  2048
12:12:21 T:2966420336  NOTICE: MPEG2_SIMPLE      3  8192  2048  2048
12:12:21 T:2966420336  NOTICE: MPEG2_MAIN        3  8192  2048  2048
12:12:21 T:2966420336  NOTICE: H264_MAIN        41  8190  2032  2048
12:12:21 T:2966420336  NOTICE: H264_HIGH        41  8190  2032  2048
12:12:21 T:2966420336  NOTICE: VC1_SIMPLE        1  8190  2048  2048
12:12:21 T:2966420336  NOTICE: VC1_MAIN          2  8190  2048  2048
12:12:21 T:2966420336  NOTICE: VC1_ADVANCED      4  8190  2048  2048
12:12:21 T:2966420336  NOTICE: ------------------------------------
12:12:21 T:2966420336  NOTICE: Mixer feature: VDP_VIDEO_MIXER_FEATURE_NOISE_REDUCTION
12:12:21 T:2966420336  NOTICE: Mixer feature: VDP_VIDEO_MIXER_FEATURE_SHARPNESS
12:12:21 T:2966420336  NOTICE: Mixer feature: VDP_VIDEO_MIXER_FEATURE_DEINTERLACE_TEMPORAL
12:12:21 T:2966420336  NOTICE: Mixer feature: VDP_VIDEO_MIXER_FEATURE_DEINTERLACE_TEMPORAL_SPATIAL
12:12:21 T:2966420336  NOTICE: Mixer feature: VDP_VIDEO_MIXER_FEATURE_INVERSE_TELECINE
12:12:21 T:2966420336  NOTICE: CDVDVideoCodecFFmpeg::Open() Using codec: MPEG-1/2 video (VDPAU acceleration)
12:12:23 T:2966420336  NOTICE: Creating video thread
12:12:23 T:2966420336  NOTICE: Opening audio stream: 1 source: 256
12:12:23 T:2966420336  NOTICE: Finding audio codec for: 86016
12:12:23 T:2939751280  NOTICE: running thread: video_thread
12:12:23 T:2966420336  NOTICE: Creating audio thread
12:12:23 T:2931358576  NOTICE: running thread: CDVDPlayerAudio::Process()
12:12:23 T:2931358576  NOTICE: Creating audio device with codec id: 86016, channels: 2, sample rate: 48000, no pass-through
12:12:23 T:2939751280  NOTICE:  (VDPAU) screenWidth:0 vidWidth:720 surfaceWidth:720
12:12:23 T:2939751280  NOTICE:  (VDPAU) screenHeight:0 vidHeight:576 surfaceHeight:576
12:12:23 T:2931358576   ERROR: PulseAudio: Failed to connect context
12:12:23 T:2931358576   ERROR: PulseAudio: Failed to create context
12:12:29 T:7187104  NOTICE: CDVDPlayer::CloseFile()
12:12:29 T:7187104  NOTICE: DVDPlayer: waiting for threads to exit
12:12:29 T:2966420336  NOTICE: CDVDPlayer::OnExit()
12:12:29 T:2966420336  NOTICE: DVDPlayer: closing audio stream
12:12:29 T:2966420336  NOTICE: Closing audio stream
12:12:29 T:2966420336  NOTICE: Waiting for audio thread to exit
12:12:29 T:2931358576   ERROR: AddPackets - failed to add leftover bytes to render
12:12:29 T:2931358576  NOTICE: thread end: CDVDPlayerAudio::OnExit()
12:12:29 T:2966420336  NOTICE: Closing audio device
12:12:29 T:2966420336  NOTICE: Deleting audio codec
12:12:29 T:2966420336  NOTICE: DVDPlayer: closing video stream
12:12:29 T:2966420336  NOTICE: Closing video stream
12:12:29 T:2966420336  NOTICE: waiting for video thread to exit

Don't want to get too experimental with this box so I guess if this is due to the same problem I'm waiting for a fix to come along for my XBMCbuntu? I'll try waiting some seconds before playing to see if that helps things.


RE: crash when playing content with VDPAU enabled - fiatt - 2012-12-10

Hi!

I've installed xbmc via the official kubuntu repo. I got the freezing beug when i launch some HD videos (wich are easily playable with VLC). I read this topic and it seems it's because of VDPAU.

I've also read that by compiling the dev version of xbmc, the problem is solved.
So should i do this: http://wiki.xbmc.org/index.php?title=HOW-TO:Compile_XBMC_on_Debian/Ubuntu

or should i use one of this repo:
Xvba and improved Vdpau (not mainline)
https://launchpad.net/~wsnipex/+archive/xbmc-xvba

https://launchpad.net/~team-xbmc/+archive/unstable
https://launchpad.net/~team-xbmc/+archive/xbmc-nightly

Thanks for helping.


RE: crash when playing content with VDPAU enabled - basco - 2012-12-10

i use the latest xvba/vdpau rom wsnipex, had the crashes too.
after update to 9 dec version it's solved.
oh ans i also use xorg edgers ppa .19 latest


RE: crash when playing content with VDPAU enabled - un1versal - 2012-12-10

Xorg edgers is a insanely bad idea, not recommended under the best of circumstances. They mess with way to many system packages, if something goes wrong good luck tracking it down (which will sooner rather than later)

For Nvidia drivers x-swat ppa is more acceptable.

uNi


RE: crash when playing content with VDPAU enabled - fiatt - 2012-12-10

So i add https://launchpad.net/~ubuntu-x-swat/+archive/x-updates and https://launchpad.net/~wsnipex/+archive/xbmc-xvba

then i update and that's all? No need to compile?


RE: crash when playing content with VDPAU enabled - un1versal - 2012-12-10

no need to compile, just add those and run
Code:
apt-get update
and
sudo apt-get install xbmc nvidia-settings nvidia-current

Newer packages will automatically get installed.

uNi


RE: crash when playing content with VDPAU enabled - fiatt - 2012-12-10

No luck. After install what you told me, xbmc don't run, i get a message telling me i need a driver. So i activate the x-swat 310 driver and reboot. Xbmc runs fine but no more artworks or ugly ones. I launch the video and this time no freeze, the sound seems good but i got a black screen, even jumping on different times.
Another thing, my keymap of the remote controller don't work anymore.

So i'll test to build xbmc with the git of FernetMenta page 2 of this topic.

I'll tell you.

Thanks.


RE: crash when playing content with VDPAU enabled - fiatt - 2012-12-10

(2012-05-17, 16:19)thrillerbee Wrote:
(2012-05-17, 12:00)haken Wrote: Could somebody be soooo nice to make a guide HOWTO compile this new vdpau interface?
It would be great to get rid off these nasty hangs from Eden!
I couldn't be so hard and I believe it is a mattter of entering not so many commands in linux console...

PleaseWink

$ cd /usr/src/
$ sudo git clone git://github.com/FernetMenta/xbmc.git
$ cd xbmc
$ sudo ./bootstrap; sudo ./configure; sudo make; sudo make install

(2012-05-17, 21:43)FernetMenta Wrote: You should check README.ubuntu for required packages. Just copy/paste the command. If you run configure and don't have libvdpau-dev, vdpau gets deactivated.
Better run: ./configure --enable-vdpau
configure will fail if libvdpau-dev is not present.

I'm trying to do that. i had some errors, depedencies that was not present. I first used a part of your srcipt, uNiversal, to have all the depedencies. libcec1 had to be replace with libcec2, and ./configure still on error.

I looked in the README.ubuntu file and found the command to have all depedencies:
Code:
sudo apt-get build-dep xbmc
This command don't work on a fresh install of kubuntu, it need libxvba-dev wich is on https://launchpad.net/~wsnipex/+archive/xbmc-xvba

I'm back to work and the process is on the "make" stage.
I hope now all will be fine. i'll see when i'll be home.





RE: crash when playing content with VDPAU enabled - un1versal - 2012-12-10

The only thing that needs to be changed on "my script" is instead of the master git for xbmc you replace git://github.com/xbmc/xbmc.git with git://github.com/FernetMenta/xbmc.git

You dont need to do anything else like sudo apt-get build-dep xbmc because those dependencies are already on the script and will install, if you dont screw with the script.

FYI the xvba ppa is using Fernetmenta's git exactly. SO whatever your problem is compiling is likely not going to help you.

In xbmc settings you need to disable vaapi and xvba acceleration and only use vdpau if vdpau is what your system needs e.g. its NVidia. I bet most of your problems are because your not configuring XBMC properly.

uNi