Bug 259547 - Lancelot crashes after use of a floating "Add to Favorites" button
Summary: Lancelot crashes after use of a floating "Add to Favorites" button
Status: RESOLVED FIXED
Alias: None
Product: plasma4
Classification: Unmaintained
Component: widget-lancelot (other bugs)
Version First Reported In: unspecified
Platform: Ubuntu Linux
: NOR crash
Target Milestone: ---
Assignee: Ivan Čukić
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-12-11 21:04 UTC by Sam Azer
Modified: 2011-12-14 11:41 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sam Azer 2010-12-11 21:04:52 UTC
Application: lancelot (1.9.5)
KDE Platform Version: 4.5.1 (KDE 4.5.1)
Qt Version: 4.7.0
Operating System: Linux 2.6.35-23-generic i686
Distribution: Ubuntu 10.10

-- Information about the crash:
- What I was doing when the application crashed:

* right-clicked over a menu item 
* Add to Favorites button appeared
* Ignored the Add to Favorites button and clicked on the menu item.
* Lancelot closed and the app launched but the Add to Favorites button did not disappear - it remained on the desktop. 
* Decided that it was a good idea to add that menu item to the favorites list - so clicked on the Add to Favorites button.
* Lancelot crashed.
* Favorites menu does not contain the menu item.

Expected Behavior:

* Add to Favorites buttons should disappear when the Lancelot dialog is hidden after clicking on a menu item.

Note:

I was able to reproduce this crash easily.

-- Backtrace:
Application: Lancelot (lancelot), signal: Segmentation fault
[Current thread is 1 (Thread 0xb69e8730 (LWP 1518))]

Thread 6 (Thread 0xae78db70 (LWP 1520)):
#0  0x004bf416 in __kernel_vsyscall ()
#1  0x008c9df6 in poll () from /lib/libc.so.6
#2  0x014fca1b in g_poll () from /lib/libglib-2.0.so.0
#3  0x014ef43c in ?? () from /lib/libglib-2.0.so.0
#4  0x014ef848 in g_main_context_iteration () from /lib/libglib-2.0.so.0
#5  0x0334659f in QEventDispatcherGlib::processEvents (this=0x908f148, flags=...) at kernel/qeventdispatcher_glib.cpp:417
#6  0x03316609 in QEventLoop::processEvents (this=0xae78d270, flags=) at kernel/qeventloop.cpp:149
#7  0x03316a8a in QEventLoop::exec (this=0xae78d270, flags=...) at kernel/qeventloop.cpp:201
#8  0x03212b7e in QThread::exec (this=0x906f968) at thread/qthread.cpp:490
#9  0x032f535b in QInotifyFileSystemWatcherEngine::run (this=0x906f968) at io/qfilesystemwatcher_inotify.cpp:248
#10 0x03215df9 in QThreadPrivate::start (arg=0x906f968) at thread/qthread_unix.cpp:266
#11 0x01d80cc9 in start_thread () from /lib/libpthread.so.0
#12 0x008d869e in clone () from /lib/libc.so.6

Thread 5 (Thread 0xad5dbb70 (LWP 5374)):
#0  0x004bf416 in __kernel_vsyscall ()
#1  0x01d854dc in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#2  0x008e5d9d in pthread_cond_wait () from /lib/libc.so.6
#3  0x032169c7 in wait (this=0x91a1778, mutex=0x9179680, time=4294967295) at thread/qwaitcondition_unix.cpp:88
#4  QWaitCondition::wait (this=0x91a1778, mutex=0x9179680, time=4294967295) at thread/qwaitcondition_unix.cpp:160
#5  0x00e56030 in ThreadWeaver::WeaverImpl::blockThreadUntilJobsAreBeingAssigned (this=0x91a1760, th=0x94eb698) at ../../../threadweaver/Weaver/WeaverImpl.cpp:365
#6  0x00e597dc in ThreadWeaver::WorkingHardState::waitForAvailableJob (this=0x9188500, th=0x94eb698) at ../../../threadweaver/Weaver/WorkingHardState.cpp:80
#7  0x00e5555b in ThreadWeaver::WeaverImpl::waitForAvailableJob (this=0x91a1760, th=0x94eb698) at ../../../threadweaver/Weaver/WeaverImpl.cpp:356
#8  0x00e598d2 in ThreadWeaver::WorkingHardState::applyForWork (this=0x9188500, th=0x94eb698) at ../../../threadweaver/Weaver/WorkingHardState.cpp:71
#9  0x00e56533 in ThreadWeaver::WeaverImpl::applyForWork (this=0x91a1760, th=0x94eb698, previous=0x9567998) at ../../../threadweaver/Weaver/WeaverImpl.cpp:351
#10 0x00e5795e in ThreadWeaver::ThreadRunHelper::run (this=0xad5db2d4, parent=0x91a1760, th=0x94eb698) at ../../../threadweaver/Weaver/Thread.cpp:87
#11 0x00e5807b in ThreadWeaver::Thread::run (this=0x94eb698) at ../../../threadweaver/Weaver/Thread.cpp:142
#12 0x03215df9 in QThreadPrivate::start (arg=0x94eb698) at thread/qthread_unix.cpp:266
#13 0x01d80cc9 in start_thread () from /lib/libpthread.so.0
#14 0x008d869e in clone () from /lib/libc.so.6

Thread 4 (Thread 0xacbffb70 (LWP 5375)):
#0  0x004bf416 in __kernel_vsyscall ()
#1  0x01d854dc in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#2  0x008e5d9d in pthread_cond_wait () from /lib/libc.so.6
#3  0x032169c7 in wait (this=0x91a1778, mutex=0x9179680, time=4294967295) at thread/qwaitcondition_unix.cpp:88
#4  QWaitCondition::wait (this=0x91a1778, mutex=0x9179680, time=4294967295) at thread/qwaitcondition_unix.cpp:160
#5  0x00e56030 in ThreadWeaver::WeaverImpl::blockThreadUntilJobsAreBeingAssigned (this=0x91a1760, th=0x9375ba8) at ../../../threadweaver/Weaver/WeaverImpl.cpp:365
#6  0x00e597dc in ThreadWeaver::WorkingHardState::waitForAvailableJob (this=0x9188500, th=0x9375ba8) at ../../../threadweaver/Weaver/WorkingHardState.cpp:80
#7  0x00e5555b in ThreadWeaver::WeaverImpl::waitForAvailableJob (this=0x91a1760, th=0x9375ba8) at ../../../threadweaver/Weaver/WeaverImpl.cpp:356
#8  0x00e598d2 in ThreadWeaver::WorkingHardState::applyForWork (this=0x9188500, th=0x9375ba8) at ../../../threadweaver/Weaver/WorkingHardState.cpp:71
#9  0x00e56533 in ThreadWeaver::WeaverImpl::applyForWork (this=0x91a1760, th=0x9375ba8, previous=0xaae5ba50) at ../../../threadweaver/Weaver/WeaverImpl.cpp:351
#10 0x00e5795e in ThreadWeaver::ThreadRunHelper::run (this=0xacbff2d4, parent=0x91a1760, th=0x9375ba8) at ../../../threadweaver/Weaver/Thread.cpp:87
#11 0x00e5807b in ThreadWeaver::Thread::run (this=0x9375ba8) at ../../../threadweaver/Weaver/Thread.cpp:142
#12 0x03215df9 in QThreadPrivate::start (arg=0x9375ba8) at thread/qthread_unix.cpp:266
#13 0x01d80cc9 in start_thread () from /lib/libpthread.so.0
#14 0x008d869e in clone () from /lib/libc.so.6

Thread 3 (Thread 0xac3feb70 (LWP 5376)):
#0  0x004bf416 in __kernel_vsyscall ()
#1  0x01d854dc in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#2  0x008e5d9d in pthread_cond_wait () from /lib/libc.so.6
#3  0x032169c7 in wait (this=0x91a1778, mutex=0x9179680, time=4294967295) at thread/qwaitcondition_unix.cpp:88
#4  QWaitCondition::wait (this=0x91a1778, mutex=0x9179680, time=4294967295) at thread/qwaitcondition_unix.cpp:160
#5  0x00e56030 in ThreadWeaver::WeaverImpl::blockThreadUntilJobsAreBeingAssigned (this=0x91a1760, th=0x93cdd70) at ../../../threadweaver/Weaver/WeaverImpl.cpp:365
#6  0x00e597dc in ThreadWeaver::WorkingHardState::waitForAvailableJob (this=0x9188500, th=0x93cdd70) at ../../../threadweaver/Weaver/WorkingHardState.cpp:80
#7  0x00e5555b in ThreadWeaver::WeaverImpl::waitForAvailableJob (this=0x91a1760, th=0x93cdd70) at ../../../threadweaver/Weaver/WeaverImpl.cpp:356
#8  0x00e598d2 in ThreadWeaver::WorkingHardState::applyForWork (this=0x9188500, th=0x93cdd70) at ../../../threadweaver/Weaver/WorkingHardState.cpp:71
#9  0x00e56533 in ThreadWeaver::WeaverImpl::applyForWork (this=0x91a1760, th=0x93cdd70, previous=0x8de20e8) at ../../../threadweaver/Weaver/WeaverImpl.cpp:351
#10 0x00e5795e in ThreadWeaver::ThreadRunHelper::run (this=0xac3fe2d4, parent=0x91a1760, th=0x93cdd70) at ../../../threadweaver/Weaver/Thread.cpp:87
#11 0x00e5807b in ThreadWeaver::Thread::run (this=0x93cdd70) at ../../../threadweaver/Weaver/Thread.cpp:142
#12 0x03215df9 in QThreadPrivate::start (arg=0x93cdd70) at thread/qthread_unix.cpp:266
#13 0x01d80cc9 in start_thread () from /lib/libpthread.so.0
#14 0x008d869e in clone () from /lib/libc.so.6

Thread 2 (Thread 0xabbfdb70 (LWP 5377)):
#0  0x004bf416 in __kernel_vsyscall ()
#1  0x01d854dc in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#2  0x008e5d9d in pthread_cond_wait () from /lib/libc.so.6
#3  0x032169c7 in wait (this=0x91a1778, mutex=0x9179680, time=4294967295) at thread/qwaitcondition_unix.cpp:88
#4  QWaitCondition::wait (this=0x91a1778, mutex=0x9179680, time=4294967295) at thread/qwaitcondition_unix.cpp:160
#5  0x00e56030 in ThreadWeaver::WeaverImpl::blockThreadUntilJobsAreBeingAssigned (this=0x91a1760, th=0x93c39d8) at ../../../threadweaver/Weaver/WeaverImpl.cpp:365
#6  0x00e597dc in ThreadWeaver::WorkingHardState::waitForAvailableJob (this=0x9188500, th=0x93c39d8) at ../../../threadweaver/Weaver/WorkingHardState.cpp:80
#7  0x00e5555b in ThreadWeaver::WeaverImpl::waitForAvailableJob (this=0x91a1760, th=0x93c39d8) at ../../../threadweaver/Weaver/WeaverImpl.cpp:356
#8  0x00e598d2 in ThreadWeaver::WorkingHardState::applyForWork (this=0x9188500, th=0x93c39d8) at ../../../threadweaver/Weaver/WorkingHardState.cpp:71
#9  0x00e56533 in ThreadWeaver::WeaverImpl::applyForWork (this=0x91a1760, th=0x93c39d8, previous=0x91b0368) at ../../../threadweaver/Weaver/WeaverImpl.cpp:351
#10 0x00e5795e in ThreadWeaver::ThreadRunHelper::run (this=0xabbfd2d4, parent=0x91a1760, th=0x93c39d8) at ../../../threadweaver/Weaver/Thread.cpp:87
#11 0x00e5807b in ThreadWeaver::Thread::run (this=0x93c39d8) at ../../../threadweaver/Weaver/Thread.cpp:142
#12 0x03215df9 in QThreadPrivate::start (arg=0x93c39d8) at thread/qthread_unix.cpp:266
#13 0x01d80cc9 in start_thread () from /lib/libpthread.so.0
#14 0x008d869e in clone () from /lib/libc.so.6

Thread 1 (Thread 0xb69e8730 (LWP 1518)):
[KCrash Handler]
#7  0x003eaeac in QString (this=0x97515e0, index=2, context=0x97567f0) at /usr/include/qt4/QtCore/qstring.h:727
#8  Lancelot::Models::Applications::contextActivate (this=0x97515e0, index=2, context=0x97567f0) at ../../../libs/lancelot-datamodels/Applications.cpp:284
#9  0x00ea2ac4 in Lancelot::ActionListViewItemFactory::itemContext (this=0x972eeb8, sender=0x9355008, mouseCoordinate=true) at ../../../libs/lancelot/widgets/ActionListView.cpp:621
#10 0x00ea2cd6 in Lancelot::ActionListViewItem::contextMenuEvent (this=0x9355008, event=0xbfdee48c) at ../../../libs/lancelot/widgets/ActionListView.cpp:109
#11 0x04ac31b8 in QGraphicsItem::sceneEvent (this=0x9355010, event=0xbfdee48c) at graphicsview/qgraphicsitem.cpp:6639
#12 0x04b1a4d7 in QGraphicsWidget::sceneEvent (this=0x9355008, event=0xbfdee48c) at graphicsview/qgraphicswidget.cpp:1173
#13 0x04adb569 in QGraphicsScenePrivate::sendEvent (this=0x8e76a20, item=0x9355010, event=0xbfdee48c) at graphicsview/qgraphicsscene.cpp:1211
#14 0x04ae01b8 in QGraphicsScene::contextMenuEvent (this=0x8e756f8, contextMenuEvent=0xbfdee48c) at graphicsview/qgraphicsscene.cpp:3600
#15 0x04af64cc in QGraphicsScene::event (this=0x8e756f8, event=0xbfdee48c) at graphicsview/qgraphicsscene.cpp:3398
#16 0x04410fdc in QApplicationPrivate::notify_helper (this=0x8d8a7c0, receiver=0x8e756f8, e=0xbfdee48c) at kernel/qapplication.cpp:4396
#17 0x0441704e in QApplication::notify (this=0x8d7ae08, receiver=0x8e756f8, e=0xbfdee48c) at kernel/qapplication.cpp:3798
#18 0x010ae68a in KApplication::notify (this=0x8d7ae08, receiver=0x8e756f8, event=0xbfdee48c) at ../../kdeui/kernel/kapplication.cpp:310
#19 0x03317b3b in QCoreApplication::notifyInternal (this=0x8d7ae08, receiver=0x8e756f8, event=0xbfdee48c) at kernel/qcoreapplication.cpp:732
#20 0x04b129f0 in sendEvent (this=0x8e2e360, event=0xbfdeebe8) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:215
#21 QGraphicsView::contextMenuEvent (this=0x8e2e360, event=0xbfdeebe8) at graphicsview/qgraphicsview.cpp:2888
#22 0x0446f528 in QWidget::event (this=0x8e2e360, event=0xbfdeebe8) at kernel/qwidget.cpp:8354
#23 0x04890763 in QFrame::event (this=0x8e2e360, e=0xbfdeebe8) at widgets/qframe.cpp:557
#24 0x0492da82 in QAbstractScrollArea::viewportEvent (this=0xf7211058, e=0x97515e0) at widgets/qabstractscrollarea.cpp:1043
#25 0x04b11ccb in QGraphicsView::viewportEvent (this=0x8e2e360, event=0xbfdeebe8) at graphicsview/qgraphicsview.cpp:2862
#26 0x049304d5 in viewportEvent (this=0x8e12fb0, o=0x8e2e298, e=0xbfdeebe8) at widgets/qabstractscrollarea_p.h:100
#27 QAbstractScrollAreaFilter::eventFilter (this=0x8e12fb0, o=0x8e2e298, e=0xbfdeebe8) at widgets/qabstractscrollarea_p.h:116
#28 0x0331729a in QCoreApplicationPrivate::sendThroughObjectEventFilters (this=0x8d8a7c0, receiver=0x8e2e298, event=0xbfdeebe8) at kernel/qcoreapplication.cpp:847
#29 0x04410fb9 in QApplicationPrivate::notify_helper (this=0x8d8a7c0, receiver=0x8e2e298, e=0xbfdeebe8) at kernel/qapplication.cpp:4392
#30 0x04417458 in QApplication::notify (this=0x8d7ae08, receiver=0x8e2e298, e=0xbfdeebe8) at kernel/qapplication.cpp:4038
#31 0x010ae68a in KApplication::notify (this=0x8d7ae08, receiver=0x8e2e298, event=0xbfdeebe8) at ../../kdeui/kernel/kapplication.cpp:310
#32 0x03317b3b in QCoreApplication::notifyInternal (this=0x8d7ae08, receiver=0x8e2e298, event=0xbfdeebe8) at kernel/qcoreapplication.cpp:732
#33 0x044a962e in QCoreApplication::sendSpontaneousEvent (receiver=0x8e2e298, event=0x97515e0) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:218
#34 0x044a4d7c in QETWidget::translateMouseEvent (this=0x8e2e360, event=0xbfdef0dc) at kernel/qapplication_x11.cpp:4408
#35 0x044a4151 in QApplication::x11ProcessEvent (this=0x8d7ae08, event=0xbfdef0dc) at kernel/qapplication_x11.cpp:3414
#36 0x044d336a in x11EventSourceDispatch (s=0x8d8d540, callback=0, user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:146
#37 0x014eb855 in g_main_context_dispatch () from /lib/libglib-2.0.so.0
#38 0x014ef668 in ?? () from /lib/libglib-2.0.so.0
#39 0x014ef848 in g_main_context_iteration () from /lib/libglib-2.0.so.0
#40 0x03346565 in QEventDispatcherGlib::processEvents (this=0x8d57ce8, flags=...) at kernel/qeventdispatcher_glib.cpp:415
#41 0x044d2be5 in QGuiEventDispatcherGlib::processEvents (this=0x8d57ce8, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#42 0x03316609 in QEventLoop::processEvents (this=0xbfdef3d4, flags=) at kernel/qeventloop.cpp:149
#43 0x03316a8a in QEventLoop::exec (this=0xbfdef3d4, flags=...) at kernel/qeventloop.cpp:201
#44 0x0331b00f in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1009
#45 0x0440fe07 in QApplication::exec () at kernel/qapplication.cpp:3672
#46 0x08052edc in LancelotApplication::main (argc=1, argv=0xbfdef544) at ../../../../applets/lancelot/application/LancelotApplication.cpp:111
#47 0x080524db in main (argc=1, argv=0xbfdef544) at ../../../../applets/lancelot/application/main.cpp:24

Reported using DrKonqi
Comment 1 Giorgos Tsiapaliokas 2010-12-24 21:31:12 UTC
i am not sure if i understood right how to reproduce the bug but i tried to add a menu item to "favourites".everything came down slowly.
everything worked fine!

anyway these are my box's specifications,

Qt: 4.7.1
KDE Development Platform: 4.5.4 (KDE 4.5.4)
os:gentoo ~amd64
Comment 2 Ivan Čukić 2010-12-25 11:06:51 UTC
I can't reproduce the crash. But the popup that remains is real :)

This will have to wait for after 4.6 since the popups are being reimplemented.
Comment 3 Simon Friis 2011-05-16 12:32:37 UTC
I can not reproduce this bug in KDE 4.6.3 with  Lancelot version 1.9.5. Behavior is as expected.

Sould be closed.
Comment 4 Thijs 2011-12-14 11:41:02 UTC
A 'should be closed' message and nobody complaining... it should be closed :)