Kodi Community Forum

Full Version: [LINUX] Crashes when playing YouTube. "(VDPAU) width 854 might not be supported..."
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I've been Googling around for hours and haven't found any mention of this one...

On certain YouTube videos played through the default plugin XBMC will crash. I am using a Zotac IONITX-A-U RT (ION 1) on Arch Linux x86_64. For some videos XBMC works fine, for others...crash. Has anyone else run into this problem?

From the crashlog:
Code:
[xbmc@mightyarrow ~]$ cat xbmc_crashlog-20110807_004000.log | grep -P "(ERROR|WARNING)"
00:37:53 T:140105259177920 M:1013719040 WARNING: Unable to determine Linux distribution
00:37:56 T:140105259177920 M:1006145536   ERROR: GLX: Same window as before, refreshing context
00:38:03 T:140105259177920 M:940138496 WARNING: CreateFile, successfuly opened </home/xbmc/.xbmc/addons/skin.aeonmq.2/720p/Includes_Genre.xml> instead of </home/xbmc/.xbmc/addons/skin.aeonmq.2/720p/Includes_genre.xml>
00:38:03 T:140105259177920 M:940060672 WARNING: CreateFile, successfuly opened </home/xbmc/.xbmc/addons/skin.aeonmq.2/720p/Includes_Showcase.xml> instead of </home/xbmc/.xbmc/addons/skin.aeonmq.2/720p/Includes_ShowCase.xml>
00:38:08 T:140105259177920 M:933380096   ERROR: Python script "script.tv.show.next.aired" does not exist
00:38:08 T:140105259177920 M:932720640   ERROR: CZeroconfAvahi::CZeroconfAvahi(): Could not create client
00:38:08 T:140105259177920 M:931799040   ERROR: JSONRPC Server: Failed to connect to sdpd
00:38:08 T:140105259177920 M:931799040   ERROR: JSONRPC Server: Failed to bind serversocket
00:38:09 T:140105259177920 M:905945088   ERROR: Python script "script.recentlyadded" does not exist
00:38:17 T:140104950892288 M:906014720   ERROR: WebServer: Failed to open special://masterprofile/Thumbnails/Video/b/b24050f2.tbn
00:38:17 T:140104950892288 M:906014720   ERROR: WebServer: Failed to open special://masterprofile/Thumbnails/Video/b/auto-b24050f2.tbn
00:38:41 T:140105259177920 M:878206976 WARNING: Skin has invalid include: DialogInfo
00:38:41 T:140105259177920 M:878206976 WARNING: Previous line repeats 3 times.
00:38:47 T:140105259177920 M:878108672 WARNING: Skin has invalid include: DialogInfo
00:38:47 T:140105259177920 M:878108672 WARNING: Previous line repeats 3 times.
00:38:50 T:140105259177920 M:877531136   ERROR: JSONRPC Server: Failed to connect to sdpd
00:38:55 T:140105259177920 M:872464384   ERROR: Python script "script.recentlyadded" does not exist
00:39:09 T:140105259177920 M:867033088 WARNING: Skin has invalid include: MovieShowcaseGlassOverlayAngled3DBD
00:39:09 T:140105259177920 M:867033088 WARNING: Previous line repeats 40 times.
00:39:09 T:140105259177920 M:867033088 WARNING: Skin has invalid include: MovieShowcaseGlassOverlay3DBD
00:39:12 T:140105259177920 M:867033088 WARNING: Previous line repeats 1 times.
00:39:50 T:140104903624448 M:864370688 WARNING: CreateLoader - Unsupported protocol(plugin) in plugin://plugin.video.youtube/poster.jpg
00:39:50 T:140104903624448 M:864370688 WARNING: CreateLoader - Unsupported protocol(plugin) in plugin://plugin.video.youtube/poster.jpg
00:39:55 T:140105259177920 M:861827072 WARNING: CDVDMessageQueue(player)::Put MSGQ_NOT_INITIALIZED
00:39:56 T:140104615491328 M:857358336 WARNING: (VDPAU) width 854 might not be supported because of hardware bug
00:39:56 T:140104615491328 M:857358336   ERROR:  (VDPAU) Error: A catch-all error, used when no other error code applies.(25) checking for decoder support
00:39:56 T:140104384009984 M:857530368   ERROR: PulseAudio: Waited for the Context but it failed
00:39:56 T:140104384009984 M:857530368   ERROR: PulseAudio: Failed to create context
00:39:57 T:140104392402688 M:851812352   ERROR: ffmpeg[988A6700]: [h264] hardware accelerator failed to decode picture
00:39:57 T:140104392402688 M:868884480   ERROR: ffmpeg[988A6700]: [h264] hardware accelerator failed to decode picture
00:39:57 T:140105259177920 M:868597760   ERROR: Previous line repeats 1 times.
00:39:57 T:140105259177920 M:868249600   ERROR: CLinuxRendererGL::UploadVAAPITexture - failed to copy surface to glx 2 - resource allocation failed
00:39:57 T:140104392402688 M:868249600   ERROR: ffmpeg[988A6700]: [h264] hardware accelerator failed to decode picture
bump
It's all in the error message. ION 1 has an outdated VDPAU feature set. It's feature set B: http://uk.download.nvidia.com/XFree86/Li...chips.html

Quote:VDPAU Features Note 1

GPUs with this note may not support H.264 streams with the following widths: 49, 54, 59, 64, 113, 118, 123, 128 macroblocks (769-784, 849-864, 929-944, 1009-1024, 1793-1808, 1873-1888, 1953-1968, 2033-2048 pixels).
From http://uk.download.nvidia.com/XFree86/Li...pport.html

Of course it shouldn't make it crash, but you're simply not going to be able to play this using VDPAU decoding. A, C and D do not have this restriction (I don't think it's a bug, it's more a documented shortcoming).
Well, I gathered as much that its a limitation of the hardware, but is there any known workaround?
Yes, use CPU decoding and/or use a different resolution on YouTube.
I tried taking the youtube resolution down to SD (from 720p), but no such luck Sad. Is there a way to selectively use CPU decoding for those videos? I'd like to keep using VDPAU for everything else.
Not that I'm aware of. You could do a feature request here on the forums or in Trac. It would make sense to fall back to CPU decoding when the GPU can't decode it.

SD should work though, since SD is 720 pixels in width max. Do you still get the same error? Because then it's probably an error in the Youtube plugin. Or there is only one resolution available for that video.
Hey,
the problem is related to VAAPI not VDPAU.
First it tries to use VDPAU, but can't with the specific video, then it tries to use VAAPI --> then it crashes.
Solution:
Simply deactivate in SYSTEM --> VIDEO --> PLAYBACK the VAAPI acceleration.
Best Regards
Thanks, bodedejavu. That helped!