Bug 281614 - Amarok crashes when MTP device unplugged
Summary: Amarok crashes when MTP device unplugged
Status: RESOLVED DUPLICATE of bug 279966
Alias: None
Product: amarok
Classification: Applications
Component: general (show other bugs)
Version: 2.4.3
Platform: Ubuntu Linux
: NOR crash
Target Milestone: 2.5
Assignee: Amarok Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-09-08 11:15 UTC by Alex Ball
Modified: 2011-09-08 20:08 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alex Ball 2011-09-08 11:15:21 UTC
Application: amarok (2.4.3)
KDE Platform Version: 4.7.00 (4.7.0)
Qt Version: 4.7.2
Operating System: Linux 2.6.38-11-generic x86_64
Distribution: Ubuntu 11.04

-- Information about the crash:
Element of PEBCAK, I admit, but...

- What I was doing when the application crashed:
Amarok was running when I plugged my MP3 player in to the USB to recharge it. I didn't look to see, but I now realise Amarok must have connected with it using MTP and incorporated it into the Collection. When I unplugged the device again, without thinking to go into Amarok to 'eject' it properly, Amarok crashed.

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

Thread 9 (Thread 0x7f075a168700 (LWP 1947)):
#0  0x00007f07755e3f03 in __poll (fds=<value optimized out>, nfds=<value optimized out>, timeout=<value optimized out>) at ../sysdeps/unix/sysv/linux/poll.c:87
#1  0x00007f076d9d332f in ?? () from /usr/lib/libpulse.so.0
#2  0x00007f076d9c5116 in pa_mainloop_poll () from /usr/lib/libpulse.so.0
#3  0x00007f076d9c5749 in pa_mainloop_iterate () from /usr/lib/libpulse.so.0
#4  0x00007f076d9c5800 in pa_mainloop_run () from /usr/lib/libpulse.so.0
#5  0x00007f076d9d32df in ?? () from /usr/lib/libpulse.so.0
#6  0x00007f07692cfa88 in ?? () from /usr/lib/libpulsecommon-0.9.22.so
#7  0x00007f0771e0ad8c in start_thread (arg=0x7f075a168700) at pthread_create.c:304
#8  0x00007f07755f104d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#9  0x0000000000000000 in ?? ()

Thread 8 (Thread 0x7f075081c700 (LWP 1957)):
#0  __libc_enable_asynccancel () at ../nptl/sysdeps/unix/sysv/linux/x86_64/cancellation.S:66
#1  0x00007f07755e3ee8 in __poll (fds=<value optimized out>, nfds=<value optimized out>, timeout=<value optimized out>) at ../sysdeps/unix/sysv/linux/poll.c:85
#2  0x00007f0770368104 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f0770368639 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007f0775f41446 in QEventDispatcherGlib::processEvents (this=0x1589340, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:424
#5  0x00007f0775f15882 in QEventLoop::processEvents (this=<value optimized out>, flags=...) at kernel/qeventloop.cpp:149
#6  0x00007f0775f15abc in QEventLoop::exec (this=0x7f075081bdb0, flags=...) at kernel/qeventloop.cpp:201
#7  0x00007f0775e2c924 in QThread::exec (this=<value optimized out>) at thread/qthread.cpp:492
#8  0x00007f0775ef7c2f in QInotifyFileSystemWatcherEngine::run (this=0x155a390) at io/qfilesystemwatcher_inotify.cpp:248
#9  0x00007f0775e2f175 in QThreadPrivate::start (arg=0x155a390) at thread/qthread_unix.cpp:320
#10 0x00007f0771e0ad8c in start_thread (arg=0x7f075081c700) at pthread_create.c:304
#11 0x00007f07755f104d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#12 0x0000000000000000 in ?? ()

Thread 7 (Thread 0x7f074d791700 (LWP 2004)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007f0775e2f82b in wait (this=<value optimized out>, mutex=0x17318c0, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:88
#2  QWaitCondition::wait (this=<value optimized out>, mutex=0x17318c0, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:160
#3  0x00007f07733a5704 in ThreadWeaver::WeaverImpl::blockThreadUntilJobsAreBeingAssigned (this=0x1731540, th=0x1731db0) at ../../../threadweaver/Weaver/WeaverImpl.cpp:365
#4  0x00007f07733a7d73 in ThreadWeaver::WorkingHardState::applyForWork (this=0x17319e0, th=0x1731db0) at ../../../threadweaver/Weaver/WorkingHardState.cpp:71
#5  0x00007f07733a7d8c in ThreadWeaver::WorkingHardState::applyForWork (this=0x17319e0, th=0x1731db0) at ../../../threadweaver/Weaver/WorkingHardState.cpp:74
#6  0x00007f07733a7d8c in ThreadWeaver::WorkingHardState::applyForWork (this=0x17319e0, th=0x1731db0) at ../../../threadweaver/Weaver/WorkingHardState.cpp:74
#7  0x00007f07733a7d8c in ThreadWeaver::WorkingHardState::applyForWork (this=0x17319e0, th=0x1731db0) at ../../../threadweaver/Weaver/WorkingHardState.cpp:74
#8  0x00007f07733a6b8f in ThreadWeaver::ThreadRunHelper::run (this=0x7f074d790e00, parent=0x1731540, th=0x1731db0) at ../../../threadweaver/Weaver/Thread.cpp:87
#9  0x00007f07733a6c1b in ThreadWeaver::Thread::run (this=0x1731db0) at ../../../threadweaver/Weaver/Thread.cpp:142
#10 0x00007f0775e2f175 in QThreadPrivate::start (arg=0x1731db0) at thread/qthread_unix.cpp:320
#11 0x00007f0771e0ad8c in start_thread (arg=0x7f074d791700) at pthread_create.c:304
#12 0x00007f07755f104d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#13 0x0000000000000000 in ?? ()

Thread 6 (Thread 0x7f0746c77700 (LWP 2008)):
#0  0xffffffffff60014c in ?? ()
#1  0x00007f0746c76ac0 in ?? ()
#2  0x00007fffe0fa57b2 in ?? ()
Backtrace stopped: previous frame identical to this frame (corrupt stack?)

Thread 5 (Thread 0x7f0746259700 (LWP 2009)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007f0775e2f82b in wait (this=<value optimized out>, mutex=0x17318c0, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:88
#2  QWaitCondition::wait (this=<value optimized out>, mutex=0x17318c0, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:160
#3  0x00007f07733a5704 in ThreadWeaver::WeaverImpl::blockThreadUntilJobsAreBeingAssigned (this=0x1731540, th=0x19e3560) at ../../../threadweaver/Weaver/WeaverImpl.cpp:365
#4  0x00007f07733a7d73 in ThreadWeaver::WorkingHardState::applyForWork (this=0x17319e0, th=0x19e3560) at ../../../threadweaver/Weaver/WorkingHardState.cpp:71
#5  0x00007f07733a7d8c in ThreadWeaver::WorkingHardState::applyForWork (this=0x17319e0, th=0x19e3560) at ../../../threadweaver/Weaver/WorkingHardState.cpp:74
#6  0x00007f07733a7d8c in ThreadWeaver::WorkingHardState::applyForWork (this=0x17319e0, th=0x19e3560) at ../../../threadweaver/Weaver/WorkingHardState.cpp:74
#7  0x00007f07733a7d8c in ThreadWeaver::WorkingHardState::applyForWork (this=0x17319e0, th=0x19e3560) at ../../../threadweaver/Weaver/WorkingHardState.cpp:74
#8  0x00007f07733a7d8c in ThreadWeaver::WorkingHardState::applyForWork (this=0x17319e0, th=0x19e3560) at ../../../threadweaver/Weaver/WorkingHardState.cpp:74
#9  0x00007f07733a6b8f in ThreadWeaver::ThreadRunHelper::run (this=0x7f0746258e00, parent=0x1731540, th=0x19e3560) at ../../../threadweaver/Weaver/Thread.cpp:87
#10 0x00007f07733a6c1b in ThreadWeaver::Thread::run (this=0x19e3560) at ../../../threadweaver/Weaver/Thread.cpp:142
#11 0x00007f0775e2f175 in QThreadPrivate::start (arg=0x19e3560) at thread/qthread_unix.cpp:320
#12 0x00007f0771e0ad8c in start_thread (arg=0x7f0746259700) at pthread_create.c:304
#13 0x00007f07755f104d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#14 0x0000000000000000 in ?? ()

Thread 4 (Thread 0x7f074584d700 (LWP 2010)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007f0775e2f82b in wait (this=<value optimized out>, mutex=0x17318c0, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:88
#2  QWaitCondition::wait (this=<value optimized out>, mutex=0x17318c0, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:160
#3  0x00007f07733a5704 in ThreadWeaver::WeaverImpl::blockThreadUntilJobsAreBeingAssigned (this=0x1731540, th=0x1944790) at ../../../threadweaver/Weaver/WeaverImpl.cpp:365
#4  0x00007f07733a7d73 in ThreadWeaver::WorkingHardState::applyForWork (this=0x17319e0, th=0x1944790) at ../../../threadweaver/Weaver/WorkingHardState.cpp:71
#5  0x00007f07733a6b8f in ThreadWeaver::ThreadRunHelper::run (this=0x7f074584ce00, parent=0x1731540, th=0x1944790) at ../../../threadweaver/Weaver/Thread.cpp:87
#6  0x00007f07733a6c1b in ThreadWeaver::Thread::run (this=0x1944790) at ../../../threadweaver/Weaver/Thread.cpp:142
#7  0x00007f0775e2f175 in QThreadPrivate::start (arg=0x1944790) at thread/qthread_unix.cpp:320
#8  0x00007f0771e0ad8c in start_thread (arg=0x7f074584d700) at pthread_create.c:304
#9  0x00007f07755f104d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#10 0x0000000000000000 in ?? ()

Thread 3 (Thread 0x7f074504c700 (LWP 2011)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007f0775e2f82b in wait (this=<value optimized out>, mutex=0x17318c0, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:88
#2  QWaitCondition::wait (this=<value optimized out>, mutex=0x17318c0, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:160
#3  0x00007f07733a5704 in ThreadWeaver::WeaverImpl::blockThreadUntilJobsAreBeingAssigned (this=0x1731540, th=0x193fae0) at ../../../threadweaver/Weaver/WeaverImpl.cpp:365
#4  0x00007f07733a7d73 in ThreadWeaver::WorkingHardState::applyForWork (this=0x17319e0, th=0x193fae0) at ../../../threadweaver/Weaver/WorkingHardState.cpp:71
#5  0x00007f07733a7d8c in ThreadWeaver::WorkingHardState::applyForWork (this=0x17319e0, th=0x193fae0) at ../../../threadweaver/Weaver/WorkingHardState.cpp:74
#6  0x00007f07733a6b8f in ThreadWeaver::ThreadRunHelper::run (this=0x7f074504be00, parent=0x1731540, th=0x193fae0) at ../../../threadweaver/Weaver/Thread.cpp:87
#7  0x00007f07733a6c1b in ThreadWeaver::Thread::run (this=0x193fae0) at ../../../threadweaver/Weaver/Thread.cpp:142
#8  0x00007f0775e2f175 in QThreadPrivate::start (arg=0x193fae0) at thread/qthread_unix.cpp:320
#9  0x00007f0771e0ad8c in start_thread (arg=0x7f074504c700) at pthread_create.c:304
#10 0x00007f07755f104d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#11 0x0000000000000000 in ?? ()

Thread 2 (Thread 0x7f0743a68700 (LWP 2048)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007f07723f12a2 in QTWTF::TCMalloc_PageHeap::scavengerThread (this=0x7f077270a180) at ../3rdparty/javascriptcore/JavaScriptCore/wtf/FastMalloc.cpp:2359
#2  0x00007f07723f12d9 in QTWTF::TCMalloc_PageHeap::runScavengerThread (context=0x7f0772718254) at ../3rdparty/javascriptcore/JavaScriptCore/wtf/FastMalloc.cpp:1464
#3  0x00007f0771e0ad8c in start_thread (arg=0x7f0743a68700) at pthread_create.c:304
#4  0x00007f07755f104d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#5  0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7f0778ea07a0 (LWP 1882)):
[KCrash Handler]
#6  d_func (sender=0x0, m=<value optimized out>, local_signal_index=1, argv=0x7fffe0e11ce0) at ../../include/QtCore/../../src/corelib/kernel/qobject.h:125
#7  QMetaObject::activate (sender=0x0, m=<value optimized out>, local_signal_index=1, argv=0x7fffe0e11ce0) at kernel/qobject.cpp:3210
#8  0x00007f0777b44f45 in Collections::MediaDeviceCollection::collectionDisconnected (this=<value optimized out>, _t1=<value optimized out>) at ./MediaDeviceCollection.moc:181
#9  0x00007f0777b451fe in Collections::MediaDeviceCollection::slotAttemptConnectionDone (this=0x0, success=<value optimized out>) at ../../src/core-impl/collections/mediadevicecollection/MediaDeviceCollection.cpp:193
#10 0x00007f0756eeb513 in Meta::MtpHandler::slotDeviceMatchFailed (this=0x1d11020, job=0x172ad80) at ../../../../../src/core-impl/collections/mtpcollection/handler/MtpHandler.cpp:1367
#11 0x00007f0756ee81b9 in Meta::MtpHandler::qt_metacall (this=0x1d11020, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fffe0e11f80) at moc_MtpHandler.cpp:76
#12 0x00007f0775f2b5f8 in QMetaObject::activate (sender=0x172ad80, m=<value optimized out>, local_signal_index=<value optimized out>, argv=0x7fffe0e11f80) at kernel/qobject.cpp:3287
#13 0x00007f07733a6fd2 in ThreadWeaver::Job::failed (this=<value optimized out>, _t1=0x172ad80) at ./Job.moc:104
#14 0x00007f07733a705c in ThreadWeaver::Job::qt_metacall (this=0x172ad80, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7f0728009490) at ./Job.moc:78
#15 0x00007f0775f2a49a in QObject::event (this=0x172ad80, e=<value optimized out>) at kernel/qobject.cpp:1226
#16 0x00007f07768d09f4 in QApplicationPrivate::notify_helper (this=0xf29390, receiver=0x172ad80, e=0x7f0728002e40) at kernel/qapplication.cpp:4462
#17 0x00007f07768d53ba in QApplication::notify (this=<value optimized out>, receiver=0x172ad80, e=0x7f0728002e40) at kernel/qapplication.cpp:4341
#18 0x00007f07788a6796 in KApplication::notify (this=0x7fffe0e12980, receiver=0x172ad80, event=0x7f0728002e40) at ../../kdeui/kernel/kapplication.cpp:311
#19 0x00007f0775f1649c in QCoreApplication::notifyInternal (this=0x7fffe0e12980, receiver=0x172ad80, event=0x7f0728002e40) at kernel/qcoreapplication.cpp:731
#20 0x00007f0775f19c25 in sendEvent (receiver=0x0, event_type=0, data=0xd74b00) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:215
#21 QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0xd74b00) at kernel/qcoreapplication.cpp:1372
#22 0x00007f0775f41253 in sendPostedEvents (s=0xf1e8c0) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:220
#23 postEventSourceDispatch (s=0xf1e8c0) at kernel/qeventdispatcher_glib.cpp:277
#24 0x00007f0770367bcd in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#25 0x00007f07703683a8 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#26 0x00007f0770368639 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#27 0x00007f0775f413ef in QEventDispatcherGlib::processEvents (this=0xd742e0, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:422
#28 0x00007f077697a4de in QGuiEventDispatcherGlib::processEvents (this=<value optimized out>, flags=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:204
#29 0x00007f0775f15882 in QEventLoop::processEvents (this=<value optimized out>, flags=...) at kernel/qeventloop.cpp:149
#30 0x00007f0775f15abc in QEventLoop::exec (this=0x7fffe0e12900, flags=...) at kernel/qeventloop.cpp:201
#31 0x00007f0775f19ecb in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1008
#32 0x000000000040ef0e in main (argc=3, argv=0x7fffe0e14f88) at ../../src/main.cpp:289

Possible duplicates by query: bug 279966.

Reported using DrKonqi
Comment 1 Myriam Schweingruber 2011-09-08 20:08:42 UTC

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