Bug 15096 - X freezes when using Compiz (or other 3D apps) with xserver-xorg-video-ati >1:6.6.3
Summary: X freezes when using Compiz (or other 3D apps) with xserver-xorg-video-ati >1...
Status: RESOLVED MOVED
Alias: None
Product: xorg
Classification: Unclassified
Component: Driver/Radeon (show other bugs)
Version: unspecified
Hardware: Other All
: highest critical
Assignee: xf86-video-ati maintainers
QA Contact: Xorg Project Team
URL: https://bugs.launchpad.net/xserver-xo...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-03-17 11:09 UTC by Nick Bauermeister
Modified: 2019-11-19 07:28 UTC (History)
3 users (show)

See Also:
i915 platform:
i915 features:


Attachments

Description Nick Bauermeister 2008-03-17 11:09:16 UTC
I'm sorry, I don't know which version of the radeon driver is in debian's xserver-xorg-video-ati packages, I hope you can help me out here.

Anyway, here's the problem:
On xserver-xorg-video-ati versions greater than 1:6.6.3 (like in Debian Lenny or Ubuntu Feisty) the X server freezes when using Compiz or other 3D applications like tuxracer.

With Compiz on Gutsy (xserver-xorg-video-ati 1:6.7.195) or Hardy (1:6.7.0) it takes about 20 minutes until it freezes, sometimes less.
X freezes immediately when trying to run a 3D game.

This is not the case on a current install of Debian testing (Lenny) or Ubuntu Feisty.


I started a bugreport on Launchpad with additional information: https://bugs.launchpad.net/bugs/195051

And here's another report for that issue: https://bugs.launchpad.net/bugs/108527


I couldn't find any information if the problem is already known around here.
Please let me know if you need any further informations.
Comment 1 Nicolas Gruel 2008-03-18 11:26:30 UTC
I have exactly the same problem with Gutsy + 6.8.0 

I'm using the ppa packages:

http://ppa.launchpad.net/tormodvolden/ubuntu/

Thank you for the driver. Good luck.

N.
Comment 2 Kris Kersten 2008-03-21 10:34:26 UTC
I can confirm this with Ubuntu Hardy (current as of 2008/03/21) on two systems, both using the xserver-xorg-video-ati driver.  One is a ThinkPad T40 with the ATI Mobility 9000 (ATI Technologies Inc Radeon RV250 [Mobility FireGL 9000]), and the other is a workstation with an ATI X600 (ATI Technologies Inc RV380 [Radeon X600 (PCIE)]).

Both exhibit the freezing behaviour described above, usually leaving only the mouse cursor active.  The system is unresponsive to mouse clicks or keyboard events other than Alt+SysRq which can be used to "safely" restart the system.

I haven't been able to reproduce this bug with any reliability.  It seems to happen randomly when using Compiz.
Comment 3 Bryce Harrington 2008-04-16 17:02:08 UTC
This is also in Ubuntu bug https://bugs.launchpad.net/xserver-xorg-driver-ati/+bug/195051 , which has some backtraces and additional information on the bug.

Comment 4 Bryce Harrington 2008-04-17 16:22:30 UTC
I talked with Alex at XDC2008 yesterday about this.  He felt it was due to wrongly guessed registered back before the AMD documentation releases, that can now be fixed up by redoing those mappings; this is work he plans to undertake within the next 3-6 months.

Backtrace (while running Bubble3D screensaver):  http://launchpadlibrarian.net/12894430/backtrace-bubble3d

Backtrace (while running Extreme Tuxracer game):  http://launchpadlibrarian.net/12895009/backtrace-etracer  The music continues playing, but the X screens are frozen

Backtraces (without full symbols):
* http://launchpadlibrarian.net/12863959/backtrace2
* http://launchpadlibrarian.net/12177917/Xorg-lockup.txt
* http://launchpadlibrarian.net/12172793/gdb

Sample Xorg.0.log's:
* http://launchpadlibrarian.net/12433344/Xorg.0.log
* http://launchpadlibrarian.net/12172839/Xorg.0.log

Workarounds (not widely verified):
* Option "AGPMode" "1" - but hinders performance

Comment 5 Kris Kersten 2008-04-21 17:19:52 UTC
Frustrated by the freeze in Ubuntu Hardy (current), I decided to try Fedora 8 to see if there was any difference.  In three weeks of running Fedora 8 with Compiz enabled, I have yet to see the freeze.  The Fedora version of the driver is also 6.8.0-1, although I have no idea if they've modified it in any way.  Has this bug been confirmed on any distributions other than Ubuntu 7.10 and 8.04?
Comment 6 Daniel 2008-04-21 17:41:56 UTC
I'm also having this same problem on my hardy heron installation. It's upto date at time of writing and uses an ATI Radeon 9800pro and the opensource ATI driver.

It will seemingly randomly lockup everything is unresponsive apart from the mouse cursor, i have accessed the computer in this state as SSH seems to still work and running the top command shows compiz.real using up all available cpu and using sudo kill -9 i'm able to regain use of that pc again (just loosing the window decorations).
If there is anything needed to further aid the resolution of this bug please ask and i can try to help (but with the freezes being quite random and my time limited i might not be able to check this report to regularly).

PS: I'm currently only assuming this issue is related to the driver, it could be compiz itself but reading this bug description and the related launchpad.net bug it seems more likely my problem is the same as described here.
Comment 7 Nick Bauermeister 2008-04-22 07:03:40 UTC
(In reply to comment #5)
> Has this bug been confirmed on any distributions other than Ubuntu 7.10 and
> 8.04?
> 
I was able to reproduce this bug on Debian sid (xserver-xorg-video-ati 1:6.8.0) and Arch Linux (xf86-video-ati 6.8.0).
Comment 9 Nicolas Gruel 2008-04-25 13:10:55 UTC
I try this morning and the problem is still there. Freeze after some time of using compiz.
Comment 10 Alex Deucher 2008-05-07 03:00:54 UTC
Do either of the following options help?

Option "BusType" "PCI"
Option "AGPMode" "1"
Comment 11 Matt Ziegelbaum 2008-05-09 14:31:35 UTC
I flipped on EXA last night, and it seems to have solved the issue (that or some Ubuntu bug pushes).  Anyway, here's my relevant information:

Ubuntu Hardy Heron 8.04 (fully updated)

uname -r: 2.6.24-16-generic

dpkg -l | grep xserver-xorg-video-ati: 
ii  xserver-xorg-video-ati  1:6.8.0-1  X.Org X server -- ATI display driver

Xserver version: 1.4.0.90

I'm running an ATI FireGL v3200 (M24 GL 3154 PCIE) on a Thinkpad T43p.  The relevant part of my xorg.conf is:

Section "Device"
        Identifier      "ATI Technologies Inc M24GL [Mobility FireGL V3200]"
        Driver          "radeon"
        VendorName  "IBM ThinkPad"
        Option      "DynamicClocks" "on"
        Option          "XAANoOffscreenPixmaps" "true"
        Option          "AddARGBGLXVisuals" "true"
        Option          "AccelMethod" "EXA"     
        Option          "RenderAccel" "true"
        Option      "EnablePageFlip" "true"
        Option      "ColorTiling" "on"
        BusID           "PCI:1:0:0"
EndSection

The only thing I've changed myself is that I added AccelMethod EXA yesterday, and its hte first time I've gone more than 24 hours without Compiz causing a hardlock.

Hope that helps...
Comment 12 Nick Bauermeister 2008-05-18 09:35:53 UTC
(In reply to comment #10)
> Do either of the following options help?
> 
> Option "BusType" "PCI"
> Option "AGPMode" "1"
> 

Both seem to work around the freeze. At least after a quick tuxracer test.

"BusType" "PCI" is painfully slow, though.

"AGPMode" "1" results in a somewhat playable tuxracer (but then again, the radeon driver never worked for me satisfactorily when it comes to 3D games) -- I don't have anything to compare, though, because without the option, it (still) freezes instantly.
Comment 13 Nick Bauermeister 2008-05-18 09:52:56 UTC
I just did another test, where I replaced

 Option "AGPMode" "1"

with

 Option "DynamicClocks" "on"
 Option "XAANoOffscreenPixmaps" "true"
 Option "AddARGBGLXVisuals" "true"
 Option "AccelMethod" "EXA"     
 Option "RenderAccel" "true"
 Option "EnablePageFlip" "true"
 Option "ColorTiling" "on"

and tuxracer immediately froze again.

Maybe I shouldn't have copied *all* of Matt's options but frankly I'm not in the mood for any more trial and error.
But Alex, if you need me to do any further testing, just ask.

I will stick to "AGPMode" "1" for now and report back if I stumble across any issues.
Comment 14 Nick Bauermeister 2008-05-18 10:23:38 UTC
Sorry for the multiple posts but I just did another test where I only used

 Option "AccelMethod" "EXA"

because it was recommended in my report over at Launchpad.

The result was a much more fluent tuxracer that was actually playable.
The downside however, is a much slower 2D rendering. For example when moving a window over an area of the desktop with icons, the background flickers.
Also moving a window from one viewport to another on Compiz will result in a pretty rough transition.

It would be great if we could have the best of both worlds.
Adding both options unfortunately doesn't do the trick.
Comment 15 Alex Deucher 2008-05-18 11:04:22 UTC
(In reply to comment #14)
> Sorry for the multiple posts but I just did another test where I only used
> 
>  Option "AccelMethod" "EXA"
> 
> because it was recommended in my report over at Launchpad.
> 
> The result was a much more fluent tuxracer that was actually playable.
> The downside however, is a much slower 2D rendering. For example when moving a
> window over an area of the desktop with icons, the background flickers.
> Also moving a window from one viewport to another on Compiz will result in a
> pretty rough transition.
> 
> It would be great if we could have the best of both worlds.
> Adding both options unfortunately doesn't do the trick.
> 

EXA preforms pretty well with the latest ati driver from git a recent X server.

The root of this problem in your case is that AGP sucks.  There are just too many combinations of agp cards and chipsets that only work at specific settings (some only work at 1x, others only work at 4x or 8x, etc.).  We've tried both defaults in the driver, but someone's combination always breaks.
Comment 16 Nick Bauermeister 2009-10-05 06:59:09 UTC
I am on the beta of Ubuntu 9.10 (Karmic) and I'm glad to tell you this issue seems to be gone for good.
I did not need to create a xorg.conf and set something manually this time.
Compiz works out of the box and does not cause X to freeze.

I even tried running "Extreme Tuxracer" and while the game runs horribly slow, it does not freeze.

According to my Xorg.0.log, I am using the radeon driver so I consider this fixed.
Thank you.
Comment 17 Nick Bauermeister 2009-10-05 07:44:49 UTC
Sorry, I obviously spoke too soon. After a couple of days without a problem, X froze just now using Openoffice (and Compiz enabled).

reopening...
Comment 18 Alex Deucher 2010-10-19 16:16:50 UTC
Is this still an issue with kms or a newer version of the driver?
Comment 19 Manuel Lauss 2010-10-24 00:57:44 UTC
(In reply to comment #18)
> Is this still an issue with kms or a newer version of the driver?

I still experience hard systen freezes with latest drivers.  Only workaround
is to disable AGP completely (radeon.agpmode=-1).  Starting KDE4 with OpenGL
compositing enabled freezes the system every time; with firefox it takes a while.  This started happening with xf86-video-ati git releases around mid-april 2008, with and without KMS.  (Mobility 9700, intel 855PM).
Comment 20 Alex Deucher 2010-10-24 08:40:04 UTC
This may be a duplicate of bug 28402
Comment 21 almos 2011-03-10 12:52:28 UTC
I also experienced random freezes after a 3d application ran, but only with kernels newer than 2.6.33. The solution was to change preemption model from preemptible kernel to voluntary kernel preemption. Might this be related?
Comment 22 in4mer+freedesktopbugzilla 2012-12-18 23:20:16 UTC
I can confirm that this has been happening on Ubuntu 12.04 as of 12/17/2012.

This usually occurs using compiz when the monitors go into ACPI power save mode.  This occurs using both the open source ATI driver, and fglrx.
Comment 23 Michel Dänzer 2012-12-19 11:08:55 UTC
(In reply to comment #22)
> This usually occurs using compiz when the monitors go into ACPI power save
> mode.

If it only happens at DPMS power save, it's probably not this bug but bug 49761.
Comment 24 in4mer+freedesktopbugzilla 2012-12-19 20:41:37 UTC
Nope, don't think so
Comment 25 Michel Dänzer 2012-12-20 13:07:09 UTC
(In reply to comment #24)
> Nope, don't think so

Why not? Have you tried the fix for that?
Comment 26 in4mer+freedesktopbugzilla 2012-12-20 20:12:58 UTC
As I said earlier, it happens identically with both fglrx and xorg-video-ati.  If a patch to xorg-video-ati fixes a bug while using fglrx, that would be surprising indeed.
Comment 27 Alex Deucher 2012-12-20 20:17:38 UTC
(In reply to comment #26)
> As I said earlier, it happens identically with both fglrx and
> xorg-video-ati.  If a patch to xorg-video-ati fixes a bug while using fglrx,
> that would be surprising indeed.

Does the patch for xf86-video-ati fix xf86-video-ati?
Comment 28 Michel Dänzer 2012-12-24 18:23:03 UTC
(In reply to comment #26)
> If a patch to xorg-video-ati fixes a bug while using fglrx, that would be
> surprising indeed.

The component field of this report says Radeon. It's unlikely for fglrx and radeon to be affected by one and the same bug. It's possible that fglrx has a similar bug though.
Comment 29 Martin Peres 2019-11-19 07:28:52 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/xorg/driver/xf86-video-ati/issues/3.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.