Bug 229211

Summary: amarok crashes on start up
Product: [Frameworks and Libraries] Phonon Reporter: Nidal <kollathodi>
Component: Xine backendAssignee: Matthias Kretz <kretz>
Status: RESOLVED FIXED    
Severity: crash CC: evorster, martin.sandsmark
Priority: NOR    
Version: 4.3.1 (KDE 4.4)   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In: 4.4.1
Sentry Crash Report:
Attachments: Kcrash report

Description Nidal 2010-03-03 07:45:52 UTC
Version:           2.2.2 (using KDE 4.4.0)
Compiler:          gcc-4.4 
OS:                Linux
Installed from:    Ubuntu Packages

Hi,

I have upgraded my kubuntu9.10 to kde 4.4(all using kpackage/apt only). After upgrading, amarok doesn't start up. It crashes and take me through the bug reporting tool which generates a report and at the end says the report probably not useful.  When I try to start the application by giving the command "amarok" from CLI, it crashes and display the following messages on the console. This behavior is consistent and was never able to get amarok up after the upgrade. I have reinstalled almost entire kde libraries and components including amarok and it does not help. Also, I have applied ALL the available patches and updates as of today( March 3, 2010). Nothing helped so far.
 
#####################
amarok(5467)/kdecore (KSycoca) KSycocaPrivate::openDatabase: Trying to open ksycoca from  "/var/tmp/kdecache-nidalHtsIcZ/ksycoca4"                                               
KCrash: Application 'amarok' crashing...                                                                                                                                         
sock_file=/home/nidal/.kde/socket-pirana/kdeinit4__0                                                                                                                             
<unknown program name>(5466)/: Communication problem with  "amarok" , it probably crashed.                                                                                       
Error message was:  "org.freedesktop.DBus.Error.ServiceUnknown" : " "The name org.kde.amarok was not provided by any .service files" "                                           
#####################

I am attaching the report generated by the kcrash as well as apport along with this. Would be more than happy to provide any further info on this if asked.

Quick info,

Laptop: ThinkPad T400
OS: Kubuntu 9.10
KDE: 4.4.1
Amarok: 2.2.2

I have reported the same to Kubuntu bug tracking system too. Because I am not sure which one is more suitable. My apologies in advance if I am wrong to do so.

Thanks indeed,
Nidal
Comment 1 Nidal 2010-03-03 07:46:43 UTC
Created attachment 41275 [details]
Kcrash report
Comment 2 Myriam Schweingruber 2010-03-03 14:09:38 UTC
This looks like a bug in Phonon, but you should install the phonon-dbg package to get a better backtrace:

Application: amarok (2.2.2)
KDE Platform Version: 4.4.1 (KDE 4.4.1)
Qt Version: 4.6.2
Operating System: Linux 2.6.31-19-generic x86_64
Distribution: Ubuntu 9.10

-- 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: Segmentation fault
The current source language is "auto; currently c".
[Current thread is 1 (Thread 0x7f94f2faa810 (LWP 6074))]

Thread 5 (Thread 0x7f94d7a8a910 (LWP 6077)):
#0  pthread_cond_timedwait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:220
#1  0x00007f94dd73fc91 in ?? () from /usr/lib/libxine.so.1
#2  0x00007f94ee37ea04 in start_thread (arg=<value optimized out>) at pthread_create.c:300
#3  0x00007f94eff2980d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#4  0x0000000000000000 in ?? ()

Thread 4 (Thread 0x7f94d633e910 (LWP 6078)):
#0  0xffffffffff60017b in ?? ()
#1  0x00007f94d633dc30 in ?? ()
#2  0x00007fff0a567782 in ?? ()
Backtrace stopped: previous frame identical to this frame (corrupt stack?)
The current source language is "auto; currently asm".

Thread 3 (Thread 0x7f94d5933910 (LWP 6085)):
#0  0x00007f94eff1d3c3 in *__GI___poll (fds=<value optimized out>, nfds=<value optimized out>, timeout=333) at ../sysdeps/unix/sysv/linux/poll.c:87
#1  0x00007f94d5939cbe in ?? () from /usr/lib/xine/plugins/1.26/xineplug_ao_out_alsa.so
#2  0x00007f94ee37ea04 in start_thread (arg=<value optimized out>) at pthread_create.c:300
#3  0x00007f94eff2980d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#4  0x0000000000000000 in ?? ()

Thread 2 (Thread 0x7f94d5132910 (LWP 6086)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:261
#1  0x00007f94dd750983 in ?? () from /usr/lib/libxine.so.1
#2  0x00007f94ee37ea04 in start_thread (arg=<value optimized out>) at pthread_create.c:300
#3  0x00007f94eff2980d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#4  0x0000000000000000 in ?? ()
The current source language is "auto; currently c".

Thread 1 (Thread 0x7f94f2faa810 (LWP 6074)):
[KCrash Handler]
#5  0x00007f94dd75a220 in xine_post_input () from /usr/lib/libxine.so.1
#6  0x00007f94dd9b048f in ?? () from /usr/lib/qt4/plugins/phonon_backend/phonon_xine.so
#7  0x00007f94dd9af782 in ?? () from /usr/lib/qt4/plugins/phonon_backend/phonon_xine.so
#8  0x00007f94dd9af110 in ?? () from /usr/lib/qt4/plugins/phonon_backend/phonon_xine.so
#9  0x00007f94ed53e2f5 in ?? () from /usr/lib/libphonon.so.4
#10 0x00007f94ed53e247 in Phonon::Effect::Effect(Phonon::ObjectDescription<(Phonon::ObjectDescriptionType)1> const&, QObject*) () from /usr/lib/libphonon.so.4
#11 0x00007f94f222e9e4 in EngineController::initializePhonon (this=0x242a4a0) at /build/buildd/amarok-2.2.2/src/EngineController.cpp:138
#12 0x00007f94f222fba8 in EngineController (this=0x242a4a0) at /build/buildd/amarok-2.2.2/src/EngineController.cpp:83
#13 0x00007f94f222fd28 in EngineController::instance () at /build/buildd/amarok-2.2.2/src/EngineController.cpp:65
#14 0x00007f94f2245f53 in MainWindow (this=0x25581b0) at /build/buildd/amarok-2.2.2/src/MainWindow.cpp:134
#15 0x00007f94f2214339 in App::continueInit (this=0x7fff0a537150) at /build/buildd/amarok-2.2.2/src/App.cpp:672
#16 0x00007f94f2216bf0 in App (this=0x7fff0a537150) at /build/buildd/amarok-2.2.2/src/App.cpp:227
#17 0x000000000040a24a in main (argc=<value optimized out>, argv=<value optimized out>) at /build/buildd/amarok-2.2.2/src/main.cpp:233
The current source language is "auto; currently asm".
The current source language is "auto; currently c".
Comment 3 Myriam Schweingruber 2010-03-03 14:12:50 UTC
Reassigning
Comment 4 Nidal 2010-03-03 15:30:55 UTC
Many many thanks indeed for the prompt reply ! I installed the phonon-dbg and repeated the same exercise. It still says "The crash information is probably not useful". Anyway I am attaching the latest crash report along with this. Please let me know if you need any further input from me.

Thanks a lot again !
Nidal
Comment 5 Nidal 2010-03-03 15:34:26 UTC
Application: Amarok (amarok), signal: Segmentation fault
The current source language is "auto; currently c".
[Current thread is 1 (Thread 0x7f15514bc810 (LWP 4412))]

Thread 5 (Thread 0x7f15396e8910 (LWP 4413)):
#0  pthread_cond_timedwait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:220
#1  0x00007f153f39dc91 in ?? () from /usr/lib/libxine.so.1
#2  0x00007f154c890a04 in start_thread (arg=<value optimized out>) at pthread_create.c:300
#3  0x00007f154e43b80d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#4  0x0000000000000000 in ?? ()

Thread 4 (Thread 0x7f1537f9c910 (LWP 4414)):
#0  0x00007f154c8946dd in __pthread_mutex_unlock_usercnt (mutex=0x11e7e18) at pthread_mutex_unlock.c:52
#1  __pthread_mutex_unlock (mutex=0x11e7e18) at pthread_mutex_unlock.c:289
#2  0x00007f1547b97f25 in g_main_context_prepare () from /lib/libglib-2.0.so.0
#3  0x00007f1547b98191 in ?? () from /lib/libglib-2.0.so.0
#4  0x00007f1547b986c0 in g_main_context_iteration () from /lib/libglib-2.0.so.0
#5  0x00007f154ed89386 in QEventDispatcherGlib::processEvents (this=0x1116cf0, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:414
#6  0x00007f154ed5e732 in QEventLoop::processEvents (this=<value optimized out>, flags=) at kernel/qeventloop.cpp:149
#7  0x00007f154ed5eb0c in QEventLoop::exec (this=0x7f1537f9bf20, flags=) at kernel/qeventloop.cpp:201
#8  0x00007f154ec68d59 in QThread::exec (this=<value optimized out>) at thread/qthread.cpp:487
#9  0x00007f153f5f9570 in ?? () from /usr/lib/qt4/plugins/phonon_backend/phonon_xine.so
#10 0x00007f154ec6b775 in QThreadPrivate::start (arg=0x111efa0) at thread/qthread_unix.cpp:248
#11 0x00007f154c890a04 in start_thread (arg=<value optimized out>) at pthread_create.c:300
#12 0x00007f154e43b80d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#13 0x0000000000000000 in ?? ()
The current source language is "auto; currently asm".

Thread 3 (Thread 0x7f1537591910 (LWP 4417)):
#0  0x00007f154e42f3c3 in *__GI___poll (fds=<value optimized out>, nfds=<value optimized out>, timeout=333) at ../sysdeps/unix/sysv/linux/poll.c:87
#1  0x00007f1537597cbe in ?? () from /usr/lib/xine/plugins/1.26/xineplug_ao_out_alsa.so
#2  0x00007f154c890a04 in start_thread (arg=<value optimized out>) at pthread_create.c:300
#3  0x00007f154e43b80d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#4  0x0000000000000000 in ?? ()
The current source language is "auto; currently c".

Thread 2 (Thread 0x7f1536d90910 (LWP 4418)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:261
#1  0x00007f153f3ae983 in ?? () from /usr/lib/libxine.so.1
#2  0x00007f154c890a04 in start_thread (arg=<value optimized out>) at pthread_create.c:300
#3  0x00007f154e43b80d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#4  0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7f15514bc810 (LWP 4412)):
[KCrash Handler]
#5  0x00007f153f3b8220 in xine_post_input () from /usr/lib/libxine.so.1
#6  0x00007f153f60e48f in ?? () from /usr/lib/qt4/plugins/phonon_backend/phonon_xine.so
#7  0x00007f153f60d782 in ?? () from /usr/lib/qt4/plugins/phonon_backend/phonon_xine.so
#8  0x00007f153f60d110 in ?? () from /usr/lib/qt4/plugins/phonon_backend/phonon_xine.so
#9  0x00007f154ba502f5 in Phonon::EffectPrivate::setupBackendObject (this=0x13715f0) at ../3rdparty/phonon/phonon/effect.cpp:122
#10 0x00007f154ba50247 in Effect (this=0x1371920, description=..., parent=<value optimized out>) at ../3rdparty/phonon/phonon/effect.cpp:45
#11 0x00007f15507409e4 in EngineController::initializePhonon (this=0x105e170) at /build/buildd/amarok-2.2.2/src/EngineController.cpp:138
#12 0x00007f1550741ba8 in EngineController (this=0x105e170) at /build/buildd/amarok-2.2.2/src/EngineController.cpp:83
#13 0x00007f1550741d28 in EngineController::instance () at /build/buildd/amarok-2.2.2/src/EngineController.cpp:65
#14 0x00007f1550757f53 in MainWindow (this=0x111ac60) at /build/buildd/amarok-2.2.2/src/MainWindow.cpp:134
#15 0x00007f1550726339 in App::continueInit (this=0x7fff1beec010) at /build/buildd/amarok-2.2.2/src/App.cpp:672
#16 0x00007f1550728bf0 in App (this=0x7fff1beec010) at /build/buildd/amarok-2.2.2/src/App.cpp:227
#17 0x000000000040a24a in main (argc=<value optimized out>, argv=<value optimized out>) at /build/buildd/amarok-2.2.2/src/main.cpp:233
The current source language is "auto; currently asm".
The current source language is "auto; currently c".
Comment 6 Myriam Schweingruber 2010-03-04 14:31:49 UTC
Indeed, it doesn't really help. Could you please start Amarok from a konsole with 'amarok -d --nofork' and see, if the next backtrace is more useful?
Comment 7 Nidal 2010-03-04 16:11:40 UTC
Many thanks indeed for your persistence! But I had tried this too earlier and result was the same. Anyway I am copy-pasting the output of that too, in case you can make out anything out of it.

Please let me know if there is anything else I can help you to help me :-)

Thanks again,
Nidal


Application: Amarok (amarok), signal: Segmentation fault
The current source language is "auto; currently c".
[Current thread is 1 (Thread 0x7fd8a3a55810 (LWP 32530))]

Thread 5 (Thread 0x7fd88bc81910 (LWP 32531)):
#0  pthread_cond_timedwait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:220
#1  0x00007fd891936c91 in ?? () from /usr/lib/libxine.so.1
#2  0x00007fd89ee29a04 in start_thread (arg=<value optimized out>) at pthread_create.c:300
#3  0x00007fd8a09d480d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#4  0x0000000000000000 in ?? ()

Thread 4 (Thread 0x7fd88a535910 (LWP 32532)):
#0  0xffffffffff60017b in ?? ()
#1  0x00007fd88a534c30 in ?? ()
#2  0x00007fff5e9ad782 in ?? ()
Backtrace stopped: previous frame identical to this frame (corrupt stack?)
The current source language is "auto; currently asm".

Thread 3 (Thread 0x7fd889b2a910 (LWP 32536)):
#0  0x00007fd8a09c83c3 in *__GI___poll (fds=<value optimized out>, nfds=<value optimized out>, timeout=333) at ../sysdeps/unix/sysv/linux/poll.c:87
#1  0x00007fd889b30cbe in ?? () from /usr/lib/xine/plugins/1.26/xineplug_ao_out_alsa.so
#2  0x00007fd89ee29a04 in start_thread (arg=<value optimized out>) at pthread_create.c:300
#3  0x00007fd8a09d480d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#4  0x0000000000000000 in ?? ()

Thread 2 (Thread 0x7fd889329910 (LWP 32537)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:261
#1  0x00007fd891947983 in ?? () from /usr/lib/libxine.so.1
#2  0x00007fd89ee29a04 in start_thread (arg=<value optimized out>) at pthread_create.c:300
#3  0x00007fd8a09d480d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#4  0x0000000000000000 in ?? ()
The current source language is "auto; currently c".

Thread 1 (Thread 0x7fd8a3a55810 (LWP 32530)):
[KCrash Handler]
#5  0x00007fd891951220 in xine_post_input () from /usr/lib/libxine.so.1
#6  0x00007fd891ba748f in ?? () from /usr/lib/qt4/plugins/phonon_backend/phonon_xine.so
#7  0x00007fd891ba6782 in ?? () from /usr/lib/qt4/plugins/phonon_backend/phonon_xine.so
#8  0x00007fd891ba6110 in ?? () from /usr/lib/qt4/plugins/phonon_backend/phonon_xine.so
#9  0x00007fd89dfe92f5 in Phonon::EffectPrivate::setupBackendObject (this=0xc11a20) at ../3rdparty/phonon/phonon/effect.cpp:122
#10 0x00007fd89dfe9247 in Effect (this=0xc11d50, description=..., parent=<value optimized out>) at ../3rdparty/phonon/phonon/effect.cpp:45
#11 0x00007fd8a2cd99e4 in EngineController::initializePhonon (this=0x8fdcd0) at /build/buildd/amarok-2.2.2/src/EngineController.cpp:138
#12 0x00007fd8a2cdaba8 in EngineController (this=0x8fdcd0) at /build/buildd/amarok-2.2.2/src/EngineController.cpp:83
#13 0x00007fd8a2cdad28 in EngineController::instance () at /build/buildd/amarok-2.2.2/src/EngineController.cpp:65
#14 0x00007fd8a2cf0f53 in MainWindow (this=0x9bb170) at /build/buildd/amarok-2.2.2/src/MainWindow.cpp:134
#15 0x00007fd8a2cbf339 in App::continueInit (this=0x7fff5e8e1fe0) at /build/buildd/amarok-2.2.2/src/App.cpp:672
#16 0x00007fd8a2cc1bf0 in App (this=0x7fff5e8e1fe0) at /build/buildd/amarok-2.2.2/src/App.cpp:227
#17 0x000000000040a24a in main (argc=<value optimized out>, argv=<value optimized out>) at /build/buildd/amarok-2.2.2/src/main.cpp:233
The current source language is "auto; currently asm".
The current source language is "auto; currently c".
Comment 8 Evert Vorster 2010-03-10 07:12:48 UTC
I get the same crash on amarok. 

Weird thing is that I only get it with a new user. 
When I copy all the files from an existing and working user, amarok works fine. 

-Evert Vorster-
Comment 9 Evert Vorster 2010-03-10 07:14:41 UTC
OK, I just got it to work. 

I changed backends from Xine to Gstreamer in KDE for the new user, and now amarok starts fine. 

-Evert Vorster-
Comment 10 Nidal 2010-03-10 08:54:49 UTC
Thanks a lot for your tip. Even I changed the backend to Gstreamer and Amarok works now. Will stick with this until the issue is fixed.

Thanks again to both of you,

Nidal
Comment 11 Myriam Schweingruber 2010-04-04 18:20:46 UTC
OK, closing this report for now then. We are currently working on a new backend that should solve many of the existing issues, but this will still need some patience as it is only in it's alpha stage