Bug 321968 - Amarok crashes at startup
Summary: Amarok crashes at startup
Status: RESOLVED FIXED
Alias: None
Product: amarok
Classification: Applications
Component: Context View (show other bugs)
Version: 2.7.1
Platform: Ubuntu Linux
: NOR grave
Target Milestone: 2.8
Assignee: Amarok Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-07-04 20:48 UTC by Ricardo
Modified: 2013-08-02 15:44 UTC (History)
1 user (show)

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 Ricardo 2013-07-04 20:48:14 UTC
Application: amarok (2.7.0)
KDE Platform Version: 4.10.4
Qt Version: 4.8.4
Operating System: Linux 3.8.0-25-generic i686
Distribution: Ubuntu 13.04

-- Information about the crash:
<In detail, tell us what you were doing  when the application crashed.>

The crash can be reproduced every time.

-- Backtrace:
Application: Amarok (amarok), signal: Aborted
Using host libthread_db library "/lib/i386-linux-gnu/libthread_db.so.1".
[Current thread is 1 (Thread 0xb0802b00 (LWP 2596))]

Thread 10 (Thread 0xad7ffb40 (LWP 2598)):
#0  0xb464ade3 in pthread_mutex_lock () from /lib/i386-linux-gnu/libpthread.so.0
#1  0xb55e8f84 in pthread_mutex_lock () from /lib/i386-linux-gnu/libc.so.6
#2  0xb4391d30 in g_mutex_lock () from /lib/i386-linux-gnu/libglib-2.0.so.0
#3  0xb434dd2b in g_main_context_prepare () from /lib/i386-linux-gnu/libglib-2.0.so.0
#4  0xb434e5cf in ?? () from /lib/i386-linux-gnu/libglib-2.0.so.0
#5  0xb434ec2b in g_main_loop_run () from /lib/i386-linux-gnu/libglib-2.0.so.0
#6  0xaee9fbca in ?? () from /usr/lib/i386-linux-gnu/libgio-2.0.so.0
#7  0xb4373fc3 in ?? () from /lib/i386-linux-gnu/libglib-2.0.so.0
#8  0xb4648d78 in start_thread () from /lib/i386-linux-gnu/libpthread.so.0
#9  0xb55db3de in clone () from /lib/i386-linux-gnu/libc.so.6

Thread 9 (Thread 0xa25dbb40 (LWP 2603)):
#0  0xb7721424 in __kernel_vsyscall ()
#1  0xb55cbdcb in poll () from /lib/i386-linux-gnu/libc.so.6
#2  0xb435d2db in g_poll () from /lib/i386-linux-gnu/libglib-2.0.so.0
#3  0xb434e6d0 in ?? () from /lib/i386-linux-gnu/libglib-2.0.so.0
#4  0xb434e831 in g_main_context_iteration () from /lib/i386-linux-gnu/libglib-2.0.so.0
#5  0xb5950c3f in QEventDispatcherGlib::processEvents (this=0x992eee8, flags=...) at kernel/qeventdispatcher_glib.cpp:426
#6  0xb591d3ec in QEventLoop::processEvents (this=this@entry=0xa25db228, flags=...) at kernel/qeventloop.cpp:149
#7  0xb591d6e1 in QEventLoop::exec (this=this@entry=0xa25db228, flags=...) at kernel/qeventloop.cpp:204
#8  0xb5808fec in QThread::exec (this=this@entry=0x992cf88) at thread/qthread.cpp:542
#9  0xb58fcf2d in QInotifyFileSystemWatcherEngine::run (this=0x992cf88) at io/qfilesystemwatcher_inotify.cpp:256
#10 0xb580bb18 in QThreadPrivate::start (arg=0x992cf88) at thread/qthread_unix.cpp:338
#11 0xb4648d78 in start_thread () from /lib/i386-linux-gnu/libpthread.so.0
#12 0xb55db3de in clone () from /lib/i386-linux-gnu/libc.so.6

Thread 8 (Thread 0xa09ddb40 (LWP 2604)):
[KCrash Handler]
#7  0xb7721424 in __kernel_vsyscall ()
#8  0xb5518b1f in raise () from /lib/i386-linux-gnu/libc.so.6
#9  0xb551c0b3 in abort () from /lib/i386-linux-gnu/libc.so.6
#10 0xb58007fc in qt_message_output (msgType=QtFatalMsg, buf=0x9e29bba8 "Fatal Error: Accessed global static 'AmarokConfigHelper *s_globalAmarokConfig()' after destruction. Defined at amarokconfig.cpp:16") at global/qglobal.cpp:2347
#11 0xb5800c09 in qt_message (msgType=QtFatalMsg, msg=0xb709eb38 "Fatal Error: Accessed global static '%s *%s()' after destruction. Defined at %s:%d", ap=0xa09dd004 "#\344\t\267\016\344\t\267\375\343\t\267\020") at global/qglobal.cpp:2393
#12 0xb5800d28 in qFatal (msg=msg@entry=0xb709eb38 "Fatal Error: Accessed global static '%s *%s()' after destruction. Defined at %s:%d") at global/qglobal.cpp:2576
#13 0xb703bdd4 in operator-> (this=<optimized out>) at amarokconfig.cpp:16
#14 AmarokConfig::self () at amarokconfig.cpp:19
#15 0xa2750cda in scanRecursively () at ../../../../amarokconfig.h:1512
#16 createScannerProcess (restart=false, this=0xa988168) at ../../../../../../src/core-impl/collections/db/ScanManager.cpp:665
#17 ScannerJob::createScannerProcess (this=0xa988168, restart=false) at ../../../../../../src/core-impl/collections/db/ScanManager.cpp:637
#18 0xa275579b in ScannerJob::run (this=0xa988168) at ../../../../../../src/core-impl/collections/db/ScanManager.cpp:479
#19 0xb4da6d43 in ThreadWeaver::JobRunHelper::runTheJob (this=this@entry=0xa09dd208, th=th@entry=0x9be2090, job=job@entry=0xa988168) at ../../../threadweaver/Weaver/Job.cpp:106
#20 0xb4da6ee3 in ThreadWeaver::Job::execute (this=0xa988168, th=0x9be2090) at ../../../threadweaver/Weaver/Job.cpp:135
#21 0xb4da62f2 in ThreadWeaver::ThreadRunHelper::run (this=this@entry=0xa09dd284, parent=0x9be1c50, th=th@entry=0x9be2090) at ../../../threadweaver/Weaver/Thread.cpp:95
#22 0xb4da63da in ThreadWeaver::Thread::run (this=0x9be2090) at ../../../threadweaver/Weaver/Thread.cpp:142
#23 0xb580bb18 in QThreadPrivate::start (arg=0x9be2090) at thread/qthread_unix.cpp:338
#24 0xb4648d78 in start_thread () from /lib/i386-linux-gnu/libpthread.so.0
#25 0xb55db3de in clone () from /lib/i386-linux-gnu/libc.so.6

Thread 7 (Thread 0xa01dcb40 (LWP 2605)):
#0  0xb7721424 in __kernel_vsyscall ()
#1  0xb464c84b in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/i386-linux-gnu/libpthread.so.0
#2  0xb55e8d7c in pthread_cond_wait () from /lib/i386-linux-gnu/libc.so.6
#3  0xb580c0f0 in wait (time=4294967295, this=0x9be1d18) at thread/qwaitcondition_unix.cpp:86
#4  QWaitCondition::wait (this=this@entry=0x9be1c68, mutex=0x9be1e38, time=time@entry=4294967295) at thread/qwaitcondition_unix.cpp:158
#5  0xb4da4a55 in ThreadWeaver::WeaverImpl::blockThreadUntilJobsAreBeingAssigned (this=0x9be1c50, th=th@entry=0x9c06920) at ../../../threadweaver/Weaver/WeaverImpl.cpp:365
#6  0xb4da798b in ThreadWeaver::WorkingHardState::waitForAvailableJob (this=0x9be1eb8, th=0x9c06920) at ../../../threadweaver/Weaver/WorkingHardState.cpp:80
#7  0xb4da465a in ThreadWeaver::WeaverImpl::waitForAvailableJob (this=0x9be1c50, th=th@entry=0x9c06920) at ../../../threadweaver/Weaver/WeaverImpl.cpp:356
#8  0xb4da7ae4 in ThreadWeaver::WorkingHardState::applyForWork (this=0x9be1eb8, th=0x9c06920) at ../../../threadweaver/Weaver/WorkingHardState.cpp:71
#9  0xb4da4553 in ThreadWeaver::WeaverImpl::applyForWork (this=0x9be1c50, th=0x9c06920, previous=0x0) at ../../../threadweaver/Weaver/WeaverImpl.cpp:351
#10 0xb4da7b00 in ThreadWeaver::WorkingHardState::applyForWork (this=0x9be1eb8, th=0x9c06920) at ../../../threadweaver/Weaver/WorkingHardState.cpp:74
#11 0xb4da4553 in ThreadWeaver::WeaverImpl::applyForWork (this=0x9be1c50, th=0x9c06920, previous=0x9d00b50) at ../../../threadweaver/Weaver/WeaverImpl.cpp:351
#12 0xb4da6324 in ThreadWeaver::ThreadRunHelper::run (this=this@entry=0xa01dc284, parent=0x9be1c50, th=th@entry=0x9c06920) at ../../../threadweaver/Weaver/Thread.cpp:87
#13 0xb4da63da in ThreadWeaver::Thread::run (this=0x9c06920) at ../../../threadweaver/Weaver/Thread.cpp:142
#14 0xb580bb18 in QThreadPrivate::start (arg=0x9c06920) at thread/qthread_unix.cpp:338
#15 0xb4648d78 in start_thread () from /lib/i386-linux-gnu/libpthread.so.0
#16 0xb55db3de in clone () from /lib/i386-linux-gnu/libc.so.6

Thread 6 (Thread 0x9f9dbb40 (LWP 2606)):
#0  0xb7721424 in __kernel_vsyscall ()
#1  0xb464c84b in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/i386-linux-gnu/libpthread.so.0
#2  0xb55e8d7c in pthread_cond_wait () from /lib/i386-linux-gnu/libc.so.6
#3  0xb580c0f0 in wait (time=4294967295, this=0x9be1d18) at thread/qwaitcondition_unix.cpp:86
#4  QWaitCondition::wait (this=this@entry=0x9be1c68, mutex=0x9be1e38, time=time@entry=4294967295) at thread/qwaitcondition_unix.cpp:158
#5  0xb4da4a55 in ThreadWeaver::WeaverImpl::blockThreadUntilJobsAreBeingAssigned (this=0x9be1c50, th=th@entry=0x9c06da8) at ../../../threadweaver/Weaver/WeaverImpl.cpp:365
#6  0xb4da798b in ThreadWeaver::WorkingHardState::waitForAvailableJob (this=0x9be1eb8, th=0x9c06da8) at ../../../threadweaver/Weaver/WorkingHardState.cpp:80
#7  0xb4da465a in ThreadWeaver::WeaverImpl::waitForAvailableJob (this=0x9be1c50, th=th@entry=0x9c06da8) at ../../../threadweaver/Weaver/WeaverImpl.cpp:356
#8  0xb4da7ae4 in ThreadWeaver::WorkingHardState::applyForWork (this=0x9be1eb8, th=0x9c06da8) at ../../../threadweaver/Weaver/WorkingHardState.cpp:71
#9  0xb4da4553 in ThreadWeaver::WeaverImpl::applyForWork (this=0x9be1c50, th=0x9c06da8, previous=0x0) at ../../../threadweaver/Weaver/WeaverImpl.cpp:351
#10 0xb4da7b00 in ThreadWeaver::WorkingHardState::applyForWork (this=0x9be1eb8, th=0x9c06da8) at ../../../threadweaver/Weaver/WorkingHardState.cpp:74
#11 0xb4da4553 in ThreadWeaver::WeaverImpl::applyForWork (this=0x9be1c50, th=0x9c06da8, previous=0xac35ce0) at ../../../threadweaver/Weaver/WeaverImpl.cpp:351
#12 0xb4da6324 in ThreadWeaver::ThreadRunHelper::run (this=this@entry=0x9f9db284, parent=0x9be1c50, th=th@entry=0x9c06da8) at ../../../threadweaver/Weaver/Thread.cpp:87
#13 0xb4da63da in ThreadWeaver::Thread::run (this=0x9c06da8) at ../../../threadweaver/Weaver/Thread.cpp:142
#14 0xb580bb18 in QThreadPrivate::start (arg=0x9c06da8) at thread/qthread_unix.cpp:338
#15 0xb4648d78 in start_thread () from /lib/i386-linux-gnu/libpthread.so.0
#16 0xb55db3de in clone () from /lib/i386-linux-gnu/libc.so.6

Thread 5 (Thread 0x9f1dab40 (LWP 2607)):
#0  0xb7721424 in __kernel_vsyscall ()
#1  0xb464c84b in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/i386-linux-gnu/libpthread.so.0
#2  0xb55e8d7c in pthread_cond_wait () from /lib/i386-linux-gnu/libc.so.6
#3  0xb580c0f0 in wait (time=4294967295, this=0x9be1d18) at thread/qwaitcondition_unix.cpp:86
#4  QWaitCondition::wait (this=this@entry=0x9be1c68, mutex=0x9be1e38, time=time@entry=4294967295) at thread/qwaitcondition_unix.cpp:158
#5  0xb4da4a55 in ThreadWeaver::WeaverImpl::blockThreadUntilJobsAreBeingAssigned (this=0x9be1c50, th=th@entry=0x9c07318) at ../../../threadweaver/Weaver/WeaverImpl.cpp:365
#6  0xb4da798b in ThreadWeaver::WorkingHardState::waitForAvailableJob (this=0x9be1eb8, th=0x9c07318) at ../../../threadweaver/Weaver/WorkingHardState.cpp:80
#7  0xb4da465a in ThreadWeaver::WeaverImpl::waitForAvailableJob (this=0x9be1c50, th=th@entry=0x9c07318) at ../../../threadweaver/Weaver/WeaverImpl.cpp:356
#8  0xb4da7ae4 in ThreadWeaver::WorkingHardState::applyForWork (this=0x9be1eb8, th=0x9c07318) at ../../../threadweaver/Weaver/WorkingHardState.cpp:71
#9  0xb4da4553 in ThreadWeaver::WeaverImpl::applyForWork (this=0x9be1c50, th=0x9c07318, previous=0xa1670a0) at ../../../threadweaver/Weaver/WeaverImpl.cpp:351
#10 0xb4da6324 in ThreadWeaver::ThreadRunHelper::run (this=this@entry=0x9f1da284, parent=0x9be1c50, th=th@entry=0x9c07318) at ../../../threadweaver/Weaver/Thread.cpp:87
#11 0xb4da63da in ThreadWeaver::Thread::run (this=0x9c07318) at ../../../threadweaver/Weaver/Thread.cpp:142
#12 0xb580bb18 in QThreadPrivate::start (arg=0x9c07318) at thread/qthread_unix.cpp:338
#13 0xb4648d78 in start_thread () from /lib/i386-linux-gnu/libpthread.so.0
#14 0xb55db3de in clone () from /lib/i386-linux-gnu/libc.so.6

Thread 4 (Thread 0xae15ab40 (LWP 2610)):
#0  0xb7721424 in __kernel_vsyscall ()
#1  0xb55d3301 in select () from /lib/i386-linux-gnu/libc.so.6
#2  0xb58f9bf3 in QProcessManager::run (this=0xb5a8ae78 <processManager()::processManager>) at io/qprocess_unix.cpp:245
#3  0xb580bb18 in QThreadPrivate::start (arg=0xb5a8ae78 <processManager()::processManager>) at thread/qthread_unix.cpp:338
#4  0xb4648d78 in start_thread () from /lib/i386-linux-gnu/libpthread.so.0
#5  0xb55db3de in clone () from /lib/i386-linux-gnu/libc.so.6

Thread 3 (Thread 0x9daffb40 (LWP 2615)):
#0  0xb7721424 in __kernel_vsyscall ()
#1  0xb464c84b in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/i386-linux-gnu/libpthread.so.0
#2  0xb55e8d7c in pthread_cond_wait () from /lib/i386-linux-gnu/libc.so.6
#3  0xb48120ad in ?? () from /usr/lib/i386-linux-gnu/libQtScript.so.4
#4  0xb48120df in ?? () from /usr/lib/i386-linux-gnu/libQtScript.so.4
#5  0xb4648d78 in start_thread () from /lib/i386-linux-gnu/libpthread.so.0
#6  0xb55db3de in clone () from /lib/i386-linux-gnu/libc.so.6

Thread 2 (Thread 0xa7ca7b40 (LWP 2632)):
#0  0xb7721424 in __kernel_vsyscall ()
#1  0xb55cbdcb in poll () from /lib/i386-linux-gnu/libc.so.6
#2  0xb435d2db in g_poll () from /lib/i386-linux-gnu/libglib-2.0.so.0
#3  0xb434e6d0 in ?? () from /lib/i386-linux-gnu/libglib-2.0.so.0
#4  0xb434e831 in g_main_context_iteration () from /lib/i386-linux-gnu/libglib-2.0.so.0
#5  0xb5950c3f in QEventDispatcherGlib::processEvents (this=0x9e055840, flags=...) at kernel/qeventdispatcher_glib.cpp:426
#6  0xb591d3ec in QEventLoop::processEvents (this=this@entry=0xa7ca7228, flags=...) at kernel/qeventloop.cpp:149
#7  0xb591d6e1 in QEventLoop::exec (this=this@entry=0xa7ca7228, flags=...) at kernel/qeventloop.cpp:204
#8  0xb5808fec in QThread::exec (this=this@entry=0xa3c3668) at thread/qthread.cpp:542
#9  0xb58fcf2d in QInotifyFileSystemWatcherEngine::run (this=0xa3c3668) at io/qfilesystemwatcher_inotify.cpp:256
#10 0xb580bb18 in QThreadPrivate::start (arg=0xa3c3668) at thread/qthread_unix.cpp:338
#11 0xb4648d78 in start_thread () from /lib/i386-linux-gnu/libpthread.so.0
#12 0xb55db3de in clone () from /lib/i386-linux-gnu/libc.so.6

Thread 1 (Thread 0xb0802b00 (LWP 2596)):
#0  0xb7721424 in __kernel_vsyscall ()
#1  0xb464c84b in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/i386-linux-gnu/libpthread.so.0
#2  0xb55e8d7c in pthread_cond_wait () from /lib/i386-linux-gnu/libc.so.6
#3  0xb580c0f0 in wait (time=4294967295, this=0x9363ac8) at thread/qwaitcondition_unix.cpp:86
#4  QWaitCondition::wait (this=this@entry=0x9365168, mutex=0x936514c, time=time@entry=4294967295) at thread/qwaitcondition_unix.cpp:158
#5  0xb580b665 in QThread::wait (this=0xb5a8ae78 <processManager()::processManager>, time=4294967295) at thread/qthread_unix.cpp:691
#6  0xb58f9735 in QProcessManager::~QProcessManager (this=0xb5a8ae78 <processManager()::processManager>, __in_chrg=<optimized out>) at io/qprocess_unix.cpp:212
#7  0xb551d7c1 in ?? () from /lib/i386-linux-gnu/libc.so.6
#8  0xb551d84d in exit () from /lib/i386-linux-gnu/libc.so.6
#9  0xae8f275a in ?? () from /usr/lib/i386-linux-gnu/libgdk-x11-2.0.so.0
#10 0xb74b14a1 in KApplication::xErrhandler (this=0xbf813a0c, dpy=dpy@entry=0x9366008, err_=err_@entry=0xbf81297c) at ../../kdeui/kernel/kapplication.cpp:435
#11 0xb74b151c in kde_x_errhandler (dpy=0x9366008, err=0xbf81297c) at ../../kdeui/kernel/kapplication.cpp:131
#12 0xb6865a96 in _XError () from /usr/lib/i386-linux-gnu/libX11.so.6
#13 0xb6862a0e in ?? () from /usr/lib/i386-linux-gnu/libX11.so.6
#14 0xb6863839 in _XReply () from /usr/lib/i386-linux-gnu/libX11.so.6
#15 0xb6848c1e in XGetWindowProperty () from /usr/lib/i386-linux-gnu/libX11.so.6
#16 0xb761948a in NETWinInfo::update (this=this@entry=0xbf812ca4, dirty_props=dirty_props@entry=0xbf812c28) at ../../kdeui/windowmanagement/netwm.cpp:3962
#17 0xb761ab98 in NETWinInfo::event (this=this@entry=0xbf812ca4, event=event@entry=0xbf812d9c, properties=properties@entry=0xbf812cac, properties_size=properties_size@entry=2) at ../../kdeui/windowmanagement/netwm.cpp:3925
#18 0xb760e205 in KWindowSystemPrivate::x11Event (this=0xa5725f8, ev=0xbf812d9c) at ../../kdeui/windowmanagement/kwindowsystem_x11.cpp:216
#19 0xb74e1970 in publicX11Event (e=0xbf812d9c, this=<optimized out>) at ../../kdeui/kernel/ksystemeventfilter.cpp:43
#20 KSystemEventFilterPrivate::filterEvent (this=0xa4b1bc8, message=message@entry=0xbf812d9c) at ../../kdeui/kernel/ksystemeventfilter.cpp:102
#21 0xb74e19f0 in _k_eventFilter (message=0xbf812d9c) at ../../kdeui/kernel/ksystemeventfilter.cpp:91
#22 0xb5910474 in QAbstractEventDispatcher::filterEvent (this=0x935ff28, message=message@entry=0xbf812d9c) at kernel/qabstracteventdispatcher.cpp:539
#23 0xb5f49831 in x11EventSourceDispatch (s=0x9364648, callback=0x0, user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:143
#24 0xb434e3b3 in g_main_context_dispatch () from /lib/i386-linux-gnu/libglib-2.0.so.0
#25 0xb434e750 in ?? () from /lib/i386-linux-gnu/libglib-2.0.so.0
#26 0xb434e831 in g_main_context_iteration () from /lib/i386-linux-gnu/libglib-2.0.so.0
#27 0xb5950c21 in QEventDispatcherGlib::processEvents (this=this@entry=0x935ff28, flags=...) at kernel/qeventdispatcher_glib.cpp:424
#28 0xb5f49a0a in QGuiEventDispatcherGlib::processEvents (this=0x935ff28, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#29 0xb591d3ec in QEventLoop::processEvents (this=this@entry=0xbf813098, flags=...) at kernel/qeventloop.cpp:149
#30 0xb591d6e1 in QEventLoop::exec (this=this@entry=0xbf813098, flags=...) at kernel/qeventloop.cpp:204
#31 0xb59233fa in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1218
#32 0xb5e90fc4 in QApplication::exec () at kernel/qapplication.cpp:3828
#33 0x080500df in main (argc=1, argv=0xbf813af4) at ../../src/main.cpp:329

Reproducible: Always

Steps to Reproduce:
1. Start Amarok
2. Amarok crashes
3.



I'v tried deleting amarokrc file, and tried to change the line in amarok_homerc

[Containment 0]
firstShowingApplet=3
 to
[Containment 0] 
firstShowingApplet=0

But the number was already 0; also, i tried to change the 
[General Options]
 AnimateAppletCollapse=true

to

[General Options] 
AnimateAppletCollapse=false

but there is no [General Options] in the amarokfc file, so amarok stil chrashing after startup
Comment 1 Christoph Feck 2013-07-04 22:09:29 UTC
> #8  0xb551d84d in exit () from /lib/i386-linux-gnu/libc.so.6
> #9  0xae8f275a in ?? () from /usr/lib/i386-linux-gnu/libgdk-x11-2.0.so.0

Looks like libgdk installs a deadly X error handler. KDE's one is forgiving (just prints the X error message).
Comment 2 Mark Kretschmann 2013-08-02 15:44:39 UTC
This is a known issue with the Ubuntu Qt package running on Unity. It should have been fixed recently.