https://bugs.kde.org/show_bug.cgi?id=372305
Bug ID: 372305 Summary: kwin crash after disconnecting external monitor (including resolution change) Product: kwin Version: 5.8.3 Platform: Compiled Sources OS: Linux Status: UNCONFIRMED Keywords: drkonqi Severity: crash Priority: NOR Component: general Assignee: kwin-bugs-n...@kde.org Reporter: msch...@gentoo.org Target Milestone: --- Application: kwin_x11 (5.8.3) (Compiled from sources) Qt Version: 5.7.0 Frameworks Version: 5.28.0 Operating System: Linux 4.7.4-gentoo x86_64 Distribution: "Gentoo Base System release 2.3" -- Information about the crash: - What I was doing when the application crashed: I plugged out my external monitor from my laptop. After that, kwin crashed -- Backtrace: Application: KWin (kwin_x11), signal: Segmentation fault Using host libthread_db library "/lib64/libthread_db.so.1". [Current thread is 1 (Thread 0x7f9531b06840 (LWP 16831))] Thread 8 (Thread 0x7f951130e700 (LWP 3266)): #0 0x00007f95316bd01f in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0 #1 0x00007f952f156d9a in QWaitConditionPrivate::wait (time=18446744073709551615, this=0x27a1f30) at thread/qwaitcondition_unix.cpp:143 #2 QWaitCondition::wait (this=this@entry=0x261b768, mutex=mutex@entry=0x261b760, time=time@entry=18446744073709551615) at thread/qwaitcondition_unix.cpp:215 #3 0x00007f952a7f35f5 in QSGRenderThreadEventQueue::takeEvent (wait=true, this=0x261b758) at scenegraph/qsgthreadedrenderloop.cpp:242 #4 QSGRenderThread::processEventsAndWaitForMore (this=this@entry=0x261b6e0) at scenegraph/qsgthreadedrenderloop.cpp:690 #5 0x00007f952a7f5a9a in QSGRenderThread::run (this=0x261b6e0) at scenegraph/qsgthreadedrenderloop.cpp:719 #6 0x00007f952f15672c in QThreadPrivate::start (arg=0x261b6e0) at thread/qthread_unix.cpp:344 #7 0x00007f95316b7444 in start_thread () from /lib64/libpthread.so.0 #8 0x00007f95313fd92d in clone () from /lib64/libc.so.6 Thread 7 (Thread 0x7f9512dba700 (LWP 950)): #0 0x00007f95316bd01f in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0 #1 0x00007f952f156d9a in QWaitConditionPrivate::wait (time=18446744073709551615, this=0x2854e70) at thread/qwaitcondition_unix.cpp:143 #2 QWaitCondition::wait (this=this@entry=0x28617c8, mutex=mutex@entry=0x28617c0, time=time@entry=18446744073709551615) at thread/qwaitcondition_unix.cpp:215 #3 0x00007f952a7f35f5 in QSGRenderThreadEventQueue::takeEvent (wait=true, this=0x28617b8) at scenegraph/qsgthreadedrenderloop.cpp:242 #4 QSGRenderThread::processEventsAndWaitForMore (this=this@entry=0x2861740) at scenegraph/qsgthreadedrenderloop.cpp:690 #5 0x00007f952a7f5a9a in QSGRenderThread::run (this=0x2861740) at scenegraph/qsgthreadedrenderloop.cpp:719 #6 0x00007f952f15672c in QThreadPrivate::start (arg=0x2861740) at thread/qthread_unix.cpp:344 #7 0x00007f95316b7444 in start_thread () from /lib64/libpthread.so.0 #8 0x00007f95313fd92d in clone () from /lib64/libc.so.6 Thread 6 (Thread 0x7f94fdefb700 (LWP 949)): #0 QTimerInfoList::timerWait (this=this@entry=0x7f94f8000980, tm=...) at kernel/qtimerinfo_unix.cpp:413 #1 0x00007f952f342829 in QEventDispatcherUNIX::processEvents (this=0x7f94f80008c0, flags=...) at kernel/qeventdispatcher_unix.cpp:480 #2 0x00007f952f2f87ba in QEventLoop::exec (this=this@entry=0x7f94fdefad60, flags=..., flags@entry=...) at kernel/qeventloop.cpp:210 #3 0x00007f952f1521a4 in QThread::exec (this=this@entry=0x274a5b0) at thread/qthread.cpp:507 #4 0x00007f952a31fed5 in QQmlThreadPrivate::run (this=0x274a5b0) at qml/ftw/qqmlthread.cpp:147 #5 0x00007f952f15672c in QThreadPrivate::start (arg=0x274a5b0) at thread/qthread_unix.cpp:344 #6 0x00007f95316b7444 in start_thread () from /lib64/libpthread.so.0 #7 0x00007f95313fd92d in clone () from /lib64/libc.so.6 Thread 5 (Thread 0x7f94fc8d9700 (LWP 16915)): #0 0x00007f95316bd01f in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0 #1 0x00007f952e50ca94 in QTWTF::TCMalloc_PageHeap::scavengerThread (this=0x7f952e5fb180 <QTWTF::pageheap_memory>) at ../3rdparty/javascriptcore/JavaScriptCore/wtf/FastMalloc.cpp:2359 #2 0x00007f952e50cad9 in QTWTF::TCMalloc_PageHeap::runScavengerThread (context=<optimized out>) at ../3rdparty/javascriptcore/JavaScriptCore/wtf/FastMalloc.cpp:1464 #3 0x00007f95316b7444 in start_thread () from /lib64/libpthread.so.0 #4 0x00007f95313fd92d in clone () from /lib64/libc.so.6 Thread 4 (Thread 0x7f951236f700 (LWP 16880)): #0 0x00007f95313f484d in poll () from /lib64/libc.so.6 #1 0x00007f952f340f2a in poll (__timeout=-1, __nfds=1, __fds=0x7f9500000ac8) at /usr/include/bits/poll2.h:46 #2 qt_ppoll (timeout_ts=0x0, nfds=1, fds=0x7f9500000ac8) at kernel/qcore_unix.cpp:93 #3 qt_safe_poll (fds=0x7f9500000ac8, nfds=nfds@entry=1, timeout_ts=timeout_ts@entry=0x0) at kernel/qcore_unix.cpp:112 #4 0x00007f952f34258d in QEventDispatcherUNIX::processEvents (this=<optimized out>, flags=...) at kernel/qeventdispatcher_unix.cpp:495 #5 0x00007f952f2f87ba in QEventLoop::exec (this=this@entry=0x7f951236ed60, flags=..., flags@entry=...) at kernel/qeventloop.cpp:210 #6 0x00007f952f1521a4 in QThread::exec (this=this@entry=0x1efa090) at thread/qthread.cpp:507 #7 0x00007f952a31fed5 in QQmlThreadPrivate::run (this=0x1efa090) at qml/ftw/qqmlthread.cpp:147 #8 0x00007f952f15672c in QThreadPrivate::start (arg=0x1efa090) at thread/qthread_unix.cpp:344 #9 0x00007f95316b7444 in start_thread () from /lib64/libpthread.so.0 #10 0x00007f95313fd92d in clone () from /lib64/libc.so.6 Thread 3 (Thread 0x7f9518d4b700 (LWP 16854)): #0 0x00007f95313f484d in poll () from /lib64/libc.so.6 #1 0x00007f952f340f2a in poll (__timeout=-1, __nfds=1, __fds=0x7f950c00ab38) at /usr/include/bits/poll2.h:46 #2 qt_ppoll (timeout_ts=0x0, nfds=1, fds=0x7f950c00ab38) at kernel/qcore_unix.cpp:93 #3 qt_safe_poll (fds=0x7f950c00ab38, nfds=nfds@entry=1, timeout_ts=timeout_ts@entry=0x0) at kernel/qcore_unix.cpp:112 #4 0x00007f952f34258d in QEventDispatcherUNIX::processEvents (this=<optimized out>, flags=...) at kernel/qeventdispatcher_unix.cpp:495 #5 0x00007f952f2f87ba in QEventLoop::exec (this=this@entry=0x7f9518d4ad50, flags=..., flags@entry=...) at kernel/qeventloop.cpp:210 #6 0x00007f952f1521a4 in QThread::exec (this=this@entry=0x7f9531c8da00 <(anonymous namespace)::Q_QGS__q_manager::innerFunction()::holder>) at thread/qthread.cpp:507 #7 0x00007f9531c1f335 in QDBusConnectionManager::run (this=0x7f9531c8da00 <(anonymous namespace)::Q_QGS__q_manager::innerFunction()::holder>) at qdbusconnection.cpp:196 #8 0x00007f952f15672c in QThreadPrivate::start (arg=0x7f9531c8da00 <(anonymous namespace)::Q_QGS__q_manager::innerFunction()::holder>) at thread/qthread_unix.cpp:344 #9 0x00007f95316b7444 in start_thread () from /lib64/libpthread.so.0 #10 0x00007f95313fd92d in clone () from /lib64/libc.so.6 Thread 2 (Thread 0x7f951aa15700 (LWP 16846)): #0 0x00007f95313f484d in poll () from /lib64/libc.so.6 #1 0x00007f9530558882 in poll (__timeout=-1, __nfds=1, __fds=0x7f951aa14c80) at /usr/include/bits/poll2.h:46 #2 _xcb_conn_wait (c=c@entry=0x1d9b490, cond=cond@entry=0x1d9b4d0, vector=vector@entry=0x0, count=count@entry=0x0) at /var/tmp/portage/x11-libs/libxcb-1.12-r2/work/libxcb-1.12/src/xcb_conn.c:479 #3 0x00007f953055a66f in xcb_wait_for_event (c=0x1d9b490) at /var/tmp/portage/x11-libs/libxcb-1.12-r2/work/libxcb-1.12/src/xcb_in.c:693 #4 0x00007f951b8f5ad9 in QXcbEventReader::run (this=0x1da95b0) at qxcbconnection.cpp:1337 #5 0x00007f952f15672c in QThreadPrivate::start (arg=0x1da95b0) at thread/qthread_unix.cpp:344 #6 0x00007f95316b7444 in start_thread () from /lib64/libpthread.so.0 #7 0x00007f95313fd92d in clone () from /lib64/libc.so.6 Thread 1 (Thread 0x7f9531b06840 (LWP 16831)): [KCrash Handler] #6 KWin::ContrastEffect::uploadRegion (this=this@entry=0x230f550, map=@0x7ffc7f3f49d8: 0x7f94fe08bee0, region=...) at /var/tmp/portage/kde-plasma/kwin-5.8.3/work/kwin-5.8.3/effects/backgroundcontrast/contrast.cpp:262 #7 0x00007f952e6cdae7 in KWin::ContrastEffect::uploadGeometry (this=this@entry=0x230f550, vbo=vbo@entry=0x2050f50, region=...) at /var/tmp/portage/kde-plasma/kwin-5.8.3/work/kwin-5.8.3/effects/backgroundcontrast/contrast.cpp:280 #8 0x00007f952e6ce86e in KWin::ContrastEffect::doContrast (this=this@entry=0x230f550, shape=..., screen=..., opacity=1) at /var/tmp/portage/kde-plasma/kwin-5.8.3/work/kwin-5.8.3/effects/backgroundcontrast/contrast.cpp:421 #9 0x00007f952e6cf116 in KWin::ContrastEffect::drawWindow (this=this@entry=0x230f550, w=w@entry=0x23379e0, mask=mask@entry=10, region=..., data=...) at /var/tmp/portage/kde-plasma/kwin-5.8.3/work/kwin-5.8.3/effects/backgroundcontrast/contrast.cpp:400 #10 0x00007f9530fca621 in KWin::EffectsHandlerImpl::drawWindow (this=0x209f5e0, w=w@entry=0x23379e0, mask=mask@entry=10, region=..., data=...) at /var/tmp/portage/kde-plasma/kwin-5.8.3/work/kwin-5.8.3/effects.cpp:417 #11 0x00007f952e6494d2 in KWin::BlurEffect::drawWindow (this=this@entry=0x20ad060, w=w@entry=0x23379e0, mask=mask@entry=10, region=..., data=...) at /var/tmp/portage/kde-plasma/kwin-5.8.3/work/kwin-5.8.3/effects/blur/blur.cpp:476 #12 0x00007f9530fca621 in KWin::EffectsHandlerImpl::drawWindow (this=0x209f5e0, w=w@entry=0x23379e0, mask=mask@entry=10, region=..., data=...) at /var/tmp/portage/kde-plasma/kwin-5.8.3/work/kwin-5.8.3/effects.cpp:417 #13 0x00007f9530f96ed1 in KWin::Scene::finalPaintWindow (this=<optimized out>, w=w@entry=0x23379e0, mask=mask@entry=10, region=..., data=...) at /var/tmp/portage/kde-plasma/kwin-5.8.3/work/kwin-5.8.3/scene.cpp:601 #14 0x00007f9530fca4ca in KWin::EffectsHandlerImpl::paintWindow (this=0x209f5e0, w=w@entry=0x23379e0, mask=mask@entry=10, region=..., data=...) at /var/tmp/portage/kde-plasma/kwin-5.8.3/work/kwin-5.8.3/effects.cpp:383 #15 0x00007f952eb2e6a1 in KWin::Effect::paintWindow (this=this@entry=0x230f550, w=w@entry=0x23379e0, mask=mask@entry=10, region=..., data=...) at /var/tmp/portage/kde-plasma/kwin-5.8.3/work/kwin-5.8.3/libkwineffects/kwineffects.cpp:589 #16 0x00007f9530fca471 in KWin::EffectsHandlerImpl::paintWindow (this=0x209f5e0, w=w@entry=0x23379e0, mask=mask@entry=10, region=..., data=...) at /var/tmp/portage/kde-plasma/kwin-5.8.3/work/kwin-5.8.3/effects.cpp:380 #17 0x00007f952eb2e6a1 in KWin::Effect::paintWindow (this=this@entry=0x20ad060, w=w@entry=0x23379e0, mask=mask@entry=10, region=..., data=...) at /var/tmp/portage/kde-plasma/kwin-5.8.3/work/kwin-5.8.3/libkwineffects/kwineffects.cpp:589 #18 0x00007f9530fca471 in KWin::EffectsHandlerImpl::paintWindow (this=0x209f5e0, w=0x23379e0, mask=mask@entry=10, region=..., data=...) at /var/tmp/portage/kde-plasma/kwin-5.8.3/work/kwin-5.8.3/effects.cpp:380 #19 0x00007f9530f9d50b in KWin::Scene::paintWindow (this=this@entry=0x205af80, w=0x222d0e0, mask=10, region=..., quads=...) at /var/tmp/portage/kde-plasma/kwin-5.8.3/work/kwin-5.8.3/scene.cpp:473 #20 0x00007f9530f9a278 in KWin::Scene::paintSimpleScreen (this=this@entry=0x205af80, orig_mask=orig_mask@entry=8, region=...) at /var/tmp/portage/kde-plasma/kwin-5.8.3/work/kwin-5.8.3/scene.cpp:376 #21 0x00007f9530faf053 in KWin::SceneOpenGL2::paintSimpleScreen (this=this@entry=0x205af80, mask=mask@entry=8, region=...) at /var/tmp/portage/kde-plasma/kwin-5.8.3/work/kwin-5.8.3/scene_opengl.cpp:1083 #22 0x00007f9530f9c8c5 in KWin::Scene::finalPaintScreen (this=0x205af80, mask=mask@entry=8, region=..., data=...) at /var/tmp/portage/kde-plasma/kwin-5.8.3/work/kwin-5.8.3/scene.cpp:201 #23 0x00007f9530fca24f in KWin::EffectsHandlerImpl::paintScreen (this=0x209f5e0, mask=mask@entry=8, region=..., data=...) at /var/tmp/portage/kde-plasma/kwin-5.8.3/work/kwin-5.8.3/effects.cpp:340 #24 0x00007f952eb2e5cf in KWin::Effect::paintScreen (this=this@entry=0x230f550, mask=mask@entry=8, region=..., data=...) at /var/tmp/portage/kde-plasma/kwin-5.8.3/work/kwin-5.8.3/libkwineffects/kwineffects.cpp:574 #25 0x00007f9530fca1fd in KWin::EffectsHandlerImpl::paintScreen (this=0x209f5e0, mask=mask@entry=8, region=..., data=...) at /var/tmp/portage/kde-plasma/kwin-5.8.3/work/kwin-5.8.3/effects.cpp:337 #26 0x00007f952eb2e5cf in KWin::Effect::paintScreen (this=this@entry=0x20ad060, mask=mask@entry=8, region=..., data=...) at /var/tmp/portage/kde-plasma/kwin-5.8.3/work/kwin-5.8.3/libkwineffects/kwineffects.cpp:574 #27 0x00007f9530fca1fd in KWin::EffectsHandlerImpl::paintScreen (this=0x209f5e0, mask=8, region=..., data=...) at /var/tmp/portage/kde-plasma/kwin-5.8.3/work/kwin-5.8.3/effects.cpp:337 #28 0x00007f9530f9c559 in KWin::Scene::paintScreen (this=this@entry=0x205af80, mask=mask@entry=0x7ffc7f3f5650, damage=..., repaint=..., updateRegion=updateRegion@entry=0x7ffc7f3f5620, validRegion=validRegion@entry=0x7ffc7f3f5630, projection=...) at /var/tmp/portage/kde-plasma/kwin-5.8.3/work/kwin-5.8.3/scene.cpp:151 #29 0x00007f9530fb5809 in KWin::SceneOpenGL::paint (this=0x205af80, damage=..., toplevels=...) at /var/tmp/portage/kde-plasma/kwin-5.8.3/work/kwin-5.8.3/scene_opengl.cpp:731 #30 0x00007f9530f8ef3a in KWin::Compositor::performCompositing (this=0x1e12dd0) at /var/tmp/portage/kde-plasma/kwin-5.8.3/work/kwin-5.8.3/composite.cpp:742 #31 0x00007f952f320f4b in QObject::event (this=0x1e12dd0, e=<optimized out>) at kernel/qobject.cpp:1285 #32 0x00007f952fb4348c in QApplicationPrivate::notify_helper (this=<optimized out>, receiver=0x1e12dd0, e=0x7ffc7f3f5aa0) at kernel/qapplication.cpp:3799 #33 0x00007f952fb4a970 in QApplication::notify (this=0x7ffc7f3f5d40, receiver=0x1e12dd0, e=0x7ffc7f3f5aa0) at kernel/qapplication.cpp:3556 #34 0x00007f952f2f9ae0 in QCoreApplication::notifyInternal2 (receiver=0x1e12dd0, event=event@entry=0x7ffc7f3f5aa0) at kernel/qcoreapplication.cpp:988 #35 0x00007f952f3445be in QCoreApplication::sendEvent (event=0x7ffc7f3f5aa0, receiver=<optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:231 #36 QTimerInfoList::activateTimers (this=this@entry=0x1de64c0) at kernel/qtimerinfo_unix.cpp:644 #37 0x00007f952f34148c in QEventDispatcherUNIXPrivate::activateTimers (this=this@entry=0x1de6420) at kernel/qeventdispatcher_unix.cpp:249 #38 0x00007f952f342760 in QEventDispatcherUNIX::processEvents (this=<optimized out>, flags=..., flags@entry=...) at kernel/qeventdispatcher_unix.cpp:509 #39 0x00007f951b96047d in QUnixEventDispatcherQPA::processEvents (this=<optimized out>, flags=...) at eventdispatchers/qunixeventdispatcher.cpp:68 #40 0x00007f952f2f87ba in QEventLoop::exec (this=this@entry=0x7ffc7f3f5c30, flags=..., flags@entry=...) at kernel/qeventloop.cpp:210 #41 0x00007f952f3002ec in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1261 #42 0x00007f952f62e98c in QGuiApplication::exec () at kernel/qguiapplication.cpp:1639 #43 0x00007f952fb433e5 in QApplication::exec () at kernel/qapplication.cpp:2975 #44 0x00007f95318d51fb in kdemain (argc=1, argv=0x7ffc7f3f5ec8) at /var/tmp/portage/kde-plasma/kwin-5.8.3/work/kwin-5.8.3/main_x11.cpp:466 #45 0x00007f9531336790 in __libc_start_main () from /lib64/libc.so.6 #46 0x00000000004007b9 in _start () Possible duplicates by query: bug 356620. Reported using DrKonqi -- You are receiving this mail because: You are watching all bug changes.