Bug 369013 - New window creation crashes Kwin
Summary: New window creation crashes Kwin
Status: RESOLVED DUPLICATE of bug 361236
Alias: None
Product: kwin
Classification: Unclassified
Component: general (show other bugs)
Version: 5.7.4
Platform: Debian unstable Linux
: NOR crash (vote)
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords: drkonqi
Depends on:
Blocks:
 
Reported: 2016-09-18 21:41 UTC by Balpo
Modified: 2016-10-04 07:18 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Balpo 2016-09-18 21:41:21 UTC
Application: kwin_x11 (5.7.4)

Qt Version: 5.6.1
Frameworks Version: 5.25.0
Operating System: Linux 4.7.0-1-amd64 x86_64
Distribution: Debian GNU/Linux unstable (sid)

-- Information about the crash:
- What I was doing when the application crashed:
Sometimes when I open new windows, KWin crashes, and sometimes it fails to restart and windows go borderless.

The crash can be reproduced every time.

-- Backtrace:
Application: KWin (kwin_x11), signal: Segmentation fault
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[Current thread is 1 (Thread 0x7fa835a514c0 (LWP 10428))]

Thread 6 (Thread 0x7fa827fff700 (LWP 25475)):
#0  0x00007fa84d391253 in select () at ../sysdeps/unix/syscall-template.S:84
#1  0x00007fa84b21cd3f in qt_safe_select(int, fd_set*, fd_set*, fd_set*, timespec const*) (nfds=13, fdread=fdread@entry=0x7fa81c073ab8, fdwrite=fdwrite@entry=0x7fa81c073d48, fdexcept=fdexcept@entry=0x7fa81c073fd8, orig_timeout=orig_timeout@entry=0x0) at kernel/qcore_unix.cpp:75
#2  0x00007fa84b21e7e4 in QEventDispatcherUNIXPrivate::doSelect(QFlags<QEventLoop::ProcessEventsFlag>, timespec*) (timeout=0x0, exceptfds=0x7fa81c073fd8, writefds=0x7fa81c073d48, readfds=0x7fa81c073ab8, nfds=<optimized out>, this=0x7fa81c06a030) at kernel/qeventdispatcher_unix.cpp:320
#3  0x00007fa84b21e7e4 in QEventDispatcherUNIXPrivate::doSelect(QFlags<QEventLoop::ProcessEventsFlag>, timespec*) (this=this@entry=0x7fa81c073920, flags=..., flags@entry=..., timeout=timeout@entry=0x0) at kernel/qeventdispatcher_unix.cpp:196
#4  0x00007fa84b21ecfa in QEventDispatcherUNIX::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) (this=0x7fa81c06a030, flags=...) at kernel/qeventdispatcher_unix.cpp:607
#5  0x00007fa84b1c919a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) (this=this@entry=0x7fa827ffec60, flags=..., flags@entry=...) at kernel/qeventloop.cpp:204
#6  0x00007fa84afeee53 in QThread::exec() (this=this@entry=0x2db2ee0) at thread/qthread.cpp:500
#7  0x00007fa845a84a55 in QQmlThreadPrivate::run() (this=0x2db2ee0) at qml/ftw/qqmlthread.cpp:141
#8  0x00007fa84aff3d78 in QThreadPrivate::start(void*) (arg=0x2db2ee0) at thread/qthread_unix.cpp:341
#9  0x00007fa846926464 in start_thread (arg=0x7fa827fff700) at pthread_create.c:333
#10 0x00007fa84d39897f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:105

Thread 5 (Thread 0x7fa818db6700 (LWP 10447)):
#0  0x00007fa84692c18f in pthread_cond_wait@@GLIBC_2.3.2 () at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007fa84a38d574 in  () at /usr/lib/x86_64-linux-gnu/libQt5Script.so.5
#2  0x00007fa84a38d5b9 in  () at /usr/lib/x86_64-linux-gnu/libQt5Script.so.5
#3  0x00007fa846926464 in start_thread (arg=0x7fa818db6700) at pthread_create.c:333
#4  0x00007fa84d39897f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:105

Thread 4 (Thread 0x7fa81affa700 (LWP 10444)):
#0  0x00007fa84d391253 in select () at ../sysdeps/unix/syscall-template.S:84
#1  0x00007fa84b21cd3f in qt_safe_select(int, fd_set*, fd_set*, fd_set*, timespec const*) (nfds=17, fdread=fdread@entry=0x7fa814000a78, fdwrite=fdwrite@entry=0x7fa814000d08, fdexcept=fdexcept@entry=0x7fa814000f98, orig_timeout=orig_timeout@entry=0x0) at kernel/qcore_unix.cpp:75
#2  0x00007fa84b21e7e4 in QEventDispatcherUNIXPrivate::doSelect(QFlags<QEventLoop::ProcessEventsFlag>, timespec*) (timeout=0x0, exceptfds=0x7fa814000f98, writefds=0x7fa814000d08, readfds=0x7fa814000a78, nfds=<optimized out>, this=0x7fa8140008c0) at kernel/qeventdispatcher_unix.cpp:320
#3  0x00007fa84b21e7e4 in QEventDispatcherUNIXPrivate::doSelect(QFlags<QEventLoop::ProcessEventsFlag>, timespec*) (this=this@entry=0x7fa8140008e0, flags=..., flags@entry=..., timeout=timeout@entry=0x0) at kernel/qeventdispatcher_unix.cpp:196
#4  0x00007fa84b21ecfa in QEventDispatcherUNIX::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) (this=0x7fa8140008c0, flags=...) at kernel/qeventdispatcher_unix.cpp:607
#5  0x00007fa84b1c919a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) (this=this@entry=0x7fa81aff9c60, flags=..., flags@entry=...) at kernel/qeventloop.cpp:204
#6  0x00007fa84afeee53 in QThread::exec() (this=this@entry=0x1a5bc00) at thread/qthread.cpp:500
#7  0x00007fa845a84a55 in QQmlThreadPrivate::run() (this=0x1a5bc00) at qml/ftw/qqmlthread.cpp:141
#8  0x00007fa84aff3d78 in QThreadPrivate::start(void*) (arg=0x1a5bc00) at thread/qthread_unix.cpp:341
#9  0x00007fa846926464 in start_thread (arg=0x7fa81affa700) at pthread_create.c:333
#10 0x00007fa84d39897f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:105

Thread 3 (Thread 0x7fa82eec1700 (LWP 10435)):
#0  0x00007fa84b21e9bd in QEventDispatcherUNIXPrivate::doSelect(QFlags<QEventLoop::ProcessEventsFlag>, timespec*) (this=this@entry=0x7fa8280008e0, flags=..., flags@entry=..., timeout=timeout@entry=0x0) at kernel/qeventdispatcher_unix.cpp:186
#1  0x00007fa84b21ecfa in QEventDispatcherUNIX::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) (this=0x7fa8280008c0, flags=...) at kernel/qeventdispatcher_unix.cpp:607
#2  0x00007fa84b1c919a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) (this=this@entry=0x7fa82eec0c50, flags=..., flags@entry=...) at kernel/qeventloop.cpp:204
#3  0x00007fa84afeee53 in QThread::exec() (this=this@entry=0x7fa84d9fbd60 <(anonymous namespace)::Q_QGS__q_manager::innerFunction()::holder>) at thread/qthread.cpp:500
#4  0x00007fa84d987525 in QDBusConnectionManager::run() (this=0x7fa84d9fbd60 <(anonymous namespace)::Q_QGS__q_manager::innerFunction()::holder>) at qdbusconnection.cpp:189
#5  0x00007fa84aff3d78 in QThreadPrivate::start(void*) (arg=0x7fa84d9fbd60 <(anonymous namespace)::Q_QGS__q_manager::innerFunction()::holder>) at thread/qthread_unix.cpp:341
#6  0x00007fa846926464 in start_thread (arg=0x7fa82eec1700) at pthread_create.c:333
#7  0x00007fa84d39897f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:105

Thread 2 (Thread 0x7fa834d1f700 (LWP 10433)):
#0  0x00007fa84d38f50d in poll () at ../sysdeps/unix/syscall-template.S:84
#1  0x00007fa84c51f340 in  () at /usr/lib/x86_64-linux-gnu/libxcb.so.1
#2  0x00007fa84c520f39 in xcb_wait_for_event () at /usr/lib/x86_64-linux-gnu/libxcb.so.1
#3  0x00007fa8357c4a79 in QXcbEventReader::run() (this=0x11b5890) at qxcbconnection.cpp:1325
#4  0x00007fa84aff3d78 in QThreadPrivate::start(void*) (arg=0x11b5890) at thread/qthread_unix.cpp:341
#5  0x00007fa846926464 in start_thread (arg=0x7fa834d1f700) at pthread_create.c:333
#6  0x00007fa84d39897f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:105

Thread 1 (Thread 0x7fa835a514c0 (LWP 10428)):
[KCrash Handler]
#6  0x00007fa845a6fe50 in QQmlBinding::write(QQmlPropertyData const&, QV4::Value const&, bool, QFlags<QQmlPropertyPrivate::WriteFlag>) (this=0x7fa827000320) at ../../include/QtQml/5.6.1/QtQml/private/../../../../../src/qml/jsruntime/qv4value_p.h:354
#7  0x00007fa845a6fe50 in QQmlBinding::write(QQmlPropertyData const&, QV4::Value const&, bool, QFlags<QQmlPropertyPrivate::WriteFlag>) (this=this@entry=0x3f6a8b0, core=..., result=..., isUndefined=<optimized out>, flags=...) at qml/qqmlbinding.cpp:257
#8  0x00007fa845a70ba7 in QQmlBinding::update(QFlags<QQmlPropertyPrivate::WriteFlag>) (this=0x3f6a8b0, flags=...) at qml/qqmlbinding.cpp:191
#9  0x00007fa845a7a705 in QQmlObjectCreator::finalize(QQmlInstantiationInterrupt&) (this=0x3dbb2b0, interrupt=...) at qml/qqmlobjectcreator.cpp:1193
#10 0x00007fa845a0452e in QQmlComponentPrivate::complete(QQmlEnginePrivate*, QQmlComponentPrivate::ConstructionState*) (enginePriv=0x2fd3c00, state=0x18807d0) at qml/qqmlcomponent.cpp:919
#11 0x00007fa845a045f7 in QQmlComponentPrivate::completeCreate() (this=0x1880730) at qml/qqmlcomponent.cpp:955
#12 0x00007fa845a04460 in QQmlComponent::create(QQmlContext*) (this=0x215db20, context=0x211c690) at qml/qqmlcomponent.cpp:781
#13 0x00007fa82c9d9fd7 in  () at /usr/lib/x86_64-linux-gnu/qt5/plugins/org.kde.kdecoration2/kwin5_aurorae.so
#14 0x00007fa84cfbdd19 in  () at /usr/lib/x86_64-linux-gnu/libkwin.so.5
#15 0x00007fa84cea4339 in KWin::Client::createDecoration(QRect const&) () at /usr/lib/x86_64-linux-gnu/libkwin.so.5
#16 0x00007fa84cea4cfd in KWin::Client::updateDecoration(bool, bool) () at /usr/lib/x86_64-linux-gnu/libkwin.so.5
#17 0x00007fa84cf01656 in KWin::Client::manage(unsigned int, bool) () at /usr/lib/x86_64-linux-gnu/libkwin.so.5
#18 0x00007fa84ce8779f in KWin::Workspace::createClient(unsigned int, bool) () at /usr/lib/x86_64-linux-gnu/libkwin.so.5
#19 0x00007fa84ceeea97 in KWin::Workspace::workspaceEvent(xcb_generic_event_t*) () at /usr/lib/x86_64-linux-gnu/libkwin.so.5
#20 0x00007fa84b1c82df in QAbstractEventDispatcher::filterNativeEvent(QByteArray const&, void*, long*) (this=<optimized out>, eventType=..., message=message@entry=0x7fa83000a380, result=result@entry=0x7fff57fbdc78) at kernel/qabstracteventdispatcher.cpp:460
#21 0x00007fa8357c6455 in QXcbConnection::handleXcbEvent(xcb_generic_event_t*) (this=this@entry=0x11a9a00, event=event@entry=0x7fa83000a380) at qxcbconnection.cpp:1091
#22 0x00007fa8357c73eb in QXcbConnection::processXcbEvents() (this=0x11a9a00) at qxcbconnection.cpp:1723
#23 0x00007fa84b1f9729 in QObject::event(QEvent*) (this=0x11a9a00, e=<optimized out>) at kernel/qobject.cpp:1256
#24 0x00007fa84bb07bec in QApplicationPrivate::notify_helper(QObject*, QEvent*) (this=<optimized out>, receiver=0x11a9a00, e=0x7fa83000d180) at kernel/qapplication.cpp:3804
#25 0x00007fa84bb0d08f in QApplication::notify(QObject*, QEvent*) (this=0x7fff57fbe2c0, receiver=0x11a9a00, e=0x7fa83000d180) at kernel/qapplication.cpp:3561
#26 0x00007fa84b1cb450 in QCoreApplication::notifyInternal2(QObject*, QEvent*) (receiver=0x11a9a00, event=event@entry=0x7fa83000d180) at kernel/qcoreapplication.cpp:1015
#27 0x00007fa84b1cd3cc in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) (event=0x7fa83000d180, receiver=<optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:225
#28 0x00007fa84b1cd3cc in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) (receiver=receiver@entry=0x0, event_type=event_type@entry=0, data=0x118e640) at kernel/qcoreapplication.cpp:1650
#29 0x00007fa84b21ebe2 in QEventDispatcherUNIX::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) (this=0x11de480, flags=...) at kernel/qeventdispatcher_unix.cpp:579
#30 0x00007fa8358390ad in QUnixEventDispatcherQPA::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) (this=<optimized out>, flags=...) at eventdispatchers/qunixeventdispatcher.cpp:62
#31 0x00007fa84b1c919a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) (this=this@entry=0x7fff57fbe1b0, flags=..., flags@entry=...) at kernel/qeventloop.cpp:204
#32 0x00007fa84b1d199c in QCoreApplication::exec() () at kernel/qcoreapplication.cpp:1285
#33 0x00007fa84d657216 in kdemain () at /usr/lib/x86_64-linux-gnu/libkdeinit5_kwin_x11.so
#34 0x00007fa84d2d02b1 in __libc_start_main (main=0x4006a0, argc=3, argv=0x7fff57fbe448, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7fff57fbe438) at ../csu/libc-start.c:291
#35 0x00000000004006d9 in _start ()

Possible duplicates by query: bug 368993, bug 367951, bug 367862, bug 366761, bug 366443.

Reported using DrKonqi
Comment 1 Martin Flöser 2016-10-04 07:18:00 UTC
As a workaround use the breeze decoration.

*** This bug has been marked as a duplicate of bug 361236 ***