Bug 224593

Summary: Crash when clicking arrow in the Widget Explorer (focus-follow-mouse related) [QGraphicsItem::pos, AppletsListWidget::itemPosition, AppletsListWidget::manageArrows, AppletsListWidget::eventFilter]
Product: [Unmaintained] plasma4 Reporter: David Rankin <drankinatty>
Component: widget explorerAssignee: Plasma Bugs List <plasma-bugs>
Status: RESOLVED FIXED    
Severity: crash CC: anaceciliamb, andresbajotierra, aseigo, asraniel, bou.gui, chris.sergent, d.slipetskiy, extravagant, gallatin, hunkirdowne, jamartin, jejeflacucho, kenneth.j.kruger, kontakt, kruz, mail, masteram, nono_cerchio, patrick.schwalm, reezer, smart031279, sparxz, troptor, yehielb
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed In: 4.5.0
Sentry Crash Report:

Description David Rankin 2010-01-28 10:19:21 UTC
Application: plasma-desktop (0.3)
KDE Platform Version: 4.3.95 (KDE 4.3.95 (KDE 4.4 RC2)) "release 214"
Qt Version: 4.6.1
Operating System: Linux 2.6.25.20-0.5-pae i686
Distribution (Platform): openSUSE RPMs

-- Information about the crash:
I was attempting to add the System Monitor CPU and opened the new Widget Bar by clicking add widgets. I needed the CPU monitor which is to the right so I clicked on the right arrow to scroll to it. All of the widgets disappeared. I then tried the left button and right button again, but the widgets were still nowhere to be found. So, I clicked on the category scroll to go to system information to get the widget that way. After clicking on the category scroll, all hell broke loose, plasma crashed, restarted and dr. konqi appeared. That's about it :p

 -- Backtrace:
Application: Plasma Workspace (kdeinit4), signal: Segmentation fault
[KCrash Handler]
#6  0xb6d32249 in QGraphicsItem::pos() const () from /usr/lib/libQtGui.so.4
#7  0xb3d6e4ba in AppletsListWidget::itemPosition(int) () from /usr/lib/libplasmagenericshell.so.4
#8  0xb3d71352 in AppletsListWidget::manageArrows() () from /usr/lib/libplasmagenericshell.so.4
#9  0xb3d71636 in AppletsListWidget::eventFilter(QObject*, QEvent*) () from /usr/lib/libplasmagenericshell.so.4
#10 0xb71f0d4a in QCoreApplicationPrivate::sendThroughObjectEventFilters(QObject*, QEvent*) () from /usr/lib/libQtCore.so.4
#11 0xb66d4157 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4
#12 0xb66db936 in QApplication::notify(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4
#13 0xb74f7a6d in KApplication::notify(QObject*, QEvent*) () from /usr/lib/libkdeui.so.5
#14 0xb71f1a5b in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib/libQtCore.so.4
#15 0xb6da3b6c in QGraphicsWidget::setGeometry(QRectF const&) () from /usr/lib/libQtGui.so.4
#16 0xb6da0f11 in QGraphicsWidget::resize(QSizeF const&) () from /usr/lib/libQtGui.so.4
#17 0xb6da13dd in QGraphicsWidget::adjustSize() () from /usr/lib/libQtGui.so.4
#18 0xb3d7273b in AppletsListWidget::updateList() () from /usr/lib/libplasmagenericshell.so.4
#19 0xb3d97463 in AppletsListWidget::qt_metacall(QMetaObject::Call, int, void**) () from /usr/lib/libplasmagenericshell.so.4
#20 0xb71f6f05 in QMetaObject::metacall(QObject*, QMetaObject::Call, int, void**) () from /usr/lib/libQtCore.so.4
#21 0xb7205dbb in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib/libQtCore.so.4
#22 0xb3d96177 in KCategorizedItemsViewModels::DefaultItemFilterProxyModel::filterChanged() () from /usr/lib/libplasmagenericshell.so.4
#23 0xb3d6fc71 in KCategorizedItemsViewModels::DefaultItemFilterProxyModel::setFilter(QPair<QString, QVariant> const&) () from /usr/lib/libplasmagenericshell.so.4
#24 0xb3d90234 in AppletsListWidget::timerEvent(QTimerEvent*) () from /usr/lib/libplasmagenericshell.so.4
#25 0xb7202ae4 in QObject::event(QEvent*) () from /usr/lib/libQtCore.so.4
#26 0xb6da0b0f in QGraphicsWidget::event(QEvent*) () from /usr/lib/libQtGui.so.4
#27 0xb66d417c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4
#28 0xb66db936 in QApplication::notify(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4
#29 0xb74f7a6d in KApplication::notify(QObject*, QEvent*) () from /usr/lib/libkdeui.so.5
#30 0xb71f1a5b in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib/libQtCore.so.4
#31 0xb7222376 in ?? () from /usr/lib/libQtCore.so.4
#32 0xb721e874 in ?? () from /usr/lib/libQtCore.so.4
#33 0xb60272f9 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#34 0xb602a87b in ?? () from /usr/lib/libglib-2.0.so.0
#35 0xb602a9f8 in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#36 0xb721e571 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#37 0xb67922b5 in ?? () from /usr/lib/libQtGui.so.4
#38 0xb71f008a in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#39 0xb71f04d2 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#40 0xb71f2c99 in QCoreApplication::exec() () from /usr/lib/libQtCore.so.4
#41 0xb66d4227 in QApplication::exec() () from /usr/lib/libQtGui.so.4
#42 0xb4076bc0 in kdemain () from /usr/lib/libkdeinit4_plasma-desktop.so
#43 0x0804e7cd in launch(int, char const*, char const*, char const*, int, char const*, bool, char const*, bool, char const*) ()
#44 0x0804efad in handle_launcher_request(int, char const*) ()
#45 0x0804f443 in handle_requests(int) ()
#46 0x0805018a in main ()

This bug may be a duplicate of or related to bug 217054.

Possible duplicates by query: bug 219606, bug 218641, bug 217054.

Reported using DrKonqi
Comment 1 Dario Andres 2010-01-28 21:58:02 UTC
Thanks for the explanation. The bug about "icons disappearing on scroll" was fixed already (RC3). 
I just tested it and I can't reproduce the crash. 
- Have you tried to repeat the situation to check if Plasma crash again ?
This looks indeed related to bug 217054.
Regards
Comment 2 David Rankin 2010-02-12 03:42:38 UTC
It is working in KDE4.4, but at times the static category list on top of the widget slider bar isn't there. But now the bar/banner of widget icons does scroll nicely. 

There is a new problem with the widget selection bar introduced in 4.4 The "Add Widget" Slider Bar Disappears as Soon as Created When Focus Set to 'Follow
Mouse'. With 4.3.98, it stayed visible until the 'X' close button pressed. It looks like somebody set it to close on any focus change. That doesn't work at all. It constantly disappears unless you only choose add widgets from the kicker menu
Comment 3 Aaron J. Seigo 2010-02-12 04:04:56 UTC
> Focus Set to 'Follow Mouse'

*sigh* focus follows mouse is such a broken concept (the mouse pointer never gets focus itself nor is guaranteed to be anywhere near what asks for focus). we might be able to detect that we're in that mode, however, and make some changes to the handling of this window. we'll see...
Comment 4 Jonathan Thomas 2010-02-16 05:00:36 UTC
*** Bug 226805 has been marked as a duplicate of this bug. ***
Comment 5 Jonathan Thomas 2010-02-16 05:18:48 UTC
*** Bug 226708 has been marked as a duplicate of this bug. ***
Comment 6 Dario Andres 2010-03-17 17:57:01 UTC
A better backtrace from bug 226805:
Thread 1 (Thread 0xb76e3980 (LWP 13364)):
[KCrash Handler]
#6  QGraphicsItem::pos (this=0x7) at graphicsview/qgraphicsitem.cpp:3339
#7  0x06f89d0a in AppletsListWidget::itemPosition (this=0xa34b858, i=79) at
../../../libs/plasmagenericshell/widgetsexplorer/appletslist.cpp:690
#8  0x06f8a0a5 in AppletsListWidget::manageArrows (this=0xa34b858) at
../../../libs/plasmagenericshell/widgetsexplorer/appletslist.cpp:635
#9  0x06f8b34a in AppletsListWidget::eventFilter (this=0xa34b858,
obj=0xada44a0, event=0xbff42de0) at
../../../libs/plasmagenericshell/widgetsexplorer/appletslist.cpp:172
#10 0x01139f9a in QCoreApplicationPrivate::sendThroughObjectEventFilters
(this=0x93fb490, receiver=0xada44a0, event=0xbff42de0) at
kernel/qcoreapplication.cpp:819
Comment 7 Jonathan Thomas 2010-04-17 06:20:15 UTC
*** Bug 234111 has been marked as a duplicate of this bug. ***
Comment 8 Jonathan Thomas 2010-04-17 06:20:27 UTC
*** Bug 231505 has been marked as a duplicate of this bug. ***
Comment 9 Jonathan Thomas 2010-04-17 06:20:34 UTC
*** Bug 217054 has been marked as a duplicate of this bug. ***
Comment 10 Aaron J. Seigo 2010-05-06 18:26:38 UTC
*** Bug 235084 has been marked as a duplicate of this bug. ***
Comment 11 Aaron J. Seigo 2010-05-06 18:26:44 UTC
*** Bug 236591 has been marked as a duplicate of this bug. ***
Comment 12 Aaron J. Seigo 2010-05-06 20:56:34 UTC
this body of code has been deeply refactored for 4.5 and this code path actually no longer exists. hopefully we won't repeat the same bug in 4.5, but as it stands right now it's no longer an issue.
Comment 13 Jonathan Thomas 2010-05-07 16:38:33 UTC
*** Bug 236709 has been marked as a duplicate of this bug. ***
Comment 14 Beat Wolf 2010-05-21 17:28:07 UTC
*** Bug 238403 has been marked as a duplicate of this bug. ***
Comment 15 Beat Wolf 2010-05-24 13:48:56 UTC
*** Bug 238639 has been marked as a duplicate of this bug. ***
Comment 16 Nicolas L. 2010-07-13 00:24:07 UTC
*** Bug 244289 has been marked as a duplicate of this bug. ***
Comment 17 Beat Wolf 2010-08-07 14:08:49 UTC
*** Bug 246953 has been marked as a duplicate of this bug. ***
Comment 18 Nicolas L. 2010-08-12 15:31:11 UTC
*** Bug 247472 has been marked as a duplicate of this bug. ***
Comment 19 Beat Wolf 2010-08-27 12:29:02 UTC
*** Bug 248969 has been marked as a duplicate of this bug. ***
Comment 20 Beat Wolf 2010-08-27 12:29:08 UTC
*** Bug 248914 has been marked as a duplicate of this bug. ***
Comment 21 Beat Wolf 2010-09-08 15:11:03 UTC
*** Bug 250447 has been marked as a duplicate of this bug. ***
Comment 22 Beat Wolf 2010-09-08 15:13:23 UTC
*** Bug 250521 has been marked as a duplicate of this bug. ***
Comment 23 Pino Toscano 2010-09-21 10:17:42 UTC
*** Bug 251896 has been marked as a duplicate of this bug. ***
Comment 24 Beat Wolf 2010-10-11 12:57:38 UTC
*** Bug 252620 has been marked as a duplicate of this bug. ***
Comment 25 Dario Andres 2010-11-15 16:43:38 UTC
*** Bug 256727 has been marked as a duplicate of this bug. ***
Comment 26 Dario Andres 2010-12-30 12:38:29 UTC
*** Bug 261599 has been marked as a duplicate of this bug. ***