Bug 363224 (kwin-desktop-presence-changed) - Kwin crashes from time to time (this time using Virtual Machine Manager)
Summary: Kwin crashes from time to time (this time using Virtual Machine Manager)
Status: RESOLVED FIXED
Alias: kwin-desktop-presence-changed
Product: kwin
Classification: Plasma
Component: compositing (show other bugs)
Version: 5.6.3
Platform: Fedora RPMs Linux
: NOR crash
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords: drkonqi
: 363803 363988 364196 364643 364826 364944 364954 365003 365367 368248 372057 372324 374119 374649 374704 375256 375332 377225 378086 378236 378850 379397 379398 379446 379480 379493 379544 379903 379979 380048 380106 380207 380370 380808 381049 381142 381147 381748 382006 (view as bug list)
Depends on:
Blocks:
 
Reported: 2016-05-18 14:32 UTC by Mihkel
Modified: 2017-12-02 13:43 UTC (History)
41 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
my .xsession-errors file after the crash (566.96 KB, text/plain)
2016-10-13 06:52 UTC, Ronny Standtke
Details
attachment-26630-0.html (896 bytes, text/html)
2016-11-02 16:01 UTC, marc
Details
attachment-7192-0.html (18.66 KB, text/html)
2017-01-22 15:46 UTC, David
Details
xev output (13.37 KB, text/plain)
2017-01-22 19:19 UTC, Thomas Mitterfellner
Details
valgrind trace of the crash (8.08 KB, text/plain)
2017-03-17 19:28 UTC, Lubos Lunak
Details
proposed fix (1.66 KB, patch)
2017-03-17 19:40 UTC, Lubos Lunak
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Mihkel 2016-05-18 14:32:43 UTC
Application: kwin_x11 (5.6.3)

Qt Version: 5.6.0
Frameworks Version: 5.21.0
Operating System: Linux 4.2.3-300.fc23.x86_64 x86_64
Distribution: "Fedora release 23 (Twenty Three)"

-- Information about the crash:
- What I was doing when the application crashed:
I was using the Virtual Machine Manager 1.3.2 and I had just deleted a virtual machine from inside the app.

- Unusual behavior I noticed:
There was nothing unusual during this time (I've had some problems with KWin crashing and scrolling and desktop effect flickering the screen, which is usually remedied by killing KWin and starting it again).

- Custom settings of the application:
Plasma has desktop effects on. Also, Virtual Machine Manager is not a Qt app (aka not KDE), but rather a GNOME app without the special GNOME 3-styled big title bar.

-- Backtrace:
Application: KWin (kwin_x11), signal: Segmentation fault
Using host libthread_db library "/lib64/libthread_db.so.1".
[Current thread is 1 (Thread 0x7f37b0b8b940 (LWP 2170))]

Thread 7 (Thread 0x7f37a3df4700 (LWP 2217)):
#0  0x00007fffa94b7929 in  ()
#1  0x00007fffa94b7c55 in clock_gettime ()
#2  0x00007f37c0ec3a06 in clock_gettime () at /lib64/libc.so.6
#3  0x00007f37c228ad86 in qt_gettime() () at /lib64/libQt5Core.so.5
#4  0x00007f37c24055d9 in QTimerInfoList::updateCurrentTime() () at /lib64/libQt5Core.so.5
#5  0x00007f37c2405b45 in QTimerInfoList::timerWait(timespec&) () at /lib64/libQt5Core.so.5
#6  0x00007f37c24051a2 in QEventDispatcherUNIX::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /lib64/libQt5Core.so.5
#7  0x00007f37c23b04ca in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /lib64/libQt5Core.so.5
#8  0x00007f37c21d9f34 in QThread::exec() () at /lib64/libQt5Core.so.5
#9  0x00007f37c37094b5 in QDBusConnectionManager::run() () at /lib64/libQt5DBus.so.5
#10 0x00007f37c21ded48 in QThreadPrivate::start(void*) () at /lib64/libQt5Core.so.5
#11 0x00007f37c3c0860a in start_thread () at /lib64/libpthread.so.0
#12 0x00007f37c0eb578d in clone () at /lib64/libc.so.6

Thread 6 (Thread 0x7f37a1ee1700 (LWP 2267)):
#0  0x00007fffa94b7927 in  ()
#1  0x00007fffa94b7c55 in clock_gettime ()
#2  0x00007f37c0ec3a06 in clock_gettime () at /lib64/libc.so.6
#3  0x00007f37c228ad86 in qt_gettime() () at /lib64/libQt5Core.so.5
#4  0x00007f37c24055d9 in QTimerInfoList::updateCurrentTime() () at /lib64/libQt5Core.so.5
#5  0x00007f37c24049db in QEventDispatcherUNIXPrivate::doSelect(QFlags<QEventLoop::ProcessEventsFlag>, timespec*) () at /lib64/libQt5Core.so.5
#6  0x00007f37c24051f2 in QEventDispatcherUNIX::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /lib64/libQt5Core.so.5
#7  0x00007f37c23b04ca in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /lib64/libQt5Core.so.5
#8  0x00007f37c21d9f34 in QThread::exec() () at /lib64/libQt5Core.so.5
#9  0x00007f37c88cc1b5 in QQmlThreadPrivate::run() () at /lib64/libQt5Qml.so.5
#10 0x00007f37c21ded48 in QThreadPrivate::start(void*) () at /lib64/libQt5Core.so.5
#11 0x00007f37c3c0860a in start_thread () at /lib64/libpthread.so.0
#12 0x00007f37c0eb578d in clone () at /lib64/libc.so.6

Thread 5 (Thread 0x7f3790c84700 (LWP 2277)):
#0  0x00007f37c3c0db10 in pthread_cond_wait@@GLIBC_2.3.2 () at /lib64/libpthread.so.0
#1  0x00007f37a07c23b3 in radeon_drm_cs_emit_ioctl () at /usr/lib64/dri/r600_dri.so
#2  0x00007f37a07c1b07 in impl_thrd_routine () at /usr/lib64/dri/r600_dri.so
#3  0x00007f37c3c0860a in start_thread () at /lib64/libpthread.so.0
#4  0x00007f37c0eb578d in clone () at /lib64/libc.so.6

Thread 4 (Thread 0x7f378f77c700 (LWP 2283)):
#0  0x00007f37c3c0db10 in pthread_cond_wait@@GLIBC_2.3.2 () at /lib64/libpthread.so.0
#1  0x00007f37c98972d4 in QTWTF::TCMalloc_PageHeap::scavengerThread() () at /lib64/libQt5Script.so.5
#2  0x00007f37c9897319 in  () at /lib64/libQt5Script.so.5
#3  0x00007f37c3c0860a in start_thread () at /lib64/libpthread.so.0
#4  0x00007f37c0eb578d in clone () at /lib64/libc.so.6

Thread 3 (Thread 0x7f3706fe6700 (LWP 2501)):
#0  0x00007fffa94b7929 in  ()
#1  0x00007fffa94b7c55 in clock_gettime ()
#2  0x00007f37c0ec3a06 in clock_gettime () at /lib64/libc.so.6
#3  0x00007f37c228ad86 in qt_gettime() () at /lib64/libQt5Core.so.5
#4  0x00007f37c24055d9 in QTimerInfoList::updateCurrentTime() () at /lib64/libQt5Core.so.5
#5  0x00007f37c2405b45 in QTimerInfoList::timerWait(timespec&) () at /lib64/libQt5Core.so.5
#6  0x00007f37c24051a2 in QEventDispatcherUNIX::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /lib64/libQt5Core.so.5
#7  0x00007f37c23b04ca in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /lib64/libQt5Core.so.5
#8  0x00007f37c21d9f34 in QThread::exec() () at /lib64/libQt5Core.so.5
#9  0x00007f37c88cc1b5 in QQmlThreadPrivate::run() () at /lib64/libQt5Qml.so.5
#10 0x00007f37c21ded48 in QThreadPrivate::start(void*) () at /lib64/libQt5Core.so.5
#11 0x00007f37c3c0860a in start_thread () at /lib64/libpthread.so.0
#12 0x00007f37c0eb578d in clone () at /lib64/libc.so.6

Thread 2 (Thread 0x7f378ff7d700 (LWP 9842)):
#0  0x00007f37c23df6a2 in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () at /lib64/libQt5Core.so.5
#1  0x00007f37c24050c5 in QEventDispatcherUNIX::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /lib64/libQt5Core.so.5
#2  0x00007f37c23b04ca in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /lib64/libQt5Core.so.5
#3  0x00007f37c21d9f34 in QThread::exec() () at /lib64/libQt5Core.so.5
#4  0x00007f37c88cc1b5 in QQmlThreadPrivate::run() () at /lib64/libQt5Qml.so.5
#5  0x00007f37c21ded48 in QThreadPrivate::start(void*) () at /lib64/libQt5Core.so.5
#6  0x00007f37c3c0860a in start_thread () at /lib64/libpthread.so.0
#7  0x00007f37c0eb578d in clone () at /lib64/libc.so.6

Thread 1 (Thread 0x7f37b0b8b940 (LWP 2170)):
[KCrash Handler]
#5  0x0000000000000110 in  ()
#6  0x00007f37c23e4de0 in QObject::connect(QObject const*, char const*, QObject const*, char const*, Qt::ConnectionType) () at /lib64/libQt5Core.so.5
#7  0x00007f37c98d9dbf in QScriptEnginePrivate::qobjectData(QObject*) () at /lib64/libQt5Script.so.5
#8  0x00007f37c98d9e84 in QScriptEnginePrivate::newQObject(QObject*, QScriptEngine::ValueOwnership, QFlags<QScriptEngine::QObjectWrapOption> const&) () at /lib64/libQt5Script.so.5
#9  0x00007f37c98da112 in QScriptEngine::newQObject(QObject*, QScriptEngine::ValueOwnership, QFlags<QScriptEngine::QObjectWrapOption> const&) () at /lib64/libQt5Script.so.5
#10 0x00007f37ca2b77fc in KWin::effectWindowToScriptValue(QScriptEngine*, KWin::EffectWindow* const&) () at /lib64/libkwin.so.5
#11 0x00007f37c98da435 in QScriptEnginePrivate::create(QTJSC::ExecState*, int, void const*) () at /lib64/libQt5Script.so.5
#12 0x00007f37c9902a73 in QScript::QObjectConnectionManager::execute(int, void**) () at /lib64/libQt5Script.so.5
#13 0x00007f37c990b3f5 in QScript::QObjectConnectionManager::qt_metacall(QMetaObject::Call, int, void**) () at /lib64/libQt5Script.so.5
#14 0x00007f37c23def70 in QMetaObject::activate(QObject*, int, int, void**) () at /lib64/libQt5Core.so.5
#15 0x00007f37c9edf9a8 in KWin::EffectsHandler::desktopPresenceChanged(KWin::EffectWindow*, int, int) () at /lib64/libkwineffects.so.8
#16 0x00007f37c9ee0f9c in KWin::EffectsHandler::qt_static_metacall(QObject*, QMetaObject::Call, int, void**) () at /lib64/libkwineffects.so.8
#17 0x00007f37c23dfc29 in QObject::event(QEvent*) () at /lib64/libQt5Core.so.5
#18 0x00007f37c2ce6c0c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () at /lib64/libQt5Widgets.so.5
#19 0x00007f37c2cebe76 in QApplication::notify(QObject*, QEvent*) () at /lib64/libQt5Widgets.so.5
#20 0x00007f37c23b2748 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () at /lib64/libQt5Core.so.5
#21 0x00007f37c23b460a in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () at /lib64/libQt5Core.so.5
#22 0x00007f37c24050d2 in QEventDispatcherUNIX::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /lib64/libQt5Core.so.5
#23 0x00007f37a9e0660d in QUnixEventDispatcherQPA::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /lib64/libQt5XcbQpa.so.5
#24 0x00007f37c23b04ca in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /lib64/libQt5Core.so.5
#25 0x00007f37c23b8b8c in QCoreApplication::exec() () at /lib64/libQt5Core.so.5
#26 0x00007f37ca5cef0d in kdemain () at /lib64/libkdeinit5_kwin_x11.so
#27 0x00007f37c0dd3580 in __libc_start_main () at /lib64/libc.so.6
#28 0x000055d9b6519d49 in _start ()

Reported using DrKonqi
Comment 1 Thomas Lübking 2016-05-18 18:22:33 UTC
#15 0x00007f37c9edf9a8 in KWin::EffectsHandler::desktopPresenceChanged(KWin::EffectWindow*, int, int) () at /lib64/libkwineffects.so.8


run "kcmshell5 desktop" and disable the indication in the second tab

> #9  0x00007f37c98da112 in QScriptEngine::newQObject(QObject*, QScriptEngine::ValueOwnership, QFlags<QScriptEngine::QObjectWrapOption> const&) () at /lib64/libQt5Script.so.5

Can you create a bachtrace with full debug support (notably values not stripped - I do not know whether installing the fedora dbg packages would provide that)

Wrt to bug #320536 either a dead engine is accessed or (I rather suspect) QML doesn't like to be wired down 0x0 objects (in which case we'd need to test the object and conditionally return QScriptEngine::nullValue()) like so:
--------

diff --git a/scripting/scriptedeffect.cpp b/scripting/scriptedeffect.cpp
index 7073792..0594070 100644
--- a/scripting/scriptedeffect.cpp
+++ b/scripting/scriptedeffect.cpp
@@ -413,8 +413,11 @@ QScriptValue kwinEffectCancel(QScriptContext *context, QScriptEngine *engine)
 
 QScriptValue effectWindowToScriptValue(QScriptEngine *eng, const KEffectWindowRef &window)
 {
-    return eng->newQObject(window, QScriptEngine::QtOwnership,
-                           QScriptEngine::ExcludeChildObjects | QScriptEngine::ExcludeDeleteLater | QScriptEngine::PreferExistingWrapperObject);
+    if (window)
+        return eng->newQObject(window, QScriptEngine::QtOwnership,
+                               QScriptEngine::ExcludeChildObjects | QScriptEngine::ExcludeDeleteLater | QScriptEngine::PreferExistingWrapperObject);
+    else
+        return QScriptEngine::nullValue();
 }
 
 void effectWindowFromScriptValue(const QScriptValue &value, EffectWindow* &window)
Comment 2 Thomas Lübking 2016-06-01 16:25:27 UTC
*** Bug 363803 has been marked as a duplicate of this bug. ***
Comment 3 Thomas Lübking 2016-06-05 15:36:04 UTC
*** Bug 363988 has been marked as a duplicate of this bug. ***
Comment 4 Thomas Lübking 2016-06-10 21:07:21 UTC
*** Bug 364196 has been marked as a duplicate of this bug. ***
Comment 5 Thomas Lübking 2016-06-22 20:12:21 UTC
*** Bug 364643 has been marked as a duplicate of this bug. ***
Comment 6 Thomas Lübking 2016-06-27 21:34:14 UTC
*** Bug 364826 has been marked as a duplicate of this bug. ***
Comment 7 Thomas Lübking 2016-06-30 20:56:34 UTC
*** Bug 364944 has been marked as a duplicate of this bug. ***
Comment 8 marc 2016-06-30 20:59:50 UTC
>>> run "kcmshell5 desktop" and disable the indication in the second tab <<<

I've had this already disabled when the crash occured.
Comment 9 Thomas Lübking 2016-06-30 21:18:12 UTC
Hum?
If you can reptoduce this at will, disable translucency and dialogparent effects in "kcmshell5 kwineffects", if this "fixes" it, please re-enable either independently to figure the culprit.
Comment 10 Thomas Lübking 2016-07-01 05:06:40 UTC
*** Bug 364954 has been marked as a duplicate of this bug. ***
Comment 11 Martin Flöser 2016-07-01 06:34:04 UTC
All the backtraces we have currently are lacking debug symbols. Could someone please upload a backtrace with a backtrace with full debug symbols?

Also could someone still hitting this problem paste the output of:
qdbus org.kde.KWin /KWin supportInformation
Comment 12 Martin Flöser 2016-07-01 10:47:50 UTC
Hmm I think it's related to 347490
Comment 13 Thomas Lübking 2016-07-02 11:44:29 UTC
*** Bug 365003 has been marked as a duplicate of this bug. ***
Comment 14 Thomas Lübking 2016-07-11 17:05:37 UTC
*** Bug 365367 has been marked as a duplicate of this bug. ***
Comment 15 Thomas Lübking 2016-07-11 17:32:17 UTC
latest dupe has a good trace:

Thread 1 (Thread 0x7f61d8bc8940 (LWP 28181)):
[KCrash Handler]
#6  0x0000000000000570 in ?? ()
#7  0x00007f61d62bff50 in QObject::connect (sender=0x3664060, signal=signal@entry=0x7f61d50ae1a4 "2destroyed(QObject*)", receiver=0x2852a00, method=method@entry=0x7f61d50ae186 "1_q_objectDestroyed(QObject*)", type=type@entry=Qt::AutoConnection) at kernel/qobject.cpp:2642
#8  0x00007f61d50582ef in QScriptEnginePrivate::qobjectData (this=this@entry=0x279c860, object=<optimized out>, object@entry=0x3664060) at api/qscriptengine.cpp:1573
#9  0x00007f61d50583b4 in QScriptEnginePrivate::newQObject (this=this@entry=0x279c860, object=object@entry=0x3664060, ownership=ownership@entry=QScriptEngine::QtOwnership, options=...) at api/qscriptengine.cpp:1504
#10 0x00007f61d50586a2 in QScriptEngine::newQObject (this=<optimized out>, object=0x3664060, ownership=ownership@entry=QScriptEngine::QtOwnership, options=...) at api/qscriptengine.cpp:2281
#11 0x00007f61d7f48dac in KWin::effectWindowToScriptValue (eng=<optimized out>, window=<optimized out>) at /usr/src/debug/kwin-5.6.4/scripting/scriptedeffect.cpp:417
#12 0x00007f61d50589c5 in QScriptEnginePrivate::create (exec=exec@entry=0x279ca68, type=<optimized out>, ptr=ptr@entry=0x7ffdc823c028) at api/qscriptengine.cpp:3081
#13 0x00007f61d5081406 in QScript::QObjectConnectionManager::execute (this=this@entry=0x27a13e0, slotIndex=slotIndex@entry=6, argv=argv@entry=0x7ffdc823c030) at bridge/qscriptqobject.cpp:2173
#14 0x00007f61d50896d1 in QScript::QObjectConnectionManager::qt_static_metacall (_a=0x7ffdc823c030, _id=6, _c=QMetaObject::InvokeMetaMethod, _o=0x27a13e0) at bridge/qscriptqobject.cpp:2070
#15 QScript::QObjectConnectionManager::qt_metacall (this=0x27a13e0, _c=QMetaObject::InvokeMetaMethod, _id=6, _a=0x7ffdc823c030) at bridge/qscriptqobject.cpp:2099
#16 0x00007f61d62b9ed7 in QMetaObject::activate (sender=0x275ab90, signalOffset=<optimized out>, local_signal_index=local_signal_index@entry=2, argv=argv@entry=0x7ffdc823c030) at kernel/qobject.cpp:3745
#17 0x00007f61d62ba757 in QMetaObject::activate (sender=<optimized out>, m=m@entry=0x7f61d5a4ea80 <KWin::EffectsHandler::staticMetaObject>, local_signal_index=local_signal_index@entry=2, argv=argv@entry=0x7ffdc823c030) at kernel/qobject.cpp:3595
#18 0x00007f61d5840518 in KWin::EffectsHandler::desktopPresenceChanged (this=<optimized out>, _t1=<optimized out>, _t2=<optimized out>, _t3=<optimized out>) at /usr/src/debug/kwin-5.6.4/build/libkwineffects/moc_kwineffects.cpp:1262
#19 0x00007f61d5841b1c in KWin::EffectsHandler::qt_static_metacall (_o=<optimized out>, _c=<optimized out>, _id=<optimized out>, _a=<optimized out>) at /usr/src/debug/kwin-5.6.4/build/libkwineffects/moc_kwineffects.cpp:577
#20 0x00007f61d62bacf9 in QObject::event (this=0x275ab90, e=<optimized out>) at kernel/qobject.cpp:1256
#21 0x00007f61d6fd2aec in QApplicationPrivate::notify_helper (this=<optimized out>, receiver=0x275ab90, e=0x36679d0) at kernel/qapplication.cpp:3804
#22 0x00007f61d6fd7f8f in QApplication::notify (this=0x7ffdc823c600, receiver=0x275ab90, e=0x36679d0) at kernel/qapplication.cpp:3561
#23 0x00007f61d628ca20 in QCoreApplication::notifyInternal2 (receiver=0x275ab90, event=event@entry=0x36679d0) at kernel/qcoreapplication.cpp:1015
#24 0x00007f61d628e99c in QCoreApplication::sendEvent (event=0x36679d0, receiver=<optimized out>) at kernel/qcoreapplication.h:225
#25 QCoreApplicationPrivate::sendPostedEvents (receiver=receiver@entry=0x0, event_type=event_type@entry=0, data=0x1b41bd0) at kernel/qcoreapplication.cpp:1650
#26 0x00007f61d62e01b2 in QEventDispatcherUNIX::processEvents (this=0x1bac930, flags=...) at kernel/qeventdispatcher_unix.cpp:579
#27 0x00007f61be026b9d in QUnixEventDispatcherQPA::processEvents (this=<optimized out>, flags=...) at eventdispatchers/qunixeventdispatcher.cpp:62
#28 0x00007f61d628a76a in QEventLoop::exec (this=this@entry=0x7ffdc823c4f0, flags=..., flags@entry=...) at kernel/qeventloop.cpp:204
#29 0x00007f61d6292f6c in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1285
#30 0x00007f61d67dbb6c in QGuiApplication::exec () at kernel/qguiapplication.cpp:1607
#31 0x00007f61d6fcfb25 in QApplication::exec () at kernel/qapplication.cpp:2979
#32 0x00007f61d8810ebe in kdemain (argc=<optimized out>, argv=0x7ffdc823c788) at /usr/src/debug/kwin-5.6.4/main_x11.cpp:327
#33 0x00007f61d826c741 in __libc_start_main () from /lib64/libc.so.6
#34 0x0000000000400809 in _start () at ../sysdeps/x86_64/start.S:118
Comment 16 Buck Shockley 2016-07-18 00:28:59 UTC
I too have this bug, but do not have debug symbols (Arch Linux).

(In reply to Martin Gräßlin from comment #11)
> All the backtraces we have currently are lacking debug symbols. Could
> someone please upload a backtrace with a backtrace with full debug symbols?
> 
> Also could someone still hitting this problem paste the output of:
> qdbus org.kde.KWin /KWin supportInformation

This is my output: https://paste.kde.org/pfsvzyk54
Comment 17 Martin Flöser 2016-08-27 15:49:24 UTC
Could someone please check .xsession-errors after the crash happened for a text like:
unregistered meta type KWin::EffectWindow?
Comment 18 Martin Flöser 2016-09-05 09:55:06 UTC
*** Bug 368248 has been marked as a duplicate of this bug. ***
Comment 19 Ronny Standtke 2016-10-13 06:52:57 UTC
Created attachment 101553 [details]
my .xsession-errors file after the crash

I just installed Debian testing (64 Bit), selected KDE as desktop and run into exactly this bug. I used mostly VirtualBox and Synaptic in the sessions when the crash occurs. Attached is my .xsession-errors file from after the crash. I hope this helps somehow to find and fix the bug.
Comment 20 marc 2016-10-13 19:02:47 UTC
Actually, the issue does not come up with compositor turned off. 

Dnia czwartek, 13 października 2016 06:52:57 CEST piszesz:
> https://bugs.kde.org/show_bug.cgi?id=363224
> 
> Ronny Standtke <Ronny.Standtke@gmx.net> changed:
> 
>            What    |Removed                     |Added
> ----------------------------------------------------------------------------
> CC|                            |Ronny.Standtke@gmx.net
> 
> --- Comment #19 from Ronny Standtke <Ronny.Standtke@gmx.net> ---
> Created attachment 101553 [details]
>   --> https://bugs.kde.org/attachment.cgi?id=101553&action=edit
> my .xsession-errors file after the crash
> 
> I just installed Debian testing (64 Bit), selected KDE as desktop and run
> into exactly this bug. I used mostly VirtualBox and Synaptic in the
> sessions when the crash occurs. Attached is my .xsession-errors file from
> after the crash. I hope this helps somehow to find and fix the bug.
Comment 21 Martin Flöser 2016-11-02 14:53:44 UTC
Anyone still experiencing the problem with KWin 5.8?
Comment 22 marc 2016-11-02 16:01:04 UTC
Created attachment 101967 [details]
attachment-26630-0.html

Yes, and it seems to be related to either 'APIC' option in VirtualBox, or Compositing enabled in KWin (doesn't seem to appear if it's disabled) . Need to do more tests to confirm, if time allows

Dnia 2 listopada 2016 15:53:44 CET, "Martin Gräßlin" <bugzilla_noreply@kde.org> napisał(a):
>https://bugs.kde.org/show_bug.cgi?id=363224
>
>--- Comment #21 from Martin Gräßlin <mgraesslin@kde.org> ---
>Anyone still experiencing the problem with KWin 5.8?
>
>-- 
>You are receiving this mail because:
>You are on the CC list for the bug.
Comment 23 marc 2016-11-03 00:30:07 UTC
Dnia środa, 2 listopada 2016 14:53:44 CET piszesz:
> https://bugs.kde.org/show_bug.cgi?id=363224
> 
> --- Comment #21 from Martin Gräßlin <mgraesslin@kde.org> ---
> Anyone still experiencing the problem with KWin 5.8?

OK, I can confirm that it only happens with compositing turned "on" - no matter 
which engine is being used [OpenGL 2/3.1/XRender].
Comment 24 marc 2016-11-03 00:35:39 UTC
Dnia środa, 2 listopada 2016 14:53:44 CET piszesz:
> https://bugs.kde.org/show_bug.cgi?id=363224
> 
> --- Comment #21 from Martin Gräßlin <mgraesslin@kde.org> ---
> Anyone still experiencing the problem with KWin 5.8?

OK, some more useful info:

This issue appears ONLY if "Enable 3D acceleration" is enabled on "Virtualbox 
> Display > Display" tab ...

Hope this helps a bit to find the source of this issue. Seems like VBox tries 
to use some kind of 3D accel subsystem and turns it on in a wrong way, or 
whatever.
Comment 25 Martin Flöser 2016-11-04 08:35:43 UTC
*** Bug 372057 has been marked as a duplicate of this bug. ***
Comment 26 Martin Flöser 2016-11-04 09:01:49 UTC
I just installed VirtualBox, created a machine, changed the settings and no crash.
Comment 27 Martin Flöser 2016-11-11 06:44:34 UTC
*** Bug 372324 has been marked as a duplicate of this bug. ***
Comment 28 Martin Flöser 2016-12-27 16:22:18 UTC
*** Bug 374119 has been marked as a duplicate of this bug. ***
Comment 29 Martin Flöser 2017-01-09 07:11:14 UTC
*** Bug 374649 has been marked as a duplicate of this bug. ***
Comment 30 marc 2017-01-09 14:33:54 UTC
   I can now confirm that the issue only exists with compositor enabled
   in Plasma. Appears on all current Linux distributions I have tested
   [Debian, Ubuntu, Arch], beside stock Kubuntu 16.04 Plasma [older
   version]. Issue appears only on my personal machine [Toshiba Tecra
   A50-A-10J] equipped with Intel Integrated Graphics: 00:02.0 VGA
   compatible controller [0300]: Intel Corporation 3rd Gen Core processor
   Graphics Controller [8086:0166] (rev 09) and it does not show up on
   another machine [HP Laptop with AMD graphic] with current distros
   tested: 00:02.0 VGA compatible controller [0300]: Intel Corporation
   2nd Generation Core Processor Family Integrated Graphics Controller
   [8086:0116] (rev 09)01:00.0 VGA compatible controller [0300]: Advanced
   Micro Devices, Inc. [AMD/ATI] Whistler [Radeon HD 6730M/6770M/7690M
   XT] [1002:6740] (rev ff) *Sent:* Monday, January 09, 2017 at 8:11 AM
   *From:* "Martin Gräßlin" <bugzilla_noreply@kde.org>
   *To:* marc_smith@gmx.com
   *Subject:* [kwin] [Bug 363224] Kwin crashes from time to time (this
   time using Virtual Machine Manager)https://bugs.kde.org/show_bug.cgi?id=363224

   Martin Gräßlin <mgraesslin@kde.org> changed:

   What |Removed |Added
   ----------------------------------------------------------------------------
   CC| |thomas@mitterfellner.at

   --- Comment #29 from Martin Gräßlin <mgraesslin@kde.org> ---
   *** Bug 374649 has been marked as a duplicate of this bug. ***

   --
   You are receiving this mail because:
   You are on the CC list for the bug.
Comment 31 Martin Flöser 2017-01-09 20:06:24 UTC
*** Bug 374704 has been marked as a duplicate of this bug. ***
Comment 32 Martin Flöser 2017-01-09 20:13:57 UTC
Adding some information we devs know:

* the crash can only happen with compositing (desktop effects) enabled
* The type of compositor should not matter
* The graphics card should not matter
* the crash is triggered from an event loop hiding the root cause

What we don't know is why it happens. I have never been able to reproduce given the detailed instructions we have in this report and the many duplicates. This is a huge problem for further investigation. I have ideas what might be the cause of the crash, but without being able to reproduce I cannot verify that my theory is correct and that makes it also difficult to provide a patch.

Given the last point mentioned it might be a timing issue.
Comment 33 Martin Flöser 2017-01-09 20:14:23 UTC
Better backtrace from duplicate:

Thread 1 (Thread 0x7f2872a63940 (LWP 16435)):
[KCrash Handler]
#6  0x000001de00000004 in ?? ()
#7  0x00007f28873848f0 in QObject::connect (sender=0x559ab839ea50, signal=signal@entry=0x7f2886598855 "2destroyed(QObject*)", receiver=0x559ab838ebb0, method=method@entry=0x7f2886598837 "1_q_objectDestroyed(QObject*)", type=type@entry=Qt::AutoConnection) at kernel/qobject.cpp:2642
#8  0x00007f288654f3e7 in QScriptEnginePrivate::qobjectData (this=this@entry=0x559ab83eed40, object=object@entry=0x559ab839ea50) at api/qscriptengine.cpp:1573
#9  0x00007f288654f4af in QScriptEnginePrivate::newQObject (this=this@entry=0x559ab83eed40, object=object@entry=0x559ab839ea50, ownership=ownership@entry=QScriptEngine::QtOwnership, options=...) at api/qscriptengine.cpp:1504
#10 0x00007f288654f742 in QScriptEngine::newQObject (this=<optimized out>, object=0x559ab839ea50, ownership=ownership@entry=QScriptEngine::QtOwnership, options=...) at api/qscriptengine.cpp:2281
#11 0x00007f288912237c in KWin::effectWindowToScriptValue (eng=<optimized out>, window=<optimized out>) at ./scripting/scriptedeffect.cpp:417
#12 0x00007f288654fa25 in QScriptEnginePrivate::create (exec=exec@entry=0x559ab83eef48, type=1140, ptr=ptr@entry=0x7ffdff2ea538) at api/qscriptengine.cpp:3081
#13 0x00007f2886576b43 in QScript::QObjectConnectionManager::execute (this=this@entry=0x559ab83e3000, slotIndex=slotIndex@entry=0, argv=argv@entry=0x7ffdff2ea540) at bridge/qscriptqobject.cpp:2173
#14 0x00007f288657f1a5 in QScript::QObjectConnectionManager::qt_static_metacall (_a=0x7ffdff2ea540, _id=0, _c=QMetaObject::InvokeMetaMethod, _o=0x559ab83e3000) at bridge/qscriptqobject.cpp:2070
#15 QScript::QObjectConnectionManager::qt_metacall (this=0x559ab83e3000, _c=QMetaObject::InvokeMetaMethod, _id=0, _a=0x7ffdff2ea540) at bridge/qscriptqobject.cpp:2099
#16 0x00007f288737e877 in QMetaObject::activate (sender=0x559ab8234ef0, signalOffset=<optimized out>, local_signal_index=local_signal_index@entry=2, argv=argv@entry=0x7ffdff2ea540) at kernel/qobject.cpp:3745
#17 0x00007f288737f0f7 in QMetaObject::activate (sender=<optimized out>, m=m@entry=0x7f2886d42a80 <KWin::EffectsHandler::staticMetaObject>, local_signal_index=local_signal_index@entry=2, argv=argv@entry=0x7ffdff2ea540) at kernel/qobject.cpp:3595
#18 0x00007f2886b34b28 in KWin::EffectsHandler::desktopPresenceChanged (this=<optimized out>, _t1=<optimized out>, _t2=<optimized out>, _t3=<optimized out>) at ./obj-x86_64-linux-gnu/libkwineffects/moc_kwineffects.cpp:1262
#19 0x00007f2886b3612c in KWin::EffectsHandler::qt_static_metacall (_o=<optimized out>, _c=<optimized out>, _id=<optimized out>, _a=<optimized out>) at ./obj-x86_64-linux-gnu/libkwineffects/moc_kwineffects.cpp:577
#20 0x00007f288737f699 in QObject::event (this=0x559ab8234ef0, e=<optimized out>) at kernel/qobject.cpp:1256
#21 0x00007f2887c8c8ac in QApplicationPrivate::notify_helper (this=<optimized out>, receiver=0x559ab8234ef0, e=0x559ab8b1a2f0) at kernel/qapplication.cpp:3804
#22 0x00007f2887c91d4f in QApplication::notify (this=0x7ffdff2eab10, receiver=0x559ab8234ef0, e=0x559ab8b1a2f0) at kernel/qapplication.cpp:3561
#23 0x00007f28873513b0 in QCoreApplication::notifyInternal2 (receiver=0x559ab8234ef0, event=event@entry=0x559ab8b1a2f0) at kernel/qcoreapplication.cpp:1015
#24 0x00007f288735333c in QCoreApplication::sendEvent (event=0x559ab8b1a2f0, receiver=<optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:225
#25 QCoreApplicationPrivate::sendPostedEvents (receiver=receiver@entry=0x0, event_type=event_type@entry=0, data=0x559ab776f620) at kernel/qcoreapplication.cpp:1650
#26 0x00007f28873a4b52 in QEventDispatcherUNIX::processEvents (this=0x559ab77b89a0, flags=...) at kernel/qeventdispatcher_unix.cpp:579
#27 0x00007f2871d4594d in QUnixEventDispatcherQPA::processEvents (this=<optimized out>, flags=...) at eventdispatchers/qunixeventdispatcher.cpp:62
#28 0x00007f288734f0fa in QEventLoop::exec (this=this@entry=0x7ffdff2eaa00, flags=..., flags@entry=...) at kernel/qeventloop.cpp:204
#29 0x00007f288735790c in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1285
#30 0x00007f288769ba7c in QGuiApplication::exec () at kernel/qguiapplication.cpp:1602
#31 0x00007f2887c898e5 in QApplication::exec () at kernel/qapplication.cpp:2979
#32 0x00007f28897f3206 in kdemain (argc=<optimized out>, argv=0x7ffdff2eac98) at ./main_x11.cpp:466
#33 0x00007f28894433f1 in __libc_start_main (main=0x559ab700a7e0 <main>, argc=1, argv=0x7ffdff2eac98, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7ffdff2eac88) at ../csu/libc-start.c:291
#34 0x0000559ab700a81a in _start ()
Comment 34 A. Wilcox (awilfox) 2017-01-20 00:57:40 UTC
I have a task scheduler (for my life, not my computer: Above & Beyond) that runs in 32-bit WINE.  When I pressed F10 to insert a done item - which I have done thousands of times before - this time I received a segmentation fault like the one reported in comment 15.

I have SupportInformation, .xsession-errors, and full core dump (xz compressed: 6,170.5 KiB from original 3,077.5 MiB) available if any would be helpful.

KWin version: 5.8.4
Qt Version: 5.6.1
Qt compile version: 5.6.1
Compositing is active
Compositing Type: OpenGL
OpenGL vendor string: X.Org
OpenGL renderer string: Gallium 0.4 on AMD PITCAIRN (DRM 3.8.0 / 4.9.0-rc8-ciall, LLVM 3.9.0)
OpenGL version string: 4.3 (Core Profile) Mesa 13.0.0
OpenGL platform interface: EGL
OpenGL shading language version string: 4.30
OpenGL version: 4.3
GLSL version: 4.30
Mesa version: 13.0
X server version: 1.18.4
Linux kernel version: 4.9
Direct rendering: Requires strict binding: no
GLSL shaders:  yes
Texture NPOT support:  yes
Virtual Machine:  no
OpenGL 2 Shaders are used
Painting blocks for vertical retrace:  no

Backtrace of the crash I experienced:

Application: KWin (kwin_x11), signal: Segmentation fault
Using host libthread_db library "/lib64/libthread_db.so.1".
[Current thread is 1 (Thread 0x7f0456822800 (LWP 14617))]

Thread 11 (Thread 0x7f04077fe700 (LWP 14641)):
#0  pthread_cond_wait () at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007f0453286eaa in QTWTF::TCMalloc_PageHeap::scavengerThread (this=0x7f0453369820 <QTWTF::pageheap_memory>) at ../3rdparty/javascriptcore/JavaScriptCore/wtf/FastMalloc.cpp:2359
#2  0x00007f0453286e26 in QTWTF::TCMalloc_PageHeap::runScavengerThread (context=0x7f04533778f4 <QTWTF::pageheap_memory+57556>) at ../3rdparty/javascriptcore/JavaScriptCore/wtf/FastMalloc.cpp:1464
#3  0x00007f04563a8434 in start_thread (arg=0x7f04077fe700) at pthread_create.c:333
#4  0x00007f04560ef8fd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 10 (Thread 0x7f041e0ad700 (LWP 14638)):
#0  0x00007f04560e8503 in select () at ../sysdeps/unix/syscall-template.S:84
#1  0x00007f0454085f74 in qt_safe_select (nfds=20, fdread=0x7f0418000a78, fdwrite=0x7f0418000d08, fdexcept=0x7f0418000f98, orig_timeout=<optimized out>) at kernel/qcore_unix.cpp:75
#2  0x00007f0454086b0b in QEventDispatcherUNIXPrivate::doSelect (this=0x7f04180008e0, flags=..., timeout=0x0) at kernel/qeventdispatcher_unix.cpp:192
#3  0x00007f0454087b9d in QEventDispatcherUNIX::processEvents (this=0x7f04180008c0, flags=...) at kernel/qeventdispatcher_unix.cpp:607
#4  0x00007f0454039001 in QEventLoop::processEvents (flags=..., this=<optimized out>) at kernel/qeventloop.cpp:128
#5  QEventLoop::exec (this=0x7f041e0acdd0, flags=...) at kernel/qeventloop.cpp:204
#6  0x00007f0453e8e5e9 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:500
#7  0x00007f044f17dbf6 in QQmlThreadPrivate::run (this=0xedb7f0) at qml/ftw/qqmlthread.cpp:141
#8  0x00007f0453e91d24 in QThreadPrivate::start (arg=0xedb7f0) at thread/qthread_unix.cpp:341
#9  0x00007f04563a8434 in start_thread (arg=0x7f041e0ad700) at pthread_create.c:333
#10 0x00007f04560ef8fd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 9 (Thread 0x7f041ed40700 (LWP 14637)):
#0  pthread_cond_wait () at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007f04350cfb8d in cnd_wait (cond=0x1139760, mtx=0x1139738) at /var/tmp/portage/media-libs/mesa-13.0.0/work/mesa-13.0.0/include/c11/threads_posix.h:159
#2  0x00007f04350d00c7 in util_queue_thread_func (input=0x113b8f0) at /var/tmp/portage/media-libs/mesa-13.0.0/work/mesa-13.0.0/src/gallium/auxiliary/util/u_queue.c:76
#3  0x00007f04350d0712 in impl_thrd_routine (p=0x113e3f0) at /var/tmp/portage/media-libs/mesa-13.0.0/work/mesa-13.0.0/include/c11/threads_posix.h:87
#4  0x00007f04563a8434 in start_thread (arg=0x7f041ed40700) at pthread_create.c:333
#5  0x00007f04560ef8fd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 8 (Thread 0x7f041f541700 (LWP 14636)):
#0  pthread_cond_wait () at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007f04350cfb8d in cnd_wait (cond=0x1139760, mtx=0x1139738) at /var/tmp/portage/media-libs/mesa-13.0.0/work/mesa-13.0.0/include/c11/threads_posix.h:159
#2  0x00007f04350d00c7 in util_queue_thread_func (input=0x113e980) at /var/tmp/portage/media-libs/mesa-13.0.0/work/mesa-13.0.0/src/gallium/auxiliary/util/u_queue.c:76
#3  0x00007f04350d0712 in impl_thrd_routine (p=0x113e9a0) at /var/tmp/portage/media-libs/mesa-13.0.0/work/mesa-13.0.0/include/c11/threads_posix.h:87
#4  0x00007f04563a8434 in start_thread (arg=0x7f041f541700) at pthread_create.c:333
#5  0x00007f04560ef8fd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 7 (Thread 0x7f041fd42700 (LWP 14635)):
#0  pthread_cond_wait () at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007f04350cfb8d in cnd_wait (cond=0x1139760, mtx=0x1139738) at /var/tmp/portage/media-libs/mesa-13.0.0/work/mesa-13.0.0/include/c11/threads_posix.h:159
#2  0x00007f04350d00c7 in util_queue_thread_func (input=0x113b8f0) at /var/tmp/portage/media-libs/mesa-13.0.0/work/mesa-13.0.0/src/gallium/auxiliary/util/u_queue.c:76
#3  0x00007f04350d0712 in impl_thrd_routine (p=0x113b910) at /var/tmp/portage/media-libs/mesa-13.0.0/work/mesa-13.0.0/include/c11/threads_posix.h:87
#4  0x00007f04563a8434 in start_thread (arg=0x7f041fd42700) at pthread_create.c:333
#5  0x00007f04560ef8fd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 6 (Thread 0x7f0420543700 (LWP 14634)):
#0  pthread_cond_wait () at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007f04350cfb8d in cnd_wait (cond=0x1139760, mtx=0x1139738) at /var/tmp/portage/media-libs/mesa-13.0.0/work/mesa-13.0.0/include/c11/threads_posix.h:159
#2  0x00007f04350d00c7 in util_queue_thread_func (input=0x113e980) at /var/tmp/portage/media-libs/mesa-13.0.0/work/mesa-13.0.0/src/gallium/auxiliary/util/u_queue.c:76
#3  0x00007f04350d0712 in impl_thrd_routine (p=0x113e9a0) at /var/tmp/portage/media-libs/mesa-13.0.0/work/mesa-13.0.0/include/c11/threads_posix.h:87
#4  0x00007f04563a8434 in start_thread (arg=0x7f0420543700) at pthread_create.c:333
#5  0x00007f04560ef8fd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 5 (Thread 0x7f0420f49700 (LWP 14633)):
#0  pthread_cond_wait () at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007f04350cfb8d in cnd_wait (cond=0x1138440, mtx=0x1138418) at /var/tmp/portage/media-libs/mesa-13.0.0/work/mesa-13.0.0/include/c11/threads_posix.h:159
#2  0x00007f04350d00c7 in util_queue_thread_func (input=0x1139110) at /var/tmp/portage/media-libs/mesa-13.0.0/work/mesa-13.0.0/src/gallium/auxiliary/util/u_queue.c:76
#3  0x00007f04350d0712 in impl_thrd_routine (p=0x1139130) at /var/tmp/portage/media-libs/mesa-13.0.0/work/mesa-13.0.0/include/c11/threads_posix.h:87
#4  0x00007f04563a8434 in start_thread (arg=0x7f0420f49700) at pthread_create.c:333
#5  0x00007f04560ef8fd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 4 (Thread 0x7f0437515700 (LWP 14632)):
#0  0x00007f04560e8503 in select () at ../sysdeps/unix/syscall-template.S:84
#1  0x00007f0454085f74 in qt_safe_select (nfds=14, fdread=0x7f0424000a78, fdwrite=0x7f0424000d08, fdexcept=0x7f0424000f98, orig_timeout=<optimized out>) at kernel/qcore_unix.cpp:75
#2  0x00007f0454086b0b in QEventDispatcherUNIXPrivate::doSelect (this=0x7f04240008e0, flags=..., timeout=0x0) at kernel/qeventdispatcher_unix.cpp:192
#3  0x00007f0454087b9d in QEventDispatcherUNIX::processEvents (this=0x7f04240008c0, flags=...) at kernel/qeventdispatcher_unix.cpp:607
#4  0x00007f0454039001 in QEventLoop::processEvents (flags=..., this=<optimized out>) at kernel/qeventloop.cpp:128
#5  QEventLoop::exec (this=0x7f0437514dd0, flags=...) at kernel/qeventloop.cpp:204
#6  0x00007f0453e8e5e9 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:500
#7  0x00007f044f17dbf6 in QQmlThreadPrivate::run (this=0xed4c50) at qml/ftw/qqmlthread.cpp:141
#8  0x00007f0453e91d24 in QThreadPrivate::start (arg=0xed4c50) at thread/qthread_unix.cpp:341
#9  0x00007f04563a8434 in start_thread (arg=0x7f0437515700) at pthread_create.c:333
#10 0x00007f04560ef8fd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 3 (Thread 0x7f043d96e700 (LWP 14622)):
#0  0x00007f04560e8503 in select () at ../sysdeps/unix/syscall-template.S:84
#1  0x00007f0454085f74 in qt_safe_select (nfds=8, fdread=0x7f0430000a78, fdwrite=0x7f0430000d08, fdexcept=0x7f0430000f98, orig_timeout=<optimized out>) at kernel/qcore_unix.cpp:75
#2  0x00007f0454086b0b in QEventDispatcherUNIXPrivate::doSelect (this=0x7f04300008e0, flags=..., timeout=0x0) at kernel/qeventdispatcher_unix.cpp:192
#3  0x00007f0454087b9d in QEventDispatcherUNIX::processEvents (this=0x7f04300008c0, flags=...) at kernel/qeventdispatcher_unix.cpp:607
#4  0x00007f0454039001 in QEventLoop::processEvents (flags=..., this=<optimized out>) at kernel/qeventloop.cpp:128
#5  QEventLoop::exec (this=0x7f043d96ddc0, flags=...) at kernel/qeventloop.cpp:204
#6  0x00007f0453e8e5e9 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:500
#7  0x00007f0456931430 in QDBusConnectionManager::run (this=0x7f0456993260 <(anonymous namespace)::Q_QGS__q_manager::innerFunction()::holder>) at qdbusconnection.cpp:189
#8  0x00007f0453e91d24 in QThreadPrivate::start (arg=0x7f0456993260 <(anonymous namespace)::Q_QGS__q_manager::innerFunction()::holder>) at thread/qthread_unix.cpp:341
#9  0x00007f04563a8434 in start_thread (arg=0x7f043d96e700) at pthread_create.c:333
#10 0x00007f04560ef8fd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 2 (Thread 0x7f043fc1c700 (LWP 14620)):
#0  0x00007f04560e67fd in poll () at ../sysdeps/unix/syscall-template.S:84
#1  0x00007f0455286362 in _xcb_conn_wait (c=<optimized out>, cond=<optimized out>, vector=<optimized out>, count=<optimized out>) at /var/tmp/portage/x11-libs/libxcb-1.12-r1/work/libxcb-1.12/src/xcb_conn.c:479
#2  0x00007f0455287bb9 in xcb_wait_for_event (c=<optimized out>) at /var/tmp/portage/x11-libs/libxcb-1.12-r1/work/libxcb-1.12/src/xcb_in.c:693
#3  0x00007f04408d2935 in QXcbEventReader::run (this=0xd5cdf0) at qxcbconnection.cpp:1325
#4  0x00007f0453e91d24 in QThreadPrivate::start (arg=0xd5cdf0) at thread/qthread_unix.cpp:341
#5  0x00007f04563a8434 in start_thread (arg=0x7f043fc1c700) at pthread_create.c:333
#6  0x00007f04560ef8fd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 1 (Thread 0x7f0456822800 (LWP 14617)):
[KCrash Handler]
#6  0x0000000000000020 in ?? ()
#7  0x00007f0454065f08 in QObject::connect (sender=0x14c59c0, signal=0x7f0453309a7b <.L.str.12> "2destroyed(QObject*)", receiver=0x1f99a70, method=0x7f0453309a90 <.L.str.13> "1_q_objectDestroyed(QObject*)", type=Qt::AutoConnection) at kernel/qobject.cpp:2642
#8  0x00007f04532c1f1c in QScriptEnginePrivate::qobjectData (this=<optimized out>, object=<optimized out>) at api/qscriptengine.cpp:1572
#9  0x00007f04532c1bac in QScriptEnginePrivate::newQObject (this=0x2695660, object=0x14c59c0, ownership=QScriptEngine::QtOwnership, options=...) at api/qscriptengine.cpp:1504
#10 0x00007f04532c42f7 in QScriptEngine::newQObject (this=<optimized out>, object=0x14c59c0, ownership=QScriptEngine::QtOwnership, options=...) at api/qscriptengine.cpp:2281
#11 0x00007f0455d22f2f in KWin::effectWindowToScriptValue (eng=0x7f0453309a7b <.L.str.12>, window=<optimized out>) at /var/tmp/portage/kde-plasma/kwin-5.8.4/work/kwin-5.8.4/scripting/scriptedeffect.cpp:416
#12 0x00007f04532c625e in QScriptEnginePrivate::create (exec=0x2695868, type=<optimized out>, ptr=0x7ffe3ec5f358) at api/qscriptengine.cpp:3081
#13 0x00007f04532eae7d in QScript::QObjectConnectionManager::execute (this=<optimized out>, slotIndex=<optimized out>, argv=<optimized out>) at bridge/qscriptqobject.cpp:2173
#14 0x00007f04532eb223 in QScript::QObjectConnectionManager::qt_static_metacall (_o=<optimized out>, _c=<optimized out>, _id=<optimized out>, _a=<optimized out>) at bridge/qscriptqobject.cpp:2070
#15 QScript::QObjectConnectionManager::qt_metacall (this=0x269b2f0, _c=<optimized out>, _id=0, _a=0x7ffe3ec5f360) at bridge/qscriptqobject.cpp:2099
#16 0x00007f045406ac13 in QMetaObject::activate (sender=0x1f8acf0, signalOffset=<optimized out>, local_signal_index=<optimized out>, argv=<optimized out>) at kernel/qobject.cpp:3745
#17 0x00007f045388d471 in KWin::EffectsHandler::screenGeometryChanged (this=<optimized out>, _t1=...) at /var/tmp/portage/kde-plasma/kwin-5.8.4/work/kwin-5.8.4_build/libkwineffects/moc_kwineffects.cpp:1518
#18 KWin::EffectsHandler::qt_static_metacall (_o=0x20, _c=<optimized out>, _id=<optimized out>, _a=0x1a23580) at /var/tmp/portage/kde-plasma/kwin-5.8.4/work/kwin-5.8.4_build/libkwineffects/moc_kwineffects.cpp:618
#19 0x00007f045406436f in QObject::event (this=0x1f8acf0, e=<optimized out>) at kernel/qobject.cpp:1256
#20 0x00007f04548d3792 in QApplicationPrivate::notify_helper (this=<optimized out>, receiver=0x1f8acf0, e=0x2f79dd0) at kernel/qapplication.cpp:3804
#21 0x00007f04548d55c2 in QApplication::notify (this=<optimized out>, receiver=0x1f8acf0, e=0x2f79dd0) at kernel/qapplication.cpp:3163
#22 0x00007f04565c5006 in KWin::ApplicationX11::notify (this=0x7ffe3ec5fb18, o=0x1f8acf0, e=0x2f79dd0) at /var/tmp/portage/kde-plasma/kwin-5.8.4/work/kwin-5.8.4/main_x11.cpp:276
#23 0x00007f045403c73b in QCoreApplication::notifyInternal2 (receiver=0x1f8acf0, event=0x2f79dd0) at kernel/qcoreapplication.cpp:1015
#24 0x00007f045403d2f8 in QCoreApplication::sendEvent (receiver=0x1f8acf0, event=0x2f79dd0) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:225
#25 QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0xd307f0) at kernel/qcoreapplication.cpp:1650
#26 0x00007f0454087af8 in QEventDispatcherUNIX::processEvents (this=0xd97290, flags=...) at kernel/qeventdispatcher_unix.cpp:579
#27 0x00007f0440940eba in QUnixEventDispatcherQPA::processEvents (this=0x14c59c0, flags=...) at eventdispatchers/qunixeventdispatcher.cpp:62
#28 0x00007f0454039001 in QEventLoop::processEvents (flags=..., this=<optimized out>) at kernel/qeventloop.cpp:128
#29 QEventLoop::exec (this=0x7ffe3ec5fa60, flags=...) at kernel/qeventloop.cpp:204
#30 0x00007f045403cd63 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1285
#31 0x00007f04565c5ac1 in kdemain (argc=<optimized out>, argv=<optimized out>) at /var/tmp/portage/kde-plasma/kwin-5.8.4/work/kwin-5.8.4/main_x11.cpp:466
#32 0x00007f0456028790 in __libc_start_main (main=0x4008e0 <main(int, char**)>, argc=3, argv=0x7ffe3ec5fc98, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7ffe3ec5fc88) at ../csu/libc-start.c:289
#33 0x00000000004007f9 in _start ()
Comment 35 Martin Flöser 2017-01-22 08:54:36 UTC
*** Bug 375332 has been marked as a duplicate of this bug. ***
Comment 36 David 2017-01-22 15:46:51 UTC
Created attachment 103587 [details]
attachment-7192-0.html

Try using a different windows manager for linux. I have some windows
programs which I ran in wine crash like yours and my only solution was to
use a different windows manager than KDE. It seems as though it has been
the cause of the window manager updating itself and now that it has a few
new libraries, kwin and other programs crash constantly. I am now using
windows managers like enlightenment, awesome and standard gnome windows
managers and I havent gotten a crash since.

David Jones
Ashmore Protective Services
Greenville, South Carolina

On Thu, Jan 19, 2017 at 7:57 PM, A. Wilcox <bugzilla_noreply@kde.org> wrote:

> https://bugs.kde.org/show_bug.cgi?id=363224
>
> A. Wilcox (awilfox) <awilfox@adelielinux.org> changed:
>
>            What    |Removed                     |Added
> ------------------------------------------------------------
> ----------------
>                  CC|                            |awilfox@adelielinux.org
>
> --- Comment #34 from A. Wilcox (awilfox) <awilfox@adelielinux.org> ---
> I have a task scheduler (for my life, not my computer: Above & Beyond) that
> runs in 32-bit WINE.  When I pressed F10 to insert a done item - which I
> have
> done thousands of times before - this time I received a segmentation fault
> like
> the one reported in comment 15.
>
> I have SupportInformation, .xsession-errors, and full core dump (xz
> compressed:
> 6,170.5 KiB from original 3,077.5 MiB) available if any would be helpful.
>
> KWin version: 5.8.4
> Qt Version: 5.6.1
> Qt compile version: 5.6.1
> Compositing is active
> Compositing Type: OpenGL
> OpenGL vendor string: X.Org
> OpenGL renderer string: Gallium 0.4 on AMD PITCAIRN (DRM 3.8.0 /
> 4.9.0-rc8-ciall, LLVM 3.9.0)
> OpenGL version string: 4.3 (Core Profile) Mesa 13.0.0
> OpenGL platform interface: EGL
> OpenGL shading language version string: 4.30
> OpenGL version: 4.3
> GLSL version: 4.30
> Mesa version: 13.0
> X server version: 1.18.4
> Linux kernel version: 4.9
> Direct rendering: Requires strict binding: no
> GLSL shaders:  yes
> Texture NPOT support:  yes
> Virtual Machine:  no
> OpenGL 2 Shaders are used
> Painting blocks for vertical retrace:  no
>
> Backtrace of the crash I experienced:
>
> Application: KWin (kwin_x11), signal: Segmentation fault
> Using host libthread_db library "/lib64/libthread_db.so.1".
> [Current thread is 1 (Thread 0x7f0456822800 (LWP 14617))]
>
> Thread 11 (Thread 0x7f04077fe700 (LWP 14641)):
> #0  pthread_cond_wait () at
> ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
> #1  0x00007f0453286eaa in QTWTF::TCMalloc_PageHeap::scavengerThread
> (this=0x7f0453369820 <QTWTF::pageheap_memory>) at
> ../3rdparty/javascriptcore/JavaScriptCore/wtf/FastMalloc.cpp:2359
> #2  0x00007f0453286e26 in QTWTF::TCMalloc_PageHeap::runScavengerThread
> (context=0x7f04533778f4 <QTWTF::pageheap_memory+57556>) at
> ../3rdparty/javascriptcore/JavaScriptCore/wtf/FastMalloc.cpp:1464
> #3  0x00007f04563a8434 in start_thread (arg=0x7f04077fe700) at
> pthread_create.c:333
> #4  0x00007f04560ef8fd in clone () at
> ../sysdeps/unix/sysv/linux/x86_64/clone.S:109
>
> Thread 10 (Thread 0x7f041e0ad700 (LWP 14638)):
> #0  0x00007f04560e8503 in select () at ../sysdeps/unix/syscall-
> template.S:84
> #1  0x00007f0454085f74 in qt_safe_select (nfds=20, fdread=0x7f0418000a78,
> fdwrite=0x7f0418000d08, fdexcept=0x7f0418000f98, orig_timeout=<optimized
> out>)
> at kernel/qcore_unix.cpp:75
> #2  0x00007f0454086b0b in QEventDispatcherUNIXPrivate::doSelect
> (this=0x7f04180008e0, flags=..., timeout=0x0) at
> kernel/qeventdispatcher_unix.cpp:192
> #3  0x00007f0454087b9d in QEventDispatcherUNIX::processEvents
> (this=0x7f04180008c0, flags=...) at kernel/qeventdispatcher_unix.cpp:607
> #4  0x00007f0454039001 in QEventLoop::processEvents (flags=...,
> this=<optimized
> out>) at kernel/qeventloop.cpp:128
> #5  QEventLoop::exec (this=0x7f041e0acdd0, flags=...) at
> kernel/qeventloop.cpp:204
> #6  0x00007f0453e8e5e9 in QThread::exec (this=<optimized out>) at
> thread/qthread.cpp:500
> #7  0x00007f044f17dbf6 in QQmlThreadPrivate::run (this=0xedb7f0) at
> qml/ftw/qqmlthread.cpp:141
> #8  0x00007f0453e91d24 in QThreadPrivate::start (arg=0xedb7f0) at
> thread/qthread_unix.cpp:341
> #9  0x00007f04563a8434 in start_thread (arg=0x7f041e0ad700) at
> pthread_create.c:333
> #10 0x00007f04560ef8fd in clone () at
> ../sysdeps/unix/sysv/linux/x86_64/clone.S:109
>
> Thread 9 (Thread 0x7f041ed40700 (LWP 14637)):
> #0  pthread_cond_wait () at
> ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
> #1  0x00007f04350cfb8d in cnd_wait (cond=0x1139760, mtx=0x1139738) at
> /var/tmp/portage/media-libs/mesa-13.0.0/work/mesa-13.0.0/
> include/c11/threads_posix.h:159
> #2  0x00007f04350d00c7 in util_queue_thread_func (input=0x113b8f0) at
> /var/tmp/portage/media-libs/mesa-13.0.0/work/mesa-13.0.0/
> src/gallium/auxiliary/util/u_queue.c:76
> #3  0x00007f04350d0712 in impl_thrd_routine (p=0x113e3f0) at
> /var/tmp/portage/media-libs/mesa-13.0.0/work/mesa-13.0.0/
> include/c11/threads_posix.h:87
> #4  0x00007f04563a8434 in start_thread (arg=0x7f041ed40700) at
> pthread_create.c:333
> #5  0x00007f04560ef8fd in clone () at
> ../sysdeps/unix/sysv/linux/x86_64/clone.S:109
>
> Thread 8 (Thread 0x7f041f541700 (LWP 14636)):
> #0  pthread_cond_wait () at
> ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
> #1  0x00007f04350cfb8d in cnd_wait (cond=0x1139760, mtx=0x1139738) at
> /var/tmp/portage/media-libs/mesa-13.0.0/work/mesa-13.0.0/
> include/c11/threads_posix.h:159
> #2  0x00007f04350d00c7 in util_queue_thread_func (input=0x113e980) at
> /var/tmp/portage/media-libs/mesa-13.0.0/work/mesa-13.0.0/
> src/gallium/auxiliary/util/u_queue.c:76
> #3  0x00007f04350d0712 in impl_thrd_routine (p=0x113e9a0) at
> /var/tmp/portage/media-libs/mesa-13.0.0/work/mesa-13.0.0/
> include/c11/threads_posix.h:87
> #4  0x00007f04563a8434 in start_thread (arg=0x7f041f541700) at
> pthread_create.c:333
> #5  0x00007f04560ef8fd in clone () at
> ../sysdeps/unix/sysv/linux/x86_64/clone.S:109
>
> Thread 7 (Thread 0x7f041fd42700 (LWP 14635)):
> #0  pthread_cond_wait () at
> ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
> #1  0x00007f04350cfb8d in cnd_wait (cond=0x1139760, mtx=0x1139738) at
> /var/tmp/portage/media-libs/mesa-13.0.0/work/mesa-13.0.0/
> include/c11/threads_posix.h:159
> #2  0x00007f04350d00c7 in util_queue_thread_func (input=0x113b8f0) at
> /var/tmp/portage/media-libs/mesa-13.0.0/work/mesa-13.0.0/
> src/gallium/auxiliary/util/u_queue.c:76
> #3  0x00007f04350d0712 in impl_thrd_routine (p=0x113b910) at
> /var/tmp/portage/media-libs/mesa-13.0.0/work/mesa-13.0.0/
> include/c11/threads_posix.h:87
> #4  0x00007f04563a8434 in start_thread (arg=0x7f041fd42700) at
> pthread_create.c:333
> #5  0x00007f04560ef8fd in clone () at
> ../sysdeps/unix/sysv/linux/x86_64/clone.S:109
>
> Thread 6 (Thread 0x7f0420543700 (LWP 14634)):
> #0  pthread_cond_wait () at
> ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
> #1  0x00007f04350cfb8d in cnd_wait (cond=0x1139760, mtx=0x1139738) at
> /var/tmp/portage/media-libs/mesa-13.0.0/work/mesa-13.0.0/
> include/c11/threads_posix.h:159
> #2  0x00007f04350d00c7 in util_queue_thread_func (input=0x113e980) at
> /var/tmp/portage/media-libs/mesa-13.0.0/work/mesa-13.0.0/
> src/gallium/auxiliary/util/u_queue.c:76
> #3  0x00007f04350d0712 in impl_thrd_routine (p=0x113e9a0) at
> /var/tmp/portage/media-libs/mesa-13.0.0/work/mesa-13.0.0/
> include/c11/threads_posix.h:87
> #4  0x00007f04563a8434 in start_thread (arg=0x7f0420543700) at
> pthread_create.c:333
> #5  0x00007f04560ef8fd in clone () at
> ../sysdeps/unix/sysv/linux/x86_64/clone.S:109
>
> Thread 5 (Thread 0x7f0420f49700 (LWP 14633)):
> #0  pthread_cond_wait () at
> ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
> #1  0x00007f04350cfb8d in cnd_wait (cond=0x1138440, mtx=0x1138418) at
> /var/tmp/portage/media-libs/mesa-13.0.0/work/mesa-13.0.0/
> include/c11/threads_posix.h:159
> #2  0x00007f04350d00c7 in util_queue_thread_func (input=0x1139110) at
> /var/tmp/portage/media-libs/mesa-13.0.0/work/mesa-13.0.0/
> src/gallium/auxiliary/util/u_queue.c:76
> #3  0x00007f04350d0712 in impl_thrd_routine (p=0x1139130) at
> /var/tmp/portage/media-libs/mesa-13.0.0/work/mesa-13.0.0/
> include/c11/threads_posix.h:87
> #4  0x00007f04563a8434 in start_thread (arg=0x7f0420f49700) at
> pthread_create.c:333
> #5  0x00007f04560ef8fd in clone () at
> ../sysdeps/unix/sysv/linux/x86_64/clone.S:109
>
> Thread 4 (Thread 0x7f0437515700 (LWP 14632)):
> #0  0x00007f04560e8503 in select () at ../sysdeps/unix/syscall-
> template.S:84
> #1  0x00007f0454085f74 in qt_safe_select (nfds=14, fdread=0x7f0424000a78,
> fdwrite=0x7f0424000d08, fdexcept=0x7f0424000f98, orig_timeout=<optimized
> out>)
> at kernel/qcore_unix.cpp:75
> #2  0x00007f0454086b0b in QEventDispatcherUNIXPrivate::doSelect
> (this=0x7f04240008e0, flags=..., timeout=0x0) at
> kernel/qeventdispatcher_unix.cpp:192
> #3  0x00007f0454087b9d in QEventDispatcherUNIX::processEvents
> (this=0x7f04240008c0, flags=...) at kernel/qeventdispatcher_unix.cpp:607
> #4  0x00007f0454039001 in QEventLoop::processEvents (flags=...,
> this=<optimized
> out>) at kernel/qeventloop.cpp:128
> #5  QEventLoop::exec (this=0x7f0437514dd0, flags=...) at
> kernel/qeventloop.cpp:204
> #6  0x00007f0453e8e5e9 in QThread::exec (this=<optimized out>) at
> thread/qthread.cpp:500
> #7  0x00007f044f17dbf6 in QQmlThreadPrivate::run (this=0xed4c50) at
> qml/ftw/qqmlthread.cpp:141
> #8  0x00007f0453e91d24 in QThreadPrivate::start (arg=0xed4c50) at
> thread/qthread_unix.cpp:341
> #9  0x00007f04563a8434 in start_thread (arg=0x7f0437515700) at
> pthread_create.c:333
> #10 0x00007f04560ef8fd in clone () at
> ../sysdeps/unix/sysv/linux/x86_64/clone.S:109
>
> Thread 3 (Thread 0x7f043d96e700 (LWP 14622)):
> #0  0x00007f04560e8503 in select () at ../sysdeps/unix/syscall-
> template.S:84
> #1  0x00007f0454085f74 in qt_safe_select (nfds=8, fdread=0x7f0430000a78,
> fdwrite=0x7f0430000d08, fdexcept=0x7f0430000f98, orig_timeout=<optimized
> out>)
> at kernel/qcore_unix.cpp:75
> #2  0x00007f0454086b0b in QEventDispatcherUNIXPrivate::doSelect
> (this=0x7f04300008e0, flags=..., timeout=0x0) at
> kernel/qeventdispatcher_unix.cpp:192
> #3  0x00007f0454087b9d in QEventDispatcherUNIX::processEvents
> (this=0x7f04300008c0, flags=...) at kernel/qeventdispatcher_unix.cpp:607
> #4  0x00007f0454039001 in QEventLoop::processEvents (flags=...,
> this=<optimized
> out>) at kernel/qeventloop.cpp:128
> #5  QEventLoop::exec (this=0x7f043d96ddc0, flags=...) at
> kernel/qeventloop.cpp:204
> #6  0x00007f0453e8e5e9 in QThread::exec (this=<optimized out>) at
> thread/qthread.cpp:500
> #7  0x00007f0456931430 in QDBusConnectionManager::run (this=0x7f0456993260
> <(anonymous namespace)::Q_QGS__q_manager::innerFunction()::holder>) at
> qdbusconnection.cpp:189
> #8  0x00007f0453e91d24 in QThreadPrivate::start (arg=0x7f0456993260
> <(anonymous
> namespace)::Q_QGS__q_manager::innerFunction()::holder>) at
> thread/qthread_unix.cpp:341
> #9  0x00007f04563a8434 in start_thread (arg=0x7f043d96e700) at
> pthread_create.c:333
> #10 0x00007f04560ef8fd in clone () at
> ../sysdeps/unix/sysv/linux/x86_64/clone.S:109
>
> Thread 2 (Thread 0x7f043fc1c700 (LWP 14620)):
> #0  0x00007f04560e67fd in poll () at ../sysdeps/unix/syscall-template.S:84
> #1  0x00007f0455286362 in _xcb_conn_wait (c=<optimized out>,
> cond=<optimized
> out>, vector=<optimized out>, count=<optimized out>) at
> /var/tmp/portage/x11-libs/libxcb-1.12-r1/work/libxcb-1.
> 12/src/xcb_conn.c:479
> #2  0x00007f0455287bb9 in xcb_wait_for_event (c=<optimized out>) at
> /var/tmp/portage/x11-libs/libxcb-1.12-r1/work/libxcb-1.12/src/xcb_in.c:693
> #3  0x00007f04408d2935 in QXcbEventReader::run (this=0xd5cdf0) at
> qxcbconnection.cpp:1325
> #4  0x00007f0453e91d24 in QThreadPrivate::start (arg=0xd5cdf0) at
> thread/qthread_unix.cpp:341
> #5  0x00007f04563a8434 in start_thread (arg=0x7f043fc1c700) at
> pthread_create.c:333
> #6  0x00007f04560ef8fd in clone () at
> ../sysdeps/unix/sysv/linux/x86_64/clone.S:109
>
> Thread 1 (Thread 0x7f0456822800 (LWP 14617)):
> [KCrash Handler]
> #6  0x0000000000000020 in ?? ()
> #7  0x00007f0454065f08 in QObject::connect (sender=0x14c59c0,
> signal=0x7f0453309a7b <.L.str.12> "2destroyed(QObject*)",
> receiver=0x1f99a70,
> method=0x7f0453309a90 <.L.str.13> "1_q_objectDestroyed(QObject*)",
> type=Qt::AutoConnection) at kernel/qobject.cpp:2642
> #8  0x00007f04532c1f1c in QScriptEnginePrivate::qobjectData
> (this=<optimized
> out>, object=<optimized out>) at api/qscriptengine.cpp:1572
> #9  0x00007f04532c1bac in QScriptEnginePrivate::newQObject
> (this=0x2695660,
> object=0x14c59c0, ownership=QScriptEngine::QtOwnership, options=...) at
> api/qscriptengine.cpp:1504
> #10 0x00007f04532c42f7 in QScriptEngine::newQObject (this=<optimized out>,
> object=0x14c59c0, ownership=QScriptEngine::QtOwnership, options=...) at
> api/qscriptengine.cpp:2281
> #11 0x00007f0455d22f2f in KWin::effectWindowToScriptValue
> (eng=0x7f0453309a7b
> <.L.str.12>, window=<optimized out>) at
> /var/tmp/portage/kde-plasma/kwin-5.8.4/work/kwin-5.8.4/
> scripting/scriptedeffect.cpp:416
> #12 0x00007f04532c625e in QScriptEnginePrivate::create (exec=0x2695868,
> type=<optimized out>, ptr=0x7ffe3ec5f358) at api/qscriptengine.cpp:3081
> #13 0x00007f04532eae7d in QScript::QObjectConnectionManager::execute
> (this=<optimized out>, slotIndex=<optimized out>, argv=<optimized out>) at
> bridge/qscriptqobject.cpp:2173
> #14 0x00007f04532eb223 in QScript::QObjectConnectionManager::qt_
> static_metacall
> (_o=<optimized out>, _c=<optimized out>, _id=<optimized out>, _a=<optimized
> out>) at bridge/qscriptqobject.cpp:2070
> #15 QScript::QObjectConnectionManager::qt_metacall (this=0x269b2f0,
> _c=<optimized out>, _id=0, _a=0x7ffe3ec5f360) at
> bridge/qscriptqobject.cpp:2099
> #16 0x00007f045406ac13 in QMetaObject::activate (sender=0x1f8acf0,
> signalOffset=<optimized out>, local_signal_index=<optimized out>,
> argv=<optimized out>) at kernel/qobject.cpp:3745
> #17 0x00007f045388d471 in KWin::EffectsHandler::screenGeometryChanged
> (this=<optimized out>, _t1=...) at
> /var/tmp/portage/kde-plasma/kwin-5.8.4/work/kwin-5.8.4_
> build/libkwineffects/moc_kwineffects.cpp:1518
> #18 KWin::EffectsHandler::qt_static_metacall (_o=0x20, _c=<optimized out>,
> _id=<optimized out>, _a=0x1a23580) at
> /var/tmp/portage/kde-plasma/kwin-5.8.4/work/kwin-5.8.4_
> build/libkwineffects/moc_kwineffects.cpp:618
> #19 0x00007f045406436f in QObject::event (this=0x1f8acf0, e=<optimized
> out>) at
> kernel/qobject.cpp:1256
> #20 0x00007f04548d3792 in QApplicationPrivate::notify_helper
> (this=<optimized
> out>, receiver=0x1f8acf0, e=0x2f79dd0) at kernel/qapplication.cpp:3804
> #21 0x00007f04548d55c2 in QApplication::notify (this=<optimized out>,
> receiver=0x1f8acf0, e=0x2f79dd0) at kernel/qapplication.cpp:3163
> #22 0x00007f04565c5006 in KWin::ApplicationX11::notify
> (this=0x7ffe3ec5fb18,
> o=0x1f8acf0, e=0x2f79dd0) at
> /var/tmp/portage/kde-plasma/kwin-5.8.4/work/kwin-5.8.4/main_x11.cpp:276
> #23 0x00007f045403c73b in QCoreApplication::notifyInternal2
> (receiver=0x1f8acf0, event=0x2f79dd0) at kernel/qcoreapplication.cpp:1015
> #24 0x00007f045403d2f8 in QCoreApplication::sendEvent (receiver=0x1f8acf0,
> event=0x2f79dd0) at
> ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:225
> #25 QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0,
> data=0xd307f0) at kernel/qcoreapplication.cpp:1650
> #26 0x00007f0454087af8 in QEventDispatcherUNIX::processEvents
> (this=0xd97290,
> flags=...) at kernel/qeventdispatcher_unix.cpp:579
> #27 0x00007f0440940eba in QUnixEventDispatcherQPA::processEvents
> (this=0x14c59c0, flags=...) at eventdispatchers/
> qunixeventdispatcher.cpp:62
> #28 0x00007f0454039001 in QEventLoop::processEvents (flags=...,
> this=<optimized
> out>) at kernel/qeventloop.cpp:128
> #29 QEventLoop::exec (this=0x7ffe3ec5fa60, flags=...) at
> kernel/qeventloop.cpp:204
> #30 0x00007f045403cd63 in QCoreApplication::exec () at
> kernel/qcoreapplication.cpp:1285
> #31 0x00007f04565c5ac1 in kdemain (argc=<optimized out>, argv=<optimized
> out>)
> at /var/tmp/portage/kde-plasma/kwin-5.8.4/work/kwin-5.8.4/main_x11.cpp:466
> #32 0x00007f0456028790 in __libc_start_main (main=0x4008e0 <main(int,
> char**)>,
> argc=3, argv=0x7ffe3ec5fc98, init=<optimized out>, fini=<optimized out>,
> rtld_fini=<optimized out>, stack_end=0x7ffe3ec5fc88) at
> ../csu/libc-start.c:289
> #33 0x00000000004007f9 in _start ()
>
> --
> You are receiving this mail because:
> You are on the CC list for the bug.
>
Comment 37 Martin Flöser 2017-01-22 17:16:26 UTC
I'm sorry that you are not satisfied with our quality. We would love to fix this issue. It's one of the most annoying bugs we currently have and we see that many users are affected by it.

The problem is: we developers are not able to reproduce the issue. If we try the steps outlined in this bug and its many duplicates it just doesn't crash. There is an important part of the puzzle still missing. Something is different for our users and for us trying to investigate.

We need your support to figure out what it is. Once we find the key it will be easy to fix. That is the proper way forward. Ranting won't fix the issue but just demotivates those working on it. Please remember that I and most KDE developers are volunteers working in their free time on it.
Comment 38 marc 2017-01-22 17:49:12 UTC
Guys [and girls],


 From what I have gathered so far, this is what happens:
- it appears only with Intel on-chip card [HD graphics]
- it only appears when compositor is enabled [desktop effects]
- it only shows in VirtualBox
- it doesn't matter which rendering method is selected
- the issue does not appear on other DEs

Maybe you will be able to reproduce the issue with similar configuration.
It seems that the issue lies somewhere between QT under kwin and 
graphics subsystem, from what I can see.

W dniu 22.01.2017 o 18:16, Martin Gräßlin pisze:
> https://bugs.kde.org/show_bug.cgi?id=363224
>
> --- Comment #37 from Martin Gräßlin <mgraesslin@kde.org> ---
> I'm sorry that you are not satisfied with our quality. We would love to fix
> this issue. It's one of the most annoying bugs we currently have and we see
> that many users are affected by it.
>
> The problem is: we developers are not able to reproduce the issue. If we try
> the steps outlined in this bug and its many duplicates it just doesn't crash.
> There is an important part of the puzzle still missing. Something is different
> for our users and for us trying to investigate.
>
> We need your support to figure out what it is. Once we find the key it will be
> easy to fix. That is the proper way forward. Ranting won't fix the issue but
> just demotivates those working on it. Please remember that I and most KDE
> developers are volunteers working in their free time on it.
>
Comment 39 Martin Flöser 2017-01-22 18:04:06 UTC
Am 22. Januar 2017 18:49:12 MEZ schrieb marc <bugzilla_noreply@kde.org>:
>https://bugs.kde.org/show_bug.cgi?id=363224
>
>--- Comment #38 from marc <marc_smith@gmx.com> ---
>Guys [and girls],
>
>
> From what I have gathered so far, this is what happens:
>- it appears only with Intel on-chip card [HD graphics]
>- it only appears when compositor is enabled [desktop effects]
>- it only shows in VirtualBox
>- it doesn't matter which rendering method is selected
>- the issue does not appear on other DEs
>
>Maybe you will be able to reproduce the issue with similar
>configuration.
 That configuration matches all my systems. I'm quite certain that the GPU is irrelevant.
Comment 40 A. Wilcox (awilfox) 2017-01-22 18:12:33 UTC
(In reply to Martin Gräßlin from comment #37)
> The problem is: we developers are not able to reproduce the issue. If we try
> the steps outlined in this bug and its many duplicates it just doesn't
> crash. There is an important part of the puzzle still missing. Something is
> different for our users and for us trying to investigate.
> 
> We need your support to figure out what it is. Once we find the key it will
> be easy to fix. That is the proper way forward. Ranting won't fix the issue
> but just demotivates those working on it. Please remember that I and most
> KDE developers are volunteers working in their free time on it.

I want to help!  What can I provide?

(In reply to marc from comment #38)
> - it appears only with Intel on-chip card [HD graphics]

Maybe you miss my comment #34:
> OpenGL renderer string: Gallium 0.4 on AMD PITCAIRN

01:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Curacao PRO [Radeon R7 370 / R9 270/370 OEM]

I am using a R9 270 and amdgpu.ko.  I have not used composition for months until a few weeks ago to see if Mesa 13.0 finally fixes my OpenGL woes.  It seems to have fixed most of them, but then I get this error.  So I report it.

I wish to be of more assistance, but I do not know what to provide.  I continue to use my WINE-based task scheduler, and have pressed F10 hundreds of times since the crash, and don't have it any more.  It is indeed very random.  I can say I am using the beautiful plastiK window decorations with Breeze widget styles.  I know that plastiK has been source of bugs in the past.  But still, it is the only decoration that I truly enjoy, so I continue to use it.

Maybe that is a difference?
Comment 41 Martin Flöser 2017-01-22 18:47:23 UTC
I'm sharing my theory on what we see from the backtraces we have:

The crash happens when a window is exposed to the window effect system. This is the part that compositing is required.

The code in question delays a call to the end of current event cycle. And it looks like the window gets destroyed while the call is being delayed.

This would mean that the crash happens when a window gets opened and closed in a very short time frame. In fact the window must be closed when KWin gets the event that the window is created. The destroy event must already be queued. It's the only explanation I have for the window getting destroyed during the delay.

Now I tried to verify this assumption with test applications which simulates this condition. But I failed.

Thus my theory: it only happens on older systems or on systems under stress at that time. The quite often mentioned VMware and virtual box could verify the stress situation: resources are passed to the VM and taken away from the main system.

What I need:
Verification that my theory is correct. Please run xev and trigger the crash. It should show us whether there was a short lived window.

In addition I will need someone who can test a patch if my theory is correct. Without being able to reproduce I just cannot write and test a patch. I can write it, but need someone to test and verify.
Comment 42 Thomas Mitterfellner 2017-01-22 19:19:16 UTC
Created attachment 103591 [details]
xev output
Comment 43 Thomas Mitterfellner 2017-01-22 19:19:35 UTC
First off, although we already established that, it does not depend on intel graphics as the crash happens here with an nvidia GPU.

"it only happens on older systems or on systems under stress at that time. The quite often mentioned VMware and virtual box could verify the stress situation: resources are passed to the VM and taken away from the main system."

My system is indeed older but the "under stress at that time" is definitely not true. My system is almost idle, the virtual machine isn't even running and the crash reliably happens when I close the configuration dialog of virtualbox-qt 5.1.8 (openSUSE, qt 5.7.1).

I ran xev > kwin_crash_xev.txt while triggering the crash; since I don't what's of interest to you, I'll attach the whole output.
Comment 44 Martin Flöser 2017-01-22 20:04:30 UTC
Thanks a lot for the output. I don't see what I expected but the 
sequence of events is "interesting". I will need some time to properly 
understand what's going on there and compare it to other windows. 
Hopefully I find a clue.
Comment 45 Martin Flöser 2017-01-22 20:12:44 UTC
Am 2017-01-22 20:19, schrieb Thomas Mitterfellner:
> My system is indeed older but the "under stress at that time" is
> definitely not
> true. My system is almost idle, the virtual machine isn't even running
> and the
> crash reliably happens when I close the configuration dialog of
> virtualbox-qt
> 5.1.8 (openSUSE, qt 5.7.1).

openSUSE Tumbleweed or Leap?

I need to setup a VM with the same system. My distro has an older 
virtual box and I don't want to exclude the possibility that the version 
of the software matters.
Comment 47 tguen 2017-01-23 00:15:46 UTC
Progress!

In System Settings, I opened the Desktop Effects menu and disabled everything. The crashing stopped. I enabled effects one at a time until I found the offenders. Disabling 'Transparency' and 'Dialog Parent' effects was the solution. If all other effects are disabled, enabling either of these results in crashes. I can enable all effects except these two and it won't crash.

> Thus my theory: it only happens on older systems or on systems under stress at that time. The quite often mentioned VMware and virtual box could verify the stress situation: resources are passed to the VM and taken away from the main system.

Nope. I have an Intel i5-2400 and an Nvidia GTX 960. My CPU is ~5 years old, but perfectly capable. I can reproduce the issue even with no load on the CPU/GPU. The VM isn't even running, just Vbox main window and settings menu.

Let me know if I can do anything to help.
Comment 48 tguen 2017-01-23 00:18:26 UTC
I meant Translucency, not Transparency.
Comment 49 x-user 2017-01-23 03:00:49 UTC
My xev output:

-- Output --
Outer window is 0x3c00001, inner window is 0x3c00002

PropertyNotify event, serial 8, synthetic NO, window 0x3c00001,
    atom 0x27 (WM_NAME), time 871916, state PropertyNewValue

PropertyNotify event, serial 9, synthetic NO, window 0x3c00001,
    atom 0x22 (WM_COMMAND), time 871916, state PropertyNewValue

PropertyNotify event, serial 10, synthetic NO, window 0x3c00001,
    atom 0x28 (WM_NORMAL_HINTS), time 871916, state PropertyNewValue

CreateNotify event, serial 11, synthetic NO, window 0x3c00001,
    parent 0x3c00001, window 0x3c00002, (10,10), width 50, height 50
border_width 4, override NO

PropertyNotify event, serial 13, synthetic NO, window 0x3c00001,
    atom 0x1fc (_KDE_NET_WM_USER_CREATION_TIME), time 871917, state PropertyNewValue

PropertyNotify event, serial 14, synthetic NO, window 0x3c00001,
    atom 0x13a (WM_PROTOCOLS), time 871917, state PropertyNewValue

MapNotify event, serial 15, synthetic NO, window 0x3c00001,
    event 0x3c00001, window 0x3c00002, override NO

ConfigureNotify event, serial 24, synthetic NO, window 0x3c00001,
    event 0x3c00001, window 0x3c00001, (0,0), width 178, height 178,
    border_width 0, above 0x3a00008, override NO

ReparentNotify event, serial 24, synthetic NO, window 0x3c00001,
    event 0x3c00001, window 0x3c00001, parent 0x2001a5b,
    (0,0), override NO

PropertyNotify event, serial 29, synthetic NO, window 0x3c00001,
    atom 0x166 (_NET_WM_STATE), time 871926, state PropertyNewValue

MapNotify event, serial 29, synthetic NO, window 0x3c00001,
    event 0x3c00001, window 0x3c00001, override NO

VisibilityNotify event, serial 29, synthetic NO, window 0x3c00001,
    state VisibilityPartiallyObscured

Expose event, serial 29, synthetic NO, window 0x3c00001,
    (0,0), width 1, height 1, count 0

PropertyNotify event, serial 29, synthetic NO, window 0x3c00001,
    atom 0x143 (WM_STATE), time 871926, state PropertyNewValue

PropertyNotify event, serial 30, synthetic NO, window 0x3c00001,
    atom 0x1ed (_KDE_NET_WM_ACTIVITIES), time 871926, state PropertyNewValue

PropertyNotify event, serial 32, synthetic NO, window 0x3c00001,
    atom 0x166 (_NET_WM_STATE), time 871954, state PropertyNewValue

PropertyNotify event, serial 32, synthetic NO, window 0x3c00001,
    atom 0x1ce (_NET_WM_DESKTOP), time 871954, state PropertyNewValue

PropertyNotify event, serial 32, synthetic NO, window 0x3c00001,
    atom 0x166 (_NET_WM_STATE), time 871954, state PropertyNewValue

PropertyNotify event, serial 32, synthetic NO, window 0x3c00001,
    atom 0x1ce (_NET_WM_DESKTOP), time 871954, state PropertyNewValue

PropertyNotify event, serial 33, synthetic NO, window 0x3c00001,
    atom 0x183 (_NET_FRAME_EXTENTS), time 871956, state PropertyNewValue

PropertyNotify event, serial 33, synthetic NO, window 0x3c00001,
    atom 0x182 (_KDE_NET_WM_FRAME_STRUT), time 871956, state PropertyNewValue

PropertyNotify event, serial 33, synthetic NO, window 0x3c00001,
    atom 0x1d4 (_NET_WM_ALLOWED_ACTIONS), time 871956, state PropertyNewValue

PropertyNotify event, serial 35, synthetic NO, window 0x3c00001,
    atom 0x166 (_NET_WM_STATE), time 871956, state PropertyNewValue

FocusIn event, serial 35, synthetic NO, window 0x3c00001,
    mode NotifyNormal, detail NotifyNonlinear

KeymapNotify event, serial 35, synthetic NO, window 0x0,
    keys:  4294967246 0   0   0   16  0   0   0   0   0   0   0   0   0   0   0   
           0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   

VisibilityNotify event, serial 35, synthetic NO, window 0x3c00001,
    state VisibilityUnobscured

Expose event, serial 35, synthetic NO, window 0x3c00001,
    (1,0), width 177, height 1, count 4

Expose event, serial 35, synthetic NO, window 0x3c00001,
    (0,1), width 178, height 9, count 3

Expose event, serial 35, synthetic NO, window 0x3c00001,
    (0,10), width 10, height 58, count 2

Expose event, serial 35, synthetic NO, window 0x3c00001,
    (68,10), width 110, height 58, count 1

Expose event, serial 35, synthetic NO, window 0x3c00001,
    (0,68), width 178, height 110, count 0

ConfigureNotify event, serial 35, synthetic YES, window 0x3c00001,
    event 0x3c00001, window 0x3c00001, (0,378), width 178, height 178,
    border_width 0, above 0x0, override NO

PropertyNotify event, serial 35, synthetic NO, window 0x3c00001,
    atom 0x1ed (_KDE_NET_WM_ACTIVITIES), time 871957, state PropertyNewValue

PropertyNotify event, serial 35, synthetic NO, window 0x3c00001,
    atom 0x166 (_NET_WM_STATE), time 871957, state PropertyNewValue

KeyRelease event, serial 36, synthetic NO, window 0x3c00001,
    root 0xf6, subw 0x0, time 871968, (984,-240), root:(984,138),
    state 0x0, keycode 36 (keysym 0xff0d, Return), same_screen YES,
"   XLookupString gives 1 bytes: (0d) "
    XFilterEvent returns: False

PropertyNotify event, serial 39, synthetic NO, window 0x3c00001,
    atom 0x1d1 (_NET_WM_ICON_GEOMETRY), time 872219, state PropertyNewValue

FocusOut event, serial 40, synthetic NO, window 0x3c00001,
    mode NotifyNormal, detail NotifyNonlinear

ColormapNotify event, serial 40, synthetic NO, window 0x3c00001,
    colormap 0x58, new NO, state ColormapUninstalled

ColormapNotify event, serial 40, synthetic NO, window 0x3c00001,
    colormap 0x58, new NO, state ColormapInstalled

FocusIn event, serial 40, synthetic NO, window 0x3c00001,
    mode NotifyNormal, detail NotifyNonlinear

KeymapNotify event, serial 40, synthetic NO, window 0x0,
    keys:  4294967277 0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   
           0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   

PropertyNotify event, serial 40, synthetic NO, window 0x3c00001,
    atom 0x1d1 (_NET_WM_ICON_GEOMETRY), time 876986, state PropertyNewValue

UnmapNotify event, serial 40, synthetic NO, window 0x3c00001,
    event 0x3c00001, window 0x3c00001, from_configure NO

FocusOut event, serial 40, synthetic NO, window 0x3c00001,
    mode NotifyNormal, detail NotifyNonlinear

ReparentNotify event, serial 40, synthetic NO, window 0x3c00001,
    event 0x3c00001, window 0x3c00001, parent 0xf6,
    (0,378), override NO

MapNotify event, serial 40, synthetic NO, window 0x3c00001,
    event 0x3c00001, window 0x3c00001, override NO

VisibilityNotify event, serial 40, synthetic NO, window 0x3c00001,
    state VisibilityUnobscured

Expose event, serial 40, synthetic NO, window 0x3c00001,
    (0,0), width 178, height 10, count 3

Expose event, serial 40, synthetic NO, window 0x3c00001,
    (0,10), width 10, height 58, count 2

Expose event, serial 40, synthetic NO, window 0x3c00001,
    (68,10), width 110, height 58, count 1

Expose event, serial 40, synthetic NO, window 0x3c00001,
    (0,68), width 178, height 110, count 0

VisibilityNotify event, serial 40, synthetic NO, window 0x3c00001,
    state VisibilityFullyObscured

VisibilityNotify event, serial 40, synthetic NO, window 0x3c00001,
    state VisibilityUnobscured

Expose event, serial 40, synthetic NO, window 0x3c00001,
    (0,0), width 178, height 10, count 3

Expose event, serial 40, synthetic NO, window 0x3c00001,
    (0,10), width 10, height 58, count 2

Expose event, serial 40, synthetic NO, window 0x3c00001,
    (68,10), width 110, height 58, count 1

Expose event, serial 40, synthetic NO, window 0x3c00001,
    (0,68), width 178, height 110, count 0

ConfigureNotify event, serial 40, synthetic NO, window 0x3c00001,
    event 0x3c00001, window 0x3c00001, (-1,354), width 178, height 178,
    border_width 0, above 0x4200004, override NO

VisibilityNotify event, serial 40, synthetic NO, window 0x3c00001,
    state VisibilityPartiallyObscured

UnmapNotify event, serial 40, synthetic NO, window 0x3c00001,
    event 0x3c00001, window 0x3c00001, from_configure NO

ReparentNotify event, serial 40, synthetic NO, window 0x3c00001,
    event 0x3c00001, window 0x3c00001, parent 0x420002a,
    (0,0), override NO

PropertyNotify event, serial 40, synthetic NO, window 0x3c00001,
    atom 0x1ed (_KDE_NET_WM_ACTIVITIES), time 879248, state PropertyNewValue

PropertyNotify event, serial 40, synthetic NO, window 0x3c00001,
    atom 0x166 (_NET_WM_STATE), time 879277, state PropertyNewValue

PropertyNotify event, serial 40, synthetic NO, window 0x3c00001,
    atom 0x1ce (_NET_WM_DESKTOP), time 879277, state PropertyNewValue

PropertyNotify event, serial 40, synthetic NO, window 0x3c00001,
    atom 0x166 (_NET_WM_STATE), time 879277, state PropertyNewValue

MapNotify event, serial 40, synthetic NO, window 0x3c00001,
    event 0x3c00001, window 0x3c00001, override NO

VisibilityNotify event, serial 40, synthetic NO, window 0x3c00001,
    state VisibilityPartiallyObscured

Expose event, serial 40, synthetic NO, window 0x3c00001,
    (0,0), width 1, height 1, count 0

PropertyNotify event, serial 40, synthetic NO, window 0x3c00001,
    atom 0x143 (WM_STATE), time 879277, state PropertyNewValue

PropertyNotify event, serial 40, synthetic NO, window 0x3c00001,
    atom 0x1ce (_NET_WM_DESKTOP), time 879277, state PropertyNewValue

PropertyNotify event, serial 40, synthetic NO, window 0x3c00001,
    atom 0x183 (_NET_FRAME_EXTENTS), time 879279, state PropertyNewValue

PropertyNotify event, serial 40, synthetic NO, window 0x3c00001,
    atom 0x182 (_KDE_NET_WM_FRAME_STRUT), time 879279, state PropertyNewValue

PropertyNotify event, serial 40, synthetic NO, window 0x3c00001,
    atom 0x1d4 (_NET_WM_ALLOWED_ACTIONS), time 879279, state PropertyNewValue

VisibilityNotify event, serial 40, synthetic NO, window 0x3c00001,
    state VisibilityFullyObscured

PropertyNotify event, serial 40, synthetic NO, window 0x3c00001,
    atom 0x166 (_NET_WM_STATE), time 879279, state PropertyNewValue

ConfigureNotify event, serial 40, synthetic YES, window 0x3c00001,
    event 0x3c00001, window 0x3c00001, (0,378), width 178, height 178,
    border_width 0, above 0x0, override NO

PropertyNotify event, serial 40, synthetic NO, window 0x3c00001,
    atom 0x1ed (_KDE_NET_WM_ACTIVITIES), time 879279, state PropertyNewValue

PropertyNotify event, serial 40, synthetic NO, window 0x3c00001,
    atom 0x166 (_NET_WM_STATE), time 879279, state PropertyNewValue

VisibilityNotify event, serial 40, synthetic NO, window 0x3c00001,
    state VisibilityUnobscured

Expose event, serial 40, synthetic NO, window 0x3c00001,
    (0,0), width 178, height 10, count 3

Expose event, serial 40, synthetic NO, window 0x3c00001,
    (0,10), width 10, height 58, count 2

Expose event, serial 40, synthetic NO, window 0x3c00001,
    (68,10), width 110, height 58, count 1

Expose event, serial 40, synthetic NO, window 0x3c00001,
    (0,68), width 178, height 110, count 0

FocusIn event, serial 40, synthetic NO, window 0x3c00001,
    mode NotifyNormal, detail NotifyNonlinear

KeymapNotify event, serial 40, synthetic NO, window 0x0,
    keys:  68  0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   
           0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   

PropertyNotify event, serial 40, synthetic NO, window 0x3c00001,
    atom 0x166 (_NET_WM_STATE), time 879305, state PropertyNewValue

VisibilityNotify event, serial 40, synthetic NO, window 0x3c00001,
    state VisibilityFullyObscured

VisibilityNotify event, serial 40, synthetic NO, window 0x3c00001,
    state VisibilityUnobscured

Expose event, serial 40, synthetic NO, window 0x3c00001,
    (0,0), width 178, height 10, count 3

Expose event, serial 40, synthetic NO, window 0x3c00001,
    (0,10), width 10, height 58, count 2

Expose event, serial 40, synthetic NO, window 0x3c00001,
    (68,10), width 110, height 58, count 1

Expose event, serial 40, synthetic NO, window 0x3c00001,
    (0,68), width 178, height 110, count 0

PropertyNotify event, serial 40, synthetic NO, window 0x3c00001,
    atom 0x166 (_NET_WM_STATE), time 879371, state PropertyNewValue

FocusOut event, serial 40, synthetic NO, window 0x3c00001,
    mode NotifyNormal, detail NotifyNonlinear
Comment 50 x-user 2017-01-23 03:54:54 UTC
(In reply to rasq37 from comment #47)
> Progress!
> 
> In System Settings, I opened the Desktop Effects menu and disabled
> everything. The crashing stopped. I enabled effects one at a time until I
> found the offenders. Disabling 'Transparency' and 'Dialog Parent' effects
> was the solution. If all other effects are disabled, enabling either of
> these results in crashes. I can enable all effects except these two and it
> won't crash.
> 
> > Thus my theory: it only happens on older systems or on systems under stress at that time. The quite often mentioned VMware and virtual box could verify the stress situation: resources are passed to the VM and taken away from the main system.
> 
> Nope. I have an Intel i5-2400 and an Nvidia GTX 960. My CPU is ~5 years old,
> but perfectly capable. I can reproduce the issue even with no load on the
> CPU/GPU. The VM isn't even running, just Vbox main window and settings menu.
> 
> Let me know if I can do anything to help.

If all you want is that this bug doesn't bother you. You can just disable compositing for application related to crash through kwin rules. Sorry for my bad english.
Comment 51 Radics Péter 2017-01-23 13:54:06 UTC
I also found that only "Dialog Parent" and "Translucency" trigger the crash. "Dialog Parent" is more reliable.  I found that the crash is triggered more often if the system is under load.  I did a "ninja -j6" build of llvm during the tests (pegging all CPU cores to 100%) and it seemed to be enough to reliably trigger the crash.  On an idle system the crash didn't happen so often.
Comment 52 A. Wilcox (awilfox) 2017-01-23 22:51:05 UTC
If it helps any, I can relay that I am using Translucency, but none of the Dialogue (Base, Parent, etc) effects are enabled.

Again, on amdgpu.ko with a Radeon R9 270.  I will gladly test the patch on my system; though I run in to this so rarely that I can't reliably reproduce it, I can still ensure it does not do any further damage either.

My system is always under heavy load because the I/O is crap due to buggy/bad SATA drivers.  So I cannot comment on whether that causes it or not.
Comment 53 Martin Flöser 2017-03-07 20:32:20 UTC
*** Bug 377225 has been marked as a duplicate of this bug. ***
Comment 54 Martin Flöser 2017-03-12 16:52:40 UTC
*** Bug 375256 has been marked as a duplicate of this bug. ***
Comment 55 Dragon 32 2017-03-13 13:27:39 UTC
Hi all I reported Bug 375256 which is a dupe of the current bug here but was affecting Google Earth as well. 

I'd like to add some further information in that switching my windows decoration theme to Breeze has completely stopped the crashes. I was using the seven black theme from here:

https://store.kde.org/p/1002615

I conducted further testing using the Oxygen windows decoration theme and that is ok as well however plastik also crashes Kwin.
Comment 56 tguen 2017-03-13 13:47:32 UTC
As I said before, the crashing only happens if I have the Translucency or Dialog Parent effects enabled. Now I can confirm that it only crashes if these effects are enabled AND I'm using the Plastik theme. It doesn't crash when using Breeze or Oxygen, even with these effects.
Comment 57 Martin Flöser 2017-03-13 14:37:39 UTC
Thanks for adding this hopefully important information!
Comment 58 Lubos Lunak 2017-03-17 19:28:19 UTC
Created attachment 104620 [details]
valgrind trace of the crash
Comment 59 Lubos Lunak 2017-03-17 19:40:27 UTC
Created attachment 104621 [details]
proposed fix

As seen in the Valgrind log, this is basically bug #347490. The supposed fix 30e6ae34d7 for that one only moved the problem, so instead of delayed slots crashing because of deleted Client objects, it now crashes because of deleted EffectWindow objects.

This patch reverts that commit and also the delayed signals, based on the following:
- 30e6ae34d7 only papers over the problem
- the commit introducing the delaying of the signal doesn't explain it (*sigh*) and so the only reasoning for it is a comment in #347490 with a supposition about it, and I cannot see any glitches with this patch attached (although admitedly I didn't try too hard, given that I don't know what to look for)
- the logic of delaying of just this one signal seems wrong to me, if it would be needed, surely other signals would need similar delaying as well
- if it turns out any delaying is actually necessary, it should be done properly where needed (such as triggering a delayed repaint in the appropriate place)
Comment 60 Christoph Feck 2017-03-31 17:39:26 UTC
*** Bug 378086 has been marked as a duplicate of this bug. ***
Comment 61 Christoph Feck 2017-03-31 17:39:58 UTC
*** Bug 378236 has been marked as a duplicate of this bug. ***
Comment 62 Martin Flöser 2017-04-17 07:34:11 UTC
commit 634dfc09e42ad44672e8f235fabb3110010491ce
Author: Luboš Luňák <l.lunak@kde.org>
Date:   Fri Mar 17 16:32:34 2017 +0100

    fix occassional crash caused by needlessly delayed signals (bko#363224)
    
    As pointed out by the Valgrind trace in #363224, delaying the signal causes
    the EffectWindow* argument to become invalid before the connected slot is
    called (this is because Qt discards only delayed signal->slot calls where
    the receiver gets deleted meanwhile, not the sender and definitely not
    a random argument.
    If the supposed glitches really happen, they should get fixed correctly,
    and for all cases (I doubt only desktop number would be involved but
    not e.g. shaded or minimized states).
    
    https://phabricator.kde.org/D5164
Comment 63 Martin Flöser 2017-04-17 07:34:34 UTC
*** Bug 378850 has been marked as a duplicate of this bug. ***
Comment 64 Martin Flöser 2017-05-01 14:53:31 UTC
*** Bug 379398 has been marked as a duplicate of this bug. ***
Comment 65 Martin Flöser 2017-05-01 14:54:06 UTC
*** Bug 379397 has been marked as a duplicate of this bug. ***
Comment 66 Martin Flöser 2017-05-02 19:31:01 UTC
*** Bug 379446 has been marked as a duplicate of this bug. ***
Comment 67 Martin Flöser 2017-05-03 15:12:25 UTC
*** Bug 379480 has been marked as a duplicate of this bug. ***
Comment 68 Martin Flöser 2017-05-04 04:48:49 UTC
*** Bug 379493 has been marked as a duplicate of this bug. ***
Comment 69 Martin Flöser 2017-05-05 17:06:07 UTC
*** Bug 379544 has been marked as a duplicate of this bug. ***
Comment 70 Martin Flöser 2017-05-16 15:27:58 UTC
*** Bug 379903 has been marked as a duplicate of this bug. ***
Comment 71 Martin Flöser 2017-05-18 17:39:35 UTC
Git commit 55f169d1c34491f0d97c8b7a162f4ba60f6849e2 by Martin Flöser, on behalf of Luboš Luňák.
Committed on 18/05/2017 at 17:30.
Pushed by graesslin into branch 'Plasma/5.8'.

fix occassional crash caused by needlessly delayed signals (bko#363224)

As pointed out by the Valgrind trace in #363224, delaying the signal causes
the EffectWindow* argument to become invalid before the connected slot is
called (this is because Qt discards only delayed signal->slot calls where
the receiver gets deleted meanwhile, not the sender and definitely not
a random argument.
If the supposed glitches really happen, they should get fixed correctly,
and for all cases (I doubt only desktop number would be involved but
not e.g. shaded or minimized states).

https://phabricator.kde.org/D5164

M  +1    -5    effects.cpp

https://commits.kde.org/kwin/55f169d1c34491f0d97c8b7a162f4ba60f6849e2
Comment 72 Martin Flöser 2017-05-18 17:41:00 UTC
*** Bug 379979 has been marked as a duplicate of this bug. ***
Comment 73 Martin Flöser 2017-05-23 06:24:16 UTC
*** Bug 380106 has been marked as a duplicate of this bug. ***
Comment 74 Christoph Feck 2017-06-06 15:02:13 UTC
*** Bug 380207 has been marked as a duplicate of this bug. ***
Comment 75 Christoph Feck 2017-06-06 15:02:47 UTC
*** Bug 380048 has been marked as a duplicate of this bug. ***
Comment 76 Christoph Feck 2017-06-06 15:03:01 UTC
*** Bug 380370 has been marked as a duplicate of this bug. ***
Comment 77 Christoph Feck 2017-06-06 15:03:18 UTC
*** Bug 380808 has been marked as a duplicate of this bug. ***
Comment 78 Christoph Feck 2017-06-10 10:30:55 UTC
*** Bug 381049 has been marked as a duplicate of this bug. ***
Comment 79 Christoph Feck 2017-06-13 15:38:51 UTC
*** Bug 381142 has been marked as a duplicate of this bug. ***
Comment 80 Christoph Feck 2017-06-13 15:39:19 UTC
*** Bug 381147 has been marked as a duplicate of this bug. ***
Comment 81 Martin Flöser 2017-06-28 14:53:51 UTC
*** Bug 381748 has been marked as a duplicate of this bug. ***
Comment 82 Martin Flöser 2017-07-05 14:53:39 UTC
*** Bug 382006 has been marked as a duplicate of this bug. ***
Comment 83 Thomas Mitterfellner 2017-12-02 13:43:49 UTC
I just updated to 5.11.4 and want to confirm that the crash when closing the Virtualbox settings dialog does not happen anymore. Thanks for the fix!