Bug 277753

Summary: KWin - Screen flicker and application UI disinegration
Product: [Plasma] kwin Reporter: Optional <hsr.desktop>
Component: generalAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED DUPLICATE    
Severity: crash CC: hsr.desktop
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: myglx.info

Description Optional 2011-07-14 10:04:55 UTC
Application: kwin (4.6.5 (4.6.5))
KDE Platform Version: 4.6.5 (4.6.5)
Qt Version: 4.7.2
Operating System: Linux 2.6.38-8-generic-pae i686
Distribution: Ubuntu 11.04

-- Information about the crash:
- Unusual behavior I noticed:
- Running applications will flicker a lot on notifications and on click. Applications won't minimise and on clicking or attempting to drag, it doesn't show any response. Rather, the desktop background appears in small rectangular blocks.
- Though, soon when I tried killing the running applications with patience, the KWin bug report came switching off the desktop effects

The crash can be reproduced some of the time.

-- Backtrace:
Application: KWin (kwin), signal: Segmentation fault
[Current thread is 1 (Thread 0xb28ed720 (LWP 1471))]

Thread 3 (Thread 0xad27fb70 (LWP 1495)):
#0  0xb7792424 in __kernel_vsyscall ()
#1  0xb75cd681 in select () from /lib/i386-linux-gnu/libc.so.6
#2  0xb659238b in qt_safe_select (nfds=17, fdread=0x8a3f450, fdwrite=0x8a3f664, fdexcept=0x8a3f878, orig_timeout=0x0) at kernel/qcore_unix.cpp:82
#3  0xb65966e9 in QEventDispatcherUNIX::select (this=0x8a97ea8, nfds=17, readfds=0x8a3f450, writefds=0x8a3f664, exceptfds=0x8a3f878, timeout=0x0) at kernel/qeventdispatcher_unix.cpp:632
#4  0xb659766b in QEventDispatcherUNIXPrivate::doSelect (this=0x8a3f358, flags=..., timeout=0x0) at kernel/qeventdispatcher_unix.cpp:219
#5  0xb6598326 in QEventDispatcherUNIX::processEvents (this=0x8a97ea8, flags=...) at kernel/qeventdispatcher_unix.cpp:919
#6  0xb6567289 in QEventLoop::processEvents (this=0xad27f280, flags=...) at kernel/qeventloop.cpp:149
#7  0xb6567522 in QEventLoop::exec (this=0xad27f280, flags=...) at kernel/qeventloop.cpp:201
#8  0xb64712a0 in QThread::exec (this=0x841a658) at thread/qthread.cpp:492
#9  0xb6548fdb in QInotifyFileSystemWatcherEngine::run (this=0x841a658) at io/qfilesystemwatcher_inotify.cpp:248
#10 0xb6473da2 in QThreadPrivate::start (arg=0x841a658) at thread/qthread_unix.cpp:320
#11 0xb3905e99 in start_thread () from /lib/i386-linux-gnu/libpthread.so.0
#12 0xb75d473e in clone () from /lib/i386-linux-gnu/libc.so.6

Thread 2 (Thread 0xaca7eb70 (LWP 1496)):
#0  0xb7792424 in __kernel_vsyscall ()
#1  0xb390a48c in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/i386-linux-gnu/libpthread.so.0
#2  0xb75e23fd in pthread_cond_wait () from /lib/i386-linux-gnu/libc.so.6
#3  0xb6d5f817 in QTWTF::TCMalloc_PageHeap::scavengerThread (this=0xb6e731c0) at ../3rdparty/javascriptcore/JavaScriptCore/wtf/FastMalloc.cpp:2359
#4  0xb6d5f851 in QTWTF::TCMalloc_PageHeap::runScavengerThread (context=0xb6e731c0) at ../3rdparty/javascriptcore/JavaScriptCore/wtf/FastMalloc.cpp:1464
#5  0xb3905e99 in start_thread () from /lib/i386-linux-gnu/libpthread.so.0
#6  0xb75d473e in clone () from /lib/i386-linux-gnu/libc.so.6

Thread 1 (Thread 0xb28ed720 (LWP 1471)):
[KCrash Handler]
#7  intel_region_buffer (intel=0x8480bb8, region=0x0, flag=2) at intel_regions.c:514
#8  0xafc67ce2 in intelClearWithBlit (ctx=0x8480bb8, mask=2) at intel_blit.c:262
#9  0xafc6a4c0 in intelClear (ctx=0x8480bb8, mask=2) at intel_clear.c:177
#10 0xaf945512 in _mesa_Clear (mask=<value optimized out>) at main/clear.c:241
#11 0xb774577b in KWin::SceneOpenGL::paintBackground (this=0x8480738, region=...) at ../../kwin/scene_opengl.cpp:921
#12 0xb773c492 in KWin::Scene::paintGenericScreen (this=0x8480738, orig_mask=40) at ../../kwin/scene.cpp:188
#13 0xb7745961 in KWin::SceneOpenGL::paintGenericScreen (this=0x8480738, mask=40, data=...) at ../../kwin/scene_opengl.cpp:909
#14 0xb77396f0 in KWin::Scene::finalPaintScreen (this=0x8480738, mask=40, region=..., data=...) at ../../kwin/scene.cpp:178
#15 0xb775b02c in KWin::EffectsHandlerImpl::paintScreen (this=0x87aa440, mask=40, region=..., data=...) at ../../kwin/effects.cpp:173
#16 0xae4ec159 in KWin::StartupFeedbackEffect::paintScreen (this=0x88a5f60, mask=40, region=..., data=...) at ../../../kwin/effects/startupfeedback/startupfeedback.cpp:166
#17 0xb775b0a2 in KWin::EffectsHandlerImpl::paintScreen (this=0x87aa440, mask=40, region=..., data=...) at ../../kwin/effects.cpp:169
#18 0xb6b5e256 in KWin::Effect::paintScreen (this=0x88822d0, mask=40, region=..., data=...) at ../../../kwin/lib/kwineffects.cpp:227
#19 0xb775b0a2 in KWin::EffectsHandlerImpl::paintScreen (this=0x87aa440, mask=40, region=..., data=...) at ../../kwin/effects.cpp:169
#20 0xae48e0af in KWin::LogoutEffect::paintScreen (this=0x8938680, mask=40, region=..., data=...) at ../../../kwin/effects/logout/logout.cpp:207
#21 0xb775b0a2 in KWin::EffectsHandlerImpl::paintScreen (this=0x87aa440, mask=40, region=..., data=...) at ../../kwin/effects.cpp:169
#22 0xae4a9b40 in KWin::ShadowEffect::paintScreen (this=0x88c4fd8, mask=40, region=..., data=...) at ../../../kwin/effects/shadow/shadow.cpp:189
#23 0xb775b0a2 in KWin::EffectsHandlerImpl::paintScreen (this=0x87aa440, mask=40, region=..., data=...) at ../../kwin/effects.cpp:169
#24 0xae4be043 in KWin::BlurEffect::paintScreen (this=0x87f62a0, mask=40, region=..., data=...) at ../../../kwin/effects/blur/blur.cpp:230
#25 0xb775b0a2 in KWin::EffectsHandlerImpl::paintScreen (this=0x87aa440, mask=8, region=..., data=...) at ../../kwin/effects.cpp:169
#26 0xae492e9f in KWin::PresentWindowsEffect::paintScreen (this=0x8984650, mask=8, region=..., data=...) at ../../../kwin/effects/presentwindows/presentwindows.cpp:205
#27 0xb775b0a2 in KWin::EffectsHandlerImpl::paintScreen (this=0x87aa440, mask=8, region=..., data=...) at ../../kwin/effects.cpp:169
#28 0xb6b5e256 in KWin::Effect::paintScreen (this=0x8948888, mask=8, region=..., data=...) at ../../../kwin/lib/kwineffects.cpp:227
#29 0xb775b0a2 in KWin::EffectsHandlerImpl::paintScreen (this=0x87aa440, mask=8, region=..., data=...) at ../../kwin/effects.cpp:169
#30 0xb6b5e256 in KWin::Effect::paintScreen (this=0x89b9e20, mask=8, region=..., data=...) at ../../../kwin/lib/kwineffects.cpp:227
#31 0xb775b0a2 in KWin::EffectsHandlerImpl::paintScreen (this=0x87aa440, mask=8, region=..., data=...) at ../../kwin/effects.cpp:169
#32 0xb6b5e256 in KWin::Effect::paintScreen (this=0x89cb760, mask=8, region=..., data=...) at ../../../kwin/lib/kwineffects.cpp:227
#33 0xb775b0a2 in KWin::EffectsHandlerImpl::paintScreen (this=0x87aa440, mask=8, region=..., data=...) at ../../kwin/effects.cpp:169
#34 0xb6b5e256 in KWin::Effect::paintScreen (this=0x885cd18, mask=8, region=..., data=...) at ../../../kwin/lib/kwineffects.cpp:227
#35 0xb775b0a2 in KWin::EffectsHandlerImpl::paintScreen (this=0x87aa440, mask=8, region=..., data=...) at ../../kwin/effects.cpp:169
#36 0xb6b5e256 in KWin::Effect::paintScreen (this=0x8936808, mask=8, region=..., data=...) at ../../../kwin/lib/kwineffects.cpp:227
#37 0xb775b0a2 in KWin::EffectsHandlerImpl::paintScreen (this=0x87aa440, mask=8, region=..., data=...) at ../../kwin/effects.cpp:169
#38 0xae4dd272 in KWin::FlipSwitchEffect::paintScreen (this=0x89c9540, mask=8, region=..., data=...) at ../../../kwin/effects/flipswitch/flipswitch.cpp:148
#39 0xb775b0a2 in KWin::EffectsHandlerImpl::paintScreen (this=0x87aa440, mask=8, region=..., data=...) at ../../kwin/effects.cpp:169
#40 0xae479809 in KWin::DesktopGridEffect::paintScreen (this=0x88c8190, mask=8, region=..., data=...) at ../../../kwin/effects/desktopgrid/desktopgrid.cpp:156
#41 0xb775b0a2 in KWin::EffectsHandlerImpl::paintScreen (this=0x87aa440, mask=8, region=..., data=...) at ../../kwin/effects.cpp:169
#42 0xae472799 in KWin::BoxSwitchEffect::paintScreen (this=0x8880d78, mask=8, region=..., data=...) at ../../../kwin/effects/boxswitch/boxswitch.cpp:143
#43 0xb775b0a2 in KWin::EffectsHandlerImpl::paintScreen (this=0x87aa440, mask=8, region=..., data=...) at ../../kwin/effects.cpp:169
#44 0xae4ccc1c in KWin::CubeEffect::paintScreen (this=0x88e7248, mask=8, region=..., data=...) at ../../../kwin/effects/cube/cube.cpp:698
#45 0xb775b0a2 in KWin::EffectsHandlerImpl::paintScreen (this=0x87aa440, mask=8, region=..., data=...) at ../../kwin/effects.cpp:169
#46 0xb6b5e256 in KWin::Effect::paintScreen (this=0x89150c0, mask=8, region=..., data=...) at ../../../kwin/lib/kwineffects.cpp:227
#47 0xb775b0a2 in KWin::EffectsHandlerImpl::paintScreen (this=0x87aa440, mask=8, region=..., data=...) at ../../kwin/effects.cpp:169
#48 0xb6b5e256 in KWin::Effect::paintScreen (this=0x89316a0, mask=8, region=..., data=...) at ../../../kwin/lib/kwineffects.cpp:227
#49 0xb775b0a2 in KWin::EffectsHandlerImpl::paintScreen (this=0x87aa440, mask=8, region=..., data=...) at ../../kwin/effects.cpp:169
#50 0xae4d5e40 in KWin::CubeSlideEffect::paintScreen (this=0x88a6808, mask=8, region=..., data=...) at ../../../kwin/effects/cube/cubeslide.cpp:111
#51 0xb775b0a2 in KWin::EffectsHandlerImpl::paintScreen (this=0x87aa440, mask=8, region=..., data=...) at ../../kwin/effects.cpp:169
#52 0xb6b5e256 in KWin::Effect::paintScreen (this=0x88c6110, mask=8, region=..., data=...) at ../../../kwin/lib/kwineffects.cpp:227
#53 0xb775b0a2 in KWin::EffectsHandlerImpl::paintScreen (this=0x87aa440, mask=8, region=..., data=...) at ../../kwin/effects.cpp:169
#54 0xb6b5e256 in KWin::Effect::paintScreen (this=0x89ba630, mask=8, region=..., data=...) at ../../../kwin/lib/kwineffects.cpp:227
#55 0xb775b0a2 in KWin::EffectsHandlerImpl::paintScreen (this=0x87aa440, mask=8, region=..., data=...) at ../../kwin/effects.cpp:169
#56 0xae4c5a5c in KWin::CoverSwitchEffect::paintScreen (this=0x88bcb68, mask=8, region=..., data=...) at ../../../kwin/effects/coverswitch/coverswitch.cpp:126
#57 0xb775b0a2 in KWin::EffectsHandlerImpl::paintScreen (this=0x87aa440, mask=8, region=..., data=...) at ../../kwin/effects.cpp:169
#58 0xb6b5e256 in KWin::Effect::paintScreen (this=0x87f62c0, mask=8, region=..., data=...) at ../../../kwin/lib/kwineffects.cpp:227
#59 0xb775b0a2 in KWin::EffectsHandlerImpl::paintScreen (this=0x87aa440, mask=8, region=..., data=...) at ../../kwin/effects.cpp:169
#60 0xb6b5e256 in KWin::Effect::paintScreen (this=0x8948218, mask=8, region=..., data=...) at ../../../kwin/lib/kwineffects.cpp:227
#61 0xb775b0a2 in KWin::EffectsHandlerImpl::paintScreen (this=0x87aa440, mask=8, region=..., data=...) at ../../kwin/effects.cpp:169
#62 0xae4bb0f1 in KWin::ZoomEffect::paintScreen (this=0x89ba4b0, mask=8, region=..., data=...) at ../../../kwin/effects/zoom/zoom.cpp:341
#63 0xb775b0a2 in KWin::EffectsHandlerImpl::paintScreen (this=0x87aa440, mask=8, region=..., data=...) at ../../kwin/effects.cpp:169
#64 0xb773a8bc in KWin::Scene::paintScreen (this=0x8480738, mask=0xbfb168e8, region=0xbfb16970) at ../../kwin/scene.cpp:137
#65 0xb7751892 in KWin::SceneOpenGL::paint (this=0x8480738, damage=..., toplevels=...) at ../../kwin/scene_opengl.cpp:772
#66 0xb77367b6 in KWin::Workspace::performCompositing (this=0xae94c1e8) at ../../kwin/composite.cpp:448
#67 0xb657d214 in QObject::event (this=0xae94c1e8, e=0xbfb16e9c) at kernel/qobject.cpp:1190
#68 0xb5abfd24 in QApplicationPrivate::notify_helper (this=0x839f760, receiver=0xae94c1e8, e=0xbfb16e9c) at kernel/qapplication.cpp:4462
#69 0xb5ac48ce in QApplication::notify (this=0xbfb171b4, receiver=0xae94c1e8, e=0xbfb16e9c) at kernel/qapplication.cpp:3862
#70 0xb733a32a in KApplication::notify (this=0xbfb171b4, receiver=0xae94c1e8, event=0xbfb16e9c) at ../../kdeui/kernel/kapplication.cpp:311
#71 0xb76c59ef in KWin::Application::notify (this=0xbfb171b4, o=0xae94c1e8, e=0xbfb16e9c) at ../../kwin/main.cpp:376
#72 0xb65680bb in QCoreApplication::notifyInternal (this=0xbfb171b4, receiver=0xae94c1e8, event=0xbfb16e9c) at kernel/qcoreapplication.cpp:731
#73 0xb65981e4 in sendEvent (this=0x83a0048) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:215
#74 QTimerInfoList::activateTimers (this=0x83a0048) at kernel/qeventdispatcher_unix.cpp:604
#75 0xb6598338 in QEventDispatcherUNIX::processEvents (this=0x835daa8, flags=...) at kernel/qeventdispatcher_unix.cpp:923
#76 0xb5b7725a in QEventDispatcherX11::processEvents (this=0x835daa8, flags=...) at kernel/qeventdispatcher_x11.cpp:152
#77 0xb6567289 in QEventLoop::processEvents (this=0xbfb170f4, flags=...) at kernel/qeventloop.cpp:149
#78 0xb6567522 in QEventLoop::exec (this=0xbfb170f4, flags=...) at kernel/qeventloop.cpp:201
#79 0xb656becc in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1008
#80 0xb5abd8e7 in QApplication::exec () at kernel/qapplication.cpp:3736
#81 0xb76c84e2 in kdemain (argc=3, argv=0xbfb17434) at ../../kwin/main.cpp:542
#82 0x080485bb in main (argc=3, argv=0xbfb17434) at kwin_dummy.cpp:3

Possible duplicates by query: bug 277463, bug 277203, bug 276860, bug 276797, bug 276695.

Reported using DrKonqi
Comment 1 Thomas Lübking 2011-07-14 10:28:18 UTC
You experiences are mostly (please don't collect issues into a "complainments" bug report - makes them hard to deal) outcomes of the fullscreen unredirection (tooltips break the fullscreen, thus unredirection - that it only occurs on a fullscreen window would have been a valuable information, btw. I just randomly can say it from the backtrace since that's a known intel bug)

crashtrace is a driver bug, to workaround either really suspend compositing before going fullscreen (shift+alt+f12) or disable suspension for fullscreen window (yes, sounds weird ;-) in "kcmshell4 kwincompositing" (3rd tab)

you might want to elaborate on the "won't minimize" issue - you mean from the taskbar? Do they minimize using the minimize button?

*** This bug has been marked as a duplicate of bug 252817 ***
Comment 2 Optional 2011-07-15 06:42:52 UTC
I'm not sure how you that fullscreen caused. I rarely switch to
fullscreen. I was going through the bug marked as duplicate of mine,
so just to clarify I'm also not multiple screen.
Whenever it crashes the unusual behavior is that it stops responding
to any input and I get to see rectangular patches. For example, if I'm
on a text editor UI or firefox, suddenly things will freeze and on any
input(even the movement of mouse) would cause formation of blocks
making the desktop background visible. That is I partly see firefox
window and partly desktop. Regarding minimize, if I try to minimize
firefox window, it won't do that or even if it does, pieces of the
firefox window would still remain on the screen. This all happen due
to desktop effect or the supporting driver for the hardware or you
said, Intel. As soon as the bug report could be found, desktop effect
was automatically turned off and it came back to normal.


On Thu, Jul 14, 2011 at 3:58 PM, Thomas Lübking
<thomas.luebking@gmail.com> wrote:
>
> https://bugs.kde.org/show_bug.cgi?id=277753
>
>
> Thomas Lübking <thomas.luebking@gmail.com> changed:
>
>           What    |Removed                     |Added
> ----------------------------------------------------------------------------
>             Status|UNCONFIRMED                 |RESOLVED
>         Resolution|                            |DUPLICATE
>
>
>
>
> --- Comment #1 from Thomas Lübking <thomas luebking gmail com>  2011-07-14 10:28:18 ---
> You experiences are mostly (please don't collect issues into a "complainments"
> bug report - makes them hard to deal) outcomes of the fullscreen unredirection
> (tooltips break the fullscreen, thus unredirection - that it only occurs on a
> fullscreen window would have been a valuable information, btw. I just randomly
> can say it from the backtrace since that's a known intel bug)
>
> crashtrace is a driver bug, to workaround either really suspend compositing
> before going fullscreen (shift+alt+f12) or disable suspension for fullscreen
> window (yes, sounds weird ;-) in "kcmshell4 kwincompositing" (3rd tab)
>
> you might want to elaborate on the "won't minimize" issue - you mean from the
> taskbar? Do they minimize using the minimize button?
>
> *** This bug has been marked as a duplicate of bug 252817 ***
>
> --
> Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
> ------- You are receiving this mail because: -------
> You reported the bug.
Comment 3 Optional 2011-07-15 06:44:53 UTC
Er, sorry, for typing mistakes in there
Comment 4 Thomas Lübking 2011-07-15 07:15:14 UTC
The backtrace on *this* bug is the same as on the dupe.
It usually occurs when a window drops out of unredirection on the intel driver. The amount of screens is rather unrelated to that issue.
-> i concluded that some client dropped out of unredirection (would explain "flicker" when eg. toolips or popups appear) and this happens on fullscreen windows only (ideally...)

"pieces of the firefox window would still remain on the screen" - that's purely visual.
If this is while compositing, there's sth. heavily broken (framebuffer - intel tries flipping but can't?, damage events)

- I assume it does not happen if you use XRender ("kcmshell4 kwincompositing", 3rd tab).
- Do you use blurring and is it related? (2nd tab)
- What kind of GPU do you have? (in doubt, attach a dump of "glxinfo > myglx.info"
Comment 5 Optional 2011-07-15 16:19:12 UTC
On 7/15/11, Thomas Lübking <thomas.luebking@gmail.com> wrote:
> https://bugs.kde.org/show_bug.cgi?id=277753
>
>
>
>
>
> --- Comment #4 from Thomas Lübking <thomas luebking gmail com>  2011-07-15
> 07:15:14 ---
> The backtrace on *this* bug is the same as on the dupe.
> It usually occurs when a window drops out of unredirection on the intel
> driver.
> The amount of screens is rather unrelated to that issue.
> -> i concluded that some client dropped out of unredirection (would explain
> "flicker" when eg. toolips or popups appear) and this happens on fullscreen
> windows only (ideally...)
>
> "pieces of the firefox window would still remain on the screen" - that's
> purely
> visual.
> If this is while compositing, there's sth. heavily broken (framebuffer -
> intel
> tries flipping but can't?, damage events)
>
> - I assume it does not happen if you use XRender ("kcmshell4
> kwincompositing",
> 3rd tab).
XRender here doesn't actually create desktop effects the way OpenGL
does. Its as if no desktop effect is enabled.

> - Do you use blurring and is it related? (2nd tab)
Yes, Blur (All Effects>Appearance) is selected by deafult. I cannot
say if its related. If you want, I can disable it and check whether it
causes crashing.

> - What kind of GPU do you have?
I've integrated card with no independent card.

lspci | grep VGA
00:02.0 VGA compatible controller: Intel Corporation 4 Series Chipset
Integrated Graphics Controller (rev 03)

> (in doubt, attach a dump of "glxinfo >
> myglx.info"
Kindly go through attached myglx.info

> --
> Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
> ------- You are receiving this mail because: -------
> You reported the bug.
Comment 6 Thomas Lübking 2011-07-15 17:17:10 UTC
There's nothing attached - you're mailing to a bugtracker.
(For the same reason you don't have to keep quotes. It's all stored anyway)

Go to the webpage and "Add an attachment" with the link on the very bottom of the posts.

What do you mean by "Its as if no desktop effect is enabled" - you can't even make windows translucent??
Comment 7 Optional 2011-07-15 19:23:19 UTC
Created attachment 61901 [details]
myglx.info
Comment 8 Optional 2011-07-15 19:26:44 UTC
Yes, I can see windows translucent on dragging them. Its partially enabled.
Comment 9 Thomas Lübking 2011-07-15 21:34:25 UTC
(In reply to comment #5)
> Yes, Blur (All Effects>Appearance) is selected by deafult. I cannot
> say if its related. If you want, I can disable it and check whether it
> causes crashing.

G45 -> yes please. Try...