Bug 267059

Summary: KWin crashes when screensaver is triggered and sometimes just random
Product: [Plasma] kwin Reporter: Kai Uwe Broulik <KaiUweBroulik2>
Component: generalAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED DUPLICATE    
Severity: crash    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:

Description Kai Uwe Broulik 2011-02-24 16:02:15 UTC
Application: kwin (4.6.00 (4.6.0))
KDE Platform Version: 4.6.00 (4.6.0)
Qt Version: 4.7.0
Operating System: Linux 2.6.38-4-generic-pae i686
Distribution: Ubuntu 10.10

-- Information about the crash:
- What I was doing when the application crashed:
Nothing. Screensaver popped up and KWin crashed. Sometimes it just crashes randomly.
- Custom settings of the application:
Using Kubuntu 10.10 with Xorg edgers bleeding edge drivers, Mesa-7.11 (to enable blur effect on Intel graphics) and Kernel 2.3.38-4

The crash can be reproduced every time.

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

Thread 3 (Thread 0xb10cbb70 (LWP 2209)):
#0  0x00826e36 in clock_gettime () from /lib/librt.so.1
#1  0x001c182b in do_gettime () at tools/qelapsedtimer_unix.cpp:105
#2  qt_gettime () at tools/qelapsedtimer_unix.cpp:119
#3  0x00298a05 in QTimerInfoList::updateCurrentTime (this=0xa123d98) at kernel/qeventdispatcher_unix.cpp:339
#4  0x00298a4a in QTimerInfoList::timerWait (this=0xa123d98, tm=...) at kernel/qeventdispatcher_unix.cpp:442
#5  0x00299fcb in QEventDispatcherUNIX::processEvents (this=0xa16be40, flags=...) at kernel/qeventdispatcher_unix.cpp:906
#6  0x00266929 in QEventLoop::processEvents (this=0xb10cb280, flags=) at kernel/qeventloop.cpp:149
#7  0x00266daa in QEventLoop::exec (this=0xb10cb280, flags=...) at kernel/qeventloop.cpp:201
#8  0x00162e9e in QThread::exec (this=0xa090f20) at thread/qthread.cpp:490
#9  0x0024567b in QInotifyFileSystemWatcherEngine::run (this=0xa090f20) at io/qfilesystemwatcher_inotify.cpp:248
#10 0x00166119 in QThreadPrivate::start (arg=0xa090f20) at thread/qthread_unix.cpp:266
#11 0x007e4cc9 in start_thread () from /lib/libpthread.so.0
#12 0x0074a69e in clone () from /lib/libc.so.6

Thread 2 (Thread 0xb08cab70 (LWP 2210)):
#0  0xb77e8424 in __kernel_vsyscall ()
#1  0x007e94dc in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#2  0x00757d9d in pthread_cond_wait () from /lib/libc.so.6
#3  0x023b0577 in QTWTF::TCMalloc_PageHeap::scavengerThread (this=0x24aeea0) at ../3rdparty/javascriptcore/JavaScriptCore/wtf/FastMalloc.cpp:2359
#4  0x023b05c1 in QTWTF::TCMalloc_PageHeap::runScavengerThread (context=0x24aeea0) at ../3rdparty/javascriptcore/JavaScriptCore/wtf/FastMalloc.cpp:1464
#5  0x007e4cc9 in start_thread () from /lib/libpthread.so.0
#6  0x0074a69e in clone () from /lib/libc.so.6

Thread 1 (Thread 0xb77b8720 (LWP 2206)):
[KCrash Handler]
#7  0xb476bac0 in ?? () from /usr/lib/dri/i965_dri.so
#8  0xb475d016 in ?? () from /usr/lib/dri/i965_dri.so
#9  0xb476036e in ?? () from /usr/lib/dri/i965_dri.so
#10 0xb494811a in ?? () from /usr/lib/dri/i965_dri.so
#11 0x44da2cdb in KWin::SceneOpenGL::paintBackground (this=0x9ce12f8, region=...) at ../../kwin/scene_opengl.cpp:921
#12 0x44d958b2 in KWin::Scene::paintGenericScreen (this=0x9ce12f8, orig_mask=<value optimized out>) at ../../kwin/scene.cpp:188
#13 0x44da2ee5 in KWin::SceneOpenGL::paintGenericScreen (this=0x9ce12f8, mask=<value optimized out>, data=...) at ../../kwin/scene_opengl.cpp:909
#14 0x44d92900 in KWin::Scene::finalPaintScreen (this=0x9ce12f8, mask=32, region=..., data=...) at ../../kwin/scene.cpp:178
#15 0x44db661c in KWin::EffectsHandlerImpl::paintScreen (this=0x9ce1c68, mask=32, region=..., data=...) at ../../kwin/effects.cpp:173
#16 0xb35df729 in KWin::StartupFeedbackEffect::paintScreen (this=0x9e88938, mask=32, region=..., data=...) at ../../../kwin/effects/startupfeedback/startupfeedback.cpp:166
#17 0x44db66a0 in KWin::EffectsHandlerImpl::paintScreen (this=0x9ce1c68, mask=32, region=..., data=...) at ../../kwin/effects.cpp:169
#18 0x44e01846 in KWin::Effect::paintScreen (this=0x9e72328, mask=32, region=..., data=...) at ../../../kwin/lib/kwineffects.cpp:227
#19 0x44db66a0 in KWin::EffectsHandlerImpl::paintScreen (this=0x9ce1c68, mask=32, region=..., data=...) at ../../kwin/effects.cpp:169
#20 0xb3573ca6 in KWin::LogoutEffect::paintScreen (this=0x9e0e188, mask=32, region=..., data=...) at ../../../kwin/effects/logout/logout.cpp:207
#21 0x44db66a0 in KWin::EffectsHandlerImpl::paintScreen (this=0x9ce1c68, mask=32, region=..., data=...) at ../../kwin/effects.cpp:169
#22 0xb35973cf in KWin::ShadowEffect::paintScreen (this=0x9fb8fa0, mask=<value optimized out>, region=..., data=...) at ../../../kwin/effects/shadow/shadow.cpp:189
#23 0x44db66a0 in KWin::EffectsHandlerImpl::paintScreen (this=0x9ce1c68, mask=32, region=..., data=...) at ../../kwin/effects.cpp:169
#24 0xb35acb33 in KWin::BlurEffect::paintScreen (this=0x9de2528, mask=32, region=..., data=...) at ../../../kwin/effects/blur/blur.cpp:230
#25 0x44db66a0 in KWin::EffectsHandlerImpl::paintScreen (this=0x9ce1c68, mask=32, region=..., data=...) at ../../kwin/effects.cpp:169
#26 0xb357a06f in KWin::PresentWindowsEffect::paintScreen (this=0x9dd6ea0, mask=32, region=..., data=...) at ../../../kwin/effects/presentwindows/presentwindows.cpp:205
#27 0x44db66a0 in KWin::EffectsHandlerImpl::paintScreen (this=0x9ce1c68, mask=32, region=..., data=...) at ../../kwin/effects.cpp:169
#28 0x44e01846 in KWin::Effect::paintScreen (this=0x9f81ff0, mask=32, region=..., data=...) at ../../../kwin/lib/kwineffects.cpp:227
#29 0x44db66a0 in KWin::EffectsHandlerImpl::paintScreen (this=0x9ce1c68, mask=32, region=..., data=...) at ../../kwin/effects.cpp:169
#30 0x44e01846 in KWin::Effect::paintScreen (this=0x9ef5e18, mask=32, region=..., data=...) at ../../../kwin/lib/kwineffects.cpp:227
#31 0x44db66a0 in KWin::EffectsHandlerImpl::paintScreen (this=0x9ce1c68, mask=32, region=..., data=...) at ../../kwin/effects.cpp:169
#32 0x44e01846 in KWin::Effect::paintScreen (this=0xa00dcf8, mask=32, region=..., data=...) at ../../../kwin/lib/kwineffects.cpp:227
#33 0x44db66a0 in KWin::EffectsHandlerImpl::paintScreen (this=0x9ce1c68, mask=32, region=..., data=...) at ../../kwin/effects.cpp:169
#34 0x44e01846 in KWin::Effect::paintScreen (this=0x9f168c8, mask=32, region=..., data=...) at ../../../kwin/lib/kwineffects.cpp:227
#35 0x44db66a0 in KWin::EffectsHandlerImpl::paintScreen (this=0x9ce1c68, mask=32, region=..., data=...) at ../../kwin/effects.cpp:169
#36 0x44e01846 in KWin::Effect::paintScreen (this=0x9e97c88, mask=32, region=..., data=...) at ../../../kwin/lib/kwineffects.cpp:227
#37 0x44db66a0 in KWin::EffectsHandlerImpl::paintScreen (this=0x9ce1c68, mask=32, region=..., data=...) at ../../kwin/effects.cpp:169
#38 0x44e01846 in KWin::Effect::paintScreen (this=0x9dde530, mask=32, region=..., data=...) at ../../../kwin/lib/kwineffects.cpp:227
#39 0x44db66a0 in KWin::EffectsHandlerImpl::paintScreen (this=0x9ce1c68, mask=32, region=..., data=...) at ../../kwin/effects.cpp:169
#40 0xb35ce142 in KWin::FlipSwitchEffect::paintScreen (this=0x9dd9220, mask=32, region=..., data=...) at ../../../kwin/effects/flipswitch/flipswitch.cpp:148
#41 0x44db66a0 in KWin::EffectsHandlerImpl::paintScreen (this=0x9ce1c68, mask=32, region=..., data=...) at ../../kwin/effects.cpp:169
#42 0xb355c5f2 in KWin::DesktopGridEffect::paintScreen (this=0x9fd7168, mask=32, region=..., data=...) at ../../../kwin/effects/desktopgrid/desktopgrid.cpp:155
#43 0x44db66a0 in KWin::EffectsHandlerImpl::paintScreen (this=0x9ce1c68, mask=32, region=..., data=...) at ../../kwin/effects.cpp:169
#44 0x44e01846 in KWin::Effect::paintScreen (this=0x9e61a60, mask=32, region=..., data=...) at ../../../kwin/lib/kwineffects.cpp:227
#45 0x44db66a0 in KWin::EffectsHandlerImpl::paintScreen (this=0x9ce1c68, mask=32, region=..., data=...) at ../../kwin/effects.cpp:169
#46 0xb3555c3f in KWin::BoxSwitchEffect::paintScreen (this=0x9ecfea0, mask=32, region=..., data=...) at ../../../kwin/effects/boxswitch/boxswitch.cpp:143
#47 0x44db66a0 in KWin::EffectsHandlerImpl::paintScreen (this=0x9ce1c68, mask=32, region=..., data=...) at ../../kwin/effects.cpp:169
#48 0x44e01846 in KWin::Effect::paintScreen (this=0x9fabd80, mask=32, region=..., data=...) at ../../../kwin/lib/kwineffects.cpp:227
#49 0x44db66a0 in KWin::EffectsHandlerImpl::paintScreen (this=0x9ce1c68, mask=32, region=..., data=...) at ../../kwin/effects.cpp:169
#50 0x44e01846 in KWin::Effect::paintScreen (this=0x9eacf38, mask=32, region=..., data=...) at ../../../kwin/lib/kwineffects.cpp:227
#51 0x44db66a0 in KWin::EffectsHandlerImpl::paintScreen (this=0x9ce1c68, mask=32, region=..., data=...) at ../../kwin/effects.cpp:169
#52 0x44e01846 in KWin::Effect::paintScreen (this=0x9ecdb78, mask=32, region=..., data=...) at ../../../kwin/lib/kwineffects.cpp:227
#53 0x44db66a0 in KWin::EffectsHandlerImpl::paintScreen (this=0x9ce1c68, mask=32, region=..., data=...) at ../../kwin/effects.cpp:169
#54 0xb35b427c in KWin::CoverSwitchEffect::paintScreen (this=0x9f4b530, mask=32, region=..., data=...) at ../../../kwin/effects/coverswitch/coverswitch.cpp:126
#55 0x44db66a0 in KWin::EffectsHandlerImpl::paintScreen (this=0x9ce1c68, mask=32, region=..., data=...) at ../../kwin/effects.cpp:169
#56 0x44e01846 in KWin::Effect::paintScreen (this=0x9df57c0, mask=32, region=..., data=...) at ../../../kwin/lib/kwineffects.cpp:227
#57 0x44db66a0 in KWin::EffectsHandlerImpl::paintScreen (this=0x9ce1c68, mask=32, region=..., data=...) at ../../kwin/effects.cpp:169
#58 0x44e01846 in KWin::Effect::paintScreen (this=0x9e644b8, mask=32, region=..., data=...) at ../../../kwin/lib/kwineffects.cpp:227
#59 0x44db66a0 in KWin::EffectsHandlerImpl::paintScreen (this=0x9ce1c68, mask=32, region=..., data=...) at ../../kwin/effects.cpp:169
#60 0xb35e1cb9 in KWin::TrackMouseEffect::paintScreen (this=0x9de8550, mask=32, region=..., data=...) at ../../../kwin/effects/trackmouse/trackmouse.cpp:112
#61 0x44db66a0 in KWin::EffectsHandlerImpl::paintScreen (this=0x9ce1c68, mask=32, region=..., data=...) at ../../kwin/effects.cpp:169
#62 0x44e01846 in KWin::Effect::paintScreen (this=0x9e04b18, mask=32, region=..., data=...) at ../../../kwin/lib/kwineffects.cpp:227
#63 0x44db66a0 in KWin::EffectsHandlerImpl::paintScreen (this=0x9ce1c68, mask=32, region=..., data=...) at ../../kwin/effects.cpp:169
#64 0x44e01846 in KWin::Effect::paintScreen (this=0x9ead688, mask=32, region=..., data=...) at ../../../kwin/lib/kwineffects.cpp:227
#65 0x44db66a0 in KWin::EffectsHandlerImpl::paintScreen (this=0x9ce1c68, mask=32, region=..., data=...) at ../../kwin/effects.cpp:169
#66 0x44d940e4 in KWin::Scene::paintScreen (this=0x9ce12f8, mask=0xbfb027a4, region=0xbfb02850) at ../../kwin/scene.cpp:137
#67 0x44daaa8a in KWin::SceneOpenGL::paint (this=0x9ce12f8, damage=..., toplevels=...) at ../../kwin/scene_opengl.cpp:772
#68 0x44d8ee37 in KWin::Workspace::performCompositing (this=0x9ce4050) at ../../kwin/composite.cpp:448
#69 0x0027a824 in QObject::event (this=0x9ce4050, e=0x99f8100) at kernel/qobject.cpp:1183
#70 0x437a051c in QApplicationPrivate::notify_helper (this=0x98f1be0, receiver=0x9ce4050, e=0xbfb02d90) at kernel/qapplication.cpp:4396
#71 0x437a658e in QApplication::notify (this=0xbfb030b4, receiver=0x9ce4050, e=0xbfb02d90) at kernel/qapplication.cpp:3798
#72 0x443b4c1a in KApplication::notify (this=0xbfb030b4, receiver=0x9ce4050, event=0xbfb02d90) at ../../kdeui/kernel/kapplication.cpp:311
#73 0x44d17fef in KWin::Application::notify (this=0xbfb030b4, o=0x9ce4050, e=0xbfb02d90) at ../../kwin/main.cpp:376
#74 0x00267e5b in QCoreApplication::notifyInternal (this=0xbfb030b4, receiver=0x9ce4050, event=0xbfb02d90) at kernel/qcoreapplication.cpp:732
#75 0x00299df6 in sendEvent (this=0x98f2368) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:215
#76 QTimerInfoList::activateTimers (this=0x98f2368) at kernel/qeventdispatcher_unix.cpp:602
#77 0x00299f57 in QEventDispatcherUNIX::processEvents (this=0x98d3ba0, flags=...) at kernel/qeventdispatcher_unix.cpp:923
#78 0x43863612 in QEventDispatcherX11::processEvents (this=0x98d3ba0, flags=...) at kernel/qeventdispatcher_x11.cpp:152
#79 0x00266929 in QEventLoop::processEvents (this=0xbfb02fe4, flags=) at kernel/qeventloop.cpp:149
#80 0x00266daa in QEventLoop::exec (this=0xbfb02fe4, flags=...) at kernel/qeventloop.cpp:201
#81 0x0026b32f in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1009
#82 0x4379f347 in QApplication::exec () at kernel/qapplication.cpp:3672
#83 0x44d1afe0 in kdemain (argc=2, argv=0xbfb03334) at ../../kwin/main.cpp:542
#84 0x080485ab in main (argc=2, argv=0xbfb03334) at kwin_dummy.cpp:3

This bug may be a duplicate of or related to bug 255260.

Possible duplicates by query: bug 266303, bug 263386, bug 262155, bug 259634, bug 255260.

Reported using DrKonqi
Comment 1 Thomas Lübking 2011-02-24 17:09:47 UTC
Things don't crash just "randomly" - if you get another backtrace in other conditions, please report another bug ;-)

This one's in the driver, you can possibly workaround by enforcing indirect rendering (see dupe) but that will prevent vsync'ing and likely blurring as well.

*** This bug has been marked as a duplicate of bug 255260 ***
Comment 2 Kai Uwe Broulik 2011-02-24 17:12:03 UTC
Okay, I will report a backtrace once it crashes “randomly” again but you know it yourself, whenever you want to trigger a bug, it doesn‘t work *g*