Created attachment 59069 [details]
Version: unspecified (using Devel)
with a new linux-account, at start (login) kwin crashes everytime.
crash handler is attached
Steps to Reproduce:
crashes in glCreateProgram() - please attach a dump of glxinfo
Created attachment 59101 [details]
the output of glxinfo
This bug occurs only the *first* time the user is logging on.
from the glxinfo:
OpenGL vendor string: VMware, Inc.
OpenGL renderer string: Gallium 0.4 on softpipe
so this happens in vmware, ritght? (i actually thought it was blacklisted for compositing but perhaps cheated in by the gallium string ;-)
I guess kwin crashes and at some point restarts with disabled compositing - is that correct?
I am using Archlinux 64 bits.
I got kdelibs and more from git, compiled myself.
What kind of system (notably GPU & Driver) do you have and why does it claim vmware as vendor if it's *not* vmware??
sorry for delay, I was a few days out of home.
I get an update from Archlinux today to 7.10.2-2 for sis-dri and libgl.
The problem is still present.
The /var/log/Xorg.0.log says:
X.Org X Server 1.9.4
Current Operating System: Linux falun 2.6.37-ARCH #1 SMP PREEMPT Fri Feb 18 18:32:16 CET 2011 x86_64
compiled for 1.9.0, module version = 0.10.3
AIGLX: Loaded and initialized /usr/lib/xorg/modules/dri/swrast_dri.so
GLX: Initialized DRISWRAST GL provider for screen 0
pacman -Q -o /usr/lib/xorg/modules/dri/swrastg_dri.so
/usr/lib/xorg/modules/dri/swrastg_dri.so is owned by libgl 7.10.2-2
pacman -Q -o /usr/lib/xorg/modules/dri/sis_dri.so
/usr/lib/xorg/modules/dri/sis_dri.so is owned by sis-dri 7.10.2-2
The packages are (with ls -l):
860620 Apr 11 00:13 /var/cache/pacman/pkg/sis-dri-7.10.2-2-x86_64.pkg.tar.xz
974844 Apr 11 00:12 /var/cache/pacman/pkg/libgl-7.10.2-2-x86_64.pkg.tar.xz
you are using SIS hardware? It is unlikely that this supports OpenGL compositing.
Seems like we need to adjust our tests to recognize softpipe.
@Thomas: VMWare is developing Gallium3D
Yes, here some informations from /var/log/messages at boot-time, all the lines with "sis":
pata_sis 0000:00:02.5: PCI INT A -> GSI 16 (level, low) -> IRQ 16
scsi0 : pata_sis
scsi1 : pata_sis
sata_sis 0000:00:05.0: version 1.0
sata_sis 0000:00:05.0: PCI INT A -> GSI 17 (level, low) -> IRQ 17
sata_sis 0000:00:05.0: Detected SiS 180/181/964 chipset in SATA mode
scsi2 : sata_sis
scsi3 : sata_sis
agpgart-sis 0000:00:00.0: SiS chipset [1039/0661]
agpgart-sis 0000:00:00.0: AGP aperture is 64M @ 0xf8000000
do you need anything more?
Git commit 6aa2b5caf625a142e92bf4e7c99452bfad968a8c by Martin Gräßlin.
Committed on 30/04/2011 at 10:29.
Pushed by graesslin into branch 'master'.
No OpenGL/GLX compositing on Gallium softpipe
M +3 -2 kwin/scene_opengl_glx.cpp
Sorry, but I get the crash again, even after I got the new sources over git.
so probably the driver check for softpipe is not working.
Can you please start kwin from konsole and post the debug output with the driver information?
Created attachment 59581 [details]
the output from kwin --replace at the console
let me remember you that the crash occurs **only** the **first** time the **new** user is logging in. I never seen the crash after. The attached output is from the command kwin --replace at the console, the second time (or later) the user has logged in.
Thanks that should help a lot: the driver is not detected. I will try to get a patch and this time I will
ask you to test it before I commit :-)
> let me remember you that the crash occurs **only** the **first** time the
> **new** user is logging in. I never seen the crash after. The attached output
> is from the command kwin --replace at the console, the second time (or later)
> the user has logged in.
Yes that is expected as KWin recognizes the crash and disables compositing for the future.
Created attachment 59584 [details]
Detects softpipe driver
Please try this patch. It should detect the softpipe driver correctly, now.
Created attachment 59619 [details]
the output on May-04
- set a new user
- login 1.st time
The crash occurs at new
kwin --replace gives some more informations (siehe attachment but ...
- login 2.nd time
I get two crashes and not any kwin is running, so I don't get any K-Start-Icon
I need to kill from a tty-console.
- login 3.rd time
no crash but kwin --replace gives not any output.
ok the driver is now detected, but still crash - not good. Is it still the same crash or has the backtrace changed?
Oh and I am going to add a new patch, disabling GLSL for softpipe.
the backtrace looks like the old one. Only addresses have changed a little bit.
I would be glad to help you/us/me more at this problem.
Created attachment 59681 [details]
Detect softpipe driver
Improved detection: new method isSoftwareEmulation() plus disabling GLSL for software emulated drivers.
This patch should no longer trigger the crash, though it is possible that a different crash could be triggered.
Created attachment 59707 [details]
output from kwin --replace # May-06
looks very fine, thanks
Git commit 14782f22239c0dfe02fb96e4a8ddedad44ee8cce by Martin Gräßlin.
Committed on 06/05/2011 at 18:13.
Pushed by graesslin into branch 'master'.
Improved detection of OpenGL software emulation
Adding a new method to retrieve whether the OpenGL implementation
uses any kind of software emulation and no software emulation can
provide GLSL support, even if it claims so.
Thanks to Maurel for testing again and again proposed patches.
M +18 -3 kwin/libkwineffects/kwinglplatform.cpp
M +6 -0 kwin/libkwineffects/kwinglplatform.h
M +1 -1 kwin/scene_opengl_glx.cpp