Bug 289751 - Amarok crashes when a mp3 player is mounted [@ trackMap at /src/core-impl/collections/support/MemoryCollection.h:43]
Summary: Amarok crashes when a mp3 player is mounted [@ trackMap at /src/core-impl/col...
Status: RESOLVED FIXED
Alias: None
Product: amarok
Classification: Applications
Component: Collections/USB mass storage and MSC (show other bugs)
Version: 2.5.0
Platform: Gentoo Packages Linux
: NOR crash
Target Milestone: 2.6
Assignee: Amarok Developers
URL:
Keywords:
: 290858 291945 307740 (view as bug list)
Depends on:
Blocks:
 
Reported: 2011-12-24 17:24 UTC by Xavier Claude
Modified: 2012-10-02 19:23 UTC (History)
6 users (show)

See Also:
Latest Commit:
Version Fixed In: 2.6


Attachments
New crash information added by DrKonqi (25.99 KB, text/plain)
2012-01-01 13:31 UTC, David Solbach
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Xavier Claude 2011-12-24 17:24:01 UTC
Application: amarok (2.5.0)
KDE Platform Version: 4.7.4 (4.7.4)
Qt Version: 4.7.4
Operating System: Linux 3.0.6-gentoo x86_64
Distribution: "Gentoo Base System release 2.0.3"

-- Information about the crash:
- What I was doing when the application crashed: I unmounted the mp3 player and remounted it (with the new device plasmoid). After the device is mounted, Amarok crashes when it get the focus.

The crash can be reproduced every time.

-- Backtrace:
Application: Amarok (amarok), signal: Segmentation fault
[Current thread is 1 (Thread 0x7fce5803c780 (LWP 5105))]

Thread 9 (Thread 0x7fce3ce8e700 (LWP 5107)):
#0  0x00007fce5474ec83 in poll () from /lib64/libc.so.6
#1  0x00007fce4f27dec0 in g_main_context_poll (n_fds=1, fds=0x24cead0, timeout=-1, context=0x2504550, priority=<optimized out>) at gmain.c:3405
#2  g_main_context_iterate (context=0x2504550, block=1, dispatch=1, self=<optimized out>) at gmain.c:3087
#3  0x00007fce4f27e3dd in g_main_context_iteration (context=0x2504550, may_block=1) at gmain.c:3155
#4  0x00007fce550afb06 in QEventDispatcherGlib::processEvents (this=0x239a520, flags=<optimized out>) at kernel/qeventdispatcher_glib.cpp:424
#5  0x00007fce55084832 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#6  0x00007fce55084a74 in QEventLoop::exec (this=0x7fce3ce8ddc0, flags=...) at kernel/qeventloop.cpp:201
#7  0x00007fce54f9d33c in QThread::exec (this=<optimized out>) at thread/qthread.cpp:498
#8  0x00007fce550669a8 in QInotifyFileSystemWatcherEngine::run (this=0x24d3170) at io/qfilesystemwatcher_inotify.cpp:248
#9  0x00007fce54f9fb15 in QThreadPrivate::start (arg=0x24d3170) at thread/qthread_unix.cpp:331
#10 0x00007fce52920c2c in start_thread () from /lib64/libpthread.so.0
#11 0x00007fce547577bd in clone () from /lib64/libc.so.6

Thread 8 (Thread 0x7fce3a9dc700 (LWP 5108)):
#0  0x00007fce5292532c in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007fce54fa01e3 in wait (time=18446744073709551615, this=0x25637d0) at thread/qwaitcondition_unix.cpp:88
#2  QWaitCondition::wait (this=<optimized out>, mutex=0x2512f50, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:160
#3  0x00007fce51cd8f24 in ThreadWeaver::WeaverImpl::blockThreadUntilJobsAreBeingAssigned (this=0x2510330, th=0x26604c0) at /var/tmp/portage/kde-base/kdelibs-4.7.4/work/kdelibs-4.7.4/threadweaver/Weaver/WeaverImpl.cpp:365
#4  0x00007fce51cdb593 in ThreadWeaver::WorkingHardState::applyForWork (this=0x2568d60, th=0x26604c0) at /var/tmp/portage/kde-base/kdelibs-4.7.4/work/kdelibs-4.7.4/threadweaver/Weaver/WorkingHardState.cpp:71
#5  0x00007fce51cda387 in ThreadWeaver::ThreadRunHelper::run (this=0x7fce3a9dbe10, parent=0x2510330, th=0x26604c0) at /var/tmp/portage/kde-base/kdelibs-4.7.4/work/kdelibs-4.7.4/threadweaver/Weaver/Thread.cpp:87
#6  0x00007fce51cda418 in ThreadWeaver::Thread::run (this=0x26604c0) at /var/tmp/portage/kde-base/kdelibs-4.7.4/work/kdelibs-4.7.4/threadweaver/Weaver/Thread.cpp:142
#7  0x00007fce54f9fb15 in QThreadPrivate::start (arg=0x26604c0) at thread/qthread_unix.cpp:331
#8  0x00007fce52920c2c in start_thread () from /lib64/libpthread.so.0
#9  0x00007fce547577bd in clone () from /lib64/libc.so.6

Thread 7 (Thread 0x7fce3a1db700 (LWP 5109)):
#0  0x00007fce5292532c in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007fce54fa01e3 in wait (time=18446744073709551615, this=0x25637d0) at thread/qwaitcondition_unix.cpp:88
#2  QWaitCondition::wait (this=<optimized out>, mutex=0x2512f50, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:160
#3  0x00007fce51cd8f24 in ThreadWeaver::WeaverImpl::blockThreadUntilJobsAreBeingAssigned (this=0x2510330, th=0x2768840) at /var/tmp/portage/kde-base/kdelibs-4.7.4/work/kdelibs-4.7.4/threadweaver/Weaver/WeaverImpl.cpp:365
#4  0x00007fce51cdb593 in ThreadWeaver::WorkingHardState::applyForWork (this=0x2568d60, th=0x2768840) at /var/tmp/portage/kde-base/kdelibs-4.7.4/work/kdelibs-4.7.4/threadweaver/Weaver/WorkingHardState.cpp:71
#5  0x00007fce51cda387 in ThreadWeaver::ThreadRunHelper::run (this=0x7fce3a1dae10, parent=0x2510330, th=0x2768840) at /var/tmp/portage/kde-base/kdelibs-4.7.4/work/kdelibs-4.7.4/threadweaver/Weaver/Thread.cpp:87
#6  0x00007fce51cda418 in ThreadWeaver::Thread::run (this=0x2768840) at /var/tmp/portage/kde-base/kdelibs-4.7.4/work/kdelibs-4.7.4/threadweaver/Weaver/Thread.cpp:142
#7  0x00007fce54f9fb15 in QThreadPrivate::start (arg=0x2768840) at thread/qthread_unix.cpp:331
#8  0x00007fce52920c2c in start_thread () from /lib64/libpthread.so.0
#9  0x00007fce547577bd in clone () from /lib64/libc.so.6

Thread 6 (Thread 0x7fce38c2f700 (LWP 5110)):
#0  0x00007fce5292532c in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007fce54fa01e3 in wait (time=18446744073709551615, this=0x25637d0) at thread/qwaitcondition_unix.cpp:88
#2  QWaitCondition::wait (this=<optimized out>, mutex=0x2512f50, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:160
#3  0x00007fce51cd8f24 in ThreadWeaver::WeaverImpl::blockThreadUntilJobsAreBeingAssigned (this=0x2510330, th=0x2a286d0) at /var/tmp/portage/kde-base/kdelibs-4.7.4/work/kdelibs-4.7.4/threadweaver/Weaver/WeaverImpl.cpp:365
#4  0x00007fce51cdb593 in ThreadWeaver::WorkingHardState::applyForWork (this=0x2568d60, th=0x2a286d0) at /var/tmp/portage/kde-base/kdelibs-4.7.4/work/kdelibs-4.7.4/threadweaver/Weaver/WorkingHardState.cpp:71
#5  0x00007fce51cda387 in ThreadWeaver::ThreadRunHelper::run (this=0x7fce38c2ee10, parent=0x2510330, th=0x2a286d0) at /var/tmp/portage/kde-base/kdelibs-4.7.4/work/kdelibs-4.7.4/threadweaver/Weaver/Thread.cpp:87
#6  0x00007fce51cda418 in ThreadWeaver::Thread::run (this=0x2a286d0) at /var/tmp/portage/kde-base/kdelibs-4.7.4/work/kdelibs-4.7.4/threadweaver/Weaver/Thread.cpp:142
#7  0x00007fce54f9fb15 in QThreadPrivate::start (arg=0x2a286d0) at thread/qthread_unix.cpp:331
#8  0x00007fce52920c2c in start_thread () from /lib64/libpthread.so.0
#9  0x00007fce547577bd in clone () from /lib64/libc.so.6

Thread 5 (Thread 0x7fce33fff700 (LWP 5111)):
#0  0x00007fce5292532c in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007fce54fa01e3 in wait (time=18446744073709551615, this=0x25637d0) at thread/qwaitcondition_unix.cpp:88
#2  QWaitCondition::wait (this=<optimized out>, mutex=0x2512f50, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:160
#3  0x00007fce51cd8f24 in ThreadWeaver::WeaverImpl::blockThreadUntilJobsAreBeingAssigned (this=0x2510330, th=0x7fce2c008ea0) at /var/tmp/portage/kde-base/kdelibs-4.7.4/work/kdelibs-4.7.4/threadweaver/Weaver/WeaverImpl.cpp:365
#4  0x00007fce51cdb593 in ThreadWeaver::WorkingHardState::applyForWork (this=0x2568d60, th=0x7fce2c008ea0) at /var/tmp/portage/kde-base/kdelibs-4.7.4/work/kdelibs-4.7.4/threadweaver/Weaver/WorkingHardState.cpp:71
#5  0x00007fce51cda387 in ThreadWeaver::ThreadRunHelper::run (this=0x7fce33ffee10, parent=0x2510330, th=0x7fce2c008ea0) at /var/tmp/portage/kde-base/kdelibs-4.7.4/work/kdelibs-4.7.4/threadweaver/Weaver/Thread.cpp:87
#6  0x00007fce51cda418 in ThreadWeaver::Thread::run (this=0x7fce2c008ea0) at /var/tmp/portage/kde-base/kdelibs-4.7.4/work/kdelibs-4.7.4/threadweaver/Weaver/Thread.cpp:142
#7  0x00007fce54f9fb15 in QThreadPrivate::start (arg=0x7fce2c008ea0) at thread/qthread_unix.cpp:331
#8  0x00007fce52920c2c in start_thread () from /lib64/libpthread.so.0
#9  0x00007fce547577bd in clone () from /lib64/libc.so.6

Thread 4 (Thread 0x7fce335e0700 (LWP 5112)):
#0  0x00007fce5292532c in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007fce4c6e9fd4 in ?? () from /usr/lib64/qt4/libQtWebKit.so.4
#2  0x00007fce52920c2c in start_thread () from /lib64/libpthread.so.0
#3  0x00007fce547577bd in clone () from /lib64/libc.so.6

Thread 3 (Thread 0x7fce32cdf700 (LWP 5113)):
#0  0x00007fce5474ec83 in poll () from /lib64/libc.so.6
#1  0x00007fce4f27dec0 in g_main_context_poll (n_fds=1, fds=0x2a5b470, timeout=-1, context=0x2a98e60, priority=<optimized out>) at gmain.c:3405
#2  g_main_context_iterate (context=0x2a98e60, block=1, dispatch=1, self=<optimized out>) at gmain.c:3087
#3  0x00007fce4f27e3dd in g_main_context_iteration (context=0x2a98e60, may_block=1) at gmain.c:3155
#4  0x00007fce550afb06 in QEventDispatcherGlib::processEvents (this=0x2a98f50, flags=<optimized out>) at kernel/qeventdispatcher_glib.cpp:424
#5  0x00007fce55084832 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#6  0x00007fce55084a74 in QEventLoop::exec (this=0x7fce32cdee00, flags=...) at kernel/qeventloop.cpp:201
#7  0x00007fce54f9d33c in QThread::exec (this=<optimized out>) at thread/qthread.cpp:498
#8  0x00007fce54f9fb15 in QThreadPrivate::start (arg=0x2a5c430) at thread/qthread_unix.cpp:331
#9  0x00007fce52920c2c in start_thread () from /lib64/libpthread.so.0
#10 0x00007fce547577bd in clone () from /lib64/libc.so.6

Thread 2 (Thread 0x7fce31237700 (LWP 5116)):
#0  0x00007fce5292532c in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007fce50cde524 in QTWTF::TCMalloc_PageHeap::scavengerThread (this=0x7fce50ff7180) at ../3rdparty/javascriptcore/JavaScriptCore/wtf/FastMalloc.cpp:2359
#2  0x00007fce50cde559 in QTWTF::TCMalloc_PageHeap::runScavengerThread (context=0x7fce51005254) at ../3rdparty/javascriptcore/JavaScriptCore/wtf/FastMalloc.cpp:1464
#3  0x00007fce52920c2c in start_thread () from /lib64/libpthread.so.0
#4  0x00007fce547577bd in clone () from /lib64/libc.so.6

Thread 1 (Thread 0x7fce5803c780 (LWP 5105)):
[KCrash Handler]
#6  0x00007fce3cea537c in QMap (other=..., this=0x7ffffa245f30) at /usr/include/qt4/QtCore/qmap.h:185
#7  trackMap (this=0x0) at /var/tmp/portage/media-sound/amarok-2.5.0/work/amarok-2.5.0/src/core-impl/collections/support/MemoryCollection.h:43
#8  UmsCollection::createCapabilityInterface (this=0x253c900, type=Capabilities::Capability::Actions) at /var/tmp/portage/media-sound/amarok-2.5.0/work/amarok-2.5.0/src/core-impl/collections/umscollection/UmsCollection.cpp:416
#9  0x00007fce569f24ff in create<Capabilities::ActionsCapability> (this=<optimized out>) at /var/tmp/portage/media-sound/amarok-2.5.0/work/amarok-2.5.0/src/core/collections/Collection.h:99
#10 CollectionTreeItem::decoratorActions (this=<optimized out>) at /var/tmp/portage/media-sound/amarok-2.5.0/work/amarok-2.5.0/src/browsers/CollectionTreeItem.cpp:197
#11 0x00007fce569f294b in CollectionTreeItem::data (this=0x2b270b0, role=<optimized out>) at /var/tmp/portage/media-sound/amarok-2.5.0/work/amarok-2.5.0/src/browsers/CollectionTreeItem.cpp:183
#12 0x00007fce569fb35d in CollectionTreeItemModelBase::dataForItem (this=0x2b31ff0, item=0x2b270b0, role=38, level=<optimized out>) at /var/tmp/portage/media-sound/amarok-2.5.0/work/amarok-2.5.0/src/browsers/CollectionTreeItemModelBase.cpp:323
#13 0x00007fce569f44ac in CollectionTreeItemModel::data (this=<optimized out>, index=<optimized out>, role=<optimized out>) at /var/tmp/portage/media-sound/amarok-2.5.0/work/amarok-2.5.0/src/browsers/CollectionTreeItemModel.cpp:116
#14 0x00007fce55fc7db1 in QSortFilterProxyModel::data (this=<optimized out>, index=<optimized out>, role=38) at itemviews/qsortfilterproxymodel.cpp:1716
#15 0x00007fce56a3cb75 in data (arole=38, this=0x7ffffa246a30) at /usr/include/qt4/QtCore/qabstractitemmodel.h:398
#16 CollectionTreeItemDelegate::paint (this=0x2b31140, painter=0x7ffffa246f70, option=..., index=...) at /var/tmp/portage/media-sound/amarok-2.5.0/work/amarok-2.5.0/src/browsers/collectionbrowser/CollectionTreeItemDelegate.cpp:80
#17 0x00007fce55f8330a in QTreeView::drawRow (this=0x2b1a640, painter=0x7ffffa246f70, option=..., index=...) at itemviews/qtreeview.cpp:1678
#18 0x00007fce5711a930 in Amarok::PrettyTreeView::drawRow (this=<optimized out>, painter=0x7ffffa246f70, option=..., index=<optimized out>) at /var/tmp/portage/media-sound/amarok-2.5.0/work/amarok-2.5.0/src/widgets/PrettyTreeView.cpp:45
#19 0x00007fce55f85a9d in QTreeView::drawTree (this=0x2b1a640, painter=0x7ffffa246f70, region=<optimized out>) at itemviews/qtreeview.cpp:1441
#20 0x00007fce55f86803 in QTreeView::paintEvent (this=0x2b1a640, event=0x7ffffa247c10) at itemviews/qtreeview.cpp:1274
#21 0x00007fce55aaf8e5 in QWidget::event (this=0x2b1a640, event=0x7ffffa247c10) at kernel/qwidget.cpp:8441
#22 0x00007fce55e360d6 in QFrame::event (this=0x2b1a640, e=0x7ffffa247c10) at widgets/qframe.cpp:557
#23 0x00007fce55f43c03 in QAbstractItemView::viewportEvent (this=0x2b1a640, event=0x7ffffa247c10) at itemviews/qabstractitemview.cpp:1628
#24 0x00007fce56a3e80b in CollectionBrowserTreeView::viewportEvent (this=0x2b1a640, event=0x7ffffa247c10) at /var/tmp/portage/media-sound/amarok-2.5.0/work/amarok-2.5.0/src/browsers/collectionbrowser/CollectionBrowserTreeView.cpp:112
#25 0x00007fce550855a6 in QCoreApplicationPrivate::sendThroughObjectEventFilters (this=<optimized out>, receiver=0x2b24da0, event=0x7ffffa247c10) at kernel/qcoreapplication.cpp:902
#26 0x00007fce55a5ed21 in QApplicationPrivate::notify_helper (this=0x1ec29f0, receiver=0x2b24da0, e=0x7ffffa247c10) at kernel/qapplication.cpp:4477
#27 0x00007fce55a6383a in QApplication::notify (this=<optimized out>, receiver=0x2b24da0, e=0x7ffffa247c10) at kernel/qapplication.cpp:4360
#28 0x00007fce57a477d6 in KApplication::notify (this=0x7ffffa24bf70, receiver=0x2b24da0, event=0x7ffffa247c10) at /var/tmp/portage/kde-base/kdelibs-4.7.4/work/kdelibs-4.7.4/kdeui/kernel/kapplication.cpp:311
#29 0x00007fce55085423 in QCoreApplication::notifyInternal (this=0x7ffffa24bf70, receiver=0x2b24da0, event=0x7ffffa247c10) at kernel/qcoreapplication.cpp:787
#30 0x00007fce55aac830 in sendSpontaneousEvent (event=0x7ffffa247c10, receiver=0x2b24da0) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:218
#31 QWidgetPrivate::drawWidget (this=0x2b24dd0, pdev=0x1e92c88, rgn=..., offset=..., flags=4, sharedPainter=0x0, backingStore=0x25372d0) at kernel/qwidget.cpp:5528
#32 0x00007fce55aad3df in QWidgetPrivate::paintSiblingsRecursive (this=0x2b23f20, pdev=0x1e92c88, siblings=<optimized out>, index=<optimized out>, rgn=..., offset=..., flags=4, sharedPainter=0x0, backingStore=0x25372d0) at kernel/qwidget.cpp:5735
#33 0x00007fce55aac578 in QWidgetPrivate::drawWidget (this=0x2b23f20, pdev=0x1e92c88, rgn=..., offset=..., flags=<optimized out>, sharedPainter=0x0, backingStore=0x25372d0) at kernel/qwidget.cpp:5581
#34 0x00007fce55aad3df in QWidgetPrivate::paintSiblingsRecursive (this=0x27f1fc0, pdev=0x1e92c88, siblings=<optimized out>, index=<optimized out>, rgn=..., offset=..., flags=4, sharedPainter=0x0, backingStore=0x25372d0) at kernel/qwidget.cpp:5735
#35 0x00007fce55aac578 in QWidgetPrivate::drawWidget (this=0x27f1fc0, pdev=0x1e92c88, rgn=..., offset=..., flags=<optimized out>, sharedPainter=0x0, backingStore=0x25372d0) at kernel/qwidget.cpp:5581
#36 0x00007fce55aad3df in QWidgetPrivate::paintSiblingsRecursive (this=0x2ab8340, pdev=0x1e92c88, siblings=<optimized out>, index=<optimized out>, rgn=..., offset=..., flags=4, sharedPainter=0x0, backingStore=0x25372d0) at kernel/qwidget.cpp:5735
#37 0x00007fce55aac578 in QWidgetPrivate::drawWidget (this=0x2ab8340, pdev=0x1e92c88, rgn=..., offset=..., flags=<optimized out>, sharedPainter=0x0, backingStore=0x25372d0) at kernel/qwidget.cpp:5581
#38 0x00007fce55aad3df in QWidgetPrivate::paintSiblingsRecursive (this=0x2852960, pdev=0x1e92c88, siblings=<optimized out>, index=<optimized out>, rgn=..., offset=..., flags=4, sharedPainter=0x0, backingStore=0x25372d0) at kernel/qwidget.cpp:5735
#39 0x00007fce55aac578 in QWidgetPrivate::drawWidget (this=0x2852960, pdev=0x1e92c88, rgn=..., offset=..., flags=<optimized out>, sharedPainter=0x0, backingStore=0x25372d0) at kernel/qwidget.cpp:5581
#40 0x00007fce55aad3df in QWidgetPrivate::paintSiblingsRecursive (this=0x28522c0, pdev=0x1e92c88, siblings=<optimized out>, index=<optimized out>, rgn=..., offset=..., flags=4, sharedPainter=0x0, backingStore=0x25372d0) at kernel/qwidget.cpp:5735
#41 0x00007fce55aac578 in QWidgetPrivate::drawWidget (this=0x28522c0, pdev=0x1e92c88, rgn=..., offset=..., flags=<optimized out>, sharedPainter=0x0, backingStore=0x25372d0) at kernel/qwidget.cpp:5581
#42 0x00007fce55aad3df in QWidgetPrivate::paintSiblingsRecursive (this=0x2850970, pdev=0x1e92c88, siblings=<optimized out>, index=<optimized out>, rgn=..., offset=..., flags=4, sharedPainter=0x0, backingStore=0x25372d0) at kernel/qwidget.cpp:5735
#43 0x00007fce55aad29c in QWidgetPrivate::paintSiblingsRecursive (this=0x2850970, pdev=0x1e92c88, siblings=..., index=3, rgn=..., offset=..., flags=4, sharedPainter=0x0, backingStore=0x25372d0) at kernel/qwidget.cpp:5722
#44 0x00007fce55aac578 in QWidgetPrivate::drawWidget (this=0x2850970, pdev=0x1e92c88, rgn=..., offset=..., flags=<optimized out>, sharedPainter=0x0, backingStore=0x25372d0) at kernel/qwidget.cpp:5581
#45 0x00007fce55aad3df in QWidgetPrivate::paintSiblingsRecursive (this=0x280c220, pdev=0x1e92c88, siblings=<optimized out>, index=<optimized out>, rgn=..., offset=..., flags=4, sharedPainter=0x0, backingStore=0x25372d0) at kernel/qwidget.cpp:5735
#46 0x00007fce55aac578 in QWidgetPrivate::drawWidget (this=0x280c220, pdev=0x1e92c88, rgn=..., offset=..., flags=<optimized out>, sharedPainter=0x0, backingStore=0x25372d0) at kernel/qwidget.cpp:5581
#47 0x00007fce55aad3df in QWidgetPrivate::paintSiblingsRecursive (this=0x244f960, pdev=0x1e92c88, siblings=<optimized out>, index=<optimized out>, rgn=..., offset=..., flags=4, sharedPainter=0x0, backingStore=0x25372d0) at kernel/qwidget.cpp:5735
#48 0x00007fce55aad29c in QWidgetPrivate::paintSiblingsRecursive (this=0x244f960, pdev=0x1e92c88, siblings=..., index=82, rgn=..., offset=..., flags=4, sharedPainter=0x0, backingStore=0x25372d0) at kernel/qwidget.cpp:5722
#49 0x00007fce55aad29c in QWidgetPrivate::paintSiblingsRecursive (this=0x244f960, pdev=0x1e92c88, siblings=..., index=83, rgn=..., offset=..., flags=4, sharedPainter=0x0, backingStore=0x25372d0) at kernel/qwidget.cpp:5722
#50 0x00007fce55aad29c in QWidgetPrivate::paintSiblingsRecursive (this=0x244f960, pdev=0x1e92c88, siblings=..., index=84, rgn=..., offset=..., flags=4, sharedPainter=0x0, backingStore=0x25372d0) at kernel/qwidget.cpp:5722
#51 0x00007fce55aac578 in QWidgetPrivate::drawWidget (this=0x244f960, pdev=0x1e92c88, rgn=..., offset=..., flags=<optimized out>, sharedPainter=0x0, backingStore=0x25372d0) at kernel/qwidget.cpp:5581
#52 0x00007fce55c6c3a0 in QWidgetBackingStore::sync (this=0x25372d0) at painting/qbackingstore.cpp:1338
#53 0x00007fce55aa2ba8 in QWidgetPrivate::syncBackingStore (this=0x244f960) at kernel/qwidget.cpp:1862
#54 0x00007fce55aafde2 in QWidget::event (this=0x2446500, event=0x29eccf0) at kernel/qwidget.cpp:8588
#55 0x00007fce55e4f98b in QMainWindow::event (this=0x2446500, event=0x29eccf0) at widgets/qmainwindow.cpp:1478
#56 0x00007fce55a5ed54 in QApplicationPrivate::notify_helper (this=0x1ec29f0, receiver=0x2446500, e=0x29eccf0) at kernel/qapplication.cpp:4481
#57 0x00007fce55a6383a in QApplication::notify (this=<optimized out>, receiver=0x2446500, e=0x29eccf0) at kernel/qapplication.cpp:4360
#58 0x00007fce57a477d6 in KApplication::notify (this=0x7ffffa24bf70, receiver=0x2446500, event=0x29eccf0) at /var/tmp/portage/kde-base/kdelibs-4.7.4/work/kdelibs-4.7.4/kdeui/kernel/kapplication.cpp:311
#59 0x00007fce55085423 in QCoreApplication::notifyInternal (this=0x7ffffa24bf70, receiver=0x2446500, event=0x29eccf0) at kernel/qcoreapplication.cpp:787
#60 0x00007fce55088b6c in sendEvent (event=0x29eccf0, receiver=0x2446500) at kernel/qcoreapplication.h:215
#61 QCoreApplicationPrivate::sendPostedEvents (receiver=0x2446500, event_type=77, data=0x1d36b00) at kernel/qcoreapplication.cpp:1428
#62 0x00007fce5602d892 in dispatchPendingUpdateRequests (this=0x28a3210) at ../../include/QtGui/private/../../../src/gui/graphicsview/qgraphicsview_p.h:189
#63 QGraphicsScenePrivate::_q_processDirtyItems (this=0x288eff0) at graphicsview/qgraphicsscene.cpp:511
#64 0x00007fce5602dc92 in QGraphicsScene::qt_metacall (this=0x288efd0, _c=QMetaObject::InvokeMetaMethod, _id=14, _a=0x25291b0) at .moc/release-shared/moc_qgraphicsscene.cpp:130
#65 0x00007fce5114a215 in Plasma::Corona::qt_metacall (this=0x288efd0, _c=QMetaObject::InvokeMetaMethod, _id=<optimized out>, _a=0x25291b0) at /var/tmp/portage/kde-base/kdelibs-4.7.4/work/kdelibs-4.7.4_build/plasma/corona.moc:109
#66 0x00007fce56a1e3e0 in Context::ContextScene::qt_metacall (this=0x288efd0, _c=QMetaObject::InvokeMetaMethod, _id=<optimized out>, _a=0x25291b0) at /var/tmp/portage/media-sound/amarok-2.5.0/work/amarok-2.5.0_build/src/ContextScene.moc:70
#67 0x00007fce55099412 in QObject::event (this=0x288efd0, e=<optimized out>) at kernel/qobject.cpp:1217
#68 0x00007fce5603a660 in QGraphicsScene::event (this=0x288efd0, event=0x25bbc20) at graphicsview/qgraphicsscene.cpp:3545
#69 0x00007fce55a5ed54 in QApplicationPrivate::notify_helper (this=0x1ec29f0, receiver=0x288efd0, e=0x25bbc20) at kernel/qapplication.cpp:4481
#70 0x00007fce55a6383a in QApplication::notify (this=<optimized out>, receiver=0x288efd0, e=0x25bbc20) at kernel/qapplication.cpp:4360
#71 0x00007fce57a477d6 in KApplication::notify (this=0x7ffffa24bf70, receiver=0x288efd0, event=0x25bbc20) at /var/tmp/portage/kde-base/kdelibs-4.7.4/work/kdelibs-4.7.4/kdeui/kernel/kapplication.cpp:311
#72 0x00007fce55085423 in QCoreApplication::notifyInternal (this=0x7ffffa24bf70, receiver=0x288efd0, event=0x25bbc20) at kernel/qcoreapplication.cpp:787
#73 0x00007fce55088b6c in sendEvent (event=0x25bbc20, receiver=0x288efd0) at kernel/qcoreapplication.h:215
#74 QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0x1d36b00) at kernel/qcoreapplication.cpp:1428
#75 0x00007fce550af923 in sendPostedEvents () at kernel/qcoreapplication.h:220
#76 postEventSourceDispatch (s=<optimized out>) at kernel/qeventdispatcher_glib.cpp:277
#77 0x00007fce4f27d992 in g_main_dispatch (context=0x1ebd2f0) at gmain.c:2441
#78 g_main_context_dispatch (context=0x1ebd2f0) at gmain.c:3014
#79 0x00007fce4f27e140 in g_main_context_iterate (context=0x1ebd2f0, block=1, dispatch=1, self=<optimized out>) at gmain.c:3092
#80 0x00007fce4f27e3dd in g_main_context_iteration (context=0x1ebd2f0, may_block=1) at gmain.c:3155
#81 0x00007fce550afaaf in QEventDispatcherGlib::processEvents (this=0x1d362e0, flags=<optimized out>) at kernel/qeventdispatcher_glib.cpp:422
#82 0x00007fce55b026ee in QGuiEventDispatcherGlib::processEvents (this=<optimized out>, flags=<optimized out>) at kernel/qguieventdispatcher_glib.cpp:204
#83 0x00007fce55084832 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#84 0x00007fce55084a74 in QEventLoop::exec (this=0x7ffffa24bed0, flags=...) at kernel/qeventloop.cpp:201
#85 0x00007fce55088e03 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1064
#86 0x000000000040e362 in main (argc=1, argv=0x7ffffa24e3f8) at /var/tmp/portage/media-sound/amarok-2.5.0/work/amarok-2.5.0/src/main.cpp:303

Reported using DrKonqi
Comment 1 Myriam Schweingruber 2011-12-25 11:07:06 UTC
bug 287192 seems related as well
Comment 2 David Solbach 2012-01-01 13:31:59 UTC
Created attachment 67299 [details]
New crash information added by DrKonqi

amarok (2.5.0) on KDE Platform 4.7.4 (4.7.4) using Qt 4.8.0

- What I was doing when the application crashed:

Amarok was running, and I plugged in the Galaxy S2 in Mass Storage mode.
The Bug was reproducible, although, it didn't happen every time.

-- Backtrace (Reduced):
#7  0x06b4ceab in QMap (other=..., this=0xbfd70a78) at /usr/include/QtCore/qmap.h:183
#8  trackMap (this=0x0) at /usr/src/debug/amarok-2.5.0/src/core-impl/collections/support/MemoryCollection.h:43
#9  UmsCollection::createCapabilityInterface (this=0xa5ced70, type=Capabilities::Capability::Actions) at /usr/src/debug/amarok-2.5.0/src/core-impl/collections/umscollection/UmsCollection.cpp:416
#10 0x4d20f1ac in create<Capabilities::ActionsCapability> (this=<optimized out>) at /usr/src/debug/amarok-2.5.0/src/core/collections/Collection.h:99
#11 CollectionTreeItem::decoratorActions (this=0x0) at /usr/src/debug/amarok-2.5.0/src/browsers/CollectionTreeItem.cpp:197
Comment 3 Myriam Schweingruber 2012-01-01 23:24:59 UTC
Confirmed by duplicate.
Comment 4 Myriam Schweingruber 2012-01-07 22:59:22 UTC
*** Bug 290858 has been marked as a duplicate of this bug. ***
Comment 5 Myriam Schweingruber 2012-01-21 12:31:32 UTC
*** Bug 291945 has been marked as a duplicate of this bug. ***
Comment 6 Bart Cerneels 2012-01-25 09:06:22 UTC
Git commit 4abcbc2fcc88f6902e127e6d19c89e007c31f157 by Bart Cerneels.
Committed on 25/01/2012 at 08:57.
Pushed by shanachie into branch 'master'.

Fix crash when remounting UMS.

Fix crash when a device holding a UmsCollection is mounted again after an unmount without removing the device in between.
The crash occours because the QSharedPointer m_mc is cleared during an unmount but not initialized when mounted again. I fixed this issue by initializing m_mc in the init-method and not in the constructor.

Patch by Volker Christian
FIXED-IN:2.6

REVIEW:103774

M  +3    -1    src/core-impl/collections/umscollection/UmsCollection.cpp

http://commits.kde.org/amarok/4abcbc2fcc88f6902e127e6d19c89e007c31f157
Comment 7 Myriam Schweingruber 2012-10-02 19:23:56 UTC
*** Bug 307740 has been marked as a duplicate of this bug. ***