[intrepid] X locks up or crashes when screensaver activates

Bug #262605 reported by Chris Jones
106
This bug affects 2 people
Affects Status Importance Assigned to Milestone
mesa (Ubuntu)
Fix Released
High
Timo Aaltonen
Intrepid
Fix Released
High
Timo Aaltonen

Bug Description

Binary package hint: xserver-xorg-video-intel

running 2.6.27 with latest intrepid.

I have gnome screensaver configured to use "blank screen" and to lock the screen. When it activates and the screen fades out, X seems to lock up. Keyboard input is ignored (including magic sysrq keys) and the only option is to power off.

(Some suggestion has been made that the machine itself is still alive, and that it's possible to ssh in).

As a test, I tried switching to a screensaver which does display something (Flurry). When the screen faded out, X crashed and returned me to a gdm prompt. The Xorg.0.log.old doesn't have any useful information about the crash though, just some messages about AIGLX switching VT. I have attached it anyway.

Revision history for this message
Chris Jones (cmsj) wrote :
Revision history for this message
Chris Jones (cmsj) wrote :

I'm wondering if this is somehow related to bug 261101

Revision history for this message
Chris Jones (cmsj) wrote :

while X is in the broken state, it seems to be stuck in a pretty simple loop. Attached is the output of:

sudo strace -Ff -p 7677 2>x.log

Revision history for this message
Chris Jones (cmsj) wrote :

Disabling compiz prevents this crash, so it's clearly something to do with the xorg driver or the kernel portions

Revision history for this message
Alessandro Ghersi (alessandro-ghersi) wrote :

Same issue in my system with gnome and kde. I have Intel X3500 graphic card

Revision history for this message
Timo Aaltonen (tjaalton) wrote :

For me, .27-2-generic seems to work fine (GM965), but others are still having this bug (at least on 945).

Changed in xserver-xorg-video-intel:
importance: Undecided → High
status: New → Confirmed
Revision history for this message
Oliver Grawert (ogra) wrote :

i see it on a GM965/GL960, but as for Chris it goes away for me if i disable compiz.

Revision history for this message
David Tomaschik (matir) wrote :

As of today's updates, I still see it on a Intel Corporation Mobile GM965/GL960 Integrated Graphics Controller (rev 0c). Anything I can do to help debug?

Revision history for this message
David Tomaschik (matir) wrote :

A bit more information:

I performed an strace as well and got the same results as Chris does above. I took the IOCTL code and decoded it according to the documentation in the Linux Kernel. Based on that, it decodes to a Read/Write IOCTL in driver 'd', function 3A. Driver 'd' is assigned (primarily) to the drm driver. The drm driver uses function 3A for DRM_IOCTL_WAIT_VBLANK. Unfortunately, that's about where my understanding died.

I'm trying to figure out where it's called in the X code, but I'm not sure where to track it down. Maybe, however, this will help someone else figure it out. :)

Revision history for this message
Timo Aaltonen (tjaalton) wrote :

btw, I can again reproduce it with the .27-2 kernel, so it's not fixed for me either.

Revision history for this message
Nicolò Chieffo (yelo3) wrote :

To tell the truth I have this problem also in Hardy + backports! Have you tried Hardy too?

Revision history for this message
Timo Aaltonen (tjaalton) wrote :

I've tried this with mesa 7.1rc3 debs that I happened to have available, and with those it didn't hang, so the regression is in mesa..

Revision history for this message
DanielRoesler (diafygi) wrote :

I can confirm this bug with the most recent Alpha 5 updates (9/11/08). Anytime the screensaver occurs or the screen is locked, the computer become unresponsive. Keyboard and mouse is unresponsive. The screen goes black, and the screensaver does not start. This occurs when compiz is enabled.

The screensaver and screen locking occurs normally (without crashing) when compiz is disabled.

Revision history for this message
Björn Torkelsson (torkel) wrote :

0022 (torkel) tjaalton: any chance the gnome-screensaver/compiz locking X bug is fixed in the upload?
0022 (tjaalton) torkel: no, it's in mesa/drm
0023 (torkel) tjaalton: doh. I have been hitting badly with that one lately :-(
0023 (tjaalton) then as a workaround, copy http://users.tkk.fi/~tjaalton/dpkg/drirc to /etc and restart your session

Revision history for this message
Ferdinand Hagethorn (ferdinand-hagethorn) wrote :

I've tried what was suggested, but doesn't work for me though...

Revision history for this message
Sarah Kowalik (hobbsee-deactivatedaccount) wrote : Re: [Bug 262605] Re: [intrepid] X locks up or crashes when screensaver activates

This workaround doesn't work for me - it keeps repeatedly freezing.

Revision history for this message
Timo Aaltonen (tjaalton) wrote :

hm, that's too bad.. I'll revert the commit anyway and upload new mesa.

Revision history for this message
Ferdinand Hagethorn (ferdinand-hagethorn) wrote :

Looks like the last update had some mesa stuff in it. I can now confirm the gnome-screensaver working correctly.

FYI:

$ dpkg -l \*mesa*|grep ^ii|awk {'print $2" "$3'}
libgl1-mesa-dev 7.1-1ubuntu2
libgl1-mesa-dri 7.1-1ubuntu2
libgl1-mesa-glx 7.1-1ubuntu2
libglu1-mesa 7.1-1ubuntu2
libglu1-mesa-dev 7.1-1ubuntu2
mesa-common-dev 7.1-1ubuntu2
mesa-utils 7.1-1ubuntu2

Revision history for this message
Timo Aaltonen (tjaalton) wrote :

Please try the latest mesa and report back if it works/doesn't work.

Changed in mesa:
assignee: nobody → tjaalton
status: Confirmed → Incomplete
Revision history for this message
Martin Pitt (pitti) wrote :

Since this affects a lot of people and is kind of a data loss bug, the release team decided to mark this as critical for the beta.

Changed in mesa:
milestone: none → ubuntu-8.10-beta
Revision history for this message
Nicolò Chieffo (yelo3) wrote :

Seems to work for me too

Revision history for this message
Martin Pitt (pitti) wrote :

7.1-1ubuntu2 fixes this for me as well (Intel GMA945, i386)

Revision history for this message
apart (iapart) wrote :

I confirm - 7.1-1ubuntu2 fixed both the screensaver and suspend/hibernate issues on my laptop (Intel Corporation Mobile 945GM/GMS/GME). Thanks!

Revision history for this message
David Tomaschik (matir) wrote :

Seems to work for me too! (GM965/amd64)

Revision history for this message
Sarah Kowalik (hobbsee-deactivatedaccount) wrote :

Works for me too now - thanks for this! I can have my compiz back!

Revision history for this message
Martin Pitt (pitti) wrote :

I think there is sufficient evidence that this workaround works. Thanks Timo!

Changed in mesa:
status: Incomplete → Fix Released
Revision history for this message
Gilberto Olimpio (golimpio) wrote :

It's working here!

Revision history for this message
Rolando Blanco (rolando) wrote :

[Testing Intrepid Ibex - Alpha 5]

I have this error too. I'm using:

dpkg -l \*mesa*|grep ^ii|awk {'print $2" "$3'}

    libgl1-mesa-dri 7.1-1ubuntu3
    libgl1-mesa-glx 7.1-1ubuntu3
    libglu1-mesa 7.1-1ubuntu3
    mesa-utils 7.1-1ubuntu3

My card is:
rolando@defiant:~/reporting$ lshw -C display
WARNING: you should run this program as super-user.
  *-display UNCLAIMED
       description: VGA compatible controller
       product: M22 [Mobility Radeon X300]
       vendor: ATI Technologies Inc
       physical id: 0
       bus info: pci@0000:01:00.0
       version: 00
       width: 32 bits
       clock: 33MHz
       capabilities: bus_master cap_list
       configuration: latency=0

Revision history for this message
Chris Samuel (chris-csamuel) wrote :

I just ran into this same bug having upgraded to Intrepid from Hardy (Kubuntu) using do_release_upgrade.

One thing I note is that in the KDE desktop effects (advanced options) section the "Use VSync" option was enabled, so I've disabled that now and will see if it reoccurs in case it's related to the VBLANK issue mentioned above.

Revision history for this message
Dejan (dejan-rodiger) wrote :

Hi,

is this problem fixed? I am using Ubuntu 8.10 with latest updates with fxgrl drivers and compiz, and I noticed in last month time that laptop freezes often. Most likely when screensaver is running, but it doesn't have to be screensaver. Sometimes I see that System monitor is working, but no keyboard is working. Mouse works, but I can't click anywhere. One time I was able to login with ssh and I saw that process X is running at 100%, since I have Core 2, second core of the cpu was still responsive ;-)
Depending on the cpu usage (at least I think), sometimes I can press power button and I get screen with countdown from 60 (with hibernate, restart, halt, suspend) but I can't press Alt-R to restart or something. I can just wait 60 secs to halt. But my problem is that I use VmWare Workstation and started machines are killed.

Is this fixed in 9.04, because my desktop with 9.04 and nvidia doesn't have this problems?

Thank you

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.