Bug 324465 - Kwin crashes on Alt-Tab
Summary: Kwin crashes on Alt-Tab
Status: RESOLVED DUPLICATE of bug 305654
Alias: None
Product: kwin
Classification: Plasma
Component: general (show other bugs)
Version: 4.11.1
Platform: Debian unstable Linux
: NOR crash
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords: drkonqi
: 330857 (view as bug list)
Depends on:
Blocks:
 
Reported: 2013-09-03 16:08 UTC by Dom
Modified: 2014-02-06 16:15 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Lancelot launcher crash (3.32 KB, text/plain)
2013-09-03 20:34 UTC, Dom
Details
Desktop Theme settings crash (17.05 KB, text/plain)
2013-09-03 20:35 UTC, Dom
Details
System Settings crashing again (9.64 KB, text/plain)
2013-09-03 20:50 UTC, Dom
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Dom 2013-09-03 16:08:21 UTC
Application: kwin (4.11.1)
KDE Platform Version: 4.11.1
Qt Version: 4.8.5
Operating System: Linux 3.11-0.slh.1-aptosid-686 i686
Distribution: Debian GNU/Linux unstable (sid)

-- Information about the crash:
- What I was doing when the application crashed:
Trying to switch windows using Alt-Tab crashes Kwin.

Plasma seems to restart immediately (I can see the panel dissapearing and then reappearing again), but it no longer behaves as it's supposed to - for example, I have to double click everything instead of simply selecting (something on Task manager or any other widgets).

The crash can be reproduced every time.

-- Backtrace:
Application: KWin (kwin), signal: Bus error
Using host libthread_db library "/lib/i386-linux-gnu/i686/cmov/libthread_db.so.1".
[Current thread is 1 (Thread 0xb1c64980 (LWP 2510))]

Thread 2 (Thread 0xaf685b40 (LWP 4252)):
#0  0xb76e3424 in __kernel_vsyscall ()
#1  0xb4b857ab in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/i386-linux-gnu/i686/cmov/libpthread.so.0
#2  0xb746020c in pthread_cond_wait () from /lib/i386-linux-gnu/i686/cmov/libc.so.6
#3  0xb6e825c2 in ?? () from /usr/lib/i386-linux-gnu/libQtScript.so.4
#4  0xb6e8260f in ?? () from /usr/lib/i386-linux-gnu/libQtScript.so.4
#5  0xb4b81cf1 in start_thread () from /lib/i386-linux-gnu/i686/cmov/libpthread.so.0
#6  0xb7452fee in clone () from /lib/i386-linux-gnu/i686/cmov/libc.so.6

Thread 1 (Thread 0xb1c64980 (LWP 2510)):
[KCrash Handler]
#7  0xb628d6af in testAndSetOrdered (newValue=1, expectedValue=0, this=0xa7ff0000) at /usr/include/qt4/QtCore/qatomic_i386.h:144
#8  testAndSetAcquire (newValue=1, expectedValue=0, this=0xa7ff0000) at /usr/include/qt4/QtCore/qatomic_i386.h:266
#9  KSharedDataCache::Private::mapSharedMemory (this=this@entry=0x93c8eb8) at ../../kdecore/util/kshareddatacache.cpp:1160
#10 0xb6286d52 in Private (expectedItemSize=0, defaultCacheSize=83886080, name=..., this=0x93c8eb8) at ../../kdecore/util/kshareddatacache.cpp:1005
#11 KSharedDataCache::KSharedDataCache (this=0x99b8c98, cacheName=..., defaultCacheSize=83886080, expectedItemSize=0) at ../../kdecore/util/kshareddatacache.cpp:1430
#12 0xb6b3b176 in KImageCache::KImageCache (this=0x99b8c98, cacheName=..., defaultCacheSize=83886080, expectedItemSize=0) at ../../kdeui/util/kimagecache.cpp:86
#13 0xb678189f in Plasma::ThemePrivate::useCache (this=0x999b9c8) at ../../plasma/theme.cpp:251
#14 0xb6782371 in Plasma::Theme::findInCache (this=this@entry=0x99a20e8, key=..., pix=...) at ../../plasma/theme.cpp:974
#15 0xb670bb84 in Plasma::FrameSvgPrivate::generateBackground (this=this@entry=0x988c280, frame=0x99d3110) at ../../plasma/framesvg.cpp:671
#16 0xb670cf49 in Plasma::FrameSvgPrivate::alphaMask (this=0x988c280) at ../../plasma/framesvg.cpp:602
#17 0xb670d81f in Plasma::FrameSvg::mask (this=0x988c8b0) at ../../plasma/framesvg.cpp:459
#18 0xb7662259 in KWin::TabBox::DeclarativeView::resizeEvent (this=0x987a4b8, event=0xbf9ff4e0) at ../../kwin/tabbox/declarative.cpp:210
#19 0xb53e6727 in QWidget::event (this=this@entry=0x987a4b8, event=event@entry=0xbf9ff4e0) at kernel/qwidget.cpp:8541
#20 0xb57ed49c in QFrame::event (this=this@entry=0x987a4b8, e=e@entry=0xbf9ff4e0) at widgets/qframe.cpp:557
#21 0xb587c678 in QAbstractScrollArea::viewportEvent (this=this@entry=0x987a4b8, e=e@entry=0xbf9ff4e0) at widgets/qabstractscrollarea.cpp:1043
#22 0xb5a34f67 in QGraphicsView::viewportEvent (this=<optimized out>, event=<optimized out>) at graphicsview/qgraphicsview.cpp:2866
#23 0xb587c8f6 in viewportEvent (event=0xbf9ff4e0, this=<optimized out>) at widgets/qabstractscrollarea_p.h:100
#24 QAbstractScrollAreaFilter::eventFilter (this=0x94f6e98, o=0x9773c78, e=0xbf9ff4e0) at widgets/qabstractscrollarea_p.h:116
#25 0xb5e7ef7e in QCoreApplicationPrivate::sendThroughObjectEventFilters (this=this@entry=0x9373fb0, receiver=receiver@entry=0x9773c78, event=event@entry=0xbf9ff4e0) at kernel/qcoreapplication.cpp:1059
#26 0xb538c861 in QApplicationPrivate::notify_helper (this=0x9373fb0, receiver=0x9773c78, e=0xbf9ff4e0) at kernel/qapplication.cpp:4563
#27 0xb5393383 in QApplication::notify (this=0xbfa008b8, receiver=receiver@entry=0x9773c78, e=e@entry=0xbf9ff4e0) at kernel/qapplication.cpp:4353
#28 0xb6aceea4 in KApplication::notify (this=this@entry=0xbfa008b8, receiver=receiver@entry=0x9773c78, event=event@entry=0xbf9ff4e0) at ../../kdeui/kernel/kapplication.cpp:311
#29 0xb75a73d9 in KWin::Application::notify (this=0xbfa008b8, o=0x9773c78, e=0xbf9ff4e0) at ../../kwin/main.cpp:423
#30 0xb5e7ee0a in QCoreApplication::notifyInternal (this=0xbfa008b8, receiver=receiver@entry=0x9773c78, event=0xbf9ff4e0) at kernel/qcoreapplication.cpp:949
#31 0xb54336c0 in sendEvent (event=0xbf9ff4e0, receiver=0x9773c78) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:231
#32 QWidgetPrivate::setGeometry_sys (this=this@entry=0x963f258, x=0, y=0, w=148, h=92, isMove=isMove@entry=true) at kernel/qwidget_x11.cpp:2667
#33 0xb53de010 in QWidget::setGeometry (this=0x9773c78, r=...) at kernel/qwidget.cpp:6974
#34 0xb587ad33 in QAbstractScrollAreaPrivate::layoutChildren (this=this@entry=0x96efb20) at widgets/qabstractscrollarea.cpp:480
#35 0xb587c588 in QAbstractScrollArea::event (this=this@entry=0x987a4b8, e=e@entry=0xbf9ffa60) at widgets/qabstractscrollarea.cpp:924
#36 0xb5a34d8c in QGraphicsView::event (this=0x987a4b8, event=0xbf9ffa60) at graphicsview/qgraphicsview.cpp:2740
#37 0xb538c884 in QApplicationPrivate::notify_helper (this=0x9373fb0, receiver=0x987a4b8, e=0xbf9ffa60) at kernel/qapplication.cpp:4567
#38 0xb5393383 in QApplication::notify (this=0xbfa008b8, receiver=receiver@entry=0x987a4b8, e=e@entry=0xbf9ffa60) at kernel/qapplication.cpp:4353
#39 0xb6aceea4 in KApplication::notify (this=this@entry=0xbfa008b8, receiver=receiver@entry=0x987a4b8, event=event@entry=0xbf9ffa60) at ../../kdeui/kernel/kapplication.cpp:311
#40 0xb75a73d9 in KWin::Application::notify (this=0xbfa008b8, o=0x987a4b8, e=0xbf9ffa60) at ../../kwin/main.cpp:423
#41 0xb5e7ee0a in QCoreApplication::notifyInternal (this=0xbfa008b8, receiver=receiver@entry=0x987a4b8, event=0xbf9ffa60) at kernel/qcoreapplication.cpp:949
#42 0xb54336c0 in sendEvent (event=0xbf9ffa60, receiver=0x987a4b8) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:231
#43 QWidgetPrivate::setGeometry_sys (this=this@entry=0x96efb20, x=646, y=404, w=148, h=92, isMove=isMove@entry=true) at kernel/qwidget_x11.cpp:2667
#44 0xb53de010 in QWidget::setGeometry (this=this@entry=0x987a4b8, r=...) at kernel/qwidget.cpp:6974
#45 0xb76608da in setGeometry (ah=<optimized out>, aw=148, ay=<optimized out>, ax=148, this=0x987a4b8) at /usr/include/qt4/QtGui/qwidget.h:1018
#46 KWin::TabBox::DeclarativeView::slotUpdateGeometry (this=this@entry=0x987a4b8) at ../../kwin/tabbox/declarative.cpp:300
#47 0xb766337d in KWin::TabBox::DeclarativeView::showEvent (this=0x987a4b8, event=0xbfa00044) at ../../kwin/tabbox/declarative.cpp:188
#48 0xb53e6708 in QWidget::event (this=this@entry=0x987a4b8, event=event@entry=0xbfa00044) at kernel/qwidget.cpp:8594
#49 0xb57ed49c in QFrame::event (this=this@entry=0x987a4b8, e=0xbfa00044) at widgets/qframe.cpp:557
#50 0xb587c53f in QAbstractScrollArea::event (this=this@entry=0x987a4b8, e=e@entry=0xbfa00044) at widgets/qabstractscrollarea.cpp:996
#51 0xb5a34d8c in QGraphicsView::event (this=0x987a4b8, event=0xbfa00044) at graphicsview/qgraphicsview.cpp:2740
#52 0xb538c884 in QApplicationPrivate::notify_helper (this=0x9373fb0, receiver=0x987a4b8, e=0xbfa00044) at kernel/qapplication.cpp:4567
#53 0xb5393383 in QApplication::notify (this=0xbfa008b8, receiver=receiver@entry=0x987a4b8, e=e@entry=0xbfa00044) at kernel/qapplication.cpp:4353
#54 0xb6aceea4 in KApplication::notify (this=this@entry=0xbfa008b8, receiver=receiver@entry=0x987a4b8, event=event@entry=0xbfa00044) at ../../kdeui/kernel/kapplication.cpp:311
#55 0xb75a73d9 in KWin::Application::notify (this=0xbfa008b8, o=0x987a4b8, e=0xbfa00044) at ../../kwin/main.cpp:423
#56 0xb5e7ee0a in QCoreApplication::notifyInternal (this=0xbfa008b8, receiver=receiver@entry=0x987a4b8, event=event@entry=0xbfa00044) at kernel/qcoreapplication.cpp:949
#57 0xb53e3942 in sendEvent (event=0xbfa00044, receiver=0x987a4b8) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:231
#58 QWidgetPrivate::show_helper (this=<optimized out>) at kernel/qwidget.cpp:7556
#59 0xb53e58dd in QWidget::setVisible (this=0x987a4b8, visible=true) at kernel/qwidget.cpp:7778
#60 0xb7666f68 in show (this=0x987a4b8) at /usr/include/qt4/QtGui/qwidget.h:497
#61 KWin::TabBox::TabBoxHandler::show (this=0x94e85e8) at ../../kwin/tabbox/tabboxhandler.cpp:234
#62 0xb7658085 in KWin::TabBox::TabBox::show (this=0x94ed8a8) at ../../kwin/tabbox/tabbox.cpp:691
#63 0xb765dc98 in KWin::TabBox::TabBox::qt_static_metacall (_o=<optimized out>, _id=<optimized out>, _a=0xbfa001f8, _c=<optimized out>) at ./tabbox.moc:140
#64 0xb5e93f25 in QMetaObject::activate (sender=sender@entry=0x94ed8c0, m=m@entry=0xb5fea518 <QTimer::staticMetaObject>, local_signal_index=local_signal_index@entry=0, argv=argv@entry=0x0) at kernel/qobject.cpp:3547
#65 0xb5ee45e5 in QTimer::timeout (this=this@entry=0x94ed8c0) at .moc/release-shared/moc_qtimer.cpp:147
#66 0xb5e9d7e6 in QTimer::timerEvent (this=0x94ed8c0, e=0xbfa00590) at kernel/qtimer.cpp:280
#67 0xb5e983ec in QObject::event (this=0x94ed8c0, e=0xbfa00590) at kernel/qobject.cpp:1156
#68 0xb538c884 in QApplicationPrivate::notify_helper (this=0x9373fb0, receiver=0x94ed8c0, e=0xbfa00590) at kernel/qapplication.cpp:4567
#69 0xb5393383 in QApplication::notify (this=0xbfa008b8, receiver=receiver@entry=0x94ed8c0, e=e@entry=0xbfa00590) at kernel/qapplication.cpp:4353
#70 0xb6aceea4 in KApplication::notify (this=this@entry=0xbfa008b8, receiver=receiver@entry=0x94ed8c0, event=event@entry=0xbfa00590) at ../../kdeui/kernel/kapplication.cpp:311
#71 0xb75a73d9 in KWin::Application::notify (this=0xbfa008b8, o=0x94ed8c0, e=0xbfa00590) at ../../kwin/main.cpp:423
#72 0xb5e7ee0a in QCoreApplication::notifyInternal (this=0xbfa008b8, receiver=0x94ed8c0, event=event@entry=0xbfa00590) at kernel/qcoreapplication.cpp:949
#73 0xb5eb16db in sendEvent (event=0xbfa00590, receiver=<optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:231
#74 QTimerInfoList::activateTimers (this=0x937472c) at kernel/qeventdispatcher_unix.cpp:621
#75 0xb5eb1755 in QEventDispatcherUNIX::activateTimers (this=<optimized out>, this@entry=0x931de90) at kernel/qeventdispatcher_unix.cpp:878
#76 0xb5eb1fdc in QEventDispatcherUNIX::processEvents (this=this@entry=0x931de90, flags=...) at kernel/qeventdispatcher_unix.cpp:940
#77 0xb543e82b in QEventDispatcherX11::processEvents (this=0x931de90, flags=...) at kernel/qeventdispatcher_x11.cpp:152
#78 0xb5e7d853 in QEventLoop::processEvents (this=this@entry=0xbfa007b8, flags=...) at kernel/qeventloop.cpp:149
#79 0xb5e7db79 in QEventLoop::exec (this=this@entry=0xbfa007b8, flags=...) at kernel/qeventloop.cpp:204
#80 0xb5e837ee in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1221
#81 0xb538ad14 in QApplication::exec () at kernel/qapplication.cpp:3828
#82 0xb75a872e in kdemain (argc=3, argv=0xbfa009a4) at ../../kwin/main.cpp:589
#83 0x0804856b in main (argc=3, argv=0xbfa009a4) at kwin_dummy.cpp:3

Possible duplicates by query: bug 305654.

Reported using DrKonqi
Comment 1 Thomas Lübking 2013-09-03 18:47:45 UTC
The crash is in KSharedDataCache, but this
> Plasma seems to restart immediately (I can see the panel dissapearing and then reappearing again)
Sounds as if not only kwin but also plasma-desktop crashed and that sounds less like a random segfault in the caching system.

Overmore, this:
> I have to double click everything instead of simply selecting (something on Task manager or any other widgets).
Is not only plasma-desktop (stressing the assumption above), but really weird.
I assume kwin restarted as well (so you could move windows around etc.)?
-> Do you run this in a virtual machine or with a parallel login (ie. you logged in on VT7 and then started a new session on VT8 and logged in as the same user or something like that)?

*** This bug has been marked as a duplicate of bug 305654 ***
Comment 2 Dom 2013-09-03 20:33:04 UTC
(In reply to comment #1)
> Overmore, this:
> > I have to double click everything instead of simply selecting (something on Task manager or any other widgets).
> Is not only plasma-desktop (stressing the assumption above), but really weird.
Yeah, that was weird, so I've tried clicking on things again (before and after inducing the crash). Turns out the problem I have with the Task Manager is present even before inducing the crash. 

And I have no problems with the System Tray and most of the other widgets (what I mistook for a widget unrelated to Task Manager were actually parts of Task Manager, launchers for apps that show only when these apps aren't running).

So I'm sorry for not being thorough and for the initial confusion.

However, there's another widget that acts weird: Lancelot launcher. As I click on it, it crashes (even without kwin crashing first so it may not be related to this bug but I will attach the backtrace here first), and then if I click on it again, it simply doesn't work. The button animation is there as I click it, but no drop down comes out.

> I assume kwin restarted as well (so you could move windows around etc.)?
Yes, I could move windows, just trying to use Alt-Tab again would result in the same kind of crash.

> -> Do you run this in a virtual machine or with a parallel login (ie. you logged in on VT7 and then started a new 
> session on VT8 and logged in as the same user or something like that)?
Not a virtual machine and just one graphical/KDE login.

Also, in the meantime, I've tried exploring System Settings a bit and found out that I can't open Desktop Theme settings. System Settings crashes (will attach the bugtrace).

But playing with System Settings did bring results. I tried changing the Task Switcher and it's options. At first it didn't work (I would press Apply and not close System Settings, and Kwin would still crash on Alt-Tab), but out of a sudden, after some time and one suspend2RAM, the Task Switcher seems to work again. :| Will report in a few days if this was just a false alarm or if it somehow did fix itself.

P.S. I always try not to purge ~/.kde or even just Plasma settings as I don't want to rearrange the desktop the way I like it every time an update comes, but I've been sticking to the current settings maybe for far to long and maybe all my troubles would go away if I could start from a fresh KDE desktop.
Comment 3 Dom 2013-09-03 20:34:01 UTC
Created attachment 82137 [details]
Lancelot launcher crash
Comment 4 Dom 2013-09-03 20:35:01 UTC
Created attachment 82138 [details]
Desktop Theme settings crash
Comment 5 Dom 2013-09-03 20:50:27 UTC
Created attachment 82139 [details]
System Settings crashing again

I've have crashed System Settings now just by selecting a different Task Switcher (Compact). I didn't even have to apply the settings.

I discovered I got my /var partition filled up, and after cleaning it, I can now select different Task Switchers without crashing System Settings.

However, going to Desktop Theme settings still crashes System Settings (attachment #82138 [details]).
Comment 6 Thomas Lübking 2013-09-03 20:57:57 UTC
It's always the same crash.
- Do you use bleachbit?
- Is /var/tmp/kdecache-`whoami` on a filesystem with limited size (tmpfs)?

If neither does moving /var/tmp/kdecache-`whoami` aside (do please not delete it!), logging out and back in "resolve" this issue?
Comment 7 Thomas Lübking 2014-02-06 16:15:03 UTC
*** Bug 330857 has been marked as a duplicate of this bug. ***