Bug 17384

Summary: [G45] X hangs up if turning on the visual effect of gnome
Product: Mesa Reporter: Yingying <yingying.zhao>
Component: Drivers/DRI/i965Assignee: haihao <haihao.xiang>
Status: RESOLVED FIXED QA Contact:
Severity: major    
Priority: medium CC: quanxian.wang, zhenyu.z.wang
Version: 7.1Keywords: NEEDINFO
Hardware: x86-64 (AMD64)   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:
Attachments: Xorg.0.log
Xorg.conf which comments out "Load dri"
Xorg.0.log for fresh Intrepid Alpha4 with upgraded 2.6.27-rc4 kernel
default xorg.conf of Intrepid
lspci output
lspci output of my test machine

Description Yingying 2008-09-01 02:36:55 UTC
Created attachment 18609 [details]
Xorg.0.log

HW: Eaglelake gfx & ICH10
OS: Intrepid Alpha4 x86_64 with kernel 2.6.27-rc5

When I tried to login X system, the screen hang up without any response. "Ctrl+Alt+Fx" doesn't work and networking(ssh) doesn't work neither.

If comment the "dri" section in Xorg.conf, X can boot well. 

I'll attach the Xorg.0.log and Xorg.conf.
Please let me know what else I can do for this bug.
Comment 1 Yingying 2008-09-01 02:39:41 UTC
Created attachment 18610 [details]
Xorg.conf which comments out "Load dri"
Comment 2 Gordon Jin 2008-09-01 05:49:54 UTC
Does this problem only happens on Eaglelake?
Comment 3 haihao 2008-09-01 18:05:48 UTC
Obviously the driver you are using is improper.

See "(EE) AIGLX error: i965 exports no extensions (/usr/lib/dri/i965_dri.so: undefined symbol: __driDriverExtensions)" in your Xorg.0.log.
Comment 4 Yingying 2008-09-02 02:24:46 UTC
I made(In reply to comment #3)
> Obviously the driver you are using is improper.
I made a mistake. I just submitted the log files for system which we downgraded Mesa to 7.0 for bug analysis purpose.

I'll attach the log file for a fresh Intrepid Alpha4 w/ 2.6.27-rc3 kernel.
Comment 5 Yingying 2008-09-02 02:27:22 UTC
Created attachment 18633 [details]
Xorg.0.log for fresh Intrepid Alpha4 with upgraded 2.6.27-rc4 kernel
Comment 6 Yingying 2008-09-02 02:35:51 UTC
(In reply to comment #5)
> Created an attachment (id=18633) [details]
> Xorg.0.log for fresh Intrepid Alpha4 with upgraded 2.6.27-rc4 kernel

Sorry. It's 2.6.27-rc3 kernel. 
#uname -a
Linux ubuntu-MC 2.6.27-1-generic #2 SMP Wed Aug 13 19:41:04 UTC 2008 i686 GNU/Linux


Comment 7 haihao 2008-09-02 19:34:22 UTC
How do you start up X? Could you run X from a console by hand?
Comment 8 Yingying 2008-09-02 23:25:27 UTC
Created attachment 18646 [details]
default xorg.conf of Intrepid

Default xorg.conf of Intrepid. X always fails to boot in this configuration.
Comment 9 Yingying 2008-09-03 22:36:28 UTC
I tried to boot into console mode, run "X" with different xorg.conf. I got same result: a gray screen. Mouse can move, but no gnome desktop. The different xorg.conf are:
- with default xorg.conf
- with defalt xorg.conf plus "Load dri" in "Module" section
- with defalt xorg.conf plus "Option AccelMethod EXA" and "Option DRI false" in "Device" section and "Load dri" in "Module" section
- with defalt xorg.conf plus "Option AccelMethod EXA" and "Option DRI true" in "Device" section and "Load dri" in "Module" section
- with defalt xorg.conf plus "Option AccelMethod EXA" and "Option DRI true" in "Device" section and "Load dri" in "Module" section





Comment 10 Yingying 2008-09-04 01:43:31 UTC
In console mode with Intrepid default xorg.conf, I just tried to start xterm and run glxgears and it can well display the gears.

The steps I used:
> xinit /usr/bin/xterm  ->  I get  a xterm window
> glxinfo | grep rendering -> the output is:
Failed to initialize TTM buffer manager.  Falling back to classic.
direct rendering: Yes
> glxgears   -> gears display well.
Comment 11 haihao 2008-09-04 20:41:58 UTC
So X can startup well and basically direct rendering works well too. The issue you encountered should be caused by a client program, not X itself.
Comment 12 Yingying 2008-09-11 01:46:29 UTC
Hi Haihao,
I just checked this issue with Intrepid Alpha5 release and glad to see this issue disappears:-)
Thanks for your help!
Comment 13 haihao 2008-09-11 18:50:08 UTC
Marked as fixed according to comment #12
Comment 14 Yingying 2008-09-21 20:50:22 UTC
In the latest testing of Intrepid Alpha5 (kernel 2.6.27-rc5), I found that if we turn on the virtual effect of gnome, X will still hang up and only reboot can make system come back.

And another issue is after the gfx hangs up, e1000e cards will stop working. seems that a system crash writes some wrong data to EEPROM of LAN cards. A very similar discussion is also there in the e1000e mailling list which shows that after some gfx crash, his e1000e card also got corruption. http://www.mail-archive.com/e1000-devel@lists.sourceforge.net/msg00399.html
Now we can't say it's gfx crash that causes this e1000e issue, but the fix for gfx crash can help us for the e1000e issue.

Can you reopen this bug or do I create another bug?
Comment 15 haihao 2008-09-21 22:36:18 UTC
Could you provide the PCI id of your machine?
Comment 16 Bryce Harrington 2008-09-24 13:47:13 UTC
Created attachment 19156 [details]
lspci output

I can reproduce the issue with similar hardware.  lspci attached.
Comment 17 Yingying 2008-09-24 22:29:19 UTC
Created attachment 19177 [details]
lspci output of my test machine
Comment 18 Gordon Jin 2008-09-25 23:52:24 UTC
Yingying, as I understand, turning on virtual effect of gnome just means running compiz, right?
So I test compiz with mesa-7.2 + xf86-video-intel-2.5-branch + 2.6.27-rc6 on 2e02 (rev 03) (the same pci id as yours) and it works fine. 
Can you try mesa-7.2 to see if this issue has gone?
Comment 19 haihao 2008-09-26 20:52:01 UTC
I tested Intrepid with virtual effect enabled on 2e02 (rev 03), and it works fine for me.
Comment 20 Yingying 2008-09-26 21:01:12 UTC
(In reply to comment #19)
> I tested Intrepid with virtual effect enabled on 2e02 (rev 03), and it works
> fine for me.

I just want to make sure the "visual effect" is set to "normal" (it's "none" in default installation), right?
And after you login gnome desktop, can you run some application, like firefox.etc. Sometimes, gfx can't crash until we run some GUI applications.

Comment 21 haihao 2008-09-26 22:43:48 UTC
(In reply to comment #20)
> (In reply to comment #19)
> > I tested Intrepid with virtual effect enabled on 2e02 (rev 03), and it works
> > fine for me.
> I just want to make sure the "visual effect" is set to "normal" (it's "none" in
> default installation), right?

normal or extra.

> And after you login gnome desktop, can you run some application, like
> firefox.etc. Sometimes, gfx can't crash until we run some GUI applications.
> 
Normal operations such as open, maximize/minimize, drag a window all work fine. 
If only a special application cause X hung up, I think you should open a new bug  to track it (You said you failed to login into X in your bug description)    and detail how to reproduce this issue.




Comment 22 Yingying 2008-09-27 20:30:12 UTC
> If only a special application cause X hung up, I think you should open a new
> bug  to track it (You said you failed to login into X in your bug description) 
>   and detail how to reproduce this issue.

Before we upgraded mesa to 7.2 (in Intrepid Alpha6, the mesa is 7.1-RCx), X always hangs right after we input the username/password and login the system without running any applications. 

Yesterday we upgraded mesa to 7.2 and tried these operations:
- First time, Run one application caused X hang, steps:
1. After default installation (compix is disable by default), login system and upgraded the mesa packages and then turn on "visual effect" to "normal" and then reboot system
2. After login system, there's no X crash. But when I run "Synaptic Package Manager", screen became black and we could only see the mouse moving. 
3. Press "Ctrl+Alt+Fx" can't show any console,  but we also tried to press "Ctrl+Alt+F2" and input "username", "password", "sudo reboot", "password"
4. After several minutes, system didn't perform "reboot", but shut down.

- Second time, we powered on the machine and system failed to boot.
After press the "power on" button, we can see the boot progress bar. But we didn't see the login window after the progress bar reached 100% as expected, instead, system shut down again.

- Third time, we powered on the machine and X hang right after I login the system.

The mesa-7.2 packages I updated for Intrepid Alpha6 are:
ii  libgl1-mesa-dri 7.2-1ubuntu1   A free implementation of the OpenGL API -- D
ii  libgl1-mesa-glx 7.2-1ubuntu1   A free implementation of the OpenGL API -- G
ii  libglu1-mesa    7.2-1ubuntu1   The OpenGL utility library (GLU)
ii  mesa-utils      7.2-1ubuntu1   Miscellaneous Mesa GL utilities

I don't think is caused by some specific application, we also meet this issue when we run firefox.

Comment 23 Eric Anholt 2008-10-14 15:54:55 UTC
This needs to be retested against current drm-intel-next kernel and master xf86-video-intel.
Comment 24 Michael Fu 2008-11-11 17:28:16 UTC
this one should be fixed now. please reopen if it doesn't. thanks.

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.