Bug 313064

Summary: Amarok crashes (sometimes) at startup
Product: [Applications] amarok Reporter: Carlos Correia <carlos>
Component: generalAssignee: Amarok Developers <amarok-bugs-dist>
Status: RESOLVED DUPLICATE    
Severity: crash CC: theskepticaltech
Priority: NOR    
Version: 2.6.0   
Target Milestone: 2.7   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: New crash information added by DrKonqi

Description Carlos Correia 2013-01-11 10:19:05 UTC
Application: amarok (2.6.0)
KDE Platform Version: 4.9.3
Qt Version: 4.8.3
Operating System: Linux 3.5.0-21-generic x86_64
Distribution: Ubuntu 12.10

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

Starting Amarok from K menu.

Sometimes, though, it starts and runs OK.

The crash can be reproduced some of the time.

-- Backtrace:
Application: Amarok (amarok), signal: Segmentation fault
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[Current thread is 1 (Thread 0x7f333ae2d780 (LWP 16761))]

Thread 7 (Thread 0x7f33193e9700 (LWP 16764)):
#0  0x00007f3337789303 in __GI___poll (fds=<optimized out>, nfds=<optimized out>, timeout=<optimized out>) at ../sysdeps/unix/sysv/linux/poll.c:87
#1  0x00007f332fa4fb6f in ?? () from /usr/lib/x86_64-linux-gnu/libpulse.so.0
#2  0x00007f332fa410b5 in pa_mainloop_poll () from /usr/lib/x86_64-linux-gnu/libpulse.so.0
#3  0x00007f332fa41719 in pa_mainloop_iterate () from /usr/lib/x86_64-linux-gnu/libpulse.so.0
#4  0x00007f332fa417d0 in pa_mainloop_run () from /usr/lib/x86_64-linux-gnu/libpulse.so.0
#5  0x00007f332fa4fb1f in ?? () from /usr/lib/x86_64-linux-gnu/libpulse.so.0
#6  0x00007f332b121543 in ?? () from /usr/lib/x86_64-linux-gnu/pulseaudio/libpulsecommon-2.1.so
#7  0x00007f3333cd9e9a in start_thread (arg=0x7f33193e9700) at pthread_create.c:308
#8  0x00007f3337794cbd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#9  0x0000000000000000 in ?? ()

Thread 6 (Thread 0x7f330bdbb700 (LWP 16766)):
#0  0x00007f3337789303 in __GI___poll (fds=<optimized out>, nfds=<optimized out>, timeout=<optimized out>) at ../sysdeps/unix/sysv/linux/poll.c:87
#1  0x00007f33321e3d84 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f33321e3ea4 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f333811fc16 in QEventDispatcherGlib::processEvents (this=0x7f3304000900, flags=...) at kernel/qeventdispatcher_glib.cpp:426
#4  0x00007f33380f02bf in QEventLoop::processEvents (this=this@entry=0x7f330bdbadd0, flags=...) at kernel/qeventloop.cpp:149
#5  0x00007f33380f0548 in QEventLoop::exec (this=0x7f330bdbadd0, flags=...) at kernel/qeventloop.cpp:204
#6  0x00007f3337ff1b10 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:501
#7  0x00007f33380d09af in QInotifyFileSystemWatcherEngine::run (this=0x2a686d0) at io/qfilesystemwatcher_inotify.cpp:248
#8  0x00007f3337ff4aec in QThreadPrivate::start (arg=0x2a686d0) at thread/qthread_unix.cpp:338
#9  0x00007f3333cd9e9a in start_thread (arg=0x7f330bdbb700) at pthread_create.c:308
#10 0x00007f3337794cbd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#11 0x0000000000000000 in ?? ()

Thread 5 (Thread 0x7f3309c06700 (LWP 16767)):
[KCrash Handler]
#6  QHash<QString, KSharedPtr<Meta::Track> >::findNode (this=this@entry=0x2a14fd8, akey=..., ahp=ahp@entry=0x7f3309c05aac) at /usr/include/qt4/QtCore/qhash.h:887
#7  0x00007f3312a6ff94 in QHash<QString, KSharedPtr<Meta::Track> >::insert (this=this@entry=0x2a14fd8, akey=..., avalue=...) at /usr/include/qt4/QtCore/qhash.h:762
#8  0x00007f3312a679d4 in SqlRegistry::getTrack (this=0x2a14fc0, path=...) at ../../../../../../src/core-impl/collections/db/sql/SqlRegistry.cpp:173
#9  0x00007f3312a4f67b in Collections::SqlCollection::trackForUrl (this=0x2a152b0, url=...) at ../../../../../../src/core-impl/collections/db/sql/SqlCollection.cpp:423
#10 0x00007f3339d077a1 in CollectionManager::trackForUrl (this=<optimized out>, url=...) at ../../src/core-impl/collections/support/CollectionManager.cpp:457
#11 0x00007f3339cad7fc in MetaProxy::Worker::run (this=0x56e4350) at ../../src/core-impl/meta/proxy/MetaProxyWorker.cpp:32
#12 0x00007f333524ef9a in ThreadWeaver::JobRunHelper::runTheJob (this=this@entry=0x7f3309c05db0, th=th@entry=0x29cfad0, job=job@entry=0x56e4350) at ../../../threadweaver/Weaver/Job.cpp:106
#13 0x00007f333524f111 in ThreadWeaver::Job::execute (this=0x56e4350, th=0x29cfad0) at ../../../threadweaver/Weaver/Job.cpp:135
#14 0x00007f333524e76f in ThreadWeaver::ThreadRunHelper::run (this=this@entry=0x7f3309c05e00, parent=0x29cb690, th=th@entry=0x29cfad0) at ../../../threadweaver/Weaver/Thread.cpp:95
#15 0x00007f333524e82b in ThreadWeaver::Thread::run (this=0x29cfad0) at ../../../threadweaver/Weaver/Thread.cpp:142
#16 0x00007f3337ff4aec in QThreadPrivate::start (arg=0x29cfad0) at thread/qthread_unix.cpp:338
#17 0x00007f3333cd9e9a in start_thread (arg=0x7f3309c06700) at pthread_create.c:308
#18 0x00007f3337794cbd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#19 0x0000000000000000 in ?? ()

Thread 4 (Thread 0x7f3308dec700 (LWP 16769)):
#0  0x00007f333778791d in write () at ../sysdeps/unix/syscall-template.S:82
#1  0x00007f33322201d1 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f33380f4f02 in QCoreApplication::postEvent (receiver=0x29cb690, event=0x7f32f80325f0, priority=<optimized out>) at kernel/qcoreapplication.cpp:1361
#3  0x00007f3338107285 in queued_activate (argv=0x7f3308debc50, c=0x56e4b70, signal=12, sender=0x2b36480) at kernel/qobject.cpp:3431
#4  QMetaObject::activate (sender=0x2b36480, m=<optimized out>, local_signal_index=<optimized out>, argv=0x7f3308debc50) at kernel/qobject.cpp:3507
#5  0x00007f333524e48f in ThreadWeaver::Thread::jobStarted (this=<optimized out>, _t1=0x2b36480, _t2=0x56f84f0) at ./Thread.moc:112
#6  0x00007f3338106f5f in QMetaObject::activate (sender=0x7f3308debe00, m=<optimized out>, local_signal_index=<optimized out>, argv=0x7f3308debdb0) at kernel/qobject.cpp:3547
#7  0x00007f333524e61f in ThreadWeaver::ThreadRunHelper::jobStarted (this=this@entry=0x7f3308debe00, _t1=_t1@entry=0x2b36480, _t2=0x56f84f0) at ./Thread_p.moc:112
#8  0x00007f333524e762 in ThreadWeaver::ThreadRunHelper::run (this=this@entry=0x7f3308debe00, parent=0x29cb690, th=th@entry=0x2b36480) at ../../../threadweaver/Weaver/Thread.cpp:94
#9  0x00007f333524e82b in ThreadWeaver::Thread::run (this=0x2b36480) at ../../../threadweaver/Weaver/Thread.cpp:142
#10 0x00007f3337ff4aec in QThreadPrivate::start (arg=0x2b36480) at thread/qthread_unix.cpp:338
#11 0x00007f3333cd9e9a in start_thread (arg=0x7f3308dec700) at pthread_create.c:308
#12 0x00007f3337794cbd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#13 0x0000000000000000 in ?? ()

Thread 3 (Thread 0x7f3303fff700 (LWP 16770)):
#0  0x00007f333778791d in write () at ../sysdeps/unix/syscall-template.S:82
#1  0x00007f33322201d1 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f33380f4f02 in QCoreApplication::postEvent (receiver=0x56f4e00, event=0x7f32f005f2e0, priority=<optimized out>) at kernel/qcoreapplication.cpp:1361
#3  0x00007f3338107285 in queued_activate (argv=0x7f3303ffed10, c=0x56f5160, signal=7, sender=0x56f4c90) at kernel/qobject.cpp:3431
#4  QMetaObject::activate (sender=0x56f4c90, m=<optimized out>, local_signal_index=<optimized out>, argv=0x7f3303ffed10) at kernel/qobject.cpp:3507
#5  0x00007f333a3bea72 in Amarok::TrackForUrlWorker::finishedLookup (this=<optimized out>, _t1=...) at moc_TrackForUrlWorker.cpp:106
#6  0x00007f3339cad80e in MetaProxy::Worker::run (this=0x56f4c90) at ../../src/core-impl/meta/proxy/MetaProxyWorker.cpp:49
#7  0x00007f333524ef9a in ThreadWeaver::JobRunHelper::runTheJob (this=this@entry=0x7f3303ffedb0, th=th@entry=0x29cfab0, job=job@entry=0x56f4c90) at ../../../threadweaver/Weaver/Job.cpp:106
#8  0x00007f333524f111 in ThreadWeaver::Job::execute (this=0x56f4c90, th=0x29cfab0) at ../../../threadweaver/Weaver/Job.cpp:135
#9  0x00007f333524e76f in ThreadWeaver::ThreadRunHelper::run (this=this@entry=0x7f3303ffee00, parent=0x29cb690, th=th@entry=0x29cfab0) at ../../../threadweaver/Weaver/Thread.cpp:95
#10 0x00007f333524e82b in ThreadWeaver::Thread::run (this=0x29cfab0) at ../../../threadweaver/Weaver/Thread.cpp:142
#11 0x00007f3337ff4aec in QThreadPrivate::start (arg=0x29cfab0) at thread/qthread_unix.cpp:338
#12 0x00007f3333cd9e9a in start_thread (arg=0x7f3303fff700) at pthread_create.c:308
#13 0x00007f3337794cbd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#14 0x0000000000000000 in ?? ()

Thread 2 (Thread 0x7f33037fe700 (LWP 16771)):
#0  0x00007f333778791d in write () at ../sysdeps/unix/syscall-template.S:82
#1  0x00007f33322201d1 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f33380f4f02 in QCoreApplication::postEvent (receiver=0x56f6cc0, event=0x7f32f401bb50, priority=<optimized out>) at kernel/qcoreapplication.cpp:1361
#3  0x00007f3338107285 in queued_activate (argv=0x7f33037fdd10, c=0x56f7020, signal=7, sender=0x56f6b50) at kernel/qobject.cpp:3431
#4  QMetaObject::activate (sender=0x56f6b50, m=<optimized out>, local_signal_index=<optimized out>, argv=0x7f33037fdd10) at kernel/qobject.cpp:3507
#5  0x00007f333a3bea72 in Amarok::TrackForUrlWorker::finishedLookup (this=<optimized out>, _t1=...) at moc_TrackForUrlWorker.cpp:106
#6  0x00007f3339cad80e in MetaProxy::Worker::run (this=0x56f6b50) at ../../src/core-impl/meta/proxy/MetaProxyWorker.cpp:49
#7  0x00007f333524ef9a in ThreadWeaver::JobRunHelper::runTheJob (this=this@entry=0x7f33037fddb0, th=th@entry=0x2450e80, job=job@entry=0x56f6b50) at ../../../threadweaver/Weaver/Job.cpp:106
#8  0x00007f333524f111 in ThreadWeaver::Job::execute (this=0x56f6b50, th=0x2450e80) at ../../../threadweaver/Weaver/Job.cpp:135
#9  0x00007f333524e76f in ThreadWeaver::ThreadRunHelper::run (this=this@entry=0x7f33037fde00, parent=0x29cb690, th=th@entry=0x2450e80) at ../../../threadweaver/Weaver/Thread.cpp:95
#10 0x00007f333524e82b in ThreadWeaver::Thread::run (this=0x2450e80) at ../../../threadweaver/Weaver/Thread.cpp:142
#11 0x00007f3337ff4aec in QThreadPrivate::start (arg=0x2450e80) at thread/qthread_unix.cpp:338
#12 0x00007f3333cd9e9a in start_thread (arg=0x7f33037fe700) at pthread_create.c:308
#13 0x00007f3337794cbd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#14 0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7f333ae2d780 (LWP 16761)):
#0  0x00007f333778e023 in select () at ../sysdeps/unix/syscall-template.S:82
#1  0x00007f333865691e in KLockFile::lock (this=0x7fff1f189800, options=...) at ../../kdecore/io/klockfile_unix.cpp:468
#2  0x00007f33385958fb in KToolInvocation::startKdeinit () at ../../kdecore/kernel/ktoolinvocation.cpp:375
#3  0x00007f3338595c80 in KToolInvocation::klauncher () at ../../kdecore/kernel/ktoolinvocation.cpp:62
#4  0x00007f3338595e71 in KToolInvocation::startServiceInternal (this=0x248be30, _function=_function@entry=0x7f3338681769 "start_service_by_desktop_path", _name=..., URLs=..., error=error@entry=0x7fff1f189bb0, serviceName=serviceName@entry=0x0, pid=pid@entry=0x0, startup_id=..., noWait=noWait@entry=false, workdir=...) at ../../kdecore/kernel/ktoolinvocation.cpp:93
#5  0x00007f3338596b38 in KToolInvocation::startServiceByDesktopPath (_name=..., URLs=..., error=0x7fff1f189bb0, serviceName=0x0, pid=0x0, startup_id=..., noWait=false) at ../../kdecore/kernel/ktoolinvocation.cpp:197
#6  0x00007f333a880b99 in KGlobalAccelPrivate::KGlobalAccelPrivate (this=0x2c54c30, q=0x54b62b0) at ../../kdeui/shortcuts/kglobalaccel.cpp:119
#7  0x00007f333a880e46 in KGlobalAccel::KGlobalAccel (this=0x54b62b0) at ../../kdeui/shortcuts/kglobalaccel.cpp:146
#8  0x00007f333a880fcb in operator-> (this=<optimized out>) at ../../kdeui/shortcuts/kglobalaccel.cpp:233
#9  operator KGlobalAccel* (this=<optimized out>) at ../../kdeui/shortcuts/kglobalaccel.cpp:233
#10 KGlobalAccel::self () at ../../kdeui/shortcuts/kglobalaccel.cpp:234
#11 0x00007f333a768263 in KAction::setGlobalShortcut (this=0x5457860, shortcut=..., type=..., load=KAction::Autoloading) at ../../kdeui/actions/kaction.cpp:267
#12 0x00007f3339e5106a in MainWindow::createActions (this=this@entry=0x293f8a0) at ../../src/MainWindow.cpp:724
#13 0x00007f3339e5b154 in MainWindow::MainWindow (this=0x293f8a0) at ../../src/MainWindow.cpp:143
#14 0x00007f3339e360f8 in App::continueInit (this=this@entry=0x7fff1f18c710) at ../../src/App.cpp:545
#15 0x00007f3339e37867 in App::App (this=0x7fff1f18c710) at ../../src/App.cpp:184
#16 0x0000000000408ddd in main (argc=1, argv=0x7fff1f18c878) at ../../src/main.cpp:304

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

Possible duplicates by query: bug 312241, bug 312147, bug 311583, bug 311289, bug 310934.

Reported using DrKonqi
Comment 1 Myriam Schweingruber 2013-01-11 11:31:50 UTC
This is already solved in the upcoming Amarok 2.7, stay tuned!

*** This bug has been marked as a duplicate of bug 230991 ***
Comment 2 theskepticaltech 2013-07-07 19:10:38 UTC
Created attachment 81006 [details]
New crash information added by DrKonqi

amarok (2.6.0) on KDE Platform 4.9.5 using Qt 4.8.3

- What I was doing when the application crashed:

Same as parent, Amarok sometimes refuses to start when I launch it from the Kickoff Menu. Occasionally, the crash reporter comes up.

After several tries, it eventually starts.

-- Backtrace (Reduced):
#6  QHash<QString, KSharedPtr<Meta::Track> >::findNode (this=this@entry=0x1cb5528, akey=..., ahp=ahp@entry=0x7faba5b7aa6c) at /usr/include/qt4/QtCore/qhash.h:887
#7  0x00007fabb52bdf94 in QHash<QString, KSharedPtr<Meta::Track> >::insert (this=this@entry=0x1cb5528, akey=..., avalue=...) at /usr/include/qt4/QtCore/qhash.h:762
#8  0x00007fabb52b59d4 in SqlRegistry::getTrack (this=0x1cb5510, path=...) at ../../../../../../src/core-impl/collections/db/sql/SqlRegistry.cpp:173
#9  0x00007fabb529d67b in Collections::SqlCollection::trackForUrl (this=0x1c83940, url=...) at ../../../../../../src/core-impl/collections/db/sql/SqlCollection.cpp:423
#10 0x00007fabd7c547a1 in CollectionManager::trackForUrl (this=<optimized out>, url=...) at ../../src/core-impl/collections/support/CollectionManager.cpp:457