[Needs EXA] totem crashes when compiz is enabled unless EXA is enabled

Bug #264368 reported by Colin Ian King
16
This bug affects 1 person
Affects Status Importance Assigned to Milestone
X.Org X server
Fix Released
Unknown
totem (Ubuntu)
Invalid
Low
Ubuntu Desktop Bugs
Intrepid
Invalid
Low
Ubuntu Desktop Bugs
xorg-server (Ubuntu)
Triaged
Wishlist
Unassigned
Intrepid
Triaged
Wishlist
Unassigned

Bug Description

ISO Testing, Desktop Install on an Dell Inspiron 6400 Laptop, following Desktop installations instructions in https://wiki.ubuntu.com/Testing/Cases/LiveCDInstall and then https://wiki.ubuntu.com/Testing/Cases/UbuntuDesktop

Clicked on Places->Home folder, then Examples then Experience ubuntu.ogg. Totem plays back OK. However, when compiz is enabled via System->Preferences->Appearance and selecting Visual Effects and the Normal, Totem crashes.

Attached is the error message from running Totem from bash, dmesg log and lspci -vvnn

Note: Using ISO image: http://cdimage.ubuntu.com/daily-live/20080903/intrepid-desktop-amd64.iso

Revision history for this message
Colin Ian King (colin-king) wrote :
Revision history for this message
Colin Ian King (colin-king) wrote :
Revision history for this message
Colin Ian King (colin-king) wrote :
Revision history for this message
Andreas Moog (ampelbein) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. Please try to obtain a backtrace following the instructions at http://wiki.ubuntu.com/DebuggingProgramCrash and upload the backtrace (as an attachment) to the bug report. This will greatly help us in tracking down your problem.

Changed in totem:
assignee: nobody → andreas-moog
importance: Undecided → Medium
status: New → Incomplete
Revision history for this message
Matthew Martin (mtt.martin) wrote :

I'm getting this same exact error. Here's a backtrace I got. I have an AMD Athlon X2 CPU, and ATI video card. I'm running a fully updated intrepid 64 bit install.

Revision history for this message
Matthew Martin (mtt.martin) wrote :
Revision history for this message
OxKing (oxking) wrote :

Same thing here: Totem wont play any video but crash.
Audio (mp3) works fine.

Changed in totem:
assignee: andreas-moog → nobody
status: Incomplete → Confirmed
Revision history for this message
OxKing (oxking) wrote :

Ok, Strange behavior... I think it happents as i want
to watch BBC and then Youtube videos, and it crashed.
After that Totem wont play Videos at all,
and the program loads verry slow. No matter on compiz or metacity.
Ive uninstalled totem and all gstreamer-stuff i have found completely,
and then re-installed totem and most of the gstreamer stuff.
But still not working.... ive installed VLC: Works.
Ive opend a Video in Totem that also wont play, and then tried
another youtube video. Now the video ive load befor shoed for 1 sec.,
and the youtube video began to play and from this point Totem works fine
even on compiz.
As i said: Strange behavior......

Revision history for this message
Sebastien Bacher (seb128) wrote :

what videocard and driver do you use? could you add your xorg configuration to the bug?

Changed in totem:
status: Confirmed → Incomplete
Revision history for this message
josephk (josephk-deactivatedaccount-deactivatedaccount) wrote :

totem crashes when playing videos only while compiz is on
i'm on an intrepid 64bit fully upgraded, athlon 64, ati x1300

Revision history for this message
Michael Martin-Smucker (mmartinsmucker) wrote :

I can also confirm this. VLC and Banshee Media player also crash when Compiz is running (which it is by default). I'm also running an AMD X2 processor and an ATI graphics card with the Intrepid Release Candidate. Everything seems to work fine when Compiz is turned off.

Revision history for this message
Michael Martin-Smucker (mmartinsmucker) wrote :

...and just to clarify (sorry): "VLC and Banshee Media player also crash when Compiz is running" should read: "VLC and Banshee Media player also crash when they try to play a video while Compiz is running."

Revision history for this message
Colin Ian King (colin-king) wrote :

Some more information from the debug version of totem:

2 Attachements:

1) strace -f totem
2) gdb of totem

Revision history for this message
Colin Ian King (colin-king) wrote :
Revision history for this message
Michael Vogt (mvo) wrote :

@Colin: Thanks for your bugreport.

Could you please do a:
1. apt-get source xserver-xorg-video-intel
2. comment in the 11_textured_video patch in debian/patches/series
3. run debuild
4. install the the resulting deb and restart the xserver

and check if that changes anything?

Revision history for this message
Michael Vogt (mvo) wrote :

@Michael: With your ati card, what video driver do you use? the free ati one or the fglrx one?

Revision history for this message
Colin Ian King (colin-king) wrote :

@Michael Vogt:

I followed the instructions and re-tested, however, it did not improve things. Anything else I can do to help?

Colin.

Revision history for this message
Michael Martin-Smucker (mmartinsmucker) wrote :

@Michael Vogt: With my ATI x1300 graphics (identical to JosephK's), the free driver now supports 3d graphics and Compiz, so as of Intrepid, the proprietary driver is no longer easily available. If I can find some free time later today, I might install the proprietary driver from ATI's website and see if the problem still exists.

Also, could the package (and maybe the title) of this bug report be changed? Banshee and VLC both crash with very similar errors, so I don't know if we can really blame this on Totem.

Revision history for this message
Fabri Velas (fabrivelas) wrote :

@Michael Vogt: I use the free driver with ATI Mobility Radeon X1600 and have the same issue, i.e. totem crashes when compiz is enabled.

@ Michael Martin: It seems that you can enable the proprietary driver using the Driver option in Administration.

Michael Vogt (mvo)
Changed in xserver-xorg-video-ati:
status: Incomplete → Triaged
Changed in xserver-xorg-video-intel:
status: New → Triaged
Revision history for this message
Bryce Harrington (bryce) wrote :

Gdk-ERROR **: 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 91 error_code 11 request_code 140 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.)
aborting...

This is simply an out-of-memory error. You might be able to free up more video memory by fiddling with your VideoRam or LinearAlloc settings in xorg.conf, but really Totem just needs to handle this error condition more gracefully. If you're using XAA acceleration, you may find switching to EXA to be helpful.

Revision history for this message
Bryce Harrington (bryce) wrote :

Like the error message in comment #1's attachment points out, this is probably a bug in the program moreso than in the video driver, however it would be nice if the Xserver auto-reconfigured things to give the app more memory when it needs it.

Changed in xserver-xorg-video-ati:
importance: Medium → High
Bryce Harrington (bryce)
Changed in xorg-server:
importance: High → Wishlist
Changed in xorg-server:
status: Unknown → Confirmed
Revision history for this message
Bryce Harrington (bryce) wrote :

For those using the -ati driver, also see 269357 - like I mentioned above, if you're using XAA and experiencing this problem, switching to EXA solves it. However we don't default to EXA yet due to various other issues present with it. Maybe we will in Jaunty.

Revision history for this message
Sebastien Bacher (seb128) wrote :

closing the totem task since there is already some bugs about similar issues on launchpad

Changed in totem:
assignee: nobody → desktop-bugs
importance: Undecided → Low
status: Triaged → Invalid
Revision history for this message
Michael Martin-Smucker (mmartinsmucker) wrote :

"this is probably a bug in the program moreso than in the video driver"

I still really doubt this. Here are partial outputs from Banshee:

    The program 'Banshee' received an X Window System error.
    This probably reflects a bug in the program.
    The error was 'BadAlloc (insufficient resources for operation)'.

and VLC:

    Running vlc with the default interface. Use 'cvlc' to use vlc without interface.
    QPainter::begin: Paint device returned engine == 0, type: 1
    QPainter::begin: Paint device returned engine == 0, type: 1
    [????????] x11 video output error: X11 request 140.19 failed with error code 11:
     BadAlloc (insufficient resources for operation)

All of these were working fine in Hardy and I don't think they all magically acquired the same bug in the past 6 months. The real change, however, is in the fact that my video card driver was switched from the propriety ATI driver to the free driver in Intrepid (same as several other people commenting on this bug). In my opinion, the ability to play movies is a showstopper, and if the driver is not capable of doing that and running compiz at the same time, it shouldn't be the default. Switching to EXA acceleration or replacing Compiz with Metacity every time one wants to watch a movie are not "human" solutions. I'd love to use the free driver (compiz effects are significantly smoother), but until it can play movies reliably, it should certainly not be the default.

Revision history for this message
Bryce Harrington (bryce) wrote :

Since seb128 closed the totem task, no reason to keep this bug open since it's otherwise just a dupe of 269357 anyway, and the latter has better analysis and comments from oyvinst.

Changed in xorg-server:
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.