logout hang xserver with ati open drivers

Bug #119635 reported by tasadar_f
26
Affects Status Importance Assigned to Milestone
xserver-xorg-video-ati (Ubuntu)
Invalid
High
Unassigned

Bug Description

I find similar bugs but not the same

I used Ubuntu 7.04 final + all updates

Steps to reproduce: (the bug appear usually (not always) )

1- Login user "A"
2- click change user button and login user "B" (both session are open "A" & "B")
3- User B use PC more than 5 min. (with more time more probably to happen)
4- Click logout button or change user botton "xorg hang" "screen freeze"

I test with: driver "ati" "vesa" "fglrx"

Xorg hang with all drivers.
fglrx is quite diferent "xorg hang" "screen is black"

kernel.log xorg.log and syslog are normal

control+alt+backspace not work
control+alt+Fn not work
restarserver=TRUE in gdm.conf not work

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

The fglrx hang should be fixed with the latest fglrx. The hangs with ati and vesa must be different bugs. I've posted fglrx debs here:

    http://people.ubuntu.com/~bryce/Testing/

These are the packages I installed in my tests: fglrx-control, xorg-
driver-fglrx, fglrx-kernel-source, linux-restricted-modules-common,
linux-restricted-modules-2.6.22

Also turn off Composite if you have it on (fglrx doesn't support it)
fglrxinfo and glxgears are useful to verify its working

Revision history for this message
Zannax (stefanoz72) wrote :

I've quite the same bug, I paste a description:

it completely FREEZES my system 100% of the times (let's see if it's a common issue):

1- Reboot the system and login (don't try it with open programs as you can loose your data)
2- Go to the "power off" menu and choose "SWITCH USER"
3- Login as a different user, say "User2"
4- Open the F-Spot program on the User2 desktop
5- Close it (optional)
6- Go to the "power off" menu and choose "LOG OUT"

(My system freezes so badly that I can't even bring up a terminal with ctrl+alt+f2: I can only hard-reset it!!)
Maybe it's a problem with my ATI radeon 7000 video card switching between different resolutions... it seems not to be 100% reliable/supported, I don't know.
My system is a Feisty (upgraded from Edgy), with ubuntustudio packages installed...

I'm using "ati" opensource driver for my video card.

Revision history for this message
Jukka (jukkaleppikangas-elisanet) wrote :

Woohoo! At last someone else finds this bug. I filed a bug report about this two months ago.

Revision history for this message
Zannax (stefanoz72) wrote : [solved] logout hang xserver

I've found a workaround too:
At least in my case the problem was with the composite extension.

**Disabling composite extension completely solved the problem: no more freezes on logout.**
(you say goodbye to desktop effects, too... :-( I can live without)

Revision history for this message
Zannax (stefanoz72) wrote : Re: logout hang xserver

Sorry, I forgot to say, for complete information, that the system was not "completely" freezing:
I couldn't do ctrl+alt+backspace, but I *could* still reboot with alt+sysreq+ r, s, e, i, u, b

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

Can others confirm that this lock up still occurs with the "ati" driver? Please attach your /var/log/Xorg.0.log.old file after rebooting when experiencing this problem.

I'm going to assume the lockups when running fglrx are all already fixed - if not, and you can confirm lockups when using fglrx >= 8.37.6, please file a new bug.

Changed in xorg:
status: New → Incomplete
Revision history for this message
Zannax (stefanoz72) wrote : Re: logout hang xserver with vesa and ati open drivers

I'm using "ATI" driver, my card is Radeon RV100 QY [Radeon 7000/VE], the way I reproduce this lock-up is posted some comments above. I've rebooted with alt+sysreq and attached Xorg.0.log.old.
Hope it helps. :-)

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

Thanks, marking confirmed and high importance.

Changed in xorg:
importance: Undecided → High
status: Incomplete → Confirmed
Revision history for this message
tasadar_f (tasadarf) wrote :

I'm using "ATI" driver, my card is ATI Technologies Inc RV350 AQ [Radeon 9600],

Revision history for this message
mabovo (mabovo) wrote :

I can confirm this bug too with ATI RV350 using ati driver. This bug occurred when I was struggling with Compiz and desktop effects. I also could type Ctrl-Alt+backspace and see some failing notes scrolling in the console but couldn't register the significance of them. I have the impression that xorg is looking for a second monitor or a TV attached to the video driver.

Revision history for this message
edav (edav) wrote :

Hello,

Kubuntu 7.10, ATI Radeon 9550 with driver 8.40.4. Desktop effects are not enabled. "Change user" hangs the X server: only alt+sysreq+ r, s, e, i, u, b are still available.

This problem is VERY annoying because we are 5 users on the same PC and closing/open sessions all the time is not a long term solution...

Thx,
edav.

Revision history for this message
tasadar_f (tasadarf) wrote :

Edav, You have fglrx driver (close code)

This post is only for driver ATI(open code) and vesa

Revision history for this message
Bram Verweij (amverweij) wrote :

Could you try the patches posted at https://bugs.freedesktop.org/show_bug.cgi?id=13398?
I believe they should solve this bug.

Revision history for this message
edav (edav) wrote :

Tasadar_f, you're right, sorry. I was experiencing the same problem with fglrx as the one described here.

I just installed the latest release from ATI and the problem is gone : I can change users easily now.

Thx,
edav.

Revision history for this message
Etienne (etienne-rebetez) wrote :

I think i have the same problem in Hardy. I'm using Kubuntu. The problem did not apear in Gutsy or earlier realises.

Wehn i logout the screen gets black, the mouse is still visible but i can't move her.
Ctrl+Alt+Backspace: dosn't work
Ctrl+Alt+F1: dosn't work
Ctrl +Alt+Del: Reboot the Computer

I have the open ATI driver istalled.
Hardware: Thinkpad T43p.

||/ Name Version Beschreibung
+++-=========================================-============================-============================================
ii xorg 1:7.3+10ubuntu5 X.Org X Window System

Revision history for this message
Etienne (etienne-rebetez) wrote :
Revision history for this message
Bram Verweij (amverweij) wrote :

Etienne,

What is common to all these bug reports is that neither Xorg.0.log nor dmesg show anything unusual. To see what your problem is, you need to try to produce a core dump, look at it with gdb, and post the backtrace to this forum.

Now I don't run (K)ubuntu, so I do not now the specifics of your platform. However, I would guess you should
(i) Login to a console
(ii) sudo su - # become root
(iii) ulimit -c unlimited # allow core dumps
(iii) startx -- :1 # start X on a new display. (If :1 is taken, use :2 etc.)
You should now see a new X display, with one (or more) open xterm(s) on it. Continue in the top-left xterm:
(iv) exit # this is the same as logging out of X and should reproduce your crash.

If all went well, the core dump is now in the directory where you typed startx. Reboot your system, go to this directory, and type "gdb /usr/bin/X core". At the gdb prompt, just type 'bt' and return.

In order to produce a readable backtrace, I suspect that you will also need to have debug libraries (or debugging symbols) installed for glibc, mesa and X.

Bram

Revision history for this message
Etienne (etienne-rebetez) wrote :

Hi Bram
I tryed your instructions, but i the logout worded well! No crash or so.
After some tests i figured out that the freez only hapens when i using KDE3 and my Homedirectory.
The freez doesn't hapen with a fresh KDE3 user or with a KDE4 session.
At the moment i have no idea what in my homedir could cause the freez.
Where could i find a logfile or somthing similar to help solving that problem?
Thanks
Etienne

Revision history for this message
Bram Verweij (amverweij) wrote :

Etienne,
Some KDE errors would show up in ~/.xsession-errors.
Ubuntu has excellent documentation about debugging X at https://wiki.ubuntu.com/X/Debugging. Some notes about debugging KDE can be found at http://ubuntuforums.org/showthread.php?t=236065.
It seems that it might be easier to clean your home directory to solve your problem.
Bram

Revision history for this message
Sebastian Abate (sebastianabate) wrote :

(Poor english, sorry)
Some more info:
OS: Kubuntu 8.04 (compiz installed but dissabled)
Video: Ati X1250 (on-board, Asus m2a-vm HDMI)
drivers: ATI and fglrx (not vesa)

To reproduce i just need to select logout, restar, shutdown or ctrl+alt+backspace, i dont need to switch user.

If I press ctrl+alt+F1 just after click on logout (very quickly), i can access a terminal, and login on a text console. I cant get back to F7, and top shows xorg eating 100% of the cpu. I cant kill xorg (sudo kill -9 PID, sudo killall Xorg dont kill the proccess) but i can do a reboot or a shutdown (with reboot, shutdown -h now, ctrl+alt+del, etc).

With a clena install, without ATI or fglrx, and up tu date, all work OK. If ATI or Restricted drivers are enable, the problem appears.

If i can provide more info, please tell me what (and how)

Revision history for this message
Etienne (etienne-rebetez) wrote :

Hi Sebastian
Cool i'm not alone;)
I think i might just fixed the problem with our homedirectory. Try erase the content of ~/.kde/share/config/session
It worked for me. Now i can logout from my account without problems.
Regards
Etienne

Revision history for this message
DarK SouL (jose-nieves) wrote :

I have the same problem as Etienne and Sebastian, however, I am using gnome and Etienne solution wont work for me.

If I delete every hidden directory inside my home/username folder it fixes the problem temporarily, but its very uncomfortable to delete that every time it happens.

Revision history for this message
DarK SouL (jose-nieves) wrote :
Revision history for this message
DarK SouL (jose-nieves) wrote :
Bryce Harrington (bryce)
Changed in xorg:
status: Confirmed → Triaged
Revision history for this message
Olivier B (obourrion) wrote :

I recently upgraded from GUTSY to HARDY (kubuntu with ATI card and open driver) and then I experienced also the same black screen problem at logout or shutdown.

I still had the possiblity to do CTRL+Fn and remote manually. Finally I tried what suggested Etienne "Try erase the content of ~/.kde/share/config/session", but it had no result.
By looking at the process ("top") I figured out it was a problem with "keytouch", which I removed. Now The problem is fixed.

Revision history for this message
Sebastian Abate (sebastianabate) wrote :

Ok, its seems that my problem is with KDM. Neither Etienne or DarK SouL solution works for me.
But when KDM is disabled, I can login/logout as many times as I want.

To reproduce:

1- Boot in recovery mode and "sudo mv /etc/init.d/kdm /kdm"
2- Reboot, login as a normal user and "startx"
3- Logout from KDE
4- "startx"
5- Repeat from 3- as many times as you whant.

I can reproduce this with "ati" and "fglrx" driver.

I'm moving to bug #211318 (seems to be the correct for me)

Revision history for this message
Adi Roiban (adiroiban) wrote :

I had a similar problem in Hardy.

When i tried to log out the computer frezze for about 1 minute. Durint that time interval I could only press Ctrl+Alt+Backspace

I was only using GNONE without composite manager.. but previously in feisty i was trying the new KDE.

Removing the whole .kde folder solved the problem .

I have no idea why some file in .kde were blocking the gnome-seesion --kill

Revision history for this message
khink (kees-fmf) wrote :

Same here:

- Most of the time, when both users have been logged in for a while, i get this after only one switch-and-back cycle. When both users have just logged in, i have to repeat it a couple of times in order to get the freeze.
- Switching via the fast-switch applet and via the logout menu produces the same result.
- For both user A and B, screen locking when switching users is disabled.
- Killing X by pressing Ctrl-Alt-Backspace doesn't work, neither does restarting by pressing Ctrl-Alt-Delete
- It's not just a stalled gdm, the entire system freezes. For example, if i'm logged in on the computer via ssh, that session freezes too. Music still playing on one of the users (Amarok) will quit or stall.
- I use the open source ati driver.
- I do not have desktop effects (compiz) enabled. (I can not enable these; why this is is perhaps a related issue. Whenever i try (via preferences > appearance > tab visual effects), it says "desktop effects could not be enabled".)
- Removing ~/.kde doesn't help

Can i help by submitting output?

Revision history for this message
khink (kees-fmf) wrote :
Revision history for this message
khink (kees-fmf) wrote :

This is my old file, it's rather long, I'll reproduce the crash and send the new one asap.

Revision history for this message
khink (kees-fmf) wrote :

New .xsession-errors, doesn't show anything new

Revision history for this message
khink (kees-fmf) wrote :

I just started up the debugger. Unfortunately i wasn't able to obtain a backtrace, because the system froze. I'll list the terminal output here.

Revision history for this message
khink (kees-fmf) wrote :

I was also not able to find a core (i did "sudo find / -type f -name core"). Should i? I did "ulimit -c unlimited" before restarting gdm.

Revision history for this message
Brian Murray (brian-murray) wrote : Ubuntu needs you!

Thanks for taking the time to report this bug and helping to make Ubuntu better. In the development cycle for Intrepid there have been some vast improvements in the open source ati video driver and we could use your help testing them. Could you please download the latest Alpha CD image of Intrepid and test this particular bug just using the Live CD? You can find the latest image at http://www.ubuntu.com/testing . Your testing can help make Ubuntu and the open source ati driver even better! Thanks in advance.

Changed in xserver-xorg-video-ati:
status: Triaged → Incomplete
Revision history for this message
khink (kees-fmf) wrote :

I tried the Intrepid Alpha 4 CD (desktop amd64). After a normal boot (select language, select run from live cd), I was able to follow the boot process on the terminal screen (ctrl-alt-f1). Everything went OK until starting gdm: black screen, TFT light flashing (indicating an incorrect mode). I lsmod'ed for ati, radeon and fglrx, no result. I didn't see any other output in lsmod that looked like a graphics driver. What driver could i look for? Hardware: HP Pavillion a6310 - Dual Core E2200 - ATI Radeon HD2350.

Revision history for this message
Brian Murray (brian-murray) wrote :

khink could you please submit a new bug report about that issue using the xserver-xorg-video-ati package and include the PCI ID of your video card. You can find that via 'sudo lspci -vvnn'. Thanks.

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

There are a number of people subscribed to this bug, however based on the descriptions I think you're not all having exactly the same bug. A number of different classes of bugs can result in hung systems, but they hang in different ways.

If your system hangs solidly, such that even ssh doesn't work, this strongly indicates a kernel bug. When X locks up, it only takes out X - not the whole system.

If ctrl-alt-backspace still works, then X is certainly bugged, but these are completely different bugs than ones where ctrl-alt-backspace *doesn't* work.

If the mouse cursor still works, these are different from bugs where the cursor doesn't work.

Hangs that go away if compiz or DRI is disabled are different from hangs that occur with it on or off both.

So, I'd really encourage each of you to report your bug separately. It's appreciated that you're trying to help save some time not filing duplicate bugs, but I think we're more likely to sort out each person's issue if they're reported separately; it's pretty easy for us to link bugs as dupes so no worries.

For -ati cards, hangs can often be caused by AGP incompatibilities - particularly hangs which only occur when DRI is enabled, that lock up the system but leave the mouse still working, and that cannot be ctrl-alt-backspace'd. If you suspect you have this kind of bug, please test it by adding the AGPMode option to your /etc/X11/xorg.conf Device section, like:

Section "Device"
   ...
   Option "AGPMode" "2"
EndSection

Also try values of 1, 2, 4, and 8. (4 is often the default). If this works, then we may be able to add a quirk to make your hardware combo work - in this case please file a NEW bug and provide the following data:

  * AGPMode value needed
  * Make/Model of laptop or motherboard
  * Output of lspci -vvnn
  * Is the system all factory hardware, or have any parts been replaced?
  * Is there an AGP Mode in the system BIOS?
    - If so, is it set to the factory default?

Revision history for this message
Ken4000 (kennethj-mail) wrote :

Hi there
I'm running Ubuntu 8.04 with Gnome and I have the same problem!
I'm running a Dell Inspiron 8600 1.7GHz with an ATi Radeon 9600 Turbo Pro graphic card. Everything just works fine and I get fine result with the glxgears and fglrxinfo. I haven't setup anything only enabled the 3D and installed Compiz fusion.

When I logout or switch user it's going in black screen and can do anything but push the power button :(
It's running fglrx in the xorg.conf. I have tryed to change the fglrx to ati and then it works, but then the 3D isn't working.

Some say it's because of the atieventsd.sh script has some wrong file destinations and then locks up. But I'm a newbie here, so don't know anything about it.

I don´t know if I run the free og restricted ati driver...it's the one from Ubuntu 8.04 when I installed it.

Can I do something to help? Because it's pretty ignoring.

Best regards
Kenneth

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

This bug report has gotten too long and confusing, with many me-too's that I suspect are actually unrelated to the original reported problem. The title describes a general symptom that a lot of different bugs can cause, so this has caused confusion.

We've not heard from the original reporter tasadar_f, in almost a year, so it's not clear if the original issue is even still present. tasadar_f, if the issue *is* present, please feel free to reopen.

Everyone else seeing logout issues, please report a NEW bug and do not reopen this one.

Changed in xserver-xorg-video-ati:
status: Incomplete → Invalid
Revision history for this message
tasadar_f (tasadarf) wrote :

Sorry.

My ATI 9600SE card broke long time ago.

Bryce Harringston close de bug is the best option.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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