Bug 348572

Summary: Crash on Window Manager Settings invoked from window bar
Product: [I don't know] kde Reporter: Frans Oilinki <moilinki>
Component: generalAssignee: Unassigned bugs mailing-list <unassigned-bugs>
Status: RESOLVED DUPLICATE    
Severity: crash CC: greg, olar.bogdan.frm
Priority: NOR Keywords: drkonqi
Version: unspecified   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Frans Oilinki 2015-06-02 07:45:04 UTC
Application: kdeinit5 (5.2.2)

Qt Version: 5.4.1
Operating System: Linux 3.19.0-18-generic x86_64
Distribution: Ubuntu 15.04

-- Information about the crash:
- What I was doing when the application crashed:
   Right click on menu bar --> More Actions --> Window Manager Settings...
- Unusual behavior I noticed:
   When I tried to change the window decoration (themes), the windows were stripped of all the decorations (window bar and borders missing, no way to control with window manager which window is on top and have focus - maybe window manager stopped running). I changed to Plastik theme (maybe downloaded it using Window Decorations KDE Control Module - I could at the time not see any choices, only Get New Decorations button - It was not immediately obvious that I should resize the window for the currently installed decoration choices to be visible). The only way to get the window decorations and controls working was to log out and log in again.

The crash can be reproduced every time.

-- Backtrace:
Application: KDE Control Module (kdeinit5), signal: Segmentation fault
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[Current thread is 1 (Thread 0x7f667c20b780 (LWP 22833))]

Thread 5 (Thread 0x7f66676bd700 (LWP 22834)):
#0  0x00007f667a91b8dd in poll () at ../sysdeps/unix/syscall-template.S:81
#1  0x00007f6678e12b72 in ?? () from /usr/lib/x86_64-linux-gnu/libxcb.so.1
#2  0x00007f6678e1464f in xcb_wait_for_event () from /usr/lib/x86_64-linux-gnu/libxcb.so.1
#3  0x00007f666b141099 in QXcbEventReader::run (this=0xe0f4a0) at qxcbconnection.cpp:1105
#4  0x00007f667ac8db0e in QThreadPrivate::start (arg=0xe0f4a0) at thread/qthread_unix.cpp:337
#5  0x00007f66785666aa in start_thread (arg=0x7f66676bd700) at pthread_create.c:333
#6  0x00007f667a926eed in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 4 (Thread 0x7f665d15f700 (LWP 22835)):
#0  0x00007f667a91b8dd in poll () at ../sysdeps/unix/syscall-template.S:81
#1  0x00007f6677b09ebc in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f6677b09fcc in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f667af24c6c in QEventDispatcherGlib::processEvents (this=0x7f66580008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:418
#4  0x00007f667aec93e2 in QEventLoop::exec (this=this@entry=0x7f665d15ee20, flags=..., flags@entry=...) at kernel/qeventloop.cpp:204
#5  0x00007f667ac88b44 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:503
#6  0x00007f666baa7f65 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Qml.so.5
#7  0x00007f667ac8db0e in QThreadPrivate::start (arg=0x1200cb0) at thread/qthread_unix.cpp:337
#8  0x00007f66785666aa in start_thread (arg=0x7f665d15f700) at pthread_create.c:333
#9  0x00007f667a926eed in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 3 (Thread 0x7f6655054700 (LWP 22836)):
#0  0x00007f667ac859ca in testAndSetRelaxed<QMutexData*> (currentValue=<synthetic pointer>, newValue=0x1, expectedValue=0x0, _q_value=@0x1c03668: 0x1) at ../../include/QtCore/../../src/corelib/arch/qatomic_x86.h:259
#1  testAndSetAcquire<QMutexData*, QMutexData*> (currentValue=<synthetic pointer>, newValue=0x1, expectedValue=0x0, _q_value=@0x1c03668: 0x1) at ../../include/QtCore/../../src/corelib/thread/qgenericatomic.h:166
#2  testAndSetAcquire (currentValue=<synthetic pointer>, newValue=0x1, expectedValue=0x0, this=0x1c03668, this@entry=0x1) at ../../include/QtCore/../../src/corelib/thread/qbasicatomic.h:270
#3  fastTryLock (current=<synthetic pointer>, this=0x1c03668, this@entry=0x1) at thread/qmutex.h:82
#4  QMutex::lock (this=this@entry=0x1c03668) at thread/qmutex.cpp:212
#5  0x00007f667af241db in QMutexLocker (m=0x1c03668, this=<synthetic pointer>) at ../../include/QtCore/../../src/corelib/thread/qmutex.h:128
#6  canWaitLocked (this=0x1c03640) at ../../include/QtCore/5.4.1/QtCore/private/../../../../../src/corelib/thread/qthread_p.h:243
#7  postEventSourcePrepare (s=0x7f66500012d0, timeout=0x7f6655053c54) at kernel/qeventdispatcher_glib.cpp:254
#8  0x00007f6677b093fd in g_main_context_prepare () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#9  0x00007f6677b09de8 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#10 0x00007f6677b09fcc in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#11 0x00007f667af24c6c in QEventDispatcherGlib::processEvents (this=0x7f66500008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:418
#12 0x00007f667aec93e2 in QEventLoop::exec (this=this@entry=0x7f6655053e20, flags=..., flags@entry=...) at kernel/qeventloop.cpp:204
#13 0x00007f667ac88b44 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:503
#14 0x00007f666baa7f65 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Qml.so.5
#15 0x00007f667ac8db0e in QThreadPrivate::start (arg=0x1c03500) at thread/qthread_unix.cpp:337
#16 0x00007f66785666aa in start_thread (arg=0x7f6655054700) at pthread_create.c:333
#17 0x00007f667a926eed in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 2 (Thread 0x7f664e3c4700 (LWP 22837)):
#0  0x00007f667a91b8dd in poll () at ../sysdeps/unix/syscall-template.S:81
#1  0x00007f6677b09ebc in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f6677b09fcc in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f667af24c6c in QEventDispatcherGlib::processEvents (this=0x7f66480008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:418
#4  0x00007f667aec93e2 in QEventLoop::exec (this=this@entry=0x7f664e3c3e20, flags=..., flags@entry=...) at kernel/qeventloop.cpp:204
#5  0x00007f667ac88b44 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:503
#6  0x00007f666baa7f65 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Qml.so.5
#7  0x00007f667ac8db0e in QThreadPrivate::start (arg=0x1fd5860) at thread/qthread_unix.cpp:337
#8  0x00007f66785666aa in start_thread (arg=0x7f664e3c4700) at pthread_create.c:333
#9  0x00007f667a926eed in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 1 (Thread 0x7f667c20b780 (LWP 22833)):
[KCrash Handler]
#6  0x00007f66656396b7 in KDecoration2::Decoration::update(QRect const&) () from /usr/lib/x86_64-linux-gnu/libkdecorations2.so.5
#7  0x00007f666563975b in KDecoration2::Decoration::update() () from /usr/lib/x86_64-linux-gnu/libkdecorations2.so.5
#8  0x00007f66562f2370 in Breeze::Decoration::setOpacity (this=this@entry=0x1f69e80, value=<optimized out>) at ../../kdecoration/breezedecoration.cpp:92
#9  0x00007f66563127a8 in Breeze::Decoration::qt_metacall (this=0x1f69e80, _c=QMetaObject::WriteProperty, _id=0, _a=0x7fff5d86e980) at moc_breezedecoration.cpp:146
#10 0x00007f667ac6e5ca in updateProperty (newValue=..., this=0x1f96030) at animation/qpropertyanimation.cpp:135
#11 QPropertyAnimation::updateCurrentValue (this=<optimized out>, value=...) at animation/qpropertyanimation.cpp:242
#12 0x00007f667ac69f48 in QVariantAnimationPrivate::setCurrentValueForProgress (this=this@entry=0x1f96030, progress=progress@entry=0.82791111111111104) at animation/qvariantanimation.cpp:290
#13 0x00007f667ac6ad1b in recalculateCurrentInterval (force=false, this=0x1f96030) at animation/qvariantanimation.cpp:275
#14 QVariantAnimation::updateCurrentTime (this=<optimized out>) at animation/qvariantanimation.cpp:693
#15 0x00007f667ac66baf in QAbstractAnimation::setCurrentTime (this=0x1f96b30, msecs=106) at animation/qabstractanimation.cpp:1321
#16 0x00007f667ac66e96 in updateAnimationsTime (delta=44, this=0x1f6f530) at animation/qabstractanimation.cpp:606
#17 QUnifiedTimer::updateAnimationTimers (this=0x1e3ed20) at animation/qabstractanimation.cpp:323
#18 0x00007f666bae2a5e in QAbstractAnimationJob::setState(QAbstractAnimationJob::State) () from /usr/lib/x86_64-linux-gnu/libQt5Qml.so.5
#19 0x00007f666b65a6da in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Quick.so.5
#20 0x00007f666b65df6b in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Quick.so.5
#21 0x00007f666b5825c8 in QQuickWindowPrivate::polishItems() () from /usr/lib/x86_64-linux-gnu/libQt5Quick.so.5
#22 0x00007f666b54fef3 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Quick.so.5
#23 0x00007f666b551016 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Quick.so.5
#24 0x00007f667bbe67b5 in QWindow::event (this=0x1005f60, ev=<optimized out>) at kernel/qwindow.cpp:2051
#25 0x00007f666b58add3 in QQuickWindow::event(QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Quick.so.5
#26 0x00007f6679389b2c in QApplicationPrivate::notify_helper (this=0xdfac30, receiver=0x1005f60, e=0x7fff5d86f180) at kernel/qapplication.cpp:3720
#27 0x00007f667938f000 in QApplication::notify (this=0x7fff5d86f5e0, receiver=0x1005f60, e=0x7fff5d86f180) at kernel/qapplication.cpp:3503
#28 0x00007f667aecbc2b in QCoreApplication::notifyInternal (this=0x7fff5d86f5e0, receiver=receiver@entry=0x1005f60, event=event@entry=0x7fff5d86f180) at kernel/qcoreapplication.cpp:935
#29 0x00007f667bbdee86 in sendSpontaneousEvent (event=0x7fff5d86f180, receiver=0x1005f60) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:231
#30 QGuiApplicationPrivate::processExposeEvent (e=0x19bec70) at kernel/qguiapplication.cpp:2613
#31 0x00007f667bbdfbbd in QGuiApplicationPrivate::processWindowSystemEvent (e=e@entry=0x19bec70) at kernel/qguiapplication.cpp:1638
#32 0x00007f667bbc434f in QWindowSystemInterface::sendWindowSystemEvents (flags=...) at kernel/qwindowsysteminterface.cpp:572
#33 0x00007f666b16b590 in userEventSourceDispatch (source=<optimized out>) at eventdispatchers/qeventdispatcher_glib.cpp:70
#34 0x00007f6677b09c3d in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#35 0x00007f6677b09f20 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#36 0x00007f6677b09fcc in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#37 0x00007f667af24c57 in QEventDispatcherGlib::processEvents (this=0xe2f060, flags=...) at kernel/qeventdispatcher_glib.cpp:418
#38 0x00007f667aec93e2 in QEventLoop::exec (this=this@entry=0x7fff5d86f470, flags=..., flags@entry=...) at kernel/qeventloop.cpp:204
#39 0x00007f667958b4b5 in QDialog::exec (this=0xed9950) at dialogs/qdialog.cpp:541
#40 0x00007f666ae809cb in kdemain (_argc=<optimized out>, _argv=<optimized out>) at ../../kcmshell/main.cpp:307
#41 0x0000000000408716 in launch (argc=argc@entry=14, _name=_name@entry=0xde4a08 "kcmshell5", args=<optimized out>, args@entry=0xde4a12 "--icon", cwd=cwd@entry=0x0, envc=envc@entry=0, envs=<optimized out>, envs@entry=0xde4ac6 "", reset_env=false, tty=0x0, avoid_loops=false, startup_id_str=0x40b710 "0") at ../../../src/kdeinit/kinit.cpp:741
#42 0x000000000040a132 in handle_launcher_request (sock=8, who=who@entry=0x40b6c6 "launcher") at ../../../src/kdeinit/kinit.cpp:1180
#43 0x000000000040a6ee in handle_requests (waitForPid=waitForPid@entry=0) at ../../../src/kdeinit/kinit.cpp:1369
#44 0x000000000040501b in main (argc=5, argv=<optimized out>) at ../../../src/kdeinit/kinit.cpp:1860

Reported using DrKonqi
Comment 1 Frans Oilinki 2015-06-02 10:17:07 UTC
Sorry for inaccurate terminology (falling asleep), please do replacement:
  s/Window Bar/Title Bar/  # In title of the bug
  s/Menu Bar/Title Bar/      # inside description of the bug
Comment 2 Bogdan Olar 2015-06-02 19:02:42 UTC
Same problem here; Kubuntu 15.04, 3.19.0-18-generic, backtrace:

Application: kdeinit5 (kdeinit5), signal: Segmentation fault
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[Current thread is 1 (Thread 0x7fecbc9b2780 (LWP 10286))]

Thread 2 (Thread 0x7feca8cbe700 (LWP 10287)):
#0  0x00007fecbb0b08dd in poll () at ../sysdeps/unix/syscall-template.S:81
#1  0x00007fecb95a7b72 in poll (__timeout=-1, __nfds=1, __fds=0x7feca8cbdd40) at /usr/include/x86_64-linux-gnu/bits/poll2.h:46
#2  _xcb_conn_wait (c=c@entry=0x12056c0, cond=cond@entry=0x1205700, vector=vector@entry=0x0, count=count@entry=0x0) at ../../src/xcb_conn.c:447
#3  0x00007fecb95a964f in xcb_wait_for_event (c=0x12056c0) at ../../src/xcb_in.c:622
#4  0x00007fecab916099 in QXcbEventReader::run (this=0x120f700) at qxcbconnection.cpp:1105
#5  0x00007fecbb422b0e in QThreadPrivate::start (arg=0x120f700) at thread/qthread_unix.cpp:337
#6  0x00007fecb8cfb6aa in start_thread (arg=0x7feca8cbe700) at pthread_create.c:333
#7  0x00007fecbb0bbeed in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 1 (Thread 0x7fecbc9b2780 (LWP 10286)):
[KCrash Handler]
#6  xcb_send_request (c=0x0, flags=flags@entry=1, vector=vector@entry=0x7ffd94765240, req=req@entry=0x7fecb95b52a0 <xcb_req>) at ../../src/xcb_out.c:160
#7  0x00007fecb95ad269 in xcb_get_property (c=<optimized out>, _delete=<optimized out>, window=<optimized out>, property=<optimized out>, type=<optimized out>, long_offset=<optimized out>, long_length=100000) at xproto.c:3901
#8  0x00007fecbc070470 in NETWinInfo::update (this=0x7ffd947657a0, dirtyProperties=..., dirtyProperties2=...) at ../../src/netwm.cpp:4161
#9  0x00007fecab640443 in KWin::ClientMachine::resolve (this=0x7ffd94765940, window=119537672, clientLeader=0) at ../../../kcmkwin/kwinrules/../../client_machine.cpp:179
#10 0x00007fecab61944f in findRule (whole_app=true, wid=119537672, rules=...) at ../../../kcmkwin/kwinrules/main.cpp:77
#11 edit (whole_app=true, wid=119537672) at ../../../kcmkwin/kwinrules/main.cpp:212
#12 kdemain (argc=4, argv=<optimized out>) at ../../../kcmkwin/kwinrules/main.cpp:266
#13 0x0000000000408716 in launch (argc=argc@entry=4, _name=_name@entry=0x11e59a8 "kwin_rules_dialog", args=<optimized out>, args@entry=0x11e59ba "--wid", cwd=cwd@entry=0x0, envc=envc@entry=0, envs=<optimized out>, envs@entry=0x11e59de "", reset_env=false, tty=0x0, avoid_loops=false, startup_id_str=0x40b710 "0") at ../../../src/kdeinit/kinit.cpp:741
#14 0x000000000040a132 in handle_launcher_request (sock=8, who=who@entry=0x40b6c6 "launcher") at ../../../src/kdeinit/kinit.cpp:1180
#15 0x000000000040a6ee in handle_requests (waitForPid=waitForPid@entry=0) at ../../../src/kdeinit/kinit.cpp:1369
#16 0x000000000040501b in main (argc=5, argv=<optimized out>) at ../../../src/kdeinit/kinit.cpp:1860
Comment 3 Christoph Feck 2015-06-07 09:56:19 UTC
Comment #2 is completely unrelated, please report separately.

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