Bug 292192

Summary: Crash when plugging in iPod
Product: [Applications] amarok Reporter: uberprugelknabe
Component: Collections/iPod iPhoneAssignee: Amarok Developers <amarok-bugs-dist>
Status: RESOLVED DUPLICATE    
Severity: crash CC: matej
Priority: NOR    
Version: 2.5-git   
Target Milestone: 2.6   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description uberprugelknabe 2012-01-22 14:07:22 UTC
Application: amarok (2.5-GIT)
KDE Platform Version: 4.7.3 (4.7.3)
Qt Version: 4.7.4
Operating System: Linux 3.0.0-15-generic x86_64
Distribution: Ubuntu 11.10

-- Information about the crash:
Was listening to a podcast and plugged in an iPod shuffle and Amarok crashed. Amarok was running as amarok --debug and the output on the terminal was the following:

ASSERT: "d" in file /usr/include/KDE/../ksharedptr.h, line 126
KCrash: Application 'amarok' crashing...
KCrash: Attempting to start /usr/lib/kde4/libexec/drkonqi from kdeinit
sock_file=/home/ogmundur/.kde/socket-Augustiner/kdeinit4__0
QSocketNotifier: Invalid socket 15 and type 'Read', disabling...
QSocketNotifier: Invalid socket 5 and type 'Read', disabling...
QSocketNotifier: Invalid socket 61 and type 'Read', disabling...
amarok: Fatal IO error 9 (Bad file descriptor) on X server :0.0.
[0x4f63e90] pulse audio output error: cannot write: Connection terminated

... repeated several times ...

Assertion 'pa_close(fds[0]) == 0' failed at pulsecore/core-util.c:2279, function pa_close_pipe(). Aborting.
Unable to start Dr. Konqi
drkonqi(6023): The specified process does not exist.

Looks like a problem in pulse audio rather than Amarok but I'm no expert.

-- Backtrace:
Application: Amarok (amarok), signal: Aborted
[Current thread is 1 (Thread 0x7f7e76fbd7a0 (LWP 6039))]

Thread 5 (Thread 0x7f7e57a99700 (LWP 6041)):
#0  0x00007f7e737fe773 in __GI___poll (fds=<optimized out>, nfds=<optimized out>, timeout=<optimized out>) at ../sysdeps/unix/sysv/linux/poll.c:87
#1  0x00007f7e6d31af68 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f7e6d31b792 in g_main_loop_run () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f7e5f1bb516 in ?? () from /usr/lib/x86_64-linux-gnu/libgio-2.0.so.0
#4  0x00007f7e6d3402b6 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007f7e7000defc in start_thread (arg=0x7f7e57a99700) at pthread_create.c:304
#6  0x00007f7e7380a89d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#7  0x0000000000000000 in ?? ()

Thread 4 (Thread 0x7f7e19fa8700 (LWP 6046)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007f7e4d0fad54 in ?? () from /usr/lib/libvlccore.so.4
#2  0x00007f7e7000defc in start_thread (arg=0x7f7e19fa8700) at pthread_create.c:304
#3  0x00007f7e7380a89d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#4  0x0000000000000000 in ?? ()

Thread 3 (Thread 0x7f7e13d5d700 (LWP 6049)):
#0  0x00007f7e737fe773 in __GI___poll (fds=<optimized out>, nfds=<optimized out>, timeout=<optimized out>) at ../sysdeps/unix/sysv/linux/poll.c:87
#1  0x00007f7e6d31af68 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f7e6d31b429 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f7e7417cf3e in QEventDispatcherGlib::processEvents (this=0x24cd990, flags=<optimized out>) at kernel/qeventdispatcher_glib.cpp:424
#4  0x00007f7e74150cf2 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#5  0x00007f7e74150ef7 in QEventLoop::exec (this=0x7f7e13d5cdb0, flags=...) at kernel/qeventloop.cpp:201
#6  0x00007f7e7406827f in QThread::exec (this=<optimized out>) at thread/qthread.cpp:498
#7  0x00007f7e74133cbf in QInotifyFileSystemWatcherEngine::run (this=0x2842650) at io/qfilesystemwatcher_inotify.cpp:248
#8  0x00007f7e7406ad05 in QThreadPrivate::start (arg=0x2842650) at thread/qthread_unix.cpp:331
#9  0x00007f7e7000defc in start_thread (arg=0x7f7e13d5d700) at pthread_create.c:304
#10 0x00007f7e7380a89d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#11 0x0000000000000000 in ?? ()

Thread 2 (Thread 0x7f7e12846700 (LWP 6050)):
[KCrash Handler]
#6  0x00007f7e7375f3a5 in __GI_raise (sig=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:64
#7  0x00007f7e73762b0b in __GI_abort () at abort.c:92
#8  0x00007f7e7406143b in qt_message_output (msgType=<optimized out>, buf=0x7f7e50021908 "ASSERT: \"d\" in file /usr/include/KDE/../ksharedptr.h, line 126") at global/qglobal.cpp:2315
#9  0x00007f7e740617ef in qt_message(QtMsgType, const char *, typedef __va_list_tag __va_list_tag *) (msgType=QtFatalMsg, msg=0x7f7e741b0a58 "ASSERT: \"%s\" in file %s, line %d", ap=0x7f7e12845878) at global/qglobal.cpp:2361
#10 0x00007f7e74061994 in qFatal (msg=<optimized out>) at global/qglobal.cpp:2544
#11 0x00007f7e75caa4a6 in KSharedPtr<Meta::MediaDeviceAlbum>::operator-> (this=0x7f7e128459d0) at /usr/include/KDE/../ksharedptr.h:126
#12 0x00007f7e75cb36d4 in Meta::MediaDeviceHandler::setupAlbumMap (this=0x2969920, track=..., albumMap=..., artistMap=...) at /home/ogmundur/kde/src/amarok/src/core-impl/collections/mediadevicecollection/handler/MediaDeviceHandler.cpp:721
#13 0x00007f7e75cb453f in Meta::MediaDeviceHandler::privateParseTracks (this=0x2969920) at /home/ogmundur/kde/src/amarok/src/core-impl/collections/mediadevicecollection/handler/MediaDeviceHandler.cpp:830
#14 0x00007f7e75cb6078 in Meta::ParseWorkerThread::run (this=0x2969700) at /home/ogmundur/kde/src/amarok/src/core-impl/collections/mediadevicecollection/handler/MediaDeviceHandler.cpp:1191
#15 0x00007f7e715a0491 in ThreadWeaver::JobRunHelper::runTheJob (this=0x7f7e12845d80, th=0x29200f0, job=0x2969700) at ../../../threadweaver/Weaver/Job.cpp:106
#16 0x00007f7e715a05bc in ThreadWeaver::Job::execute (this=0x2969700, th=0x29200f0) at ../../../threadweaver/Weaver/Job.cpp:135
#17 0x00007f7e7159fc9f in ThreadWeaver::ThreadRunHelper::run (this=0x7f7e12845e00, parent=0x28abe20, th=0x29200f0) at ../../../threadweaver/Weaver/Thread.cpp:95
#18 0x00007f7e7159fd5b in ThreadWeaver::Thread::run (this=0x29200f0) at ../../../threadweaver/Weaver/Thread.cpp:142
#19 0x00007f7e7406ad05 in QThreadPrivate::start (arg=0x29200f0) at thread/qthread_unix.cpp:331
#20 0x00007f7e7000defc in start_thread (arg=0x7f7e12846700) at pthread_create.c:304
#21 0x00007f7e7380a89d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#22 0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7f7e76fbd7a0 (LWP 6039)):
#0  0x00007f7e737fe773 in __GI___poll (fds=<optimized out>, nfds=<optimized out>, timeout=<optimized out>) at ../sysdeps/unix/sysv/linux/poll.c:87
#1  0x00007f7e6dc274f2 in ?? () from /usr/lib/x86_64-linux-gnu/libxcb.so.1
#2  0x00007f7e6dc27a3f in ?? () from /usr/lib/x86_64-linux-gnu/libxcb.so.1
#3  0x00007f7e6dc27ac4 in xcb_writev () from /usr/lib/x86_64-linux-gnu/libxcb.so.1
#4  0x00007f7e75675597 in _XSend () from /usr/lib/x86_64-linux-gnu/libX11.so.6
#5  0x00007f7e75675930 in _XFlush () from /usr/lib/x86_64-linux-gnu/libX11.so.6
#6  0x00007f7e7565504a in XFlush () from /usr/lib/x86_64-linux-gnu/libX11.so.6
#7  0x00007f7e74ba23ff in QWidget::setCursor (this=0x2912c30, cursor=...) at kernel/qwidget.cpp:5063
#8  0x00007f7e74f56b19 in QLineEditPrivate::init (this=0x28e12f0, txt=...) at widgets/qlineedit_p.cpp:186
#9  0x00007f7e74f582df in QLineEdit::QLineEdit (this=0x2912c30, parent=0x250d680) at widgets/qlineedit.cpp:269
#10 0x00007f7e76a86573 in KLineEdit::KLineEdit (this=0x2912c30, parent=<optimized out>) at ../../kdeui/widgets/klineedit.cpp:241
#11 0x00007f7e76a68db8 in KComboBox::setEditable (this=0x250d680, editable=<optimized out>) at ../../kdeui/widgets/kcombobox.cpp:392
#12 0x00007f7e75ff4845 in Amarok::ComboBox::ComboBox (this=0x250d680, parent=0x292aec0) at /home/ogmundur/kde/src/amarok/src/widgets/ComboBox.cpp:28
#13 0x00007f7e75fff3cf in SearchWidget::SearchWidget (this=0x28b9290, parent=0x2959d80, advanced=false) at /home/ogmundur/kde/src/amarok/src/widgets/SearchWidget.cpp:46
#14 0x00007f7e75b243c1 in BrowserCategoryList::BrowserCategoryList (this=0x2959d80, name=..., parent=0x0, sort=true) at /home/ogmundur/kde/src/amarok/src/browsers/BrowserCategoryList.cpp:51
#15 0x00007f7e75ce1b58 in ServiceBrowser::ServiceBrowser (this=0x2959d80, name=..., parent=0x0) at /home/ogmundur/kde/src/amarok/src/browsers/servicebrowser/ServiceBrowser.cpp:36
#16 0x00007f7e75ce1add in ServiceBrowser::instance () at /home/ogmundur/kde/src/amarok/src/browsers/servicebrowser/ServiceBrowser.cpp:28
#17 0x00007f7e75cd10ad in ServicePluginManager::ServicePluginManager (this=0x2911520, parent=0x1ec0360) at /home/ogmundur/kde/src/amarok/src/services/ServicePluginManager.cpp:32
#18 0x00007f7e75f1142c in Plugins::PluginManager::init (this=0x1ec0360) at /home/ogmundur/kde/src/amarok/src/PluginManager.cpp:87
#19 0x00007f7e75f10f8e in Plugins::PluginManager::PluginManager (this=0x1ec0360, parent=0x0) at /home/ogmundur/kde/src/amarok/src/PluginManager.cpp:64
#20 0x00007f7e75f10dd4 in Plugins::PluginManager::instance () at /home/ogmundur/kde/src/amarok/src/PluginManager.cpp:43
#21 0x00007f7e75b8d4c7 in The::pluginManager () at /home/ogmundur/kde/src/amarok/src/PluginManager.h:76
#22 0x00007f7e75ef01dd in MainWindow::MainWindow (this=0x24d1b10) at /home/ogmundur/kde/src/amarok/src/MainWindow.cpp:139
#23 0x00007f7e75ed6721 in App::continueInit (this=0x7fffcea1f310) at /home/ogmundur/kde/src/amarok/src/App.cpp:545
#24 0x00007f7e75ed3c7e in App::App (this=0x7fffcea1f310) at /home/ogmundur/kde/src/amarok/src/App.cpp:185
#25 0x000000000040c7b4 in main (argc=2, argv=0x7fffcea21788) at /home/ogmundur/kde/src/amarok/src/main.cpp:301

Reported using DrKonqi
Comment 1 Matěj Laitl 2012-01-23 09:57:54 UTC
Thanks for your report, this has been fixed 2 days ago in duplicate bug.

*** This bug has been marked as a duplicate of bug 291968 ***
Comment 2 uberprugelknabe 2012-01-23 18:41:06 UTC
(In reply to comment #1)
> Thanks for your report, this has been fixed 2 days ago in duplicate bug.
> 
> *** This bug has been marked as a duplicate of bug 291968 ***

Cool, thanks! I'm compiling from the git sources now.

Regards,
Ögmundur