When the Euphoria (GL) Screensaver starts, KWIN crashes

Bug #850628 reported by Jon "The Nice Guy" Spriggs
30
This bug affects 10 people
Affects Status Importance Assigned to Milestone
KDE Base Workspace
Won't Fix
High
kde-workspace (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

When I come back to my PC, the screensaver has frozen, and when I then unlock the machine, it shows that KWin has crashed.

ProblemType: Bug
DistroRelease: Ubuntu 11.04
Package: kde-window-manager 4:4.6.2a-0ubuntu5.1
ProcVersionSignature: Ubuntu 2.6.38-11.48-generic-pae 2.6.38.8
Uname: Linux 2.6.38-11-generic-pae i686
Architecture: i386
Date: Thu Sep 15 06:48:19 2011
EcryptfsInUse: Yes
InstallationMedia: Ubuntu 11.04 "Natty Narwhal" - Release i386 (20110427.1)
ProcEnviron:
 LANGUAGE=en_GB:en
 PATH=(custom, user)
 LANG=en_GB.UTF-8
 SHELL=/bin/bash
SourcePackage: kdebase-workspace
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
In , Adler-187 (adler-187) wrote :
Download full text (9.1 KiB)

Application: kwin (4.5.1 (KDE 4.5.1) "release 3")
KDE Platform Version: 4.5.1 (KDE 4.5.1) "release 3"
Qt Version: 4.6.3
Operating System: Linux 2.6.34.7-0.3-desktop x86_64
Distribution: "openSUSE 11.3 (x86_64)"

-- Information about the crash:
- What I was doing when the application crashed:

I'm not exactly sure how KWin crashed, but I was watching a flash video in Chromium. It ended and I alt-tabbed and things locked up. Suddenly a Chromium tab was in it's own window like I had dragged it off the tab bar, but I hadn't. Not sure if this really helps or not.

This is on an R400 Thinkpad laptop with intel i945 graphics. KWin works fairly good with effects but these intel drivers are really buggy it seems.

-- Backtrace:
Application: KWin (kwin), signal: Segmentation fault
[KCrash Handler]
#6 intel_region_buffer (intel=0x780530, region=0x0, flag=2) at intel_regions.c:498
#7 0x00007f123d601dc4 in intelClearWithBlit (ctx=0x780530, mask=2) at intel_blit.c:266
#8 0x00007f123d603dca in intelClear (ctx=0x780530, mask=<value optimized out>) at intel_clear.c:173
#9 0x00007f12540ddf85 in KWin::SceneOpenGL::paintBackground (this=<value optimized out>, region=<value optimized out>) at /usr/src/debug/kdebase-workspace-4.5.1/kwin/scene_opengl.cpp:892
#10 0x00007f12541372b6 in KWin::Scene::paintGenericScreen (this=0x10a60a0, orig_mask=32) at /usr/src/debug/kdebase-workspace-4.5.1/kwin/scene.cpp:187
#11 0x00007f12541090aa in KWin::Scene::finalPaintScreen (this=0x10a60a0, mask=32, region=<value optimized out>, data=<value optimized out>)
    at /usr/src/debug/kdebase-workspace-4.5.1/kwin/scene.cpp:177
#12 0x00007f125413a4dc in KWin::EffectsHandlerImpl::paintScreen (this=<value optimized out>, mask=32, region=<value optimized out>, data=...)
    at /usr/src/debug/kdebase-workspace-4.5.1/kwin/effects.cpp:172
#13 0x00007f123ccf8e6f in KWin::LogoutEffect::paintScreen (this=0x10790b0, mask=32, region=..., data=<value optimized out>)
    at /usr/src/debug/kdebase-workspace-4.5.1/kwin/effects/logout/logout.cpp:207
#14 0x00007f125413a56c in KWin::EffectsHandlerImpl::paintScreen (this=0x1341ca0, mask=32, region=<value optimized out>, data=...) at /usr/src/debug/kdebase-workspace-4.5.1/kwin/effects.cpp:168
#15 0x00007f123ccfd842 in KWin::PresentWindowsEffect::paintScreen (this=0x11311c0, mask=32, region=..., data=<value optimized out>)
    at /usr/src/debug/kdebase-workspace-4.5.1/kwin/effects/presentwindows/presentwindows.cpp:196
#16 0x00007f125413a56c in KWin::EffectsHandlerImpl::paintScreen (this=0x1341ca0, mask=32, region=<value optimized out>, data=...) at /usr/src/debug/kdebase-workspace-4.5.1/kwin/effects.cpp:168
#17 0x00007f125279241f in KWin::Effect::paintScreen (this=<value optimized out>, mask=32, region=<value optimized out>, data=...)
    at /usr/src/debug/kdebase-workspace-4.5.1/kwin/lib/kwineffects.cpp:227
#18 0x00007f125413a56c in KWin::EffectsHandlerImpl::paintScreen (this=0x1341ca0, mask=32, region=<value optimized out>, data=...) at /usr/src/debug/kdebase-workspace-4.5.1/kwin/effects.cpp:168
#19 0x00007f125279241f in KWin::Effect::paintScreen (this=<value optimized out>, mask=32, region=<value optimized out>, data=...)
    at /usr/src/debug/kdebas...

Read more...

Revision history for this message
In , Thomas-luebking (thomas-luebking) wrote :

*** Bug 252824 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Thomas-luebking (thomas-luebking) wrote :

crashes in glClear( GL_COLOR_BUFFER_BIT ), most likely because there's no valid ontext, because the intel drivers and/or mesa (i frankly don't know/recall who's to blame here) have _serious_ problems handling multiple contexts/contexts on non-window drawables (in this, this is related to the mighty freeze bug #241402 ...)

Notice that "resolved upstream" does not mean that there's a fixed driver available atm. but just that the bug won't/cant be fixed in kwin.
in this particular case there might be a workaround available as discussed in #241402

Revision history for this message
In , Mgraesslin (mgraesslin) wrote :

As the crash trace is rather good I would like to ask you to report the bug
again on bugs.freedesktop.org for the intel driver. Thanks

Revision history for this message
In , Adler-187 (adler-187) wrote :
Revision history for this message
In , Thomas-luebking (thomas-luebking) wrote :

*** Bug 256128 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Thomas-luebking (thomas-luebking) wrote :

*** Bug 257115 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Thomas-luebking (thomas-luebking) wrote :

*** Bug 264258 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Thomas-luebking (thomas-luebking) wrote :

*** Bug 246892 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Thomas-luebking (thomas-luebking) wrote :

*** Bug 246960 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Thomas-luebking (thomas-luebking) wrote :

*** Bug 264493 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Alex3255 (alex3255) wrote :

I spend two days for debug this issue. Mesa function glXSwapBuffers is buggy for i945 and i965. This function is used just once in kwin in scene_opengl.cpp, flushBuffer(...) {
....
 if( mask & PAINT_SCREEN_REGION ) { do region updating}
 else { // do fullscreen updating
  waitSync();
  glXSwapBuffers( display(), glxbuffer );
 }
}

I changed glXSwapBuffers( display(), glxbuffer ) with
glXCopySubBuffer( display(), glxbuffer, 0, 0, displayWidth(), displayHeight());
and the bug disappeared for me. Please test it.

Revision history for this message
In , Mgraesslin (mgraesslin) wrote :

> This function is used just once in kwin in
> scene_opengl.cpp
The number of occurrances does not say much. That code is executed in each
fullscreen rendered frame (e.g. present windows, login, logout, desktop grid,
cover switch...)
> I changed glXSwapBuffers( display(), glxbuffer ) with
> glXCopySubBuffer( display(), glxbuffer, 0, 0, displayWidth(),
> displayHeight()); and the bug disappeared for me. Please test it.
We will definatly not change the code to workaround it - sorry. If it is
broken in the drivers, it has to be fixed in the drivers.

Revision history for this message
In , Alex3255 (alex3255) wrote :

Hope they'll fix it quickly. I am waiting for working full-screen flash for 1.5 years.

Thanks

Revision history for this message
In , Thomas-luebking (thomas-luebking) wrote :

(In reply to comment #12)
> > This function is used just once in kwin in scene_opengl.cpp
is it really the source of /this/ particular backtrace that occurs in a complete different location than glXSwapBuffers?

In case this might be a /very/ valuable information for the driver developers and should definitely be fixed there, since a constant glClear/glXSwapBuffer cycle is probably one of the most occurring GL code statements.

Revision history for this message
In , Alex3255 (alex3255) wrote :

I don't have the same backtrace. I have a backtrace like Magnus Kessler's one at https://bugs.freedesktop.org/show_bug.cgi?id=30509, but all backtraces I have was very different. All crashes occurs when there was a full-screen application(like flash or wine game) and another window is appears.

For some reason internal structs of mesa become damaged(render buffer's pointer for a region become 0) after glXSwapBuffers. Some mesa functions(like prepare_wm_surfaces) were not expecting it and crash kwin.

Chris Wilson has added the non-null region pointer check for intelClearWithBlit function, so I not saw first backtrace. I made all functions to work with structs damaged this way, kwin stopped segfaulting, but, instead, it became very unstable(black screen, mouse pointer freezing, flickering, etc).

I am trying to understand why structs damaging.

Revision history for this message
In , Thomas-luebking (thomas-luebking) wrote :

(In reply to comment #15)
> I don't have the same backtrace. I have a backtrace like Magnus Kessler's one
> at https://bugs.freedesktop.org/show_bug.cgi?id=30509
No, that's another -likely unrelated- bug :-(

> All crashes occurs when there was a full-screen
yes - reasonable, but not related to this issue at all.

> I am trying to understand why structs damaging.
nullpointers are not exactly "damaged" like "dangeling pointers" but can be valid states, they might however require different treatment (reallocation or whatever) than a simple
"if (!pointer) return;"

Revision history for this message
In , Alex3255 (alex3255) wrote :

I think that the two backtraces are consequences of one bug. Because
1) Developers marked my bug https://bugs.freedesktop.org/show_bug.cgi?id=33496 as a duplicate for 30509 and 30509 has the same backtrace as this.
2) Here is a patch for the first backtrace:
+ if (irb == NULL || irb->region == NULL)
+ goto clear_bit;
+
Here is code, that causes a segfault in my backtrace:
 irb = intel_get_renderbuffer(fb, buf);
 struct gl_renderbuffer *rb = ctx->DrawBuffer->_ColorDrawBuffers[i];
 struct intel_renderbuffer *irb = intel_renderbuffer(rb);
 struct intel_region *region = irb ? irb->region : NULL;

 brw_add_validated_bo(brw, region->buffer); // irb->region == 0 -> crash

There is one simple way to figure this out - apply proposed patch and check if each bug if gone. I'll be happy if someone check it.

---
I am logging most activity of kwin, mesa and libdrm and found that a mesa's function intel_region_alloc_for_handle unexpectedly returns NULL. I'll going to talk about it with upstream.

Revision history for this message
In , Thomas-luebking (thomas-luebking) wrote :

*** Bug 265960 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Mgraesslin (mgraesslin) wrote :

*** Bug 266132 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Thomas-luebking (thomas-luebking) wrote :

*** Bug 266416 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Thomas-luebking (thomas-luebking) wrote :

*** Bug 267939 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Thomas-luebking (thomas-luebking) wrote :

*** Bug 268027 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Thomas-luebking (thomas-luebking) wrote :

at least the last dupe is on a radeon chip...

Revision history for this message
In , Thomas-luebking (thomas-luebking) wrote :

...and seems just a different bug deep down in the ubuntu "natty" mesa version - no real dupe

Revision history for this message
In , Thomas-luebking (thomas-luebking) wrote :

*** Bug 268321 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Mgraesslin (mgraesslin) wrote :

*** Bug 268394 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Thomas-luebking (thomas-luebking) wrote :

*** Bug 268589 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Nikola Snele (n-schnelle) wrote :

I have been testing and these are my findings:

Mesa 7.9 classic - no kwin crashes
Mesa 7.11-devel classic - no kwin crashes
Mesa 7.10.1 gallium (natty default) - kwin crashes whenever you change window decoration, color scheme, turn on/off effect, turn on/off vsync etc.

So problem seems to be in Mesa 7.10.1 gallium.

All these tests are performed on KDE 4.6.1 with radeon driver.

Revision history for this message
In , Thomas-luebking (thomas-luebking) wrote :

*** Bug 269314 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Alain ANDERLINI (alain-anderlini) wrote :

wrt comment #28, i experienced exactly the same crash as initially submitted when returning from flash full screen in Chrome albeit I have Mesa 7.9 installed (i915 Intel driver 2.14.901 running with KDE 4.6.1). Did not try with Mesa 7.11 version.

Revision history for this message
In , Nikola Snele (n-schnelle) wrote :

Now I am on Mesa 7.10.1 classic and no crashes.

So problem is 100% in gallium driver.

Revision history for this message
In , Mgraesslin (mgraesslin) wrote :

*** Bug 269504 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Mgraesslin (mgraesslin) wrote :

*** Bug 269562 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Thomas-luebking (thomas-luebking) wrote :

*** Bug 269889 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Thomas-luebking (thomas-luebking) wrote :

*** Bug 269891 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Mgraesslin (mgraesslin) wrote :

*** Bug 269895 has been marked as a duplicate of this bug. ***

Revision history for this message
In , kknundy (kknundy) wrote :

Created attachment 58518
New crash information added by DrKonqi

kwin (4.6.00 (4.6.0) "release 6") on KDE Platform 4.6.00 (4.6.0) "release 6" using Qt 4.7.1

- What I was doing when the application crashed:

Youtube fullscreen in flash mode from chromium browser.

-- Backtrace (Reduced):
#6 intel_region_buffer (intel=0x7169e0, region=0x0, flag=2) at intel_regions.c:514
#7 0x00007ffeb9b3b2d4 in intelClearWithBlit (ctx=0x7169e0, mask=2) at intel_blit.c:262
#8 0x00007ffeb9b3d7da in intelClear (ctx=0x7169e0, mask=2) at intel_clear.c:177
#9 0x00007ffed1bfa625 in KWin::SceneOpenGL::paintBackground (this=<value optimized out>, region=<value optimized out>) at /usr/src/debug/kdebase-workspace-4.6.0/kwin/scene_opengl.cpp:921
#10 0x00007ffed1bf1d96 in KWin::Scene::paintGenericScreen (this=0x6f9170, orig_mask=40) at /usr/src/debug/kdebase-workspace-4.6.0/kwin/scene.cpp:188

Revision history for this message
In , Christoph-maxiom (christoph-maxiom) wrote :

*** Bug 269938 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Mgraesslin (mgraesslin) wrote :

*** Bug 270099 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Mgraesslin (mgraesslin) wrote :

*** Bug 270557 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Bpg (bpg) wrote :

Created attachment 58813
New crash information added by DrKonqi

kwin (4.6.00 (4.6.0) "release 6") on KDE Platform 4.6.00 (4.6.0) "release 6" using Qt 4.7.1

watched flash fullscreen, intel i3 graphic

-- Backtrace (Reduced):
#7 intel_region_buffer (intel=0x81229a0, region=0x0, flag=2) at intel_regions.c:514
#8 0xaf48816a in intelClearWithBlit (ctx=0x81229a0, mask=2) at intel_blit.c:262
#9 0xaf48a90d in intelClear (ctx=0x81229a0, mask=2) at intel_clear.c:177
#10 0xaf688698 in _mesa_Clear (mask=<value optimized out>) at main/clear.c:241
#11 0xb76ddebb in KWin::SceneOpenGL::paintBackground (this=0x8155c18, region=...) at /usr/src/debug/kdebase-workspace-4.6.0/kwin/scene_opengl.cpp:921

Revision history for this message
In , Thomas-luebking (thomas-luebking) wrote :

*** Bug 271088 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Ian Pilcher (arequipeno) wrote :

Check out https://bugs.freedesktop.org/show_bug.cgi?id=32534 for my analysis
of how the region-less intel_renderbuffers get created. The net is that
something is closing the last handle to a GEM object and then trying to
retrieve it with a "name" that is no longer valid (because the object is
garbage collected when the last handle that references it is closed).
glXSwapBuffers
Mesa is swallowing the error and creating unusable renderbuffers, rather than
properly bubbling it up the stack. (The "fallback" that was added with commit
13bab58f04c1ec6d0d52760eab490a0997d9abe2 simply defers the crash in this case.)

I suspect that the race is somehow related to glXSwapBuffers. If I attach to
KWin with gdb and set a breakpoint in glXSwapBuffers, I am unable to
reproduce my crash (unlocking GLMatrix). I am not 100% sure of this,
however; the race condition combined with the fact that the crash occurs
some time after the actual problem is making this incredibly difficult to
debug.

Any suggestions would be welcome.

Revision history for this message
In , Thomas-luebking (thomas-luebking) wrote :

*** Bug 271396 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Thomas-luebking (thomas-luebking) wrote :

*** Bug 271452 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Mgraesslin (mgraesslin) wrote :

*** Bug 271574 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Ian Pilcher (arequipeno) wrote :

It looks like the patch at
http://lists.x.org/archives/xorg-devel/2011-March/020716.html may solve my
KDE/OpenGL screensaver crash.

Revision history for this message
In , toralf (toralf-foerster) wrote :

(In reply to comment #47)
> It looks like the patch at
> http://lists.x.org/archives/xorg-devel/2011-March/020716.html may solve my
> KDE/OpenGL screensaver crash.

me too :-)

Revision history for this message
In , Thomas-luebking (thomas-luebking) wrote :

*** Bug 271873 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Mgraesslin (mgraesslin) wrote :

*** Bug 271905 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Mgraesslin (mgraesslin) wrote :

*** Bug 271964 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Mgraesslin (mgraesslin) wrote :

*** Bug 272011 has been marked as a duplicate of this bug. ***

Revision history for this message
In , 8-kde (8-kde) wrote :

Created attachment 59445
New crash information added by DrKonqi

kwin (4.6.00 (4.6.0) "release 6") on KDE Platform 4.6.00 (4.6.0) "release 6" using Qt 4.7.1

- What I was doing when the application crashed:

I was switchint from a window to another by mouse clicking the window title.

-- Backtrace (Reduced):
#7 intel_region_buffer (intel=0x8137350, region=0x0, flag=2) at intel_regions.c:514
#8 0xaf39216a in intelClearWithBlit (ctx=0x8137350, mask=2) at intel_blit.c:262
#9 0xaf39490d in intelClear (ctx=0x8137350, mask=2) at intel_clear.c:177
#10 0xaf592698 in _mesa_Clear (mask=<value optimized out>) at main/clear.c:241
#11 0xb76ddebb in KWin::SceneOpenGL::paintBackground (this=0x8132760, region=...) at /usr/src/debug/kdebase-workspace-4.6.0/kwin/scene_opengl.cpp:921

Revision history for this message
In , Mgraesslin (mgraesslin) wrote :

*** Bug 272021 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Thomas-luebking (thomas-luebking) wrote :

*** Bug 272069 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Thomas-luebking (thomas-luebking) wrote :

*** Bug 272102 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Thomas-luebking (thomas-luebking) wrote :

*** Bug 272106 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Thomas-luebking (thomas-luebking) wrote :

*** Bug 272118 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Thomas-luebking (thomas-luebking) wrote :

*** Bug 272201 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Thomas-luebking (thomas-luebking) wrote :

*** Bug 272304 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Mgraesslin (mgraesslin) wrote :

*** Bug 272323 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Mgraesslin (mgraesslin) wrote :

*** Bug 272331 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Mgraesslin (mgraesslin) wrote :

(In reply to comment #47)
> It looks like the patch at
> http://lists.x.org/archives/xorg-devel/2011-March/020716.html may solve my
> KDE/OpenGL screensaver crash.
I am not so sure about it being the cure for this problem. Since the release of Natty, we got quite some duplicates and Kubuntu disables unredirection of fullscreen windows by default.

Revision history for this message
In , Thomas-luebking (thomas-luebking) wrote :

*** Bug 272448 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Thomas-luebking (thomas-luebking) wrote :

*** Bug 272484 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Roman (romko-ua) wrote :

Created attachment 59654
New crash information added by DrKonqi

kwin (4.6.2 (4.6.2)) on KDE Platform 4.6.2 (4.6.2) using Qt 4.7.2

- What I was doing when the application crashed: exit flash online video fullscreen mode in chromium browser

- Custom settings of the application: nothing

-- Backtrace (Reduced):
#6 intel_region_buffer (intel=0x2336210, region=0x0, flag=2) at intel_regions.c:514
#7 0x00007ff49eb5d6c2 in intelClearWithBlit (ctx=0x2336210, mask=2) at intel_blit.c:262
#8 0x00007ff49eb5fd2a in intelClear (ctx=0x2336210, mask=2) at intel_clear.c:177
#9 0x00007ff4bbfdfce7 in KWin::SceneOpenGL::paintBackground (this=<value optimized out>, region=<value optimized out>) at ../../kwin/scene_opengl.cpp:921
#10 0x00007ff4bbfd788f in KWin::Scene::paintGenericScreen (this=0x231d740, orig_mask=40) at ../../kwin/scene.cpp:188

Revision history for this message
In , Thomas-luebking (thomas-luebking) wrote :

*** Bug 272506 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Thomas-luebking (thomas-luebking) wrote :

*** Bug 272524 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Mgraesslin (mgraesslin) wrote :

Please stop adding backtraces to this report! There is nothing we can do about it! It is a driver
bug and you are just spamming the wrong bugtracker!

Revision history for this message
In , Boscoblu26 (boscoblu26) wrote :

I am really sorry if I spammed. It was unintentional. I was not aware
I was doing it. Could you tell me how to stop it? Is it in the Yast
settings?

Maurizio Rondelli

On 5 May 2011, at 18:43, Martin Gräßlin <email address hidden> wrote:

> https://bugs.kde.org/show_bug.cgi?id=252817
>
>
>
>
>
> --- Comment #69 from Martin Gräßlin <mgraesslin kde org> 2011-05-05 19:30:54 ---
> Please stop adding backtraces to this report! There is nothing we can do about
> it! It is a driver
> bug and you are just spamming the wrong bugtracker!
>
> --
> Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
> ------- You are receiving this mail because: -------
> You are on the CC list for the bug.

Revision history for this message
In , Mgraesslin (mgraesslin) wrote :

*** Bug 272646 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Mgraesslin (mgraesslin) wrote :

*** Bug 272676 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Mgraesslin (mgraesslin) wrote :

*** Bug 272690 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Thomas-luebking (thomas-luebking) wrote :

*** Bug 272696 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Mgraesslin (mgraesslin) wrote :

*** Bug 272699 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Thomas-luebking (thomas-luebking) wrote :

*** Bug 272704 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Thomas-luebking (thomas-luebking) wrote :

*** Bug 272726 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Thomas-luebking (thomas-luebking) wrote :

*** Bug 272727 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Thomas-luebking (thomas-luebking) wrote :

*** Bug 272745 has been marked as a duplicate of this bug. ***

Revision history for this message
In , afoglia (afoglia) wrote :

Created attachment 59774
New crash information added by DrKonqi

kwin (4.6.2 (4.6.2)) on KDE Platform 4.6.2 (4.6.2) using Qt 4.7.2

- What I was doing when the application crashed:

I just got a similar crash, while watching a full screen Flash video, launched from Firefox 4. The crash occurred when the video ended and I exitted full screen video mode.

-- Backtrace (Reduced):
#6 0x00007fd8d2d920a0 in intel_region_buffer () from /usr/lib/dri/i965_dri.so
#7 0x00007fd8d2d856c2 in intelClearWithBlit () from /usr/lib/dri/i965_dri.so
[...]
#9 0x00007fd8eb0f4ce7 in KWin::SceneOpenGL::paintBackground (this=<value optimized out>, region=<value optimized out>) at ../../kwin/scene_opengl.cpp:921
#10 0x00007fd8eb0ec88f in KWin::Scene::paintGenericScreen (this=0xd3c580, orig_mask=32) at ../../kwin/scene.cpp:188
#11 0x00007fd8eb0e9c7a in KWin::Scene::finalPaintScreen (this=0xd3c580, mask=32, region=<value optimized out>, data=<value optimized out>) at ../../kwin/scene.cpp:178

Revision history for this message
In , Thomas-luebking (thomas-luebking) wrote :

*** Bug 272826 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Thomas-luebking (thomas-luebking) wrote :

*** Bug 272829 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Thomas-luebking (thomas-luebking) wrote :

*** Bug 272846 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Alain ANDERLINI (alain-anderlini) wrote :

As an answer to Martin's last blog (On Stability) about the major problem in Intel/Mesa driver, I have a workaround that works so far on my T400: go to Desktop Effects in System Settings > Advanced tab > uncheck 'suspend desktop effects for full-screen' (this may give a hint for developpers as the crash appears in fullscreen mode when desktop effects are resumed, e.g. upon a KDE notification or after fullscreen mode exit ... but i'm not a geek). I'm running Kubuntu Natty 11.04 with KDE 4.6.2 and xserver-xorg-video-intel 2.14 (the Natty official one). With Maverick 10.10, I used to subscribe to ppa:callegar/xorg repository with page flipping disabled in xserver-xorg-core, but it has not been built yet for Natty (expected in a week or two).

Now, coming back to your concern Martin, my KDE 4.6.2 is very very stable (apart from this serious issue). I did not experience any pb so far. Be proud of your work!

Revision history for this message
In , Thomas-luebking (thomas-luebking) wrote :

comment #84 supports comment #43 and invalidates the assumtion in comment #63 (apparently unredirection is invoked (and not defaulted off in ubuntu anymore?)

@anderlia
can you do a semi-geek think, run konsole and:

mv ~/.kde/share/config/kwinrc ~/.kde/share/config/kwinrc.bak
  (store your settings)

kcmshell kwincompositing
  -> check the 'suspend desktop effects for full-screen' setting and report its state
(NOTICE: all settings are defaulted - don't hit ok, just cancel out)

mv ~/.kde/share/config/kwinrc.bak ~/.kde/share/config/kwinrc
   (restore your settings)

Revision history for this message
In , Alain ANDERLINI (alain-anderlini) wrote :

@Thomas. I run the following set of commands on a terminal:
> mv ~/.kde/share/config/kwinrc ~/.kde/share/config/kwinrc.bak
> kcmshell kwincompositing
kbuildsycoca running...
Reusing existing ksycoca
>

At this stage, and before restoring my backup settings kwinrc.bak, I checked the 'desktop effects' settings > 'Advanced' tab > the 'suspend desktop effects for fullscreen windows' item is enabled again.

Revision history for this message
In , Thomas-luebking (thomas-luebking) wrote :

"never do stuff at late night" ;-)
it's "kcmshell4" and does nothing but open that dialog.

So it seems confirmed that Ubuntu does NOT patch the FS unredirection away and the return from the unredirection triggers the intel bug

Revision history for this message
In , Alain ANDERLINI (alain-anderlini) wrote :

@Thomas. I did again your test with kcmshell4 now, and got the same outcome as aforementioned, i.e. the 'suspend desktop effects for fullscreen windows' item was enabled again.

Revision history for this message
In , Mgraesslin (mgraesslin) wrote :

I just started a Kubuntu Natty LiveCD in VirtualBox and yes unredirect fullscreen windows is
now enabled by default.

If this issue is not fixed till 4.7, I'm going to change the default, given that we now have the better
way of suspending compositing.

Revision history for this message
In , Thomas-luebking (thomas-luebking) wrote :

*** Bug 273066 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Thomas-luebking (thomas-luebking) wrote :

*** Bug 273078 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Alanleandro-garcia (alanleandro-garcia) wrote :

Created attachment 59949
New crash information added by DrKonqi

kwin (4.6.2 (4.6.2)) on KDE Platform 4.6.2 (4.6.2) using Qt 4.7.2

- What I was doing when the application crashed:

I was watching a streaming video in full screen. When i get out of full screen mode or if the screensaver apears, kwin crashes and the screen usually turns black or into a frame of the video i was watching.

-- Backtrace (Reduced):
#7 intel_region_buffer (intel=0x9844470, region=0x0, flag=2) at intel_regions.c:514
#8 0x04113ce2 in intelClearWithBlit (ctx=0x9844470, mask=2) at intel_blit.c:262
#9 0x041164c0 in intelClear (ctx=0x9844470, mask=2) at intel_clear.c:177
#10 0x04918512 in _mesa_Clear (mask=<value optimized out>) at main/clear.c:241
#11 0x0040584b in KWin::SceneOpenGL::paintBackground (this=0x9827a50, region=...) at ../../kwin/scene_opengl.cpp:921

Revision history for this message
In , Thomas-luebking (thomas-luebking) wrote :

*** Bug 273242 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Mgraesslin (mgraesslin) wrote :

*** Bug 273246 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Slash-guns90 (slash-guns90) wrote :

Created attachment 59988
New crash information added by DrKonqi

kwin (4.6.2 (4.6.2)) on KDE Platform 4.6.2 (4.6.2) using Qt 4.7.2

- What I was doing when the application crashed:
I was lookg a video in flash in Fullscreen.
- Unusual behavior I noticed:
the screen turned into white and then back to the video. The video stopped and suddenly kwin crashed
- Custom settings of the application:
flash video in fullscreen

-- Backtrace (Reduced):
#6 intel_region_buffer (intel=0x1e53780, region=0x0, flag=2) at intel_regions.c:514
#7 0x00007f08e44146c2 in intelClearWithBlit (ctx=0x1e53780, mask=2) at intel_blit.c:262
#8 0x00007f08e4416d2a in intelClear (ctx=0x1e53780, mask=2) at intel_clear.c:177
#9 0x00007f08fc8e7ce7 in KWin::SceneOpenGL::paintBackground (this=<value optimized out>, region=<value optimized out>) at ../../kwin/scene_opengl.cpp:921
#10 0x00007f08fc8df88f in KWin::Scene::paintGenericScreen (this=0x1e526d0, orig_mask=32) at ../../kwin/scene.cpp:188

Revision history for this message
In , Mgraesslin (mgraesslin) wrote :

DO NOT ADD FURTHER COMMENTS TO THIS REPORT!

Repeat after me: this is a driver bug! The bug cannot be fixed in KDE! By adding further comments to this bug, you do not contribute to improve the software! By adding further comments to this bug, you are wasting my time!

Or in other words: the next one who adds another backtrace to this bug report, will get a visit from me and gets strangled.

DO NOT ADD FURTHER COMMENTS TO THIS REPORT!

Revision history for this message
In , Thomas-luebking (thomas-luebking) wrote :

*** Bug 273271 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Subcoolent (subcoolent) wrote :

Created attachment 60013
New crash information added by DrKonqi

kwin (4.6.2 (4.6.2)) on KDE Platform 4.6.2 (4.6.2) using Qt 4.7.2

- What I was doing when the application crashed:

exited full screen view of movie from youtube.

-- Backtrace (Reduced):
#6 intel_region_buffer (intel=0x255ab40, region=0x0, flag=2) at intel_regions.c:514
#7 0x00007f3d8160b6c2 in intelClearWithBlit (ctx=0x255ab40, mask=2) at intel_blit.c:262
#8 0x00007f3d8160dd2a in intelClear (ctx=0x255ab40, mask=2) at intel_clear.c:177
#9 0x00007f3d9997ace7 in KWin::SceneOpenGL::paintBackground (this=<value optimized out>, region=<value optimized out>) at ../../kwin/scene_opengl.cpp:921
#10 0x00007f3d9997288f in KWin::Scene::paintGenericScreen (this=0x2551ff0, orig_mask=32) at ../../kwin/scene.cpp:188

Revision history for this message
In , Subcoolent (subcoolent) wrote :

Created attachment 60014
New crash information added by DrKonqi

kwin (4.6.2 (4.6.2)) on KDE Platform 4.6.2 (4.6.2) using Qt 4.7.2

- What I was doing when the application crashed:

I was writing a report for the same error. SO im pretty sure it is the same.

-- Backtrace (Reduced):
#6 intel_region_buffer (intel=0x2098940, region=0x0, flag=2) at intel_regions.c:514
#7 0x00007f6c9e2466c2 in intelClearWithBlit (ctx=0x2098940, mask=2) at intel_blit.c:262
#8 0x00007f6c9e248d2a in intelClear (ctx=0x2098940, mask=2) at intel_clear.c:177
#9 0x00007f6cb65b5ce7 in KWin::SceneOpenGL::paintBackground (this=<value optimized out>, region=<value optimized out>) at ../../kwin/scene_opengl.cpp:921
#10 0x00007f6cb65ad88f in KWin::Scene::paintGenericScreen (this=0x2091d20, orig_mask=32) at ../../kwin/scene.cpp:188

Revision history for this message
In , Adler-187 (adler-187) wrote :

Does Dr. Konqui not show the comments on the bug report? Is that why people keep adding info to this bug?

Perhaps Dr. Konqui could be improved here so if people try to add info to a report that is marked as closed/resolved/etc... it will warn them, or something.

Also, with the number of duplicate reports and additional info reports from Dr. Konqui on this report, it seems like it should be pretty important for intel/mesa to fix, but doesn't seem to get much attention. Perhaps everyone that has ran in to this bug should go spam the freedesktop.org bug report so the driver bug gets fixed and Martin's head doesn't explode.

Thanks Martin, for all the work that you do and putting up with this bug report I opened.

Revision history for this message
In , Mgraesslin (mgraesslin) wrote :

Git commit 30e7b302d1b0e787503e7088f7c7e53e66c07d08 by Martin Gräßlin.
Committed on 15/05/2011 at 09:40.
Pushed by graesslin into branch 'master'.

Disable Unredirect Fullscreen Windows by default

Well we don't have another choice if half of the drivers crash kwin
whenever you watch a fullscreen flash video or use a screen saver.
Unredirect Fullscreen Window was quite useful in case you used
to play heavy OpenGL games, but pretty useless for anything else.
For the game and hd video usecase we nowadays have the better way
of really suspending compositing (either by the client indicating or
with a window specific rule). The plus of suspending compositing is
that the driver doesn't crash.

And yes we are "supposed" to no longer workaround driver bugs.
Good joke, I like to redirect my inbox to everyone who things we
are not allowed to workaround driver bugs.

CCBUG: 252817

M +2 -2 kwin/kcmkwin/kwincompositing/main.cpp
M +1 -1 kwin/options.cpp

http://commits.kde.org/kde-workspace/30e7b302d1b0e787503e7088f7c7e53e66c07d08

Revision history for this message
In , EvenTF (thilo-frueh) wrote :

Created attachment 60022
New crash information added by DrKonqi

kwin (4.6.2 (4.6.2)) on KDE Platform 4.6.2 (4.6.2) using Qt 4.7.2

- What I was doing when the application crashed: i closed a tab in firefox in wch i watched a flash video

-- Backtrace (Reduced):
#7 0x03afd2e0 in intel_region_buffer () from /usr/lib/dri/i965_dri.so
#8 0x03aeece2 in intelClearWithBlit () from /usr/lib/dri/i965_dri.so
[...]
#10 0x03bb7512 in _mesa_Clear () from /usr/lib/dri/libdricore.so
#11 0x001d984b in KWin::SceneOpenGL::paintBackground (this=0x8289de0, region=...) at ../../kwin/scene_opengl.cpp:921
#12 0x001d0562 in KWin::Scene::paintGenericScreen (this=0x8289de0, orig_mask=40) at ../../kwin/scene.cpp:188

Revision history for this message
In , Subcoolent (subcoolent) wrote :

Created attachment 60041
New crash information added by DrKonqi

kwin (4.6.2 (4.6.2)) on KDE Platform 4.6.2 (4.6.2) using Qt 4.7.2

- What I was doing when the application crashed:

I closed from a full window environment with Chrome.

-- Backtrace (Reduced):
#6 intel_region_buffer (intel=0x22fc890, region=0x0, flag=2) at intel_regions.c:514
#7 0x00007fbe622c36c2 in intelClearWithBlit (ctx=0x22fc890, mask=2) at intel_blit.c:262
#8 0x00007fbe622c5d2a in intelClear (ctx=0x22fc890, mask=2) at intel_clear.c:177
#9 0x00007fbe7a632ce7 in KWin::SceneOpenGL::paintBackground (this=<value optimized out>, region=<value optimized out>) at ../../kwin/scene_opengl.cpp:921
#10 0x00007fbe7a62a88f in KWin::Scene::paintGenericScreen (this=0x22f26a0, orig_mask=32) at ../../kwin/scene.cpp:188

Revision history for this message
In , Thomas-luebking (thomas-luebking) wrote :

*** Bug 273464 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Mgraesslin (mgraesslin) wrote :

*** Bug 273495 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Thomas-luebking (thomas-luebking) wrote :

*** Bug 273553 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Thomas-luebking (thomas-luebking) wrote :

*** Bug 273601 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Thomas-luebking (thomas-luebking) wrote :

*** Bug 273989 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Mgraesslin (mgraesslin) wrote :

*** Bug 274042 has been marked as a duplicate of this bug. ***

Revision history for this message
In , afoglia (afoglia) wrote :

(Sorry that this is a little off topic, but I wanted to make sure there was a record of the answer here.)

(In reply to comment #84)
> As an answer to Martin's last blog (On Stability) about the major problem in
> Intel/Mesa driver, I have a workaround that works so far on my T400: go to
> Desktop Effects in System Settings > Advanced tab > uncheck 'suspend desktop
> effects for full-screen' (this may give a hint for developpers as the crash
> appears in fullscreen mode when desktop effects are resumed, e.g. upon a KDE
> notification or after fullscreen mode exit ... but i'm not a geek). I'm running
> Kubuntu Natty 11.04 with KDE 4.6.2 and xserver-xorg-video-intel 2.14 (the Natty
> official one). With Maverick 10.10, I used to subscribe to ppa:callegar/xorg
> repository with page flipping disabled in xserver-xorg-core, but it has not
> been built yet for Natty (expected in a week or two).

I have a question about your "workaround." It does work, in the sense that going to full-screen flash videos and back doesn't crash kwin. But it doesn't play the full flash video either. Instead I got just the YouTube video controls over a black screen. I'm using a wrapped version of 32-bit 10.3 flash on a 64-bit firefox, if that matters.

Just a confirmation or denial will be fine. I don't want this bug report to become a flash debugging thread.

Revision history for this message
In , Alain ANDERLINI (alain-anderlini) wrote :

@Anthony: Didn't see your pb so far on my laptop, at least since 11.04 upgrade: flash fullscreen mode now works flawlessly. I did notice a few months ago (Maverick 10.10/KDE 4.6.2 with previous xserver-xorg-core, xserver-xorg-video-intel and flash plugin versions) that some flash videos did not appear fullscreen from time to time, and a black screen was displayed instead. Yet, the occurence of this issue was a bit erratic (not with every site, meaning it used to depend on the specific embedded flash video player), and I was able to fix it by reloading the HTTP page and triggering again the fullscreen mode. Seems your issue is more related to the flash plugin. FYI, I'm using flashplugin-installer 10.3.181.14ubuntu0.11.04.1, xserver-xorg-core 2:1.10.1-1ubuntu1.1 and xserver-xorg-video-intel 2:2.14.0-4ubuntu7.1 with an Intel Corporation Mobile 4 Series Chipset Memory Controller Hub (rev 07). Hope these info will be helpful.

Revision history for this message
In , Mgraesslin (mgraesslin) wrote :

*** Bug 274967 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Thomas-luebking (thomas-luebking) wrote :

*** Bug 275176 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Thomas-luebking (thomas-luebking) wrote :

*** Bug 275202 has been marked as a duplicate of this bug. ***

Revision history for this message
In , backslashn (backslashn) wrote :

Created attachment 60873
New crash information added by DrKonqi

kwin (4.6.4 (4.6.4)) on KDE Platform 4.6.4 (4.6.4) using Qt 4.7.2

- What I was doing when the application crashed:
Exiting a flash video in full screen mode
- Unusual behavior I noticed:
Don't know if it's linked but when I increase the volume or the lighting using multimedia keys, the video played in full screen is flashing (whatever the player: flash, SMPlayer, VLC...)

-- Backtrace (Reduced):
#6 intel_region_buffer (intel=0x184a5c0, region=0x0, flag=2) at intel_regions.c:514
#7 0x00007f2715efd6c2 in intelClearWithBlit (ctx=0x184a5c0, mask=2) at intel_blit.c:262
#8 0x00007f2715effd2a in intelClear (ctx=0x184a5c0, mask=2) at intel_clear.c:177
#9 0x00007f272e275c47 in KWin::SceneOpenGL::paintBackground (this=<value optimized out>, region=<value optimized out>) at ../../kwin/scene_opengl.cpp:921
#10 0x00007f272e26d7ef in KWin::Scene::paintGenericScreen (this=0x183d950, orig_mask=40) at ../../kwin/scene.cpp:188

Revision history for this message
In , Mgraesslin (mgraesslin) wrote :

*** Bug 275473 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Mgraesslin (mgraesslin) wrote :

*** Bug 275478 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Mgraesslin (mgraesslin) wrote :

*** Bug 275525 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Mgraesslin (mgraesslin) wrote :

*** Bug 275741 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Mgraesslin (mgraesslin) wrote :

*** Bug 275979 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Mgraesslin (mgraesslin) wrote :

*** Bug 255094 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Mgraesslin (mgraesslin) wrote :

*** Bug 276152 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Thomas-luebking (thomas-luebking) wrote :

*** Bug 276484 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Thomas-luebking (thomas-luebking) wrote :

*** Bug 276588 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Mgraesslin (mgraesslin) wrote :

*** Bug 276695 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Thomas-luebking (thomas-luebking) wrote :

*** Bug 276797 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Thomas-luebking (thomas-luebking) wrote :

*** Bug 276860 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Mgraesslin (mgraesslin) wrote :

*** Bug 277203 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Gjtunley (gjtunley) wrote :

Created attachment 61713
New crash information added by DrKonqi

kwin (4.6.2 (4.6.2)) on KDE Platform 4.6.2 (4.6.2) using Qt 4.7.2

- What I was doing when the application crashed: HP EliteBook 6930p resuming from suspend - typed password and when screen resumed KWin had crashed

-- Backtrace (Reduced):
#6 intel_region_buffer (intel=0x7cf590, region=0x0, flag=2) at intel_regions.c:514
#7 0x00007f2920cd66c2 in intelClearWithBlit (ctx=0x7cf590, mask=2) at intel_blit.c:262
#8 0x00007f2920cd8d2a in intelClear (ctx=0x7cf590, mask=2) at intel_clear.c:177
#9 0x00007f293e15bce7 in KWin::SceneOpenGL::paintBackground (this=<value optimized out>, region=<value optimized out>) at ../../kwin/scene_opengl.cpp:921
#10 0x00007f293e15388f in KWin::Scene::paintGenericScreen (this=0x7ca480, orig_mask=40) at ../../kwin/scene.cpp:188

Revision history for this message
In , Mgraesslin (mgraesslin) wrote :

*** Bug 277463 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Ivpcl (ivpcl) wrote :

Created attachment 61764
New crash information added by DrKonqi

kwin (4.6.2 (4.6.2)) on KDE Platform 4.6.2 (4.6.2) using Qt 4.7.2

- Unusual behavior I noticed:
Everytime i try to watch a html5 video in fullscren or even a flash video in fullscreen it crashs.
It has occurred with youtube videos and also videos from TED website.

-- Backtrace (Reduced):
#6 intel_region_buffer (intel=0x1cc8c60, region=0x0, flag=2) at intel_regions.c:514
#7 0x00007f8cfd0366c2 in intelClearWithBlit (ctx=0x1cc8c60, mask=2) at intel_blit.c:262
#8 0x00007f8cfd038d2a in intelClear (ctx=0x1cc8c60, mask=2) at intel_clear.c:177
#9 0x00007f8d1578ace7 in KWin::SceneOpenGL::paintBackground (this=<value optimized out>, region=<value optimized out>) at ../../kwin/scene_opengl.cpp:921
#10 0x00007f8d1578288f in KWin::Scene::paintGenericScreen (this=0x1cc6ca0, orig_mask=40) at ../../kwin/scene.cpp:188

Revision history for this message
In , Thomas-luebking (thomas-luebking) wrote :

*** Bug 277623 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Thomas-luebking (thomas-luebking) wrote :

*** Bug 277753 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Mgraesslin (mgraesslin) wrote :

*** Bug 277880 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Mgraesslin (mgraesslin) wrote :

*** Bug 277899 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Mgraesslin (mgraesslin) wrote :

*** Bug 277972 has been marked as a duplicate of this bug. ***

Revision history for this message
In , arkfirefighter1 (arkfirefighter1) wrote :

Created attachment 62003
New crash information added by DrKonqi

kwin (4.6.2 (4.6.2)) on KDE Platform 4.6.2 (4.6.2) using Qt 4.7.2

- What I was doing when the application crashed: I had put the computer to sleep and when i resume it crashes...

-- Backtrace (Reduced):
#6 0x00007f90cfae80a0 in intel_region_buffer () from /usr/lib/dri/i965_dri.so
#7 0x00007f90cfadb6c2 in intelClearWithBlit () from /usr/lib/dri/i965_dri.so
[...]
#9 0x00007f90e7fb3ce7 in KWin::SceneOpenGL::paintBackground (this=<value optimized out>, region=<value optimized out>) at ../../kwin/scene_opengl.cpp:921
#10 0x00007f90e7fab88f in KWin::Scene::paintGenericScreen (this=0x1ab5280, orig_mask=40) at ../../kwin/scene.cpp:188
#11 0x00007f90e7fa8c7a in KWin::Scene::finalPaintScreen (this=0x1ab5280, mask=40, region=<value optimized out>, data=<value optimized out>) at ../../kwin/scene.cpp:178

Revision history for this message
In , Mgraesslin (mgraesslin) wrote :

*** Bug 278310 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Mgraesslin (mgraesslin) wrote :

*** Bug 278360 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Thomas-luebking (thomas-luebking) wrote :

*** Bug 278470 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Thomas-luebking (thomas-luebking) wrote :

*** Bug 278496 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Mgraesslin (mgraesslin) wrote :

*** Bug 278595 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Helio-loureiro-t (helio-loureiro-t) wrote :

Created attachment 62244
New crash information added by DrKonqi

kwin (4.6.2 (4.6.2)) on KDE Platform 4.6.2 (4.6.2) using Qt 4.7.2

- What I was doing when the application crashed:
Running screensaver.

- Unusual behavior I noticed:
Recently upgraded to Ubuntu 11.4 (but running on top of KDE).

-- Backtrace (Reduced):
#8 0xafc59ac7 in brw_validate_state () from /usr/lib/dri/i965_dri.so
#9 0xafc47dfe in brw_draw_prims () from /usr/lib/dri/i965_dri.so
#10 0xafb0990f in vbo_exec_vtx_flush () from /usr/lib/dri/libdricore.so
#11 0xafb075c7 in vbo_exec_FlushVertices_internal () from /usr/lib/dri/libdricore.so
#12 0xafb077e0 in vbo_exec_FlushVertices () from /usr/lib/dri/libdricore.so

Revision history for this message
In , Mgraesslin (mgraesslin) wrote :

Once again: it is completely pointless of adding further crash reports to this bug report. This is a DRIVER BUG! We cannot do anything in KWin to fix this bug except adding a workaround which we did in KDE Plasma Workspaces in version 4.7 which is going to be released today.

Please stop adding any further comments to this report. It's as useless as sending to /dev/null.

Revision history for this message
In , Thomas-luebking (thomas-luebking) wrote :

*** Bug 278796 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Mgraesslin (mgraesslin) wrote :

*** Bug 278873 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Mgraesslin (mgraesslin) wrote :

*** Bug 278919 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Thomas-luebking (thomas-luebking) wrote :

*** Bug 278979 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Mgraesslin (mgraesslin) wrote :

*** Bug 279129 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Thomas-luebking (thomas-luebking) wrote :

*** Bug 279167 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Mgraesslin (mgraesslin) wrote :

*** Bug 279310 has been marked as a duplicate of this bug. ***

Revision history for this message
In , J Queiroz (zekkerj) wrote :

Created attachment 62682
New crash information added by DrKonqi

kwin (4.6.2 (4.6.2)) on KDE Platform 4.6.2 (4.6.2) using Qt 4.7.2

- What I was doing when the application crashed:

Just came back from screensaver. This happens from time to time, with a good frequency.

-- Backtrace (Reduced):
#6 0x00007fe32b663403 in i915_emit_state (intel=0x93cec0) at i915_vtbl.c:312
#7 0x00007fe32b317565 in run_render (ctx=0x93cec0, stage=<value optimized out>) at tnl/t_vb_render.c:276
#8 0x00007fe32b30bbea in _tnl_run_pipeline (ctx=0x93cec0) at tnl/t_pipeline.c:153
#9 0x00007fe32b68c838 in intelRunPipeline (ctx=0x93cec0) at intel_tris.c:1075
#10 0x00007fe32b30cabc in _tnl_draw_prims (ctx=<value optimized out>, arrays=0x965da8, prim=0x9644c4, nr_prims=1, ib=0x0, min_index=<value optimized out>, max_index=3) at tnl/t_draw.c:518

Revision history for this message
In , Thomas-luebking (thomas-luebking) wrote :

*** Bug 280059 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Mgraesslin (mgraesslin) wrote :

*** Bug 280190 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Thomas-luebking (thomas-luebking) wrote :

*** Bug 279514 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Thomas-luebking (thomas-luebking) wrote :

*** Bug 280415 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Mgraesslin (mgraesslin) wrote :

*** Bug 280499 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Mgraesslin (mgraesslin) wrote :

*** Bug 280613 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Mgraesslin (mgraesslin) wrote :

*** Bug 280719 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Mgraesslin (mgraesslin) wrote :

*** Bug 280730 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Thomas-luebking (thomas-luebking) wrote :

*** Bug 280954 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Thomas-luebking (thomas-luebking) wrote :

*** Bug 281056 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Thomas-luebking (thomas-luebking) wrote :

*** Bug 281428 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Nicolas Religieux (nicolas-religieux) wrote :

Created attachment 63431
New crash information added by DrKonqi

kwin (4.6.2 (4.6.2)) on KDE Platform 4.6.2 (4.6.2) using Qt 4.7.2

- What I was doing when the application crashed:
I was unlocking the screen after a pause with the screensaver activated.

-- Backtrace (Reduced):
#6 intel_region_buffer (intel=0x1ed2130, region=0x0, flag=2) at intel_regions.c:514
#7 0x00007fe42d0fb6c2 in intelClearWithBlit (ctx=0x1ed2130, mask=2) at intel_blit.c:262
#8 0x00007fe42d0fdd2a in intelClear (ctx=0x1ed2130, mask=2) at intel_clear.c:177
#9 0x00007fe445473ce7 in KWin::SceneOpenGL::paintBackground (this=<value optimized out>, region=<value optimized out>) at ../../kwin/scene_opengl.cpp:921
#10 0x00007fe44546b88f in KWin::Scene::paintGenericScreen (this=0x1e67890, orig_mask=40) at ../../kwin/scene.cpp:188

Revision history for this message
Jon "The Nice Guy" Spriggs (jontheniceguy) wrote :
Revision history for this message
In , Thomas-luebking (thomas-luebking) wrote :

*** Bug 282275 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Thomas-luebking (thomas-luebking) wrote :

*** Bug 282981 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Mgraesslin (mgraesslin) wrote :

*** Bug 283096 has been marked as a duplicate of this bug. ***

Revision history for this message
Harald Sitter (apachelogger) wrote :

Martin, any thoughts? Backtrace makes my weak mind think it might be driver related.

affects: kdebase-workspace (Ubuntu) → kde-workspace (Ubuntu)
Revision history for this message
Martin Gräßlin (ubuntu-martin-graesslin) wrote :

Most often reported bug in the history of KWin and unfortunately a driver bug. We changed the defaults in 4.7 to no longer trigger it, that's the max we could do.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in kde-workspace (Ubuntu):
status: New → Confirmed
Changed in kdebase-workspace:
importance: Unknown → High
status: Unknown → Won't Fix
Revision history for this message
Harald Sitter (apachelogger) wrote :

I'll mark the bug fixed then. 11.10 should not trigger it anymore. Thanks Martin.

Changed in kde-workspace (Ubuntu):
status: Confirmed → Fix Released
Revision history for this message
In , Thomas-luebking (thomas-luebking) wrote :

*** Bug 283498 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Zeroedout (zeroedout) wrote :

(In reply to comment #144)
> Once again: it is completely pointless of adding further crash reports to this
> bug report. This is a DRIVER BUG! We cannot do anything in KWin to fix this bug
> except adding a workaround which we did in KDE Plasma Workspaces in version 4.7
> which is going to be released today.
>

Martin, as of KDE 4.7.1 on Ubuntu Natty I'm still effected by this bug. Would it be worth it to post a crash report from my system?

Revision history for this message
In , Mgraesslin (mgraesslin) wrote :

*** Bug 283561 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Thomas-luebking (thomas-luebking) wrote :

*** Bug 285432 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Thomas-luebking (thomas-luebking) wrote :

*** Bug 280766 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Thomas-luebking (thomas-luebking) wrote :

*** Bug 289102 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Mgraesslin (mgraesslin) wrote :

*** Bug 293281 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Mgraesslin (mgraesslin) wrote :

*** Bug 302764 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Thomas-luebking (thomas-luebking) wrote :

*** Bug 301529 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Thomas-luebking (thomas-luebking) wrote :

*** Bug 303961 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Dan O'Keefe (dano0955) wrote :

update mesa  ...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...

-------------------------------------------------------

Sponsored links:
Rock Hard Erections. All New Formula
Attacks the Root Fast
www.capitolbird.org/pharma.html

________________________________
 From: Thomas Lübking <email address hidden>
To: <email address hidden>
Sent: Monday, July 23, 2012 10:40 AM
Subject: [Bug 252817] KWin crashes on intel/mesa glClear(GL_COLOR_BUFFER_BIT)

https://bugs.kde.org/show_bug.cgi?id=252817

Thomas Lübking <email address hidden> changed:

           What    |Removed                    |Added
----------------------------------------------------------------------------
                 CC|                            |<email address hidden>

--- Comment #177 from Thomas Lübking <email address hidden> ---
*** Bug 303961 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Thomas-luebking (thomas-luebking) wrote :

*** Bug 304042 has been marked as a duplicate of this bug. ***

Revision history for this message
In , danae (ahepas1999) wrote :

Created attachment 72806
New crash information added by DrKonqi

kwin (4.8.4 (4.8.4)) on KDE Platform 4.8.4 (4.8.4) using Qt 4.8.1

- What I was doing when the application crashed:
My dell inspiron n5110 came out of sleep when this crash occured

-- Backtrace (Reduced):
#7 brw_update_renderbuffer_surface (brw=0x9e0c310, rb=0xa04bf88, unit=0) at brw_wm_surface_state.c:970
#8 0xaea6f7a3 in brw_update_renderbuffer_surfaces (brw=0x9e0c310) at brw_wm_surface_state.c:1066
#9 0xaea5825f in brw_upload_state (brw=0x9e0c310) at brw_state_upload.c:508
#10 0xaea3efef in brw_try_draw_prims (max_index=5, min_index=0, ib=0x0, nr_prims=1, prim=0xbfde8738, arrays=0xa278160, ctx=0x9e0c310) at brw_draw.c:482
#11 brw_draw_prims (ctx=0x9e0c310, prim=0xbfde8738, nr_prims=1, ib=0x0, index_bounds_valid=1 '\001', min_index=0, max_index=5, tfb_vertcount=0x0) at brw_draw.c:572

Revision history for this message
In , Thomas-luebking (thomas-luebking) wrote :

=====================================================================
IT IS COMPLETELY POINTLESS TO ADD FURTHER CRASH REPORTS TO THIS BUG.
=====================================================================

This is a *Driver Bug*.

We cannot do anything in KWin to fix this bug.

Recent versions have fullscreen unredirection disabled by default.
If you enabled it and encountered this bug, just disable it again - there is no other fix.

Open konsole and enter:
kwriteconfig --file kwinrc --group Compositing --key UnredirectFullscreen false
qdbus org.kde.kwin /KWin reconfigure
qdbus org.kde.kwin /KWin toggleCompositing
qdbus org.kde.kwin /KWin toggleCompositing

Or use systemsettings or "kcmshell4 kwincompositing" to configure it with a GUI

Revision history for this message
In , Mgraesslin (mgraesslin) wrote :

*** Bug 304464 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Mgraesslin (mgraesslin) wrote :

*** Bug 305002 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Mgraesslin (mgraesslin) wrote :

*** Bug 306254 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Thomas-luebking (thomas-luebking) wrote :

*** Bug 307442 has been marked as a duplicate of this bug. ***

Revision history for this message
Sergio Callegari (callegar) wrote :

Well, yes there is little that can be done to the kwin package to fix this, but something can probably be done for ubuntu precise in general...

I am running the newer intel drivers from the oibaf PPA, together with a 3.5 kernel and the bug seems to be fixed here.
So, backporting the relevant changes to the ubuntu kernel (maybe this has already been done) and the ubuntu intel drivers would probably be a good thing to make the LTS happy.

Revision history for this message
In , Thomas-luebking (thomas-luebking) wrote :

*** Bug 310027 has been marked as a duplicate of this bug. ***

Revision history for this message
In , kotfantazer (kotfantazer) wrote :

Kwin crashing when you select "disable visual effects for the full screen window" when starting stellarium.

When unselected option "disable visual effects for full-screen windows" does not crash

OS: Linux 3.6.11-4.fc16.i686 i686
System: Fedora release 16 (Verne)
KDE: 4.8.5 (4.8.5)

Revision history for this message
In , Kamil Roman (kamil-lech-roman) wrote :

A few updates:
1. Disabling the fullscreen unredirection does not help any more.
2. A bug has been submited to mesa bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=58834

Revision history for this message
In , Mgraesslin (mgraesslin) wrote :

*** Bug 317594 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Thomas-luebking (thomas-luebking) wrote :

*** Bug 320624 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Ben Cooksley (bcooksley) wrote :

Removing <email address hidden> per abuse report.

Revision history for this message
In , Thomas-luebking (thomas-luebking) wrote :

*** Bug 321959 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Thomas-luebking (thomas-luebking) wrote :

*** Bug 322206 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Thomas-luebking (thomas-luebking) wrote :

Git commit 9f7d825e5323dd25ece39d9af56d49318396ead2 by Thomas Lübking.
Committed on 10/07/2013 at 18:48.
Pushed by luebking into branch 'KDE/4.11'.

ignore unredirection configuration on intel

the only thing it does on these systems is cause users
trouble because usually when there's a client where
unredirection makes sense, that uses OpenGL - and then
things break in the driver.
REVIEW: 111476

M +2 -0 kwin/eglonxbackend.cpp
M +2 -0 kwin/glxbackend.cpp
M +2 -0 kwin/options.cpp

http://commits.kde.org/kde-workspace/9f7d825e5323dd25ece39d9af56d49318396ead2

Revision history for this message
In , Alexander Mezin (mezin-alexander) wrote :

Please revert this.
It worked for me very well (Intel HD 3000). Also, without it I can't currently use DRI_PRIME.
Add a warning, don't enable it by default, but please, let me decide if I want this feature or not. Without patching.
Also, I prepared a patch that makes it less agressive (for example, fullscreen Flash videos aren't unredirected with it). I spent more than hour trying to figure out why shouldUnredirect() isn't called.

Revision history for this message
In , Stefan-b (stefan-b) wrote :

Hey,

Just upgrade to the newer version of Kubuntu.
Works fine for me now.

Best,
S.

On 07/28/2013 09:03 AM, Alexander Mezin wrote:
> https://bugs.kde.org/show_bug.cgi?id=252817
>
> Alexander Mezin <email address hidden> changed:
>
> What |Removed |Added
> ----------------------------------------------------------------------------
> CC| |<email address hidden>
>
> --- Comment #195 from Alexander Mezin <email address hidden> ---
> Please revert this.
> It worked for me very well (Intel HD 3000). Also, without it I can't currently
> use DRI_PRIME.
> Add a warning, don't enable it by default, but please, let me decide if I want
> this feature or not. Without patching.
> Also, I prepared a patch that makes it less agressive (for example, fullscreen
> Flash videos aren't unredirected with it). I spent more than hour trying to
> figure out why shouldUnredirect() isn't called.
>

Revision history for this message
In , Thomas-luebking (thomas-luebking) wrote :

(In reply to comment #195)
> Please revert this.
> Add a warning, don't enable it by default

It *is* disabled by default - what does not prevent people from happily activating it, because some guy in a random forum told them "it's the best trick ever" - and then report crashes in driver that resolve by "after disabling unredirection, bug is gone"

We basically (and actually for far too long) expose users to a feature, while knowing it will crash their WM more or less for sure.

> It worked for me very well (Intel HD 3000).
Since you mentioned DRI_PRIME, it will rather be some IGP-GPU briged system?

> Also, without it I can't currently use DRI_PRIME.
As far as i was told, DRI_PRIME does only work *with* redirection, ie. whenever you disable the compositor, the DRI_PRIME context paints nothing.
If it does NOT work redirected for you, the better solution to suspend compositing altogether is not affected.
Either (depending on redirection states) would probably a major bug in the prime handling, though.

> Also, I prepared a patch that makes it less agressive
The level of "aggression" is not relevant, esp. since you try to constrain it to the most problematic cases (override_redirect windows, assuming those are games, ie. likely will have a second GL context) - which overmore would largely benefit from simply turning the compositor off instead (frees memory, quits redirection/damage processing/conversion overhead)

What currently missing to do this from scripts is to have scripts informed when unmanaged windows are added, eventually resized to/from "fullscreen".

Revision history for this message
In , Alexander Mezin (mezin-alexander) wrote :

(In reply to comment #197)
> It *is* disabled by default - what does not prevent people from happily
> activating it, because some guy in a random forum told them "it's the best
> trick ever" - and then report crashes in driver that resolve by "after
> disabling unredirection, bug is gone"
Then add big red label in KCM: "This could cause crashes. Don't file bugs, you've been warned". Compositing could also cause problems with buggy drivers.

> We basically (and actually for far too long) expose users to a feature,
> while knowing it will crash their WM more or less for sure.
For me it NEVER crashed KWin or anything.

> > It worked for me very well (Intel HD 3000).
> Since you mentioned DRI_PRIME, it will rather be some IGP-GPU briged system?
Yes, but KWin is always running on Intel, and doesn't even know about Radeon.

> As far as i was told, DRI_PRIME does only work *with* redirection, ie.
> whenever you disable the compositor, the DRI_PRIME context paints nothing.
No, for me it paints black screen when compositing is enabled (without unredirection).

> If it does NOT work redirected for you, the better solution to suspend
> compositing altogether is not affected.
I can't find an option to automatically suspend compositing in KCM.
Instead there's now non-working (silently!) option for unredirection.

And... Mutter and Compiz now do unredirection by default. And seems that they don't crash too much.

Revision history for this message
In , Alex (hello71) wrote :

(In reply to comment #198 as excerpted)
> (In reply to comment #197)
> > If it does NOT work redirected for you, the better solution to suspend
> > compositing altogether is not affected.
> I can't find an option to automatically suspend compositing in KCM.
> Instead there's now non-working (silently!) option for unredirection.

Put a rule in "Window Rules" (component "Window Behavior") selecting the window, then in "Appearance & Fixes" (last tab), set "Block compositing" to Force Yes.

Revision history for this message
In , Thomas-luebking (thomas-luebking) wrote :

(In reply to comment #198)

> Then add big red label in KCM:
kde-workspace is frozen. -> not before summer 2014 (iff at all)

> For me it NEVER crashed KWin or anything.
Lucky for you. Yet bugzilla suggests there's a problem.
Look at only the plain dupes of this one and feel free to search through bugzilla...

> Yes, but KWin is always running on Intel, and doesn't even know about Radeon.
Yes, but dri does. The crash is in the driver.

> No, for me it paints black screen when compositing is enabled (without
> unredirection).
So it works with suspended compositing as well?

> I can't find an option to automatically suspend compositing in KCM.
Because a general setting would be silly. Already was for unredirection.

(In reply to comment #199)
> Put a rule in "Window Rules" (component "Window Behavior") selecting the
> window, then in "Appearance & Fixes" (last tab), set "Block compositing"

This will unfortunately not work with unmanaged windows (and for some strage reason most SDL games are; though i expect they will have to change if they still want to be "fullscreened" on wayland as well)

@Alex
You should have received a RR that enables controlling this via kwin scripts.

> Instead there's now non-working (silently!)
Yes, that's a bit unfortunate. We had to remove gl system detection from the settings because it occasionally caused (guess what) driver crashes (though iirc mostly amd) - killing the dialog or even systemsettings.

> And... Mutter and Compiz now do unredirection by default.
They're probably just better than kwin then.
Or will figure such things happen.

Revision history for this message
In , Alexander Mezin (mezin-alexander) wrote :

(In reply to comment #200)
> > I can't find an option to automatically suspend compositing in KCM.
> Because a general setting would be silly. Already was for unredirection.
Probably it won't.
http://standards.freedesktop.org/wm-spec/wm-spec-latest.html#idp6357888
https://git.reviewboard.kde.org/r/110088/
I think this could be a good "default" option, if you replace "unredirect" with "suspend".

Revision history for this message
In , Thomas-luebking (thomas-luebking) wrote :

(In reply to comment #201)
> (In reply to comment #200)
> > > I can't find an option to automatically suspend compositing in KCM.
> > Because a general setting would be silly. Already was for unredirection.
> Probably it won't.
> http://standards.freedesktop.org/wm-spec/wm-spec-latest.html#idp6357888

This is not about "a general setting" at all, but about a protocol.
The silly part about the *general* setting was that we treated konqueror and quake equally.

The _NET_WM_BYPASS_COMPOSITOR was actually somehow inspired by the (largely ignored) _KDE_NET_WM_BLOCK_COMPOSITING, so merging the atoms and deprecate _KDE_NET_WM_BLOCK_COMPOSITING certainly makes sense.
It will require to move the blocking code from Client to Toplevel - does anything but (upcoming) SDL2 support it so far?

> https://git.reviewboard.kde.org/r/110088/
> I think this could be a good "default" option

The problem of this is that we don't get out of the "default" since there's no system in place to rule override_redirects (since they do not belong to WM or user)

The _NET_WM_BYPASS_COMPOSITOR tristate is a red herring: if special clients are not interested in saying: "1", why should regular clients be interested in saying "2"?
And why esp. those which are override_redirect and thus often don't set any properties at all?

The next problem is that unmanged windows are only matched "fullscreen" by their geometry, so if your imagebrowser opens a popup to preview the image and uses the maximum screen area, you'll toggle compositing by it.

-> The only (present) "downstream" (user accessible) way to control those (and FS state changes of managed clients) is via the script interface.

Revision history for this message
In , Alexander Mezin (mezin-alexander) wrote :

(In reply to comment #202)
> It will require to move the blocking code from Client to Toplevel - does
> anything but (upcoming) SDL2 support it so far?
AFAIK, almost every new game is using SDL 2 (from games based on MonoGame to Valve's Source). And most old games are using SDL 1, which does override_redirect. I say "most" and "almost" here, but I don't know any exceptions.

> The _NET_WM_BYPASS_COMPOSITOR tristate is a red herring: if special clients
> are not interested in saying: "1", why should regular clients be interested
> in saying "2"?
Regular clients don't need to say anything, they won't be unredirected/compositing won't be suspended.

> And why esp. those which are override_redirect and thus often don't set any
> properties at all?
You answered yourself:
> The next problem is that unmanged windows are only matched "fullscreen" by
> their geometry, so if your imagebrowser opens a popup to preview the image
> and uses the maximum screen area, you'll toggle compositing by it.
It's not too hard to set this hint, 3 lines of code with Xlib or a bit more with xcb.
Also, as Gnome's Mutter does almost the same things (in particular, it unredirects unmanaged windows), non-KDE clients will have this hint where needed.

Revision history for this message
In , Thomas-luebking (thomas-luebking) wrote :

(In reply to comment #203)

> And most old games are using SDL 1
Even if, that's irrelevant.
Actually that would make the solution *extremely* simple: have SDL1 tag the window as "_NET_WM_BYPASS_COMPOSITOR", "1" - problem solved.

> which does override_redirect.
You are aware that "override_redirect" just means: "Dear WM, please ignore me"?
Every popup and tooltip, many docks, some "fullscreen" windows of all sorts (often because they're just popups), a whole bunch of synthetic windows and whatnot are.
It's not somehow a hint on the content of the window or some SDL exclusive.
The state is not a usable hint on whether compositing should be used. You enter the field of heuristics what means you'll hit false positives for sure.

> Regular clients don't need to say anything, they won't be
> unredirected/compositing won't be suspended.

I think there's a misunderstanding about "regular" - i was only talking about "override_redirect windows that are not interested in skipping the redirection", NOT about "non override_redirects".

> > And why esp. those which are override_redirect and thus often don't set any
> > properties at all?
> You answered yourself:
No, where?

> It's not too hard to set this hint, 3 lines of code with Xlib or a bit more
> with xcb.

The problem is not that it's hard to do, the problem is that nobody does and especially you can not expect "legacy" clients to alter to match your reconsiderations about the protocol.
Providing the ability to hint this preference is fine, but an absent hint only indicates an absent hint - not any intention.

Revision history for this message
In , Alexander Mezin (mezin-alexander) wrote :

(In reply to comment #204)
> Actually that would make the solution *extremely* simple: have SDL1 tag the
> window as "_NET_WM_BYPASS_COMPOSITOR", "1" - problem solved.
AFAIK SDL 1 reached end of life - there won't be any official updates. Actual problem with legacy code is here, not with "false positives".

And let's talk about my patch in reviewboard.

Currently I want to solve another problem: I can't enable unredirection with one click anymore, just because other users with broken gpu drivers clicked too much.
Your "fix" causes regression for me. Isn't it a bad fix?

Also, you've disabled all Intel cards, while the problem may be specific to i915g driver or older mesa versions.

Revision history for this message
In , Thomas-luebking (thomas-luebking) wrote :

(In reply to comment #205)
> (In reply to comment #204)
> > Actually that would make the solution *extremely* simple: have SDL1 tag the
> > window as "_NET_WM_BYPASS_COMPOSITOR", "1" - problem solved.
> AFAIK SDL 1 reached end of life - there won't be any official updates.
> Actual problem with legacy code is here, not with "false positives".
No, false positives is what you'll get on your approach - proof: the cause for this discussion.

> Your "fix" causes regression for me. Isn't it a bad fix?
It's not a fix, thus not a bad fix.
It's a trade-off: we've a feature that will either get you less performance boost than another feature - or crashes.

Then what's the "regression"?
You suspend compositing instead and get 3 more extra fps in your shooter?

If you can work around the problem in a way so that we do no more get a "help, kwin crashed after checking this" bugreport about every week, i'll happily vote for that solution.

inb4: If your solution is "disable it by default and remove the config GUI", you're asking for a single target ("you") solution - and i'm dead sure the "secret command to make kwin faster" will show up pretty fas as well - with known consequences.

> Also, you've disabled all Intel cards, while the problem may be specific to
> i915g driver or older mesa versions.

It seems Sandybridge is affected by the same root cause (see comment #17 and comment #43) and it seems Ubuntu/Compiz meanwhile figured this happens =)
https://bugs.launchpad.net/ubuntu/+source/mesa/+bug/947544

Revision history for this message
In , Alexander Mezin (mezin-alexander) wrote :

(In reply to comment #206)
> No, false positives is what you'll get on your approach - proof: the cause
> for this discussion.
Yes, I'll get some false positives. Theoretically. But in practice:
- What's the problem with unredirected fullscreen unmanaged window? It could cause flicker once, nothing more.
- I've never seen such windows (where I didn't want unredirection).

> Then what's the "regression"?
> You suspend compositing instead and get 3 more extra fps in your shooter?
I get black screen when I run something with DRI_PRIME=1. And after reverting it everything is fine again.

> If you can work around the problem in a way so that we do no more get a
> "help, kwin crashed after checking this" bugreport about every week, i'll
> happily vote for that solution.
Suspend compositing instead of unredirecting? I'm not against it, I'm against removing single-checkbox solution.

> you're asking for a single target ("you") solution
Solution for a single target (me) is git revert.

Revision history for this message
In , Thomas-luebking (thomas-luebking) wrote :

(In reply to comment #207)

> - What's the problem with unredirected fullscreen unmanaged window? It could
> cause flicker once, nothing more.
It could flicker often, but the problem of course magnifies when you suspend compositing (because things like present windows etc. won't work either)

> - I've never seen such windows (where I didn't want unredirection).
Individual experience is, frankly, irrelevant.

> I get black screen when I run something with DRI_PRIME=1. And after
> reverting it everything is fine again.
Since you already run it with a shell export, you can just as easily block compositing around it.

> I'm not against it, I'm against removing single-checkbox solution.
And the truth is that a "single-checkbox solution" regardless of the backend (unredirection/suspension) does not work. For complete suspension it's actually a complete no-go.
Property hint control works. Rules work. Scripts (kinda dynamic rules) work.
"Yes or no" has been imprecise and will remain so, thus also your RR to sharpen it (regardles on whether implying "override_redirect = SuperMeatBoy = SDL" assumptions are reasonable)

Revision history for this message
In , Ben Cooksley (bcooksley) wrote :

Removing <email address hidden> from CC list per abuse report.

Revision history for this message
In , Mgraesslin (mgraesslin) wrote :

> > No, false positives is what you'll get on your approach - proof: the cause
> > for this discussion.
>
> Yes, I'll get some false positives. Theoretically. But in practice:
> - What's the problem with unredirected fullscreen unmanaged window? It could
> cause flicker once, nothing more.
KWin uses unredirected fullscreen translucent (!) unmanaged windows.

Revision history for this message
In , Ben Cooksley (bcooksley) wrote :

Removing <email address hidden> per abuse report.

Revision history for this message
In , Thomas-luebking (thomas-luebking) wrote :

Git commit f215bfb502461f2c2b281d023b0a92b2464422d7 by Thomas Lübking.
Committed on 28/07/2013 at 19:44.
Pushed by luebking into branch 'KDE/4.11'.

write back unsupported (kwin-intel) unredirection

to have a minimal hint on "this does not work"

REVIEW: 111772

M +3 -0 kwin/options.cpp

http://commits.kde.org/kde-workspace/f215bfb502461f2c2b281d023b0a92b2464422d7

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.