Created attachment 86306 [details]
KWin crashes with the following message after switching from OpenGL 2.0 + Raster to OpenGL 3.1 + Raster:
[xcb] Unknown sequence number while processing queue
[xcb] Most likely this is a multi-threaded client and XInitThreads has not been called
[xcb] Aborting, sorry about that.
kwin: xcb_io.c:274: poll_for_event: Assertion `!xcb_xlib_threads_sequence_lost' failed.
Some information about the system (Arch Linux x86_64):
$ uname -srvm
Linux 3.11.1-1-ARCH #1 SMP PREEMPT Sat Sep 14 19:30:21 CEST 2013 x86_64
$ sudo lspci | grep VGA
01:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Pitcairn XT [Radeon HD 7870 GHz Edition]
$ yaourt -Qs mesa | egrep '^[^ ]'
$ yaourt -Qs xf86-video-ati
extra/xf86-video-ati 1:7.2.0-1 (xorg-drivers xorg)
# cat /etc/X11/xorg.conf.d/05-glamor.conf
# cat /etc/X11/xorg.conf.d/50-device.conf
Identifier "Default Device"
Option "SwapbuffersWait" "off"
Option "ColorTiling" "on"
Option "ColorTiling2D" "on"
Option "EnablePageFlip" "on"
Option "AccelDFS" "on"
Option "XV_VSYNC" "on"
Option "AccelMethod" "glamor"
#Option "AccelMethod" "EXA"
Created attachment 86307 [details]
Created attachment 86308 [details]
Created attachment 86309 [details]
As you can see in the kwin stdout output, radeonsi only supports OpenGL 2.1 in Mesa 9.2. I suspect the problem happens when kwin tries to create an OpenGL 3.x context, but I wonder if this is radeonsi specific — does it not happen e.g. if you run kwin with LIBGL_ALWAYS_SOFTWARE=1 ?
I am not sure how to confirm it. I tried launching:
LIBGL_ALWAYS_SOFTWARE=1 kwin --replace > kwin_stdout_LIBGL_ALWAYS_SOFTWARE.txt 2> kwin_stderr_LIBGL_ALWAYS_SOFTWARE.txt
and it disabled desktop effects; then I tried to switch to OpenGL 3.1 + Raster and Kwin crashed displaying 'report bug assignment' window and then was restarted automatically without effects. I could not enable effect anyhow.
kwin_stdout_LIBGL_ALWAYS_SOFTWARE.txt was empty.
Created attachment 86794 [details]
kwin stderr with LIBGL_ALWAYS_SOFTWARE=1
Pretty much old bug, is this still an issue with current mesa?
As per comment 4 radeonsi in 2013 probably didn't support the required OpenGL support. Closing.