Bug 87 - X crashes in KDE4 when 3d desktop effects are enabled with the Radeon driver
Summary: X crashes in KDE4 when 3d desktop effects are enabled with the Radeon driver
Status: RESOLVED OLD
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: Cauldron
Hardware: x86_64 Linux
Priority: Normal critical
Target Milestone: ---
Assignee: Mageia Bug Squad
QA Contact:
URL:
Whiteboard:
Keywords: Triaged
: 93 108 (view as bug list)
Depends on:
Blocks:
 
Reported: 2011-02-17 19:05 CET by Pascal Bialais
Modified: 2011-05-06 12:11 CEST (History)
7 users (show)

See Also:
Source RPM: mesa
CVE:
Status comment:


Attachments
dmesg > /tmp/dmesg.txt (54.21 KB, text/plain)
2011-02-22 23:23 CET, Pascal Bialais
Details
Xorg.0.log after the crash (54.21 KB, text/plain)
2011-02-22 23:25 CET, Pascal Bialais
Details
another Xorg crash log (66.03 KB, text/plain)
2011-02-23 01:09 CET, Tomas Kindl
Details
file /var/log/Xorg.0.log.old after crash (77.24 KB, text/plain)
2011-02-23 22:48 CET, Pascal Bialais
Details

Description Pascal Bialais 2011-02-17 19:05:49 CET
User-Agent:       Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.13) Gecko/20101230 Mandriva Linux/1.9.2.13-0.2mdv2010.2 (2010.2) Firefox/3.6.13
Build Identifier: 

Description of problem:
Accidental disconnection of the session (Crash). Random every few minutes.

motherboard: "GA-MA785GT-UD3"
graphics card: "ATI Radeon HD 4770"
Proc: AMD Phenom II X4 965
mem: 2*2Go Kingston Hyper KHX1600

Log /var/log/mesasges:

Feb 17 08:39:32 localhost net_applet[3780]: ### Program is starting ###
Feb 17 08:41:25 localhost kernel: [drm] Resetting GPU
Feb 17 08:41:25 localhost kdm[2122]: X server for display :0 terminated unexpectedly
Feb 17 08:41:25 localhost acpid: client 3488[0:0] has disconnected
Feb 17 08:41:25 localhost acpid: client connected from 3961[0:0]
Feb 17 08:41:25 localhost acpid: 1 client rule loaded
Feb 17 08:41:25 localhost kernel: [drm] Setting GART location based on new memory map
Feb 17 08:41:25 localhost kernel: [drm] Loading RV730 CP Microcode
Feb 17 08:41:25 localhost kernel: [drm] Resetting GPU
Feb 17 08:41:25 localhost kernel: [drm] writeback test succeeded in 1 usecs
Feb 17 08:41:25 localhost kdm_greet[3980]: Cannot load /usr/share/faces/.default.face: Aucun fichier ou dossier de ce type
Feb 17 08:41:35 localhost net_applet[4260]: ### Program is starting ###


Version-Release number of selected component (if applicable):


How reproducible:

Re-login
Re crash

Steps to Reproduce:
1.
2.
3.


Reproducible: 

Steps to Reproduce:
Comment 1 Tomas Kindl 2011-02-18 01:58:22 CET
This is most probably Radeon driver related...same problem with my system (featuring Mobility Radeon HD 3850), error message is the same.


Switching to VESA eliminates this problem
although it is not ideal workaround...

CC: (none) => supp
Summary: Accidental disconnection of the session => X session restart [was: Accidental disconnection of the session]

Comment 2 Ahmad Samir 2011-02-22 19:06:12 CET
Please attach /var/log/Xorg.0.log after the crash happens (but without restarting X again). Also attach dmesg.txt that results from running:
su
dmesg > /tmp/dmesg.txt

Keywords: (none) => NEEDINFO

Comment 3 Pascal Bialais 2011-02-22 23:23:53 CET
Created attachment 22 [details]
dmesg > /tmp/dmesg.txt
Comment 4 Pascal Bialais 2011-02-22 23:25:09 CET
Created attachment 23 [details]
Xorg.0.log after the crash
Comment 5 Tomas Kindl 2011-02-23 01:09:21 CET
Created attachment 24 [details]
another Xorg crash log

Log of X started from cli, crashed about 1 min later...
Comment 6 D Morgan 2011-02-23 01:24:28 CET
Backtrace from comment #5 :

[ 25297.896] 0: /etc/X11/X (xorg_backtrace+0x28) [0x4a0af8]
[ 25297.896] 1: /etc/X11/X (0x400000+0x61129) [0x461129]
[ 25297.896] 2: /lib64/libpthread.so.0 (0x7f8638905000+0xf460) [0x7f8638914460]
[ 25297.896] 3: /usr/lib64/xorg/modules/extensions/libglx.so (0x7f86364f8000+0x39dba) [0x7f8636531dba]
[ 25297.896] 4: /usr/lib64/xorg/modules/extensions/libglx.so (0x7f86364f8000+0x41bbc) [0x7f8636539bbc]
[ 25297.896] 5: /usr/lib64/xorg/modules/extensions/libglx.so (0x7f86364f8000+0x38c24) [0x7f8636530c24]
[ 25297.896] 6: /etc/X11/X (FreeResource+0x12e) [0x44a65e]
[ 25297.896] 7: /usr/lib64/xorg/modules/extensions/libglx.so (0x7f86364f8000+0x34c09) [0x7f863652cc09]
[ 25297.896] 8: /usr/lib64/xorg/modules/extensions/libglx.so (0x7f86364f8000+0x389f3) [0x7f86365309f3]
[ 25297.896] 9: /etc/X11/X (0x400000+0x2d921) [0x42d921]
[ 25297.896] 10: /etc/X11/X (0x400000+0x2190e) [0x42190e]
[ 25297.896] 11: /lib64/libc.so.6 (__libc_start_main+0xfd) [0x7f8637877c1d]
[ 25297.897] 12: /etc/X11/X (0x400000+0x214b9) [0x4214b9]
[ 25297.897] Segmentation fault at address 0x290
[ 25297.897] 
Fatal server error:
[ 25297.897] Caught signal 11 (Segmentation fault). Server aborting
[ 25297.897] 
[ 25297.897]

CC: (none) => dmorganec

Ahmad Samir 2011-02-23 19:27:03 CET

Attachment 24 mime type: text/x-log => text/plain

Comment 7 Ahmad Samir 2011-02-23 19:40:58 CET
Do you have multiple monitors plugged in?
Comment 8 Ahmad Samir 2011-02-23 19:42:49 CET
(In reply to comment #2)
> Please attach /var/log/Xorg.0.log after the crash happens (but without
> restarting X again). 

I meant /var/log/Xorg.0.log.old after the crash happens and without restarting X (as /var/log/Xorg.0.log is moved to /var/log/Xorg.0.log.old when X crashes).

Anyway there's a log with the crash in comment#5.
Comment 9 Pascal Bialais 2011-02-23 22:43:40 CET
(In reply to comment #7)
> Do you have multiple monitors plugged in?

No, one monitor.
Comment 10 Pascal Bialais 2011-02-23 22:48:32 CET
Created attachment 29 [details]
file /var/log/Xorg.0.log.old after crash


here /var/log/Xorg.0.log.old

Attachment 23 is obsolete: 0 => 1

Comment 11 Tomas Kindl 2011-02-24 23:29:08 CET
Same here - 1 monitor
D Morgan 2011-02-25 00:02:11 CET

Assignee: ahmadsamir3891 => bugsquad

Comment 12 corneliu dabija 2011-02-25 14:25:18 CET
I have turned the 3D desktop effects (kwin) off two days ago and since then I haven't experienced any more issues with the system. I have experienced similar issues with Fedora on the same machine. 
From my experience 3D + free ATI driver + KDE is a bad combination. One of them must go. Either disable the 3D effects or install the proprietary driver and see if the issue persists. If I am right, maybe Mageia should disable the 3D effects by default when the graphics card is ATI or ship the proprietary driver if that's possible.

CC: (none) => corneliu.dabija

Ahmad Samir 2011-02-25 14:55:35 CET

Attachment 29 mime type: application/octet-stream => text/plain

Comment 13 D Morgan 2011-02-25 14:57:01 CET
Backtrace from comment #10 ( is the same as for comment #6 )

[    67.355] 0: /etc/X11/X (xorg_backtrace+0x28) [0x4a0af8]
[    67.355] 1: /etc/X11/X (0x400000+0x61129) [0x461129]
[    67.355] 2: /lib64/libpthread.so.0 (0x7fbcbc745000+0xf460) [0x7fbcbc754460]
[    67.355] 3: /usr/lib64/xorg/modules/extensions/libglx.so (0x7fbcba338000+0x39dba) [0x7fbcba371dba]
[    67.355] 4: /usr/lib64/xorg/modules/extensions/libglx.so (0x7fbcba338000+0x41bbc) [0x7fbcba379bbc]
[    67.355] 5: /usr/lib64/xorg/modules/extensions/libglx.so (0x7fbcba338000+0x38c24) [0x7fbcba370c24]
[    67.355] 6: /etc/X11/X (FreeResource+0x12e) [0x44a65e]
[    67.355] 7: /usr/lib64/xorg/modules/extensions/libglx.so (0x7fbcba338000+0x34c09) [0x7fbcba36cc09]
[    67.355] 8: /usr/lib64/xorg/modules/extensions/libglx.so (0x7fbcba338000+0x389f3) [0x7fbcba3709f3]
[    67.355] 9: /etc/X11/X (0x400000+0x2d921) [0x42d921]
[    67.355] 10: /etc/X11/X (0x400000+0x2190e) [0x42190e]
[    67.355] 11: /lib64/libc.so.6 (__libc_start_main+0xfd) [0x7fbcbb6b7c1d]
[    67.355] 12: /etc/X11/X (0x400000+0x214b9) [0x4214b9]
[    67.355] Segmentation fault at address 0x290
[    67.355] 
Fatal server error:
[    67.355] Caught signal 11 (Segmentation fault). Server aborting
[    67.355] 
[    67.355] 
Please consult the The X.Org Foundation support 
	 at http://bugs.mageia.org
 for help.
Comment 14 Ahmad Samir 2011-02-25 14:57:44 CET
*** Bug 108 has been marked as a duplicate of this bug. ***
Comment 15 Ahmad Samir 2011-02-25 15:04:25 CET
Thanks corneliu.

To other reporters, does disabling the 3d desktop effects fix it for you too?

(FWIW, the fglrx driver is in the nonfree repo now too). FWIW, this should be reported upstream at bugs.kde.org (attach the Xorg.0.log.old with the crash backtrace to the upstream report).

About 3d desktop effects, IMHO they should be disabled by default in KDE4 in Mageia, it should be an opt-in not an opt-out (the same way the compiz 3d desktop effects were never enabled by default, at best the user gets asked if he wants to enable them or not during the live CD installation).

Keywords: NEEDINFO => Triaged
CC: (none) => balcaen.john
Summary: X session restart [was: Accidental disconnection of the session] => X crashes in KDE4 when 3d desktop effects are enabled with the Radeon driver

Comment 16 Ahmad Samir 2011-02-26 04:55:25 CET
*** Bug 93 has been marked as a duplicate of this bug. ***

CC: (none) => ramaspaceship

Comment 17 corneliu dabija 2011-02-26 22:56:32 CET
I installed the proprietary ATI driver through MCC for my Radeon HD 4350 and it worked great. One small problem: the mouse flickers. I removed line 
Option "SWCursor"
in
Section "Device"
in /etc/X11/xorg.conf
and now I have no problem. Maybe Mageia should remove this line by default when installing the proprietary driver.
Now with the proprietary driver the 3D effects work well. No crashes.
Comment 18 Ahmad Samir 2011-02-26 23:22:18 CET
(In reply to comment #17)
> I installed the proprietary ATI driver through MCC for my Radeon HD 4350 and it
> worked great. One small problem: the mouse flickers. I removed line 
> Option "SWCursor"
> in
> Section "Device"
> in /etc/X11/xorg.conf
> and now I have no problem. Maybe Mageia should remove this line by default when
> installing the proprietary driver.
> Now with the proprietary driver the 3D effects work well. No crashes.

Please file a separate report for the mouse issue.
Comment 19 Tomas Kindl 2011-02-27 12:52:40 CET
I confirm that turning off desktop effects prevents crashes with radeon driver...
Thierry Vignaud 2011-03-03 16:45:41 CET

CC: (none) => thierry.vignaud
Component: Installation => RPM Packages
Source RPM: (none) => mesa

Comment 20 John Balcaen 2011-03-03 18:02:00 CET
3D effects are now disabled by default for the moment with  mageia-kde4-config 1-0.14
Comment 21 John Balcaen 2011-04-13 13:03:31 CEST
Does it still happen with the latest combination of kernel/graphic driver/default configuration ?
Comment 22 Bernard MAUDRY 2011-04-13 14:33:35 CEST
I cannot enable the 3d effects with the latest configuration. I got that error message (sorry, it's in french):
  "Impossible d'activer les effets de bureau avec ces options de configuration.
  "La configuration antérieure sera rétablie."

How do I sort that out?
Comment 23 corneliu dabija 2011-04-13 18:48:04 CEST
(In reply to comment #22)
> I cannot enable the 3d effects with the latest configuration. I got that error
> message (sorry, it's in french):
>   "Impossible d'activer les effets de bureau avec ces options de configuration.
>   "La configuration antérieure sera rétablie."
> 
> How do I sort that out?

You never mentioned your hardware. I know it should be obvious since you posted in this thread, but I've seen weirder things. It's still better to provide your hardware specs regardless. So assuming you have an ATI card did you install the proprietary ATI driver (fglrx)?
I am not sure if the new driver is in the main repositories. The new driver is for sure in testing because I have it enabled and fglrx works fine with my HD 4350, desktop effects and all the good stuff.
Comment 24 Jeff Robins 2011-05-01 01:55:09 CEST
I just had the X-server restart on me, but I am using a non-HD card (X1300) and the KDE live CD (beta 2).  I have 2 monitors and had finished setting up the monitors with DVI set as primary (1680x1050) and VGA set as secondary (1024x768) and to right of DVI.  The restart occurred when I opened Firefox.  After I logged back in I opened Firefox and then setup the monitors again.  X did not restart.

Last set of lines from /var/log/messages:
Apr 30 19:32:40 localhost kernel: EXT3-fs (sda9): mounted filesystem with ordered data mode
Apr 30 19:36:38 localhost kernel: fuse init (API version 7.16)
Apr 30 19:36:41 localhost kdm[3039]: X server for display :0 terminated unexpectedly
Apr 30 19:36:41 localhost acpid: client 3100[0:0] has disconnected
Apr 30 19:36:41 localhost acpid: client connected from 4714[0:0]
Apr 30 19:36:41 localhost acpid: 1 client rule loaded
Apr 30 19:36:42 localhost kernel: [drm:drm_mode_getfb] *ERROR* invalid framebuffer id
Apr 30 19:36:43 localhost kdm_greet[4720]: Cannot load /usr/share/faces/.default.face: No such file or directory
Apr 30 19:36:58 localhost rtkit-daemon[4074]: Successfully made thread 5047 of process 5047 (/usr/bin/pulseaudio) owned by '500' high priority at nice level -11.
Apr 30 19:36:58 localhost pulseaudio[5047]: pid.c: Stale PID file, overwriting.
Apr 30 19:36:58 localhost rtkit-daemon[4074]: Successfully made thread 5055 of process 5047 (/usr/bin/pulseaudio) owned by '500' RT at priority 5.
Apr 30 19:36:58 localhost rtkit-daemon[4074]: Successfully made thread 5056 of process 5047 (/usr/bin/pulseaudio) owned by '500' RT at priority 5.
Apr 30 19:36:58 localhost rtkit-daemon[4074]: Successfully made thread 5061 of process 5061 (/usr/bin/pulseaudio) owned by '500' high priority at nice level -11.
Apr 30 19:36:58 localhost pulseaudio[5061]: pid.c: Daemon already running.
Apr 30 19:36:58 localhost rtkit-daemon[4074]: Successfully made thread 5065 of process 5065 (/usr/bin/pulseaudio) owned by '500' high priority at nice level -11.
Apr 30 19:36:58 localhost pulseaudio[5065]: pid.c: Daemon already running.
Apr 30 19:36:59 localhost net_applet[5036]: ### Program is starting ###
Apr 30 19:36:59 localhost draksnapshot-applet[5040]: ### Program is starting ###
Apr 30 19:37:02 localhost draksnapshot-applet[5040]: ### Program is exiting ###

Contents of /var/log/Xorg.0.log.old:
[  5814.969] (II) RADEON(0): Modeline "640x480"x0.0   31.50  640 656 720 840  480 481 484 500 -hsync -vsync (37.5 kHz)
[  5814.969] (II) RADEON(0): Modeline "640x480"x0.0   31.50  640 664 704 832  480 489 492 520 -hsync -vsync (37.9 kHz)
[  5814.969] (II) RADEON(0): Modeline "640x480"x0.0   25.18  640 656 752 800  480 490 492 525 -hsync -vsync (31.5 kHz)
[  5814.969] (II) RADEON(0): Modeline "720x400"x0.0   28.32  720 738 846 900  400 412 414 449 -hsync +vsync (31.5 kHz)
[  5814.969] (II) RADEON(0): Modeline "1024x768"x0.0   78.75  1024 1040 1136 1312  768 769 772 800 +hsync +vsync (60.0 kHz)
[  5814.969] (II) RADEON(0): Modeline "1024x768"x0.0   75.00  1024 1048 1184 1328  768 771 777 806 -hsync -vsync (56.5 kHz)
[  5814.969] (II) RADEON(0): Modeline "800x600"x0.0   49.50  800 816 896 1056  600 601 604 625 +hsync +vsync (46.9 kHz)
[  5814.969] (II) RADEON(0): Modeline "800x600"x0.0   50.00  800 856 976 1040  600 637 643 666 +hsync +vsync (48.1 kHz)
[  5865.274] 
Backtrace:

CC: (none) => jeffrobinsSAE

Comment 25 Thierry Vignaud 2011-05-06 12:07:43 CEST
What's the output of the following command:
lspcidrake -v | grep Card

What's needed is a GDB trace:
Please download both https://bugs.mageia.org/attachment.cgi?id=121 and
https://bugs.mageia.org/attachment.cgi?id=122

Then enable the core/debug_release media/repository and install
x11-server-debug, x11-driver-video-ati-debug, glibc-debug

Then just run "sh ./Xgdb2.sh" on a text terminal (not from a terminal within
X11!!! use Ctrl+Alt+F1), then switch back to X11 until it segfaults
(Ctrl+Alt+F7).
Comment 26 Thierry Vignaud 2011-05-06 12:11:08 CEST
BTW you never attached dmesg; you only attached your Xorg.0.log 3 times
which show that you're running a very old X11 server
We've upgrade to xserver-1.10 in March.
So I'm closing this bug as old unless you can reproduce once updated.

Status: NEW => RESOLVED
Resolution: (none) => OLD


Note You need to log in before you can comment on or make changes to this bug.