FS#10141 - Totem + Youtube plugin crashes when Compiz is enabled

Attached to Project: Arch Linux
Opened by Emmanuele Massimi (finferflu) - Thursday, 10 April 2008, 21:18 GMT
Last edited by Greg (dolby) - Saturday, 17 May 2008, 15:13 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Jan de Groot (JGC)
Architecture All
Severity Medium
Priority Normal
Reported Version 2007.08-2
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

Description:
Using Compiz (and Gnome as DE), Totem with the Youtube plugin crashes when a Youtube video is about to play. This is the crash output:

The program 'totem' received an X Window System error.
This probably reflects a bug in the program.
The error was 'BadAlloc (insufficient resources for operation)'.
(Details: serial 52 error_code 11 request_code 141 minor_code 19)
(Note to programmers: normally, X errors are reported asynchronously;
that is, you will receive the error a while after causing it.
To debug your program, run it with the --sync command line
option to change this behavior. You can then get a meaningful
backtrace from your debugger if you break on the gdk_x_error() function.)

If I try to play videos using Metacity, everything works fine.

For more information, see also this thread: http://bbs.archlinux.org/viewtopic.php?id=46709

Additional info:
* package versions:
Totem 2.22.0
Compiz 0.7.4
Gstreamer0.10-ffmpeg 0.10.3-1
(not sure if you need any other details)


Steps to reproduce:
Open Totem, search for a Youtube video in the sidebar, double click on a video.

P.S. I'm not sure whether this bug is relative to Compiz or to Totem, so be kind if I posted in the wrong section.
This task depends upon

Closed by  Greg (dolby)
Saturday, 17 May 2008, 15:13 GMT
Reason for closing:  Fixed
Comment by Jan de Groot (JGC) - Thursday, 10 April 2008, 21:27 GMT
Try setting "x11" as default gstreamer output using the "gstreamer-properties" program. Select "X11 video (no XV)" from the video tab as default video output device.
Yes, this will remove any support for hardware scaling, but it's your choice: either you use compiz and live with the fact that XV is mostly broken with compiz, or you switch to a normal windowmanager and use XV.
Comment by Emmanuele Massimi (finferflu) - Thursday, 10 April 2008, 21:33 GMT
Thanks a lot, that worked :)
To be honest I'm not really sure what Xv does. Anyway, at this point I guess this was a Compiz problem.

Thanks for your help :)
Comment by Jan de Groot (JGC) - Thursday, 10 April 2008, 21:46 GMT
XV is an X extension that allows your videocard to do basic video operations like color correction and scaling. These operations are much faster than when done in software. Your videodriver does not allow these operations when running with compiz, so programs trying to use it will crash with these BadAlloc messages.
Comment by Emmanuele Massimi (finferflu) - Thursday, 10 April 2008, 21:50 GMT
Thanks for the explanation.
As a side note, out of curiosity, I have just enabled compositing in Metacity, and tried to set the Gstreamer video output back to "Automatic", and it crashed with BadAlloc as well. So it's not Compiz only to be at fault here.
Comment by Jan de Groot (JGC) - Wednesday, 16 April 2008, 14:34 GMT
As I said, this is a limitation in your videodriver which doesn't allow XV and Composite at the same time. What videodriver do you use?
Comment by Emmanuele Massimi (finferflu) - Wednesday, 16 April 2008, 14:40 GMT
I'm using i810 for my Intel 945GME video card.
Comment by Jan de Groot (JGC) - Wednesday, 16 April 2008, 17:10 GMT
Try using xf86-video-intel instead of xf86-video-i810. The intel driver has workarounds for this issue.
Comment by Emmanuele Massimi (finferflu) - Wednesday, 16 April 2008, 17:25 GMT
Actually xf86-video-intel is the package that provides i810, so that's the one I have been using from the beginning.
Comment by Emmanuele Massimi (finferflu) - Wednesday, 16 April 2008, 17:31 GMT
Sorry for double posting. I have found this: http://hoegsberg.blogspot.com/2007/08/redirected-direct-rendering.html
What do you think? Is this an appropriate place to discuss about it? If not, please delete this comment. Thanks :)

Loading...