Bug 310228 - amarok crashes repeatedly on startup
Summary: amarok crashes repeatedly on startup
Status: RESOLVED WORKSFORME
Alias: None
Product: amarok
Classification: Applications
Component: general (show other bugs)
Version: 2.6.0
Platform: Ubuntu Linux
: NOR crash
Target Milestone: 2.7
Assignee: Amarok Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-11-16 20:21 UTC by Craig Magina
Modified: 2013-01-20 00:25 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In: 2.7


Attachments
amarok debug output (124.97 KB, text/plain)
2012-11-16 20:21 UTC, Craig Magina
Details
amarok konqi file (14.73 KB, application/octet-stream)
2012-11-16 20:23 UTC, Craig Magina
Details
Showing how reproducible this is (678.06 KB, image/png)
2012-12-17 17:49 UTC, Craig Magina
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Craig Magina 2012-11-16 20:21:20 UTC
I start amarok and it crashes before even displaying the splash screen. Konqi has determined that the backtrace is worthless, so I am submitting this issue manually with the backtrace attached as well as a amarok --debug output log.

Reproducible: Always

Steps to Reproduce:
1. Start amarok
2.
3.
Actual Results:  
Amark crashes

Expected Results:  
Amarok starts normally

My system is running Kubuntu 12.10 amd64 installed to an SSD using btrfs with home on a pair of rotational disks also using btrfs.
Comment 1 Craig Magina 2012-11-16 20:21:49 UTC
Created attachment 75301 [details]
amarok debug output
Comment 2 Craig Magina 2012-11-16 20:22:02 UTC
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 0x7faf60a187c0 (LWP 7051))]

Thread 12 (Thread 0x7faf3fdaa700 (LWP 7054)):
#0  0x00007faf5d489303 in __GI___poll (fds=<optimized out>, fds@entry=0x7faf38002660, nfds=<optimized out>, nfds@entry=2, timeout=<optimized out>, timeout@entry=-1) at ../sysdeps/unix/sysv/linux/poll.c:87
#1  0x00007faf55752b6f in poll_func (ufds=0x7faf38002660, nfds=2, timeout=-1, userdata=0x1fddb30) at pulse/thread-mainloop.c:69
#2  0x00007faf557440b5 in pa_mainloop_poll (m=m@entry=0x263c970) at pulse/mainloop.c:873
#3  0x00007faf55744719 in pa_mainloop_iterate (m=m@entry=0x263c970, block=block@entry=1, retval=retval@entry=0x0) at pulse/mainloop.c:955
#4  0x00007faf557447d0 in pa_mainloop_run (m=0x263c970, retval=retval@entry=0x0) at pulse/mainloop.c:973
#5  0x00007faf55752b1f in thread (userdata=0x265a8f0) at pulse/thread-mainloop.c:88
#6  0x00007faf50e24543 in internal_thread_func (userdata=0x1fddb60) at pulsecore/thread-posix.c:83
#7  0x00007faf599dce9a in start_thread (arg=0x7faf3fdaa700) at pthread_create.c:308
#8  0x00007faf5d494cbd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#9  0x0000000000000000 in ?? ()

Thread 11 (Thread 0x7faf32687700 (LWP 7056)):
#0  0x00007faf57f239b5 in g_mutex_get_impl (mutex=0x7faf2c0009e0) at /build/buildd/glib2.0-2.34.0/./glib/gthread-posix.c:118
#1  0x00007faf57f23c59 in g_mutex_unlock (mutex=mutex@entry=0x7faf2c0009e0) at /build/buildd/glib2.0-2.34.0/./glib/gthread-posix.c:227
#2  0x00007faf57ee6d79 in g_main_context_poll (n_fds=1, fds=0x7faf2c001be0, timeout=-1, context=0x7faf2c0009e0, priority=<optimized out>) at /build/buildd/glib2.0-2.34.0/./glib/gmain.c:3583
#3  g_main_context_iterate (context=context@entry=0x7faf2c0009e0, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at /build/buildd/glib2.0-2.34.0/./glib/gmain.c:3285
#4  0x00007faf57ee6ea4 in g_main_context_iteration (context=0x7faf2c0009e0, may_block=1) at /build/buildd/glib2.0-2.34.0/./glib/gmain.c:3351
#5  0x00007faf5de1fc16 in QEventDispatcherGlib::processEvents (this=0x7faf2c000900, flags=...) at kernel/qeventdispatcher_glib.cpp:426
#6  0x00007faf5ddf02bf in QEventLoop::processEvents (this=this@entry=0x7faf32686d90, flags=...) at kernel/qeventloop.cpp:149
#7  0x00007faf5ddf0548 in QEventLoop::exec (this=0x7faf32686d90, flags=...) at kernel/qeventloop.cpp:204
#8  0x00007faf5dcf1b10 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:501
#9  0x00007faf5ddd09af in QInotifyFileSystemWatcherEngine::run (this=0x274c180) at io/qfilesystemwatcher_inotify.cpp:248
#10 0x00007faf5dcf4aec in QThreadPrivate::start (arg=0x274c180) at thread/qthread_unix.cpp:338
#11 0x00007faf599dce9a in start_thread (arg=0x7faf32687700) at pthread_create.c:308
#12 0x00007faf5d494cbd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#13 0x0000000000000000 in ?? ()

Thread 10 (Thread 0x7faf2bbca700 (LWP 7058)):
#0  0x00007faf5d489303 in __GI___poll (fds=<optimized out>, nfds=<optimized out>, timeout=<optimized out>) at ../sysdeps/unix/sysv/linux/poll.c:87
#1  0x00007faf57ee6d84 in g_main_context_poll (n_fds=1, fds=0x7faf240021c0, timeout=5380, context=0x7faf240009a0, priority=<optimized out>) at /build/buildd/glib2.0-2.34.0/./glib/gmain.c:3584
#2  g_main_context_iterate (context=context@entry=0x7faf240009a0, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at /build/buildd/glib2.0-2.34.0/./glib/gmain.c:3285
#3  0x00007faf57ee6ea4 in g_main_context_iteration (context=0x7faf240009a0, may_block=1) at /build/buildd/glib2.0-2.34.0/./glib/gmain.c:3351
#4  0x00007faf5de1fc16 in QEventDispatcherGlib::processEvents (this=0x7faf240008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:426
#5  0x00007faf5ddf02bf in QEventLoop::processEvents (this=this@entry=0x7faf2bbc9dc0, flags=...) at kernel/qeventloop.cpp:149
#6  0x00007faf5ddf0548 in QEventLoop::exec (this=0x7faf2bbc9dc0, flags=...) at kernel/qeventloop.cpp:204
#7  0x00007faf5dcf1b10 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:501
#8  0x00007faf5dcf4aec in QThreadPrivate::start (arg=0x2821ff0) at thread/qthread_unix.cpp:338
#9  0x00007faf599dce9a in start_thread (arg=0x7faf2bbca700) at pthread_create.c:308
#10 0x00007faf5d494cbd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#11 0x0000000000000000 in ?? ()

Thread 9 (Thread 0x7faf2a706700 (LWP 7059)):
#0  0x00007faf599e005d in __pthread_mutex_unlock_usercnt (mutex=<optimized out>, decr=<optimized out>) at pthread_mutex_unlock.c:52
#1  __pthread_mutex_unlock (mutex=0x7faf1c000a60) at pthread_mutex_unlock.c:290
#2  0x00007faf57f23c61 in g_mutex_unlock (mutex=mutex@entry=0x7faf1c0009a0) at /build/buildd/glib2.0-2.34.0/./glib/gthread-posix.c:227
#3  0x00007faf57ee6c9e in g_main_context_iterate (context=context@entry=0x7faf1c0009a0, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at /build/buildd/glib2.0-2.34.0/./glib/gmain.c:3268
#4  0x00007faf57ee6ea4 in g_main_context_iteration (context=0x7faf1c0009a0, may_block=1) at /build/buildd/glib2.0-2.34.0/./glib/gmain.c:3351
#5  0x00007faf5de1fc16 in QEventDispatcherGlib::processEvents (this=0x7faf1c0008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:426
#6  0x00007faf5ddf02bf in QEventLoop::processEvents (this=this@entry=0x7faf2a705dc0, flags=...) at kernel/qeventloop.cpp:149
#7  0x00007faf5ddf0548 in QEventLoop::exec (this=0x7faf2a705dc0, flags=...) at kernel/qeventloop.cpp:204
#8  0x00007faf5dcf1b10 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:501
#9  0x00007faf5dcf4aec in QThreadPrivate::start (arg=0x293ea00) at thread/qthread_unix.cpp:338
#10 0x00007faf599dce9a in start_thread (arg=0x7faf2a706700) at pthread_create.c:308
#11 0x00007faf5d494cbd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#12 0x0000000000000000 in ?? ()

Thread 8 (Thread 0x7faf292f9700 (LWP 7061)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007faf5dcf504b in wait (time=18446744073709551615, this=0x2a4a530) at thread/qwaitcondition_unix.cpp:86
#2  QWaitCondition::wait (this=<optimized out>, mutex=0x2a49080, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:158
#3  0x00007faf5af4f0e1 in ThreadWeaver::WeaverImpl::blockThreadUntilJobsAreBeingAssigned (this=0x2a4a3e0, th=0x2a48aa0) at ../../../threadweaver/Weaver/WeaverImpl.cpp:365
#4  0x00007faf5af5192b in ThreadWeaver::WorkingHardState::applyForWork (this=0x2a4b750, th=0x2a48aa0) at ../../../threadweaver/Weaver/WorkingHardState.cpp:71
#5  0x00007faf5af51944 in ThreadWeaver::WorkingHardState::applyForWork (this=0x2a4b750, th=0x2a48aa0) at ../../../threadweaver/Weaver/WorkingHardState.cpp:74
#6  0x00007faf5af51944 in ThreadWeaver::WorkingHardState::applyForWork (this=0x2a4b750, th=0x2a48aa0) at ../../../threadweaver/Weaver/WorkingHardState.cpp:74
#7  0x00007faf5af5079f in ThreadWeaver::ThreadRunHelper::run (this=this@entry=0x7faf292f8dc0, parent=0x2a4a3e0, th=th@entry=0x2a48aa0) at ../../../threadweaver/Weaver/Thread.cpp:87
#8  0x00007faf5af5082b in ThreadWeaver::Thread::run (this=0x2a48aa0) at ../../../threadweaver/Weaver/Thread.cpp:142
#9  0x00007faf5dcf4aec in QThreadPrivate::start (arg=0x2a48aa0) at thread/qthread_unix.cpp:338
#10 0x00007faf599dce9a in start_thread (arg=0x7faf292f9700) at pthread_create.c:308
#11 0x00007faf5d494cbd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#12 0x0000000000000000 in ?? ()

Thread 7 (Thread 0x7faf1bfff700 (LWP 7062)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007faf5dcf504b in wait (time=18446744073709551615, this=0x2a4a530) at thread/qwaitcondition_unix.cpp:86
#2  QWaitCondition::wait (this=<optimized out>, mutex=0x2a49080, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:158
#3  0x00007faf5af4f0e1 in ThreadWeaver::WeaverImpl::blockThreadUntilJobsAreBeingAssigned (this=0x2a4a3e0, th=0x2a845f0) at ../../../threadweaver/Weaver/WeaverImpl.cpp:365
#4  0x00007faf5af5192b in ThreadWeaver::WorkingHardState::applyForWork (this=0x2a4b750, th=0x2a845f0) at ../../../threadweaver/Weaver/WorkingHardState.cpp:71
#5  0x00007faf5af5079f in ThreadWeaver::ThreadRunHelper::run (this=this@entry=0x7faf1bffedc0, parent=0x2a4a3e0, th=th@entry=0x2a845f0) at ../../../threadweaver/Weaver/Thread.cpp:87
#6  0x00007faf5af5082b in ThreadWeaver::Thread::run (this=0x2a845f0) at ../../../threadweaver/Weaver/Thread.cpp:142
#7  0x00007faf5dcf4aec in QThreadPrivate::start (arg=0x2a845f0) at thread/qthread_unix.cpp:338
#8  0x00007faf599dce9a in start_thread (arg=0x7faf1bfff700) at pthread_create.c:308
#9  0x00007faf5d494cbd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#10 0x0000000000000000 in ?? ()

Thread 6 (Thread 0x7faf1b7fe700 (LWP 7063)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007faf5dcf504b in wait (time=18446744073709551615, this=0x2a4a530) at thread/qwaitcondition_unix.cpp:86
#2  QWaitCondition::wait (this=<optimized out>, mutex=0x2a49080, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:158
#3  0x00007faf5af4f0e1 in ThreadWeaver::WeaverImpl::blockThreadUntilJobsAreBeingAssigned (this=0x2a4a3e0, th=0x28cbae0) at ../../../threadweaver/Weaver/WeaverImpl.cpp:365
#4  0x00007faf5af5192b in ThreadWeaver::WorkingHardState::applyForWork (this=0x2a4b750, th=0x28cbae0) at ../../../threadweaver/Weaver/WorkingHardState.cpp:71
#5  0x00007faf5af51944 in ThreadWeaver::WorkingHardState::applyForWork (this=0x2a4b750, th=0x28cbae0) at ../../../threadweaver/Weaver/WorkingHardState.cpp:74
#6  0x00007faf5af51944 in ThreadWeaver::WorkingHardState::applyForWork (this=0x2a4b750, th=0x28cbae0) at ../../../threadweaver/Weaver/WorkingHardState.cpp:74
#7  0x00007faf5af5079f in ThreadWeaver::ThreadRunHelper::run (this=this@entry=0x7faf1b7fddc0, parent=0x2a4a3e0, th=th@entry=0x28cbae0) at ../../../threadweaver/Weaver/Thread.cpp:87
#8  0x00007faf5af5082b in ThreadWeaver::Thread::run (this=0x28cbae0) at ../../../threadweaver/Weaver/Thread.cpp:142
#9  0x00007faf5dcf4aec in QThreadPrivate::start (arg=0x28cbae0) at thread/qthread_unix.cpp:338
#10 0x00007faf599dce9a in start_thread (arg=0x7faf1b7fe700) at pthread_create.c:308
#11 0x00007faf5d494cbd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#12 0x0000000000000000 in ?? ()

Thread 5 (Thread 0x7faf1affd700 (LWP 7064)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007faf5dcf504b in wait (time=18446744073709551615, this=0x2a4a530) at thread/qwaitcondition_unix.cpp:86
#2  QWaitCondition::wait (this=<optimized out>, mutex=0x2a49080, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:158
#3  0x00007faf5af4f0e1 in ThreadWeaver::WeaverImpl::blockThreadUntilJobsAreBeingAssigned (this=0x2a4a3e0, th=0x26a4840) at ../../../threadweaver/Weaver/WeaverImpl.cpp:365
#4  0x00007faf5af5192b in ThreadWeaver::WorkingHardState::applyForWork (this=0x2a4b750, th=0x26a4840) at ../../../threadweaver/Weaver/WorkingHardState.cpp:71
#5  0x00007faf5af5079f in ThreadWeaver::ThreadRunHelper::run (this=this@entry=0x7faf1affcdc0, parent=0x2a4a3e0, th=th@entry=0x26a4840) at ../../../threadweaver/Weaver/Thread.cpp:87
#6  0x00007faf5af5082b in ThreadWeaver::Thread::run (this=0x26a4840) at ../../../threadweaver/Weaver/Thread.cpp:142
#7  0x00007faf5dcf4aec in QThreadPrivate::start (arg=0x26a4840) at thread/qthread_unix.cpp:338
#8  0x00007faf599dce9a in start_thread (arg=0x7faf1affd700) at pthread_create.c:308
#9  0x00007faf5d494cbd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#10 0x0000000000000000 in ?? ()

Thread 4 (Thread 0x7faf1a36e700 (LWP 7065)):
#0  0x00007faf5d4878bd in read () at ../sysdeps/unix/syscall-template.S:82
#1  0x00007faf57f22f6f in read (__nbytes=16, __buf=0x7faf1a36dba0, __fd=<optimized out>) at /usr/include/x86_64-linux-gnu/bits/unistd.h:45
#2  g_wakeup_acknowledge (wakeup=0x7faf0c0016c0) at /build/buildd/glib2.0-2.34.0/./glib/gwakeup.c:212
#3  0x00007faf57ee6914 in g_main_context_check (context=context@entry=0x7faf000009a0, max_priority=2147483647, fds=fds@entry=0x7faf000023b0, n_fds=n_fds@entry=1) at /build/buildd/glib2.0-2.34.0/./glib/gmain.c:3129
#4  0x00007faf57ee6d22 in g_main_context_iterate (context=context@entry=0x7faf000009a0, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at /build/buildd/glib2.0-2.34.0/./glib/gmain.c:3287
#5  0x00007faf57ee6ea4 in g_main_context_iteration (context=0x7faf000009a0, may_block=1) at /build/buildd/glib2.0-2.34.0/./glib/gmain.c:3351
#6  0x00007faf5de1fc16 in QEventDispatcherGlib::processEvents (this=0x7faf000008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:426
#7  0x00007faf5ddf02bf in QEventLoop::processEvents (this=this@entry=0x7faf1a36dd90, flags=...) at kernel/qeventloop.cpp:149
#8  0x00007faf5ddf0548 in QEventLoop::exec (this=0x7faf1a36dd90, flags=...) at kernel/qeventloop.cpp:204
#9  0x00007faf5dcf1b10 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:501
#10 0x00007faf5ddd09af in QInotifyFileSystemWatcherEngine::run (this=0x2b8eaf0) at io/qfilesystemwatcher_inotify.cpp:248
#11 0x00007faf5dcf4aec in QThreadPrivate::start (arg=0x2b8eaf0) at thread/qthread_unix.cpp:338
#12 0x00007faf599dce9a in start_thread (arg=0x7faf1a36e700) at pthread_create.c:308
#13 0x00007faf5d494cbd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#14 0x0000000000000000 in ?? ()

Thread 3 (Thread 0x7faf19110700 (LWP 7066)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007faf54b38b2d in WTF::TCMalloc_PageHeap::scavengerThread (this=0x7faf554f9280 <WTF::pageheap_memory>) at wtf/FastMalloc.cpp:2499
#2  0x00007faf54b38c39 in WTF::TCMalloc_PageHeap::runScavengerThread (context=<optimized out>) at wtf/FastMalloc.cpp:1622
#3  0x00007faf599dce9a in start_thread (arg=0x7faf19110700) at pthread_create.c:308
#4  0x00007faf5d494cbd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#5  0x0000000000000000 in ?? ()

Thread 2 (Thread 0x7faefffff700 (LWP 7069)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007faf59fb5cd7 in QTWTF::TCMalloc_PageHeap::scavengerThread (this=0x7faf5a2c3660 <QTWTF::pageheap_memory>) at ../3rdparty/javascriptcore/JavaScriptCore/wtf/FastMalloc.cpp:2359
#2  0x00007faf59fb5d09 in QTWTF::TCMalloc_PageHeap::runScavengerThread (context=<optimized out>) at ../3rdparty/javascriptcore/JavaScriptCore/wtf/FastMalloc.cpp:1464
#3  0x00007faf599dce9a in start_thread (arg=0x7faefffff700) at pthread_create.c:308
#4  0x00007faf5d494cbd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#5  0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7faf60a187c0 (LWP 7051)):
[KCrash Handler]
#6  0x00007fae45c6f030 in ?? ()
#7  0x00007faeb61a7da0 in ?? ()
#8  0x0000000000000000 in ?? ()
Comment 3 Craig Magina 2012-11-16 20:23:19 UTC
Created attachment 75302 [details]
amarok konqi file
Comment 4 Craig Magina 2012-11-16 20:32:41 UTC
I removed the ~/.kde/share/apps/amarok and attempted to start amarok, it crashed the same way as before. And just to show the complete randomness of this bug, I tried this same process one more time and it started successfully.
Comment 5 Myriam Schweingruber 2012-11-16 21:46:58 UTC
Do you use any 3-rd party scripts? The debug output suggests that something is wrong with QtScript, so you should install debugging symbols for all the Qt packages you have and try reproducing it to get a better backtrace.
Comment 6 Craig Magina 2012-11-18 17:53:11 UTC
No, I am using only what is packaged in the Kubuntu 12.10 repo. I have installed the debugging symbols for what was missing in the backtrace above, hence why the only missing information is the bottom thread. If you have any suggestions on the debugging symbols I should install beyond amarok's, qtscript, qtwebkit and glib, I will install those as well. This issue reproduces 9 our of 10 times (at least) I start amarok, basically making amarok unusable for me. I've disabled most of the plugins, but I haven't disabled the scripts, which I will do the next time I get it to successfully start. If there is any further information I can gather to help solve this bug, I will do my best to get it. If you have suggestions on where/how I can debug the code, I am willing to do that as well.
Comment 7 Myriam Schweingruber 2012-11-19 12:12:17 UTC
Just erasing the amarokrc file in $HOME/.kde/share/config/ will disable the scripts.

The packages you need to debug Qt and Qtscript are: libqt4-dbg and libqt4-script-dbg
Comment 8 Myriam Schweingruber 2012-12-04 09:44:32 UTC
Any news on this?
Comment 9 Craig Magina 2012-12-07 17:48:18 UTC
I am attempting to reproduce this issue on KDE SC 4.9.4 with all of the debug symbols installed. I recently had to re-install my system due to a disk failure, so my reproduction attempts will include a fresh install and no music files to index and again with all of my music populating the index. I will not modify the default settings in Kubuntu 12.10.
Comment 10 Craig Magina 2012-12-17 17:39:38 UTC
I was able to reproduce it in KDE SC 4.9.4 with a completely stock configured Amarok on Kubuntu 12.10. I am also reproducing it on Kubuntu 13.04, KDE SC 4.9.90 and Amarok 2.6.0. I will attempt to reproduce it with the newer Amarok once it hits raring.

The debugging output I added when I opened this is basically all I get with all of the requested debug symbols installed and some more (i.e. glib). The only way more debugging output will be gotten is by a developer adding in some custom debugging to root cause this issue. I am willing to test such modified versions in order to get this issue fixed.
Comment 11 Craig Magina 2012-12-17 17:49:46 UTC
Created attachment 75885 [details]
Showing how reproducible this is

It actually crashed 19 times in a row, I closed the first 2. To reproduce this, I started amarok from the lacelot search results and then clicked "Restart Application" when the crash dialog appeared.
Comment 12 Myriam Schweingruber 2012-12-17 18:10:01 UTC
Trying to launch multiple instances of Amarok when the previous one is not properly closed is a very bad idea to start with.

Please make sure you have all instances closed and try to do the following:

* In a konsole, type 'gdb amarok' (without the ')
* once gdb is started, type 'run -d --nofork' (again without the ')
* when it crashes, type 'thread apply all bt'
* provide the output of the last command.
Comment 13 Craig Magina 2012-12-18 20:32:02 UTC
Even ensuring amarok has closed completely (closing drkonqi and ensuring there are no amarok processes remaining) I can still hit this crash 20 times in a row.

I did as you asked with gdb (completely forgot about it otherwise I probably would have tried it already), but am unable to reproduce the crash. However, I did notice something interesting. When I launch amarok via gdb (or just typing amarok in a konsole window) it launches, but amarok does not honor the KDE color-theme, my amarok config settings, etc. I have configured, only the window decoration is correct. This leads me to believe amarok when launched via lancelot or krunner is not liking something its finds in my KDE environment. My first thought was the file menubar as it has been known to cause issues, so I removed the plasmoid and, sadly, was still able to reproduce the crash.

What aspects of the KDE environment does amarok integrate with? Any good ways to debug these? I have been experiencing this issues since at least KDE SC 4.9, Kubuntu 12.10, through full system re-installs, including a rebuilding of my home directory and KDE configuration. I am also able to reproduce this issue on my desktop (AMD CPU and GPU) as well as my laptop (Intel CPU and GPU).

Any other suggestions on how to get this fixed as it makes amarok completely unusable for me and I would really prefer to help get this fixed.
Comment 14 Craig Magina 2012-12-18 20:34:39 UTC
Most recent reproduction:

Application: amarok (2.6.0)
KDE Platform Version: 4.9.90
Qt Version: 4.8.3
Operating System: Linux 3.7.0-7-generic x86_64
Distribution: Ubuntu Raring Ringtail (development branch)

The crash can be reproduced some of the time.

-- Backtrace:
A useful backtrace could not be generated

Report to https://bugs.kde.org/

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 0x7f8745a757c0 (LWP 4666))]

Thread 11 (Thread 0x7f87241a6700 (LWP 4669)):
#0  0x00007f87423cd44d in poll () at ../sysdeps/unix/syscall-template.S:81
#1  0x00007f873a6dcb6f in poll_func (ufds=0x7f8718002610, nfds=2, timeout=-1, userdata=0x14c8f10) at pulse/thread-mainloop.c:69
#2  0x00007f873a6ce0b5 in pa_mainloop_poll (m=m@entry=0x1488a40) at pulse/mainloop.c:873
#3  0x00007f873a6ce719 in pa_mainloop_iterate (m=m@entry=0x1488a40, block=block@entry=1, retval=retval@entry=0x0) at pulse/mainloop.c:955
#4  0x00007f873a6ce7d0 in pa_mainloop_run (m=0x1488a40, retval=retval@entry=0x0) at pulse/mainloop.c:973
#5  0x00007f873a6dcb1f in thread (userdata=0x14a9300) at pulse/thread-mainloop.c:88
#6  0x00007f8735da5543 in internal_thread_func (userdata=0xe1e290) at pulsecore/thread-posix.c:83
#7  0x00007f873e961f9f in start_thread (arg=0x7f87241a6700) at pthread_create.c:311
#8  0x00007f87423d90cd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:114

Thread 10 (Thread 0x7f871e8cb700 (LWP 4671)):
#0  0x00007f87423cd44d in poll () at ../sysdeps/unix/syscall-template.S:81
#1  0x00007f873ce70d64 in g_main_context_poll (n_fds=1, fds=0x7f870c001c30, timeout=-1, context=0x7f870c0009e0, priority=<optimized out>) at /build/buildd/glib2.0-2.34.3/./glib/gmain.c:3584
#2  g_main_context_iterate (context=context@entry=0x7f870c0009e0, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at /build/buildd/glib2.0-2.34.3/./glib/gmain.c:3285
#3  0x00007f873ce70e84 in g_main_context_iteration (context=0x7f870c0009e0, may_block=1) at /build/buildd/glib2.0-2.34.3/./glib/gmain.c:3351
#4  0x00007f8742d63c16 in QEventDispatcherGlib::processEvents (this=0x7f870c000900, flags=...) at kernel/qeventdispatcher_glib.cpp:426
#5  0x00007f8742d342bf in QEventLoop::processEvents (this=this@entry=0x7f871e8cad90, flags=...) at kernel/qeventloop.cpp:149
#6  0x00007f8742d34548 in QEventLoop::exec (this=0x7f871e8cad90, flags=...) at kernel/qeventloop.cpp:204
#7  0x00007f8742c35b10 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:501
#8  0x00007f8742d149af in QInotifyFileSystemWatcherEngine::run (this=0x15b97f0) at io/qfilesystemwatcher_inotify.cpp:248
#9  0x00007f8742c38aec in QThreadPrivate::start (arg=0x15b97f0) at thread/qthread_unix.cpp:338
#10 0x00007f873e961f9f in start_thread (arg=0x7f871e8cb700) at pthread_create.c:311
#11 0x00007f87423d90cd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:114

Thread 9 (Thread 0x7f8713885700 (LWP 4673)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:168
#1  0x00007f8742c3904b in wait (time=18446744073709551615, this=0x1bf8de0) at thread/qwaitcondition_unix.cpp:86
#2  QWaitCondition::wait (this=<optimized out>, mutex=0x19d3c80, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:158
#3  0x00007f873fedb101 in ThreadWeaver::WeaverImpl::blockThreadUntilJobsAreBeingAssigned (this=0x1bf9ec0, th=0x1a039b0) at ../../../threadweaver/Weaver/WeaverImpl.cpp:365
#4  0x00007f873fedd94b in ThreadWeaver::WorkingHardState::applyForWork (this=0x1bf9de0, th=0x1a039b0) at ../../../threadweaver/Weaver/WorkingHardState.cpp:71
#5  0x00007f873fedc7bf in ThreadWeaver::ThreadRunHelper::run (this=this@entry=0x7f8713884dc0, parent=0x1bf9ec0, th=th@entry=0x1a039b0) at ../../../threadweaver/Weaver/Thread.cpp:87
#6  0x00007f873fedc84b in ThreadWeaver::Thread::run (this=0x1a039b0) at ../../../threadweaver/Weaver/Thread.cpp:142
#7  0x00007f8742c38aec in QThreadPrivate::start (arg=0x1a039b0) at thread/qthread_unix.cpp:338
#8  0x00007f873e961f9f in start_thread (arg=0x7f8713885700) at pthread_create.c:311
#9  0x00007f87423d90cd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:114

Thread 8 (Thread 0x7f8713084700 (LWP 4674)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:168
#1  0x00007f8742c3904b in wait (time=18446744073709551615, this=0x1bf8de0) at thread/qwaitcondition_unix.cpp:86
#2  QWaitCondition::wait (this=<optimized out>, mutex=0x19d3c80, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:158
#3  0x00007f873fedb101 in ThreadWeaver::WeaverImpl::blockThreadUntilJobsAreBeingAssigned (this=0x1bf9ec0, th=0x1baf6a0) at ../../../threadweaver/Weaver/WeaverImpl.cpp:365
#4  0x00007f873fedd94b in ThreadWeaver::WorkingHardState::applyForWork (this=0x1bf9de0, th=0x1baf6a0) at ../../../threadweaver/Weaver/WorkingHardState.cpp:71
#5  0x00007f873fedc7bf in ThreadWeaver::ThreadRunHelper::run (this=this@entry=0x7f8713083dc0, parent=0x1bf9ec0, th=th@entry=0x1baf6a0) at ../../../threadweaver/Weaver/Thread.cpp:87
#6  0x00007f873fedc84b in ThreadWeaver::Thread::run (this=0x1baf6a0) at ../../../threadweaver/Weaver/Thread.cpp:142
#7  0x00007f8742c38aec in QThreadPrivate::start (arg=0x1baf6a0) at thread/qthread_unix.cpp:338
#8  0x00007f873e961f9f in start_thread (arg=0x7f8713084700) at pthread_create.c:311
#9  0x00007f87423d90cd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:114

Thread 7 (Thread 0x7f8712883700 (LWP 4675)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:168
#1  0x00007f8742c3904b in wait (time=18446744073709551615, this=0x1bf8de0) at thread/qwaitcondition_unix.cpp:86
#2  QWaitCondition::wait (this=<optimized out>, mutex=0x19d3c80, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:158
#3  0x00007f873fedb101 in ThreadWeaver::WeaverImpl::blockThreadUntilJobsAreBeingAssigned (this=0x1bf9ec0, th=0x1bbd0c0) at ../../../threadweaver/Weaver/WeaverImpl.cpp:365
#4  0x00007f873fedd94b in ThreadWeaver::WorkingHardState::applyForWork (this=0x1bf9de0, th=0x1bbd0c0) at ../../../threadweaver/Weaver/WorkingHardState.cpp:71
#5  0x00007f873fedc7bf in ThreadWeaver::ThreadRunHelper::run (this=this@entry=0x7f8712882dc0, parent=0x1bf9ec0, th=th@entry=0x1bbd0c0) at ../../../threadweaver/Weaver/Thread.cpp:87
#6  0x00007f873fedc84b in ThreadWeaver::Thread::run (this=0x1bbd0c0) at ../../../threadweaver/Weaver/Thread.cpp:142
#7  0x00007f8742c38aec in QThreadPrivate::start (arg=0x1bbd0c0) at thread/qthread_unix.cpp:338
#8  0x00007f873e961f9f in start_thread (arg=0x7f8712883700) at pthread_create.c:311
#9  0x00007f87423d90cd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:114

Thread 6 (Thread 0x7f8712082700 (LWP 4676)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:168
#1  0x00007f8742c3904b in wait (time=18446744073709551615, this=0x1bf8de0) at thread/qwaitcondition_unix.cpp:86
#2  QWaitCondition::wait (this=<optimized out>, mutex=0x19d3c80, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:158
#3  0x00007f873fedb101 in ThreadWeaver::WeaverImpl::blockThreadUntilJobsAreBeingAssigned (this=0x1bf9ec0, th=0x1bbadc0) at ../../../threadweaver/Weaver/WeaverImpl.cpp:365
#4  0x00007f873fedd94b in ThreadWeaver::WorkingHardState::applyForWork (this=0x1bf9de0, th=0x1bbadc0) at ../../../threadweaver/Weaver/WorkingHardState.cpp:71
#5  0x00007f873fedc7bf in ThreadWeaver::ThreadRunHelper::run (this=this@entry=0x7f8712081dc0, parent=0x1bf9ec0, th=th@entry=0x1bbadc0) at ../../../threadweaver/Weaver/Thread.cpp:87
#6  0x00007f873fedc84b in ThreadWeaver::Thread::run (this=0x1bbadc0) at ../../../threadweaver/Weaver/Thread.cpp:142
#7  0x00007f8742c38aec in QThreadPrivate::start (arg=0x1bbadc0) at thread/qthread_unix.cpp:338
#8  0x00007f873e961f9f in start_thread (arg=0x7f8712082700) at pthread_create.c:311
#9  0x00007f87423d90cd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:114

Thread 5 (Thread 0x7f87113f3700 (LWP 4677)):
#0  g_mutex_get_impl (mutex=0x7f86f80009a0) at /build/buildd/glib2.0-2.34.3/./glib/gthread-posix.c:132
#1  0x00007f873ceaddf9 in g_mutex_lock (mutex=mutex@entry=0x7f86f80009a0) at /build/buildd/glib2.0-2.34.3/./glib/gthread-posix.c:210
#2  0x00007f873ce704b3 in g_main_context_prepare (context=context@entry=0x7f86f80009a0, priority=priority@entry=0x7f87113f2c38) at /build/buildd/glib2.0-2.34.3/./glib/gmain.c:2929
#3  0x00007f873ce70c8b in g_main_context_iterate (context=context@entry=0x7f86f80009a0, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at /build/buildd/glib2.0-2.34.3/./glib/gmain.c:3270
#4  0x00007f873ce70e84 in g_main_context_iteration (context=0x7f86f80009a0, may_block=1) at /build/buildd/glib2.0-2.34.3/./glib/gmain.c:3351
#5  0x00007f8742d63c16 in QEventDispatcherGlib::processEvents (this=0x7f86f80008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:426
#6  0x00007f8742d342bf in QEventLoop::processEvents (this=this@entry=0x7f87113f2d90, flags=...) at kernel/qeventloop.cpp:149
#7  0x00007f8742d34548 in QEventLoop::exec (this=0x7f87113f2d90, flags=...) at kernel/qeventloop.cpp:204
#8  0x00007f8742c35b10 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:501
#9  0x00007f8742d149af in QInotifyFileSystemWatcherEngine::run (this=0x1a935c0) at io/qfilesystemwatcher_inotify.cpp:248
#10 0x00007f8742c38aec in QThreadPrivate::start (arg=0x1a935c0) at thread/qthread_unix.cpp:338
#11 0x00007f873e961f9f in start_thread (arg=0x7f87113f3700) at pthread_create.c:311
#12 0x00007f87423d90cd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:114

Thread 4 (Thread 0x7f8703fff700 (LWP 4678)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:168
#1  0x00007f8739ac2b2d in WTF::TCMalloc_PageHeap::scavengerThread (this=0x7f873a483280 <WTF::pageheap_memory>) at wtf/FastMalloc.cpp:2499
#2  0x00007f8739ac2c39 in WTF::TCMalloc_PageHeap::runScavengerThread (context=<optimized out>) at wtf/FastMalloc.cpp:1622
#3  0x00007f873e961f9f in start_thread (arg=0x7f8703fff700) at pthread_create.c:311
#4  0x00007f87423d90cd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:114

Thread 3 (Thread 0x7f87037fe700 (LWP 4679)):
#0  0x00007fff7b3ff60a in ?? ()
#1  0x00007fff7b3ff8ac in clock_gettime ()
#2  0x00007f873b8a532d in __GI_clock_gettime (clock_id=<optimized out>, tp=<optimized out>) at ../sysdeps/unix/clock_gettime.c:115
#3  0x00007f8742c8e9c4 in do_gettime (frac=0x7f87037fdb18, sec=0x7f87037fdb10) at tools/qelapsedtimer_unix.cpp:123
#4  qt_gettime () at tools/qelapsedtimer_unix.cpp:140
#5  0x00007f8742d6441d in QTimerInfoList::updateCurrentTime (this=this@entry=0x7f86ec001f50) at kernel/qeventdispatcher_unix.cpp:343
#6  0x00007f8742d64763 in QTimerInfoList::timerWait (this=0x7f86ec001f50, tm=...) at kernel/qeventdispatcher_unix.cpp:450
#7  0x00007f8742d632cc in timerSourcePrepareHelper (src=<optimized out>, timeout=0x7f87037fdc04) at kernel/qeventdispatcher_glib.cpp:136
#8  0x00007f8742d63375 in timerSourcePrepare (source=<optimized out>, timeout=timeout@entry=0x7f87037fdc04) at kernel/qeventdispatcher_glib.cpp:169
#9  0x00007f873ce705f8 in g_main_context_prepare (context=context@entry=0x7f86ec0009a0, priority=priority@entry=0x7f87037fdc68) at /build/buildd/glib2.0-2.34.3/./glib/gmain.c:2986
#10 0x00007f873ce70c8b in g_main_context_iterate (context=context@entry=0x7f86ec0009a0, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at /build/buildd/glib2.0-2.34.3/./glib/gmain.c:3270
#11 0x00007f873ce70e84 in g_main_context_iteration (context=0x7f86ec0009a0, may_block=1) at /build/buildd/glib2.0-2.34.3/./glib/gmain.c:3351
#12 0x00007f8742d63c16 in QEventDispatcherGlib::processEvents (this=0x7f86ec0008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:426
#13 0x00007f8742d342bf in QEventLoop::processEvents (this=this@entry=0x7f87037fddc0, flags=...) at kernel/qeventloop.cpp:149
#14 0x00007f8742d34548 in QEventLoop::exec (this=0x7f87037fddc0, flags=...) at kernel/qeventloop.cpp:204
#15 0x00007f8742c35b10 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:501
#16 0x00007f8742c38aec in QThreadPrivate::start (arg=0x1de6e20) at thread/qthread_unix.cpp:338
#17 0x00007f873e961f9f in start_thread (arg=0x7f87037fe700) at pthread_create.c:311
#18 0x00007f87423d90cd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:114

Thread 2 (Thread 0x7f8701b3a700 (LWP 4682)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:168
#1  0x00007f873ef3acd7 in QTWTF::TCMalloc_PageHeap::scavengerThread (this=0x7f873f248660 <QTWTF::pageheap_memory>) at ../3rdparty/javascriptcore/JavaScriptCore/wtf/FastMalloc.cpp:2359
#2  0x00007f873ef3ad09 in QTWTF::TCMalloc_PageHeap::runScavengerThread (context=<optimized out>) at ../3rdparty/javascriptcore/JavaScriptCore/wtf/FastMalloc.cpp:1464
#3  0x00007f873e961f9f in start_thread (arg=0x7f8701b3a700) at pthread_create.c:311
#4  0x00007f87423d90cd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:114

Thread 1 (Thread 0x7f8745a757c0 (LWP 4666)):
[KCrash Handler]
#6  0x00007f86458ca030 in ?? ()
#7  0x00007f86a3cc2da0 in ?? ()
#8  0x7fffffff00000032 in ?? ()
#9  0x00007f8700646240 in ?? ()
#10 0x00007f8700000010 in ?? ()
#11 0x0000000000000003 in ?? ()
#12 0x00007f86e9b8bcb8 in ?? ()
#13 0x00007f8710012240 in ?? ()
#14 0x00007f8710007738 in ?? ()
#15 0x00007f86e9bee960 in ?? ()
#16 0x00007f871001b480 in ?? ()
#17 0x00007f86a3cbc000 in ?? ()
#18 0x00007f8710007750 in ?? ()
#19 0x00007f8700f3a060 in ?? ()
#20 0x00007f871000da88 in ?? ()
#21 0x00007f873f233d98 in QTJSC::ExecutableAllocator::pageSize () from /usr/lib/x86_64-linux-gnu/libQtScript.so.4
#22 0x00007f871000c800 in ?? ()
#23 0x00007f8700f3a000 in ?? ()
#24 0x00007f871001daf0 in ?? ()
#25 0x00007f873f233d98 in QTJSC::ExecutableAllocator::pageSize () from /usr/lib/x86_64-linux-gnu/libQtScript.so.4
#26 0x0000000001fdcc18 in ?? ()
#27 0x00007f8700f3a060 in ?? ()
#28 0x00007f8710007738 in ?? ()
#29 0x00007f873ee488d9 in execute (exception=0x7f871000da88, globalData=0x7f871000c800, callFrame=0x200, registerFile=0x7fff7b3bc128, this=<optimized out>) at ../3rdparty/javascriptcore/JavaScriptCore/jit/JITCode.h:79
#30 QTJSC::Interpreter::execute (this=0x7fff7b3bc110, functionExecutable=0xffff000000000002, callFrame=0x7f8700f3a0e0, function=0x7f8700ec3a80, thisObj=<optimized out>, args=..., scopeChain=0x7f8710012240, exception=0x7f871000da88) at ../3rdparty/javascriptcore/JavaScriptCore/interpreter/Interpreter.cpp:716
#31 0x00007f873eed9817 in QTJSC::JSFunction::call (this=0x7f8700ec3a80, exec=0x1fdcc18, thisValue=..., args=...) at ../3rdparty/javascriptcore/JavaScriptCore/runtime/JSFunction.cpp:122
#32 0x00007f873eead1ff in QTJSC::call (exec=<optimized out>, functionObject=..., callType=<optimized out>, callData=..., thisValue=..., args=...) at ../3rdparty/javascriptcore/JavaScriptCore/runtime/CallData.cpp:62
#33 0x00007f873efabf36 in QScript::QObjectConnectionManager::execute (this=this@entry=0x2638db0, slotIndex=<optimized out>, argv=argv@entry=0x7fff7b3bc490) at bridge/qscriptqobject.cpp:2163
#34 0x00007f873efac331 in QScript::QObjectConnectionManager::qt_metacall (this=0x2638db0, _c=QMetaObject::InvokeMetaMethod, _id=<optimized out>, _a=0x7fff7b3bc490) at bridge/qscriptqobject.cpp:2066
#35 0x00007f8742d4b123 in QMetaObject::activate (sender=0x23b9ba0, m=<optimized out>, local_signal_index=<optimized out>, argv=0x7fff7b3bc490) at kernel/qobject.cpp:3566
#36 0x00007f8744a13f98 in ScriptableServiceScript::populate (this=this@entry=0x23b9ba0, _t1=_t1@entry=1, _t2=..., _t3=...) at ./AmarokScriptableServiceScript.moc:252
#37 0x00007f8744a14023 in ScriptableServiceScript::slotPopulate (this=0x23b9ba0, name=..., level=1, parent_id=-1, callbackData=..., filter=...) at ../../src/scriptengine/AmarokScriptableServiceScript.cpp:222
#38 0x00007f8744ac3637 in ScriptManager::ServiceScriptPopulate (this=0x20f4280, name=..., level=1, parent_id=-1, path=..., filter=...) at ../../src/ScriptManager.cpp:343
#39 0x00007f87446dc43a in Collections::ScriptableServiceQueryMaker::fetchAlbums (this=0x29d6610) at ../../src/services/scriptable/ScriptableServiceQueryMaker.cpp:302
#40 0x00007f8742d4a43e in QObject::event (this=0x29d6610, e=<optimized out>) at kernel/qobject.cpp:1195
#41 0x00007f8743717e9c in QApplicationPrivate::notify_helper (this=this@entry=0xe1c160, receiver=receiver@entry=0x29d6610, e=e@entry=0x2a62650) at kernel/qapplication.cpp:4562
#42 0x00007f874371c30a in QApplication::notify (this=0x7fff7b3bf2a0, receiver=0x29d6610, e=0x2a62650) at kernel/qapplication.cpp:4423
#43 0x00007f87454865b6 in KApplication::notify (this=0x7fff7b3bf2a0, receiver=0x29d6610, event=0x2a62650) at ../../kdeui/kernel/kapplication.cpp:311
#44 0x00007f8742d3556e in QCoreApplication::notifyInternal (this=0x7fff7b3bf2a0, receiver=receiver@entry=0x29d6610, event=event@entry=0x2a62650) at kernel/qcoreapplication.cpp:915
#45 0x00007f8742d393f1 in sendEvent (event=0x2a62650, receiver=0x29d6610) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:231
#46 QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0xca41f0) at kernel/qcoreapplication.cpp:1539
#47 0x00007f8742d63a63 in sendPostedEvents () at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:236
#48 postEventSourceDispatch (s=s@entry=0xe17120) at kernel/qeventdispatcher_glib.cpp:279
#49 0x00007f873ce70a95 in g_main_dispatch (context=0xe18520) at /build/buildd/glib2.0-2.34.3/./glib/gmain.c:2715
#50 g_main_context_dispatch (context=context@entry=0xe18520) at /build/buildd/glib2.0-2.34.3/./glib/gmain.c:3219
#51 0x00007f873ce70dc8 in g_main_context_iterate (context=context@entry=0xe18520, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at /build/buildd/glib2.0-2.34.3/./glib/gmain.c:3290
#52 0x00007f873ce70e84 in g_main_context_iteration (context=0xe18520, may_block=1) at /build/buildd/glib2.0-2.34.3/./glib/gmain.c:3351
#53 0x00007f8742d63bf6 in QEventDispatcherGlib::processEvents (this=0xca5ad0, flags=...) at kernel/qeventdispatcher_glib.cpp:424
#54 0x00007f87437bcc1e in QGuiEventDispatcherGlib::processEvents (this=<optimized out>, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#55 0x00007f8742d342bf in QEventLoop::processEvents (this=this@entry=0x7fff7b3bcf60, flags=...) at kernel/qeventloop.cpp:149
#56 0x00007f8742d34548 in QEventLoop::exec (this=0x7fff7b3bcf60, flags=...) at kernel/qeventloop.cpp:204
#57 0x00007f8742d39708 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1187
#58 0x0000000000408e1a in main (argc=1, argv=0x7fff7b3bf408) at ../../src/main.cpp:306
Comment 15 Myriam Schweingruber 2012-12-19 18:41:01 UTC
This very much sounds like if you had 2 different Amarok installations on your system, what does 'which amarok' tell you?
Comment 16 Craig Magina 2012-12-19 19:21:32 UTC
Yes, that was my first thought, but it was actually that I had an old bash environment variable changing KDEHOME from stuff I had setup for building kde from source. I have removed that and I was able to collect the gdb trace, it looks a lot, if not the same, as the last stack trace I posted. I'll add it shortly. What this did tell me is that there is definitely something in my amarok config that is causing it to crash on start. I removed everything (.kde/share/apps/amarok; .kde/share/config/amarokrc, amarok_homerc, and amarok_appletsrc). Amarok came up without issue and did so repeatably, which is much better as before it was 1 our of 20 times it might come up. I started making any changes I tend to make one at a time and now I have a reliable reproduction path.

1. Remove .kde/share/config/amarok_homerc
2. Click the "Configure Applets" at the bottom right of the center section
3. Add "Info"
4. Quit Amarok
5. Start Amarok
6. Watch it crash
Comment 17 Myriam Schweingruber 2012-12-21 14:58:57 UTC
(In reply to comment #16)

> 1. Remove .kde/share/config/amarok_homerc
> 2. Click the "Configure Applets" at the bottom right of the center section
> 3. Add "Info"
> 4. Quit Amarok
> 5. Start Amarok
> 6. Watch it crash

No crash for me, using KDE 4.9.90 and Amarok from git, v2.6.90-27-g7f8853b-, Kubuntu 12.10, Qt. v 4.8.3
Could you please specify your versions?
Comment 18 Myriam Schweingruber 2013-01-10 10:55:28 UTC
Any news on this? It would be nice if you could test the 2.6.90 aka 2.7 beta version, available in the Kubuntu beta PPA
Comment 19 Craig Magina 2013-01-20 00:18:40 UTC
I just tried to reproduce this on Kubuntu 13.04, with KDE SC 4.9.98, Amarok 2.7.0 and I was unable to hit the crash following the steps from above.
Comment 20 Myriam Schweingruber 2013-01-20 00:25:42 UTC
Thank you for the feedback :)