Bug 191596 - Crash when playing stream
Summary: Crash when playing stream
Status: CLOSED INTENTIONAL
Alias: None
Product: amarok
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Ubuntu Linux
: NOR crash
Target Milestone: ---
Assignee: Amarok Developers
URL:
Keywords:
: 192813 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-05-04 18:00 UTC by kinta
Modified: 2009-05-20 22:49 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
backtrace (13.99 KB, text/x-log)
2009-05-04 18:00 UTC, kinta
Details
backtrace (10.06 KB, application/octet-stream)
2009-05-17 13:26 UTC, kinta
Details

Note You need to log in before you can comment on or make changes to this bug.
Description kinta 2009-05-04 18:00:22 UTC
Created attachment 33348 [details]
backtrace

+++ This bug was initially created as a clone of Bug #189550 +++

Version:           Amarok 2.0.1 (using KDE 4.2.2)
OS:                Linux
Installed from:    Ubuntu Packages

With a lot of streams that cannot be found. You have to click next song...
When you found the next item playable it plays, after that if the next song is not found amarok crashes.

playlist to reproduce:

#EXTM3U
#EXTINF:139,Hongroise les doigts
http://www.jamendo.com/get/track/id/track/audio/redirect/13160/?aue=ogg2
#EXTINF:143,Ouverture facile à la con
http://www.jamendo.com/get/track/id/track/audio/redirect/13161/?aue=ogg2
#EXTINF:201,Magik box
http://www.jamendo.com/get/track/id/track/audio/redirect/13162/?aue=ogg2
#EXTINF:255,Tabatha Cash nocturne
http://www.jamendo.com/get/track/id/track/audio/redirect/13163/?aue=ogg2
#EXTINF:25,Ma première ligne (part 1)
http://www.jamendo.com/get/track/id/track/audio/redirect/13164/?aue=ogg2
#EXTINF:307,GaN POWER
http://www.jamendo.com/get/track/id/track/audio/redirect/13165/?aue=ogg2
#EXTINF:302,Mulata
http://www.jamendo.com/get/track/id/track/audio/redirect/13166/?aue=ogg2
#EXTINF:238,Chicango
http://www.jamendo.com/get/track/id/track/audio/redirect/13167/?aue=ogg2
#EXTINF:56,Ma première ligne (part 2)
http://www.jamendo.com/get/track/id/track/audio/redirect/13168/?aue=ogg2
#EXTINF:270,Musik Hole
http://www.jamendo.com/get/track/id/track/audio/redirect/31823/?aue=ogg2
#EXTINF:249,Anarchie au Temps Des Rois
http://www.jamendo.com/get/track/id/track/audio/redirect/13169/?aue=ogg2
#EXTINF:295,Police District
http://www.jamendo.com/get/track/id/track/audio/redirect/13170/?aue=ogg2
#EXTINF:363,Salsa Malikum
http://www.jamendo.com/get/track/id/track/audio/redirect/13171/?aue=ogg2
#EXTINF:16,Ma première ligne (part 3)
http://www.jamendo.com/get/track/id/track/audio/redirect/13172/?aue=ogg2
#EXTINF:765,Paso Dub
http://www.jamendo.com/get/track/id/track/audio/redirect/13173/?aue=ogg2
#EXTINF:313,Fuk la vie
http://www.jamendo.com/get/track/id/track/audio/redirect/40436/?aue=ogg2
#EXTINF:313,Fuk la vie
http://www.jamendo.com/get/track/id/track/audio/redirect/40436/?aue=ogg2
Comment 1 kinta 2009-05-04 18:01:38 UTC
latest backtrace  with phonon from ubuntu 9.10:

Package: libphonon4  / Version: 4:4.3.1-1ubuntu1

Package:libbxine1 / Version: 1.1.16.3-0ubuntu1
Comment 2 Dario Andres 2009-05-05 19:11:24 UTC
Pasted backtrace from comment 1:
--------


Aplicació: Amarok (amarok), senyal SIGABRT
0x00007f86c5ee3d21 in nanosleep () from /lib/libc.so.6
[Current thread is 0 (LWP 13459)]

Thread 18 (Thread 0x7f86b1d15950 (LWP 13460)):
#0  0x00007f86c0a2e56d in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#1  0x00007f86b6c28f91 in metronom_sync_loop (this=0x2173bf0) at metronom.c:870
#2  0x00007f86c0a2a3ba in start_thread () from /lib/libpthread.so.0
#3  0x00007f86c5f21fcd in clone () from /lib/libc.so.6
#4  0x0000000000000000 in ?? ()

Thread 17 (Thread 0x7f86b066e950 (LWP 13461)):
#0  0x00007f86c5f18496 in poll () from /lib/libc.so.6
#1  0x00007f86be2d8401 in ?? () from /lib/libresolv.so.2
#2  0x00007f86be2d6580 in __libc_res_nquery () from /lib/libresolv.so.2
#3  0x00007f86be2d6bad in ?? () from /lib/libresolv.so.2
#4  0x00007f86be2d6da3 in __libc_res_nsearch () from /lib/libresolv.so.2
#5  0x00007f8695a81464 in _nss_dns_gethostbyname3_r () from /lib/libnss_dns.so.2
#6  0x00007f8695a816d4 in _nss_dns_gethostbyname2_r () from /lib/libnss_dns.so.2
#7  0x00007f86c5f09414 in ?? () from /lib/libc.so.6
#8  0x00007f86c5f0ada2 in getaddrinfo () from /lib/libc.so.6
#9  0x00007f86b6c486c6 in _x_io_tcp_connect (stream=0x7946f60, host=0x7936cb0 "www.jamendo.com", port=<value optimized out>) at io_helper.c:135
#10 0x00007f86b63cad67 in http_plugin_open (this_gen=0x7644fc0) at input_http.c:733
#11 0x00007f86b6c2681b in xine_open (stream=0x7946f60, mrl=0x70e8238 "http://www.jamendo.com/get/track/id/track/audio/redirect/13172/?aue=ogg2") at xine.c:880
#12 0x00007f86b6e8e0b5 in Phonon::Xine::XineStream::xineOpen (this=0x2176990, newstate=Phonon::StoppedState) at /build/buildd/phonon-4.3.1/xine/xinestream.cpp:262
#13 0x00007f86b6e92281 in Phonon::Xine::XineStream::event (this=0x2176990, ev=0x7311930) at /build/buildd/phonon-4.3.1/xine/xinestream.cpp:1255
#14 0x00007f86c765683d in QApplicationPrivate::notify_helper () from /usr/lib/libQtGui.so.4
#15 0x00007f86c765ea2a in QApplication::notify () from /usr/lib/libQtGui.so.4
#16 0x00007f86c8c1f26b in KApplication::notify () from /usr/lib/libkdeui.so.5
#17 0x00007f86c6aad75c in QCoreApplication::notifyInternal () from /usr/lib/libQtCore.so.4
#18 0x00007f86c6aae3ca in QCoreApplicationPrivate::sendPostedEvents () from /usr/lib/libQtCore.so.4
#19 0x00007f86c6ad71e3 in ?? () from /usr/lib/libQtCore.so.4
#20 0x00007f86be96320a in IA__g_main_context_dispatch (context=0x2175190) at /build/buildd/glib2.0-2.20.1/glib/gmain.c:1814
#21 0x00007f86be9668e0 in g_main_context_iterate (context=0x2175190, block=1, dispatch=1, self=<value optimized out>) at /build/buildd/glib2.0-2.20.1/glib/gmain.c:2448
#22 0x00007f86be966a7c in IA__g_main_context_iteration (context=0x2175190, may_block=1) at /build/buildd/glib2.0-2.20.1/glib/gmain.c:2511
#23 0x00007f86c6ad6e6f in QEventDispatcherGlib::processEvents () from /usr/lib/libQtCore.so.4
#24 0x00007f86c6aac002 in QEventLoop::processEvents () from /usr/lib/libQtCore.so.4
#25 0x00007f86c6aac3cd in QEventLoop::exec () from /usr/lib/libQtCore.so.4
#26 0x00007f86c69c19b8 in QThread::exec () from /usr/lib/libQtCore.so.4
#27 0x00007f86b6e844fe in Phonon::Xine::XineThread::run (this=0x20b8bc0) at /build/buildd/phonon-4.3.1/xine/xinethread.cpp:143
#28 0x00007f86c69c4952 in ?? () from /usr/lib/libQtCore.so.4
#29 0x00007f86c0a2a3ba in start_thread () from /lib/libpthread.so.0
#30 0x00007f86c5f21fcd in clone () from /lib/libc.so.6
#31 0x0000000000000000 in ?? ()

Thread 16 (Thread 0x7f86afc63950 (LWP 13466)):
#0  0x00007f86c5f18496 in poll () from /lib/libc.so.6
#1  0x00007f86afc68969 in ao_alsa_handle_event_thread (data=<value optimized out>) at audio_alsa_out.c:150
#2  0x00007f86c0a2a3ba in start_thread () from /lib/libpthread.so.0
#3  0x00007f86c5f21fcd in clone () from /lib/libc.so.6
#4  0x0000000000000000 in ?? ()

Thread 15 (Thread 0x7f86af462950 (LWP 13467)):
#0  0x00007f86c0a2e2e9 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#1  0x00007f86b6c3a353 in ao_loop (this_gen=<value optimized out>) at audio_out.c:348
#2  0x00007f86c0a2a3ba in start_thread () from /lib/libpthread.so.0
#3  0x00007f86c5f21fcd in clone () from /lib/libc.so.6
#4  0x0000000000000000 in ?? ()

Thread 14 (Thread 0x7f86aea5e950 (LWP 13468)):
#0  0x00007f86c0a2e2e9 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#1  0x00007f86b6c3a353 in ao_loop (this_gen=<value optimized out>) at audio_out.c:348
#2  0x00007f86c0a2a3ba in start_thread () from /lib/libpthread.so.0
#3  0x00007f86c5f21fcd in clone () from /lib/libc.so.6
#4  0x0000000000000000 in ?? ()

Thread 13 (Thread 0x7f86ac6f2950 (LWP 13474)):
#0  0x00007f86c5f1a742 in select () from /lib/libc.so.6
#1  0x00007f86b6c520a4 in xine_usec_sleep (usec=<value optimized out>) at utils.c:481
#2  0x00007f86b6c36deb in video_out_loop (this_gen=<value optimized out>) at video_out.c:1246
#3  0x00007f86c0a2a3ba in start_thread () from /lib/libpthread.so.0
#4  0x00007f86c5f21fcd in clone () from /lib/libc.so.6
#5  0x0000000000000000 in ?? ()

Thread 12 (Thread 0x7f8696686950 (LWP 13479)):
#0  0x00007f86c0a2e56d in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#1  0x00007f86c69c5917 in QWaitCondition::wait () from /usr/lib/libQtCore.so.4
#2  0x00007f86c69bb409 in ?? () from /usr/lib/libQtCore.so.4
#3  0x00007f86c69c4952 in ?? () from /usr/lib/libQtCore.so.4
#4  0x00007f86c0a2a3ba in start_thread () from /lib/libpthread.so.0
#5  0x00007f86c5f21fcd in clone () from /lib/libc.so.6
#6  0x0000000000000000 in ?? ()

Thread 11 (Thread 0x7f869abc3950 (LWP 13484)):
#0  0x00007f86c0a2e2e9 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#1  0x00007f86b6c3a353 in ao_loop (this_gen=<value optimized out>) at audio_out.c:348
#2  0x00007f86c0a2a3ba in start_thread () from /lib/libpthread.so.0
#3  0x00007f86c5f21fcd in clone () from /lib/libc.so.6
#4  0x0000000000000000 in ?? ()

Thread 10 (Thread 0x7f869a1f5950 (LWP 13489)):
#0  0x00007f86c0a2e2e9 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#1  0x00007f86b6c3a353 in ao_loop (this_gen=<value optimized out>) at audio_out.c:348
#2  0x00007f86c0a2a3ba in start_thread () from /lib/libpthread.so.0
#3  0x00007f86c5f21fcd in clone () from /lib/libc.so.6
#4  0x0000000000000000 in ?? ()

Thread 9 (Thread 0x7f86999f4950 (LWP 13493)):
#0  0x00007f86c0a2e2e9 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#1  0x00007f86b6c3a353 in ao_loop (this_gen=<value optimized out>) at audio_out.c:348
#2  0x00007f86c0a2a3ba in start_thread () from /lib/libpthread.so.0
#3  0x00007f86c5f21fcd in clone () from /lib/libc.so.6
#4  0x0000000000000000 in ?? ()

Thread 8 (Thread 0x7f868ffff950 (LWP 13498)):
#0  0x00007f86c0a2e2e9 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#1  0x00007f86b6c3a353 in ao_loop (this_gen=<value optimized out>) at audio_out.c:348
#2  0x00007f86c0a2a3ba in start_thread () from /lib/libpthread.so.0
#3  0x00007f86c5f21fcd in clone () from /lib/libc.so.6
#4  0x0000000000000000 in ?? ()

Thread 7 (Thread 0x7f8696e87950 (LWP 13499)):
#0  0x00007f86c0a2e2e9 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#1  0x00007f86b6c3a353 in ao_loop (this_gen=<value optimized out>) at audio_out.c:348
#2  0x00007f86c0a2a3ba in start_thread () from /lib/libpthread.so.0
#3  0x00007f86c5f21fcd in clone () from /lib/libc.so.6
#4  0x0000000000000000 in ?? ()

Thread 6 (Thread 0x7f8695a7d950 (LWP 13503)):
#0  0x00007f86c0a2e2e9 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#1  0x00007f86b6c3a353 in ao_loop (this_gen=<value optimized out>) at audio_out.c:348
#2  0x00007f86c0a2a3ba in start_thread () from /lib/libpthread.so.0
#3  0x00007f86c5f21fcd in clone () from /lib/libc.so.6
#4  0x0000000000000000 in ?? ()

Thread 5 (Thread 0x7f869527c950 (LWP 13512)):
#0  0x00007f86c0a2e2e9 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#1  0x00007f86b6c3a353 in ao_loop (this_gen=<value optimized out>) at audio_out.c:348
#2  0x00007f86c0a2a3ba in start_thread () from /lib/libpthread.so.0
#3  0x00007f86c5f21fcd in clone () from /lib/libc.so.6
#4  0x0000000000000000 in ?? ()

Thread 4 (Thread 0x7f8694a7b950 (LWP 13513)):
#0  0x00007f86c0a2e2e9 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#1  0x00007f86b6c2cafb in fifo_buffer_get (fifo=0x7948150) at buffer.c:230
#2  0x00007f86b6c32a6e in video_decoder_loop (stream_gen=<value optimized out>) at video_decoder.c:130
#3  0x00007f86c0a2a3ba in start_thread () from /lib/libpthread.so.0
#4  0x00007f86c5f21fcd in clone () from /lib/libc.so.6
#5  0x0000000000000000 in ?? ()

Thread 3 (Thread 0x7f868eed8950 (LWP 13514)):
#0  0x00007f86c0a2e2e9 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#1  0x00007f86b6c2cafb in fifo_buffer_get (fifo=0x7b76430) at buffer.c:230
#2  0x00007f86b6c33b1e in audio_decoder_loop (stream_gen=<value optimized out>) at audio_decoder.c:66
#3  0x00007f86c0a2a3ba in start_thread () from /lib/libpthread.so.0
#4  0x00007f86c5f21fcd in clone () from /lib/libc.so.6
#5  0x0000000000000000 in ?? ()

Thread 2 (Thread 0x7f868e6d7950 (LWP 13515)):
#0  0x00007f86c0a2e2e9 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#1  0x00007f86b6c3d02b in listener_loop (queue_gen=<value optimized out>) at events.c:56
#2  0x00007f86c0a2a3ba in start_thread () from /lib/libpthread.so.0
#3  0x00007f86c5f21fcd in clone () from /lib/libc.so.6
#4  0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7f86c90d3790 (LWP 13459)):
[KCrash Handler]
#5  0x00007f86c5e6efb5 in raise () from /lib/libc.so.6
#6  0x00007f86c5e70bc3 in abort () from /lib/libc.so.6
#7  0x00007f86c69bc885 in qt_message_output () from /usr/lib/libQtCore.so.4
#8  0x00007f86c69bc9cb in qFatal () from /usr/lib/libQtCore.so.4
#9  0x00007f86c8632310 in TimecodeObserver::engineNewTrackPlaying (this=0x296adc0) at /usr/include/ksharedptr.h:120
#10 0x00007f86c8659a32 in EngineSubject::newTrackPlaying (this=<value optimized out>) at /home/kinta/kde/src/amarok/src/EngineObserver.cpp:175
#11 0x00007f86c8653e18 in EngineController::slotNewTrackPlaying (this=0x209d4f0, source=<value optimized out>) at /home/kinta/kde/src/amarok/src/EngineController.cpp:719
#12 0x00007f86c8658b22 in EngineController::qt_metacall (this=0x209d4f0, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fffd122a890)
    at /home/kinta/kde/src/amarok/build-2/src/EngineController.moc:159
#13 0x00007f86c6ac31f2 in QMetaObject::activate () from /usr/lib/libQtCore.so.4
#14 0x00007f86c2fb2005 in Phonon::MediaObject::currentSourceChanged (this=0x3493, _t1=<value optimized out>) at /build/buildd/phonon-4.3.1/obj-x86_64-linux-gnu/phonon/moc_mediaobject.cpp:228
#15 0x00007f86c2fb3942 in Phonon::MediaObjectPrivate::_k_currentSourceChanged (this=0x209e600, source=@0x20a4e80) at /build/buildd/phonon-4.3.1/phonon/mediaobject.cpp:446
#16 0x00007f86c2fb480c in Phonon::MediaObject::qt_metacall (this=0x209e430, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fffd122aa40)
    at /build/buildd/phonon-4.3.1/obj-x86_64-linux-gnu/phonon/moc_mediaobject.cpp:138
#17 0x00007f86c6ac31f2 in QMetaObject::activate () from /usr/lib/libQtCore.so.4
#18 0x00007f86b6e9bf05 in Phonon::Xine::MediaObject::currentSourceChanged (this=0x3493, _t1=<value optimized out>) at /build/buildd/phonon-4.3.1/obj-x86_64-linux-gnu/xine/mediaobject.moc:209
#19 0x00007f86b6e9db1b in Phonon::Xine::MediaObject::setSourceInternal (this=0x20a4e20, source=@0x7fffd122ac30, how=3508710000) at /build/buildd/phonon-4.3.1/xine/mediaobject.cpp:405
#20 0x00007f86c2fb3642 in Phonon::MediaObjectPrivate::_k_stateChanged (this=0x209e600, newstate=<value optimized out>, oldstate=Phonon::LoadingState)
    at /build/buildd/phonon-4.3.1/phonon/mediaobject.cpp:395
#21 0x00007f86c2fb493c in Phonon::MediaObject::qt_metacall (this=0x209e430, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fffd122ade0)
    at /build/buildd/phonon-4.3.1/obj-x86_64-linux-gnu/phonon/moc_mediaobject.cpp:136
#22 0x00007f86c6ac31f2 in QMetaObject::activate () from /usr/lib/libQtCore.so.4
#23 0x00007f86b6e9becf in Phonon::Xine::MediaObject::stateChanged (this=0x3493, _t1=Phonon::ErrorState, _t2=Phonon::LoadingState)
    at /build/buildd/phonon-4.3.1/obj-x86_64-linux-gnu/xine/mediaobject.moc:216
#24 0x00007f86b6e9f95e in Phonon::Xine::MediaObject::handleStateChange (this=0x20a4e20, newstate=Phonon::ErrorState, oldstate=Phonon::LoadingState)
    at /build/buildd/phonon-4.3.1/xine/mediaobject.cpp:247
#25 0x00007f86b6e9fe3a in Phonon::Xine::MediaObject::qt_metacall (this=0x20a4e20, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7f869001b6e0)
    at /build/buildd/phonon-4.3.1/obj-x86_64-linux-gnu/xine/mediaobject.moc:158
#26 0x00007f86c6abd848 in QObject::event () from /usr/lib/libQtCore.so.4
#27 0x00007f86c765683d in QApplicationPrivate::notify_helper () from /usr/lib/libQtGui.so.4
#28 0x00007f86c765ea2a in QApplication::notify () from /usr/lib/libQtGui.so.4
#29 0x00007f86c8c1f26b in KApplication::notify () from /usr/lib/libkdeui.so.5
#30 0x00007f86c6aad75c in QCoreApplication::notifyInternal () from /usr/lib/libQtCore.so.4
#31 0x00007f86c6aae3ca in QCoreApplicationPrivate::sendPostedEvents () from /usr/lib/libQtCore.so.4
#32 0x00007f86c6ad71e3 in ?? () from /usr/lib/libQtCore.so.4
#33 0x00007f86be96320a in IA__g_main_context_dispatch (context=0x1fc9120) at /build/buildd/glib2.0-2.20.1/glib/gmain.c:1814
#34 0x00007f86be9668e0 in g_main_context_iterate (context=0x1fc9120, block=1, dispatch=1, self=<value optimized out>) at /build/buildd/glib2.0-2.20.1/glib/gmain.c:2448
#35 0x00007f86be966a7c in IA__g_main_context_iteration (context=0x1fc9120, may_block=1) at /build/buildd/glib2.0-2.20.1/glib/gmain.c:2511
#36 0x00007f86c6ad6e6f in QEventDispatcherGlib::processEvents () from /usr/lib/libQtCore.so.4
#37 0x00007f86c76eec9f in ?? () from /usr/lib/libQtGui.so.4
#38 0x00007f86c6aac002 in QEventLoop::processEvents () from /usr/lib/libQtCore.so.4
#39 0x00007f86c6aac3cd in QEventLoop::exec () from /usr/lib/libQtCore.so.4
#40 0x00007f86c6aae694 in QCoreApplication::exec () from /usr/lib/libQtCore.so.4
#41 0x0000000000404099 in _start ()


(
Comment 3 Dario Andres 2009-05-15 20:52:26 UTC
*** Bug 192813 has been marked as a duplicate of this bug. ***
Comment 4 Mark Kretschmann 2009-05-15 22:04:18 UTC
SVN commit 968483 by markey:

* Fix potential crash: Dereferencing 0-pointers.
* Fix memory leaks: Capabilities not deleted.

BUG: 191596

 M  +15 -5     TimecodeObserver.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=968483
Comment 5 bazwal 2009-05-16 01:31:22 UTC
(In reply to comment #3)
> *** Bug 192813 has been marked as a duplicate of this bug. ***

i compiled rev 968517 and amarok no longer crashes when changing the backend. however, after the change, i completely lose all sound and have to restart amarok in order to restore it. i sometimes see a kde/pulseaudio message popup saying the 'audio device does not work' after changing the backend. amarok usually crashes after that, but it doesn't produce a valid backtrace. so the above fix doesn't really resolve my bug 192813.
Comment 6 Myriam Schweingruber 2009-05-16 11:50:25 UTC
(In reply to comment #5)
> (In reply to comment #3)
> > *** Bug 192813 has been marked as a duplicate of this bug. ***
> 
> i compiled rev 968517 and amarok no longer crashes when changing the backend.
> however, after the change, i completely lose all sound and have to restart
> amarok in order to restore it. i sometimes see a kde/pulseaudio message popup
> saying the 'audio device does not work' after changing the backend. amarok
> usually crashes after that, but it doesn't produce a valid backtrace. so the
> above fix doesn't really resolve my bug 192813.

This is not a bug in Amarok but a problem of your sound settings and distribution related. Pulseaudio doesn't work with the Xine backend, so You should check with your distribution's support to solve that problem
Comment 7 bazwal 2009-05-16 15:42:56 UTC
(In reply to comment #6)
> This is not a bug in Amarok but a problem of your sound settings and
> distribution related. Pulseaudio doesn't work with the Xine backend, so You
> should check with your distribution's support to solve that problem

this is not correct. xine works fine with pulseaudio. if i change backends whilst using other programs (such as kmplayer), i do not lose sound in them and i never see any error messages. it's only amarok which loses sound when changing the backend (and sometimes crashes). but when i restart amarok, sound is restored using either xine or gstreamer. so the bug is that the backend cannot be changed whilst amarok is running. before the fix, amarok would always crash; after the fix, amarok loses sound (then sometimes crashes).
Comment 8 bazwal 2009-05-16 16:45:05 UTC
(In reply to comment #7)
> (In reply to comment #6)
> > This is not a bug in Amarok but a problem of your sound settings and
> > distribution related. Pulseaudio doesn't work with the Xine backend, so You
> > should check with your distribution's support to solve that problem
> 
> this is not correct. xine works fine with pulseaudio. if i change backends
> whilst using other programs (such as kmplayer), i do not lose sound in them and
> i never see any error messages. it's only amarok which loses sound when
> changing the backend (and sometimes crashes). but when i restart amarok, sound
> is restored using either xine or gstreamer. so the bug is that the backend
> cannot be changed whilst amarok is running. before the fix, amarok would always
> crash; after the fix, amarok loses sound (then sometimes crashes).

i tried disabling pulseaudio on my system (mandriva 2009.1). this cured some minor playback problems i was having with xine, but did not cure the problem with changing the backend whilst amarok is running.
Comment 9 Mark Kretschmann 2009-05-16 17:59:49 UTC
@bazwal: Give me a valid backtrace for the new problem, then I'll look at it. Without one I can't do much.
Comment 10 bazwal 2009-05-16 19:00:23 UTC
(In reply to comment #9)
> @bazwal: Give me a valid backtrace for the new problem, then I'll look at it.
> Without one I can't do much.

using rev 968633, this is what i sometimes get from the kde crash handler after changing the backend from xine-0.2.60 to gstreamer-0.1, and then attempting to play a track. the crash handler says the backtrace *may* not be valid, but i don't know how to rectify that. if this is not enough to go on, i guess it's not worth pursuing further (there are ways to work around the problem).

[Thread debugging using libthread_db enabled]
[New Thread 0xb2e8a6f0 (LWP 5501)]
[New Thread 0xaf814b90 (LWP 11409)]
[New Thread 0xb001fb90 (LWP 11406)]
[New Thread 0xb0820b90 (LWP 11405)]
[New Thread 0x99aedb90 (LWP 11145)]
[New Thread 0xa28aab90 (LWP 11144)]
[New Thread 0xa30d4b90 (LWP 9101)]
[New Thread 0xa3957b90 (LWP 9100)]
[New Thread 0x9a42cb90 (LWP 5524)]
[New Thread 0xa4b85b90 (LWP 5516)]
[New Thread 0xa5553b90 (LWP 5515)]
[New Thread 0xa6d49b90 (LWP 5513)]
[New Thread 0xaa72db90 (LWP 5512)]
[New Thread 0xaaf2eb90 (LWP 5511)]
[New Thread 0xad0efb90 (LWP 5510)]
0xffffe424 in __kernel_vsyscall ()
[Current thread is 1 (Thread 0xb2e8a6f0 (LWP 5501))]

Thread 15 (Thread 0xad0efb90 (LWP 5510)):
#0  0xffffe424 in __kernel_vsyscall ()
#1  0xb68dec45 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/i686/libpthread.so.0
#2  0xb694f5eb in QWaitCondition::wait () from /usr/lib/libQtCore.so.4
#3  0xb5d7dec1 in ?? () from /usr/lib/libthreadweaver.so.4
#4  0xb5d80cbb in ?? () from /usr/lib/libthreadweaver.so.4
#5  0xb5d7ca3a in ?? () from /usr/lib/libthreadweaver.so.4
#6  0xb5d80dc4 in ?? () from /usr/lib/libthreadweaver.so.4
#7  0xb5d7e473 in ?? () from /usr/lib/libthreadweaver.so.4
#8  0xb5d7edb4 in ?? () from /usr/lib/libthreadweaver.so.4
#9  0xb5d7f40a in ThreadWeaver::Thread::run () from /usr/lib/libthreadweaver.so.4
#10 0xb694e4df in ?? () from /usr/lib/libQtCore.so.4
#11 0xb68db315 in start_thread () from /lib/i686/libpthread.so.0
#12 0xb673925e in clone () from /lib/i686/libc.so.6

Thread 14 (Thread 0xaaf2eb90 (LWP 5511)):
#0  0xffffe424 in __kernel_vsyscall ()
#1  0xb68dec45 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/i686/libpthread.so.0
#2  0xb694f5eb in QWaitCondition::wait () from /usr/lib/libQtCore.so.4
#3  0xb5d7dec1 in ?? () from /usr/lib/libthreadweaver.so.4
#4  0xb5d80cbb in ?? () from /usr/lib/libthreadweaver.so.4
#5  0xb5d7ca3a in ?? () from /usr/lib/libthreadweaver.so.4
#6  0xb5d80dc4 in ?? () from /usr/lib/libthreadweaver.so.4
#7  0xb5d7e473 in ?? () from /usr/lib/libthreadweaver.so.4
#8  0xb5d80de0 in ?? () from /usr/lib/libthreadweaver.so.4
#9  0xb5d7e473 in ?? () from /usr/lib/libthreadweaver.so.4
#10 0xb5d7edb4 in ?? () from /usr/lib/libthreadweaver.so.4
#11 0xb5d7f40a in ThreadWeaver::Thread::run () from /usr/lib/libthreadweaver.so.4
#12 0xb694e4df in ?? () from /usr/lib/libQtCore.so.4
#13 0xb68db315 in start_thread () from /lib/i686/libpthread.so.0
#14 0xb673925e in clone () from /lib/i686/libc.so.6

Thread 13 (Thread 0xaa72db90 (LWP 5512)):
#0  0xffffe424 in __kernel_vsyscall ()
#1  0xb68dec45 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/i686/libpthread.so.0
#2  0xb694f5eb in QWaitCondition::wait () from /usr/lib/libQtCore.so.4
#3  0xb5d7dec1 in ?? () from /usr/lib/libthreadweaver.so.4
#4  0xb5d80cbb in ?? () from /usr/lib/libthreadweaver.so.4
#5  0xb5d7ca3a in ?? () from /usr/lib/libthreadweaver.so.4
#6  0xb5d80dc4 in ?? () from /usr/lib/libthreadweaver.so.4
#7  0xb5d7e473 in ?? () from /usr/lib/libthreadweaver.so.4
#8  0xb5d80de0 in ?? () from /usr/lib/libthreadweaver.so.4
#9  0xb5d7e473 in ?? () from /usr/lib/libthreadweaver.so.4
#10 0xb5d80de0 in ?? () from /usr/lib/libthreadweaver.so.4
#11 0xb5d7e473 in ?? () from /usr/lib/libthreadweaver.so.4
#12 0xb5d7edb4 in ?? () from /usr/lib/libthreadweaver.so.4
#13 0xb5d7f40a in ThreadWeaver::Thread::run () from /usr/lib/libthreadweaver.so.4
#14 0xb694e4df in ?? () from /usr/lib/libQtCore.so.4
#15 0xb68db315 in start_thread () from /lib/i686/libpthread.so.0
#16 0xb673925e in clone () from /lib/i686/libc.so.6

Thread 12 (Thread 0xa6d49b90 (LWP 5513)):
#0  0xffffe424 in __kernel_vsyscall ()
#1  0xb68dec45 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/i686/libpthread.so.0
#2  0xb694f5eb in QWaitCondition::wait () from /usr/lib/libQtCore.so.4
#3  0xb5d7dec1 in ?? () from /usr/lib/libthreadweaver.so.4
#4  0xb5d80cbb in ?? () from /usr/lib/libthreadweaver.so.4
#5  0xb5d7ca3a in ?? () from /usr/lib/libthreadweaver.so.4
#6  0xb5d80dc4 in ?? () from /usr/lib/libthreadweaver.so.4
#7  0xb5d7e473 in ?? () from /usr/lib/libthreadweaver.so.4
#8  0xb5d80de0 in ?? () from /usr/lib/libthreadweaver.so.4
#9  0xb5d7e473 in ?? () from /usr/lib/libthreadweaver.so.4
#10 0xb5d80de0 in ?? () from /usr/lib/libthreadweaver.so.4
#11 0xb5d7e473 in ?? () from /usr/lib/libthreadweaver.so.4
#12 0xb5d80de0 in ?? () from /usr/lib/libthreadweaver.so.4
#13 0xb5d7e473 in ?? () from /usr/lib/libthreadweaver.so.4
#14 0xb5d7edb4 in ?? () from /usr/lib/libthreadweaver.so.4
#15 0xb5d7f40a in ThreadWeaver::Thread::run () from /usr/lib/libthreadweaver.so.4
#16 0xb694e4df in ?? () from /usr/lib/libQtCore.so.4
#17 0xb68db315 in start_thread () from /lib/i686/libpthread.so.0
#18 0xb673925e in clone () from /lib/i686/libc.so.6

Thread 11 (Thread 0xa5553b90 (LWP 5515)):
#0  0xffffe424 in __kernel_vsyscall ()
#1  0xb68dec45 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/i686/libpthread.so.0
#2  0xb1546638 in ?? () from /usr/lib/libxine.so.1
#3  0xb154c911 in ?? () from /usr/lib/libxine.so.1
#4  0xb68db315 in start_thread () from /lib/i686/libpthread.so.0
#5  0xb673925e in clone () from /lib/i686/libc.so.6

Thread 10 (Thread 0xa4b85b90 (LWP 5516)):
#0  0xffffe424 in __kernel_vsyscall ()
#1  0xb68dec45 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/i686/libpthread.so.0
#2  0xb1546638 in ?? () from /usr/lib/libxine.so.1
#3  0xb154dafd in ?? () from /usr/lib/libxine.so.1
#4  0xb68db315 in start_thread () from /lib/i686/libpthread.so.0
#5  0xb673925e in clone () from /lib/i686/libc.so.6

Thread 9 (Thread 0x9a42cb90 (LWP 5524)):
#0  0xffffe424 in __kernel_vsyscall ()
#1  0xb68dec45 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/i686/libpthread.so.0
#2  0xb694f5eb in QWaitCondition::wait () from /usr/lib/libQtCore.so.4
#3  0xb4535704 in ?? () from /usr/lib/libQtNetwork.so.4
#4  0xb694e4df in ?? () from /usr/lib/libQtCore.so.4
#5  0xb68db315 in start_thread () from /lib/i686/libpthread.so.0
#6  0xb673925e in clone () from /lib/i686/libc.so.6

Thread 8 (Thread 0xa3957b90 (LWP 9100)):
#0  0xffffe424 in __kernel_vsyscall ()
#1  0xb68dec45 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/i686/libpthread.so.0
#2  0xb694f5eb in QWaitCondition::wait () from /usr/lib/libQtCore.so.4
#3  0xb74a6624 in ?? () from /usr/lib/libQtGui.so.4
#4  0xb694e4df in ?? () from /usr/lib/libQtCore.so.4
#5  0xb68db315 in start_thread () from /lib/i686/libpthread.so.0
#6  0xb673925e in clone () from /lib/i686/libc.so.6

Thread 7 (Thread 0xa30d4b90 (LWP 9101)):
#0  0xb68dc771 in pthread_mutex_lock () from /lib/i686/libpthread.so.0
#1  0xb4329c10 in g_main_context_prepare () from /usr/lib/libglib-2.0.so.0
#2  0xb432a01d in ?? () from /usr/lib/libglib-2.0.so.0
#3  0xb432a4df in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#4  0xb6a771f7 in QEventDispatcherGlib::processEvents () from /usr/lib/libQtCore.so.4
#5  0xb6a48903 in QEventLoop::processEvents () from /usr/lib/libQtCore.so.4
#6  0xb6a48d51 in QEventLoop::exec () from /usr/lib/libQtCore.so.4
#7  0xb694b11b in QThread::exec () from /usr/lib/libQtCore.so.4
#8  0xb6a29ced in ?? () from /usr/lib/libQtCore.so.4
#9  0xb694e4df in ?? () from /usr/lib/libQtCore.so.4
#10 0xb68db315 in start_thread () from /lib/i686/libpthread.so.0
#11 0xb673925e in clone () from /lib/i686/libc.so.6

Thread 6 (Thread 0xa28aab90 (LWP 11144)):
#0  0xffffe424 in __kernel_vsyscall ()
#1  0xb68dec45 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/i686/libpthread.so.0
#2  0xb694f5eb in QWaitCondition::wait () from /usr/lib/libQtCore.so.4
#3  0xb74a6624 in ?? () from /usr/lib/libQtGui.so.4
#4  0xb694e4df in ?? () from /usr/lib/libQtCore.so.4
#5  0xb68db315 in start_thread () from /lib/i686/libpthread.so.0
#6  0xb673925e in clone () from /lib/i686/libc.so.6

Thread 5 (Thread 0x99aedb90 (LWP 11145)):
#0  0xb68ddc36 in __pthread_mutex_unlock_usercnt () from /lib/i686/libpthread.so.0
#1  0xb4329bc6 in g_main_context_prepare () from /usr/lib/libglib-2.0.so.0
#2  0xb432a01d in ?? () from /usr/lib/libglib-2.0.so.0
#3  0xb432a4df in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#4  0xb6a771f7 in QEventDispatcherGlib::processEvents () from /usr/lib/libQtCore.so.4
#5  0xb6a48903 in QEventLoop::processEvents () from /usr/lib/libQtCore.so.4
#6  0xb6a48d51 in QEventLoop::exec () from /usr/lib/libQtCore.so.4
#7  0xb694b11b in QThread::exec () from /usr/lib/libQtCore.so.4
#8  0xb6a29ced in ?? () from /usr/lib/libQtCore.so.4
#9  0xb694e4df in ?? () from /usr/lib/libQtCore.so.4
#10 0xb68db315 in start_thread () from /lib/i686/libpthread.so.0
#11 0xb673925e in clone () from /lib/i686/libc.so.6

Thread 4 (Thread 0xb0820b90 (LWP 11405)):
#0  0xffffe424 in __kernel_vsyscall ()
#1  0xb68dec45 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/i686/libpthread.so.0
#2  0xae765e39 in ?? () from /usr/lib/libgstreamer-0.10.so.0
#3  0xb435344e in ?? () from /usr/lib/libglib-2.0.so.0
#4  0xb4351db4 in ?? () from /usr/lib/libglib-2.0.so.0
#5  0xb68db315 in start_thread () from /lib/i686/libpthread.so.0
#6  0xb673925e in clone () from /lib/i686/libc.so.6

Thread 3 (Thread 0xb001fb90 (LWP 11406)):
#0  0xffffe424 in __kernel_vsyscall ()
#1  0xb68dec45 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/i686/libpthread.so.0
#2  0xae765e39 in ?? () from /usr/lib/libgstreamer-0.10.so.0
#3  0xb435344e in ?? () from /usr/lib/libglib-2.0.so.0
#4  0xb4351db4 in ?? () from /usr/lib/libglib-2.0.so.0
#5  0xb68db315 in start_thread () from /lib/i686/libpthread.so.0
#6  0xb673925e in clone () from /lib/i686/libc.so.6

Thread 2 (Thread 0xaf814b90 (LWP 11409)):
#0  0xffffe424 in __kernel_vsyscall ()
#1  0xb68def72 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib/i686/libpthread.so.0
#2  0xb694f5bf in QWaitCondition::wait () from /usr/lib/libQtCore.so.4
#3  0xb69444ba in ?? () from /usr/lib/libQtCore.so.4
#4  0xb694e4df in ?? () from /usr/lib/libQtCore.so.4
#5  0xb68db315 in start_thread () from /lib/i686/libpthread.so.0
#6  0xb673925e in clone () from /lib/i686/libc.so.6

Thread 1 (Thread 0xb2e8a6f0 (LWP 5501)):
#0  0xffffe424 in __kernel_vsyscall ()
#1  0xb66f67d6 in nanosleep () from /lib/i686/libc.so.6
#2  0xb66f65be in sleep () from /lib/i686/libc.so.6
#3  0xb7e56844 in ?? () from /usr/lib/libkdeui.so.5
#4  0xb7e57264 in KCrash::defaultCrashHandler () from /usr/lib/libkdeui.so.5
#5  <signal handler called>
#6  0xaefffd22 in ?? () from /usr/lib/kde4/plugins/phonon_backend/phonon_gstreamer.so
#7  0xaeff0539 in ?? () from /usr/lib/kde4/plugins/phonon_backend/phonon_gstreamer.so
#8  0xb5ceaacb in ?? () from /usr/lib/libphonon.so.4
#9  0xb5ceb685 in Phonon::Path::insertEffect () from /usr/lib/libphonon.so.4
#10 0xb7adf684 in EngineController::stop (this=0x8e03860, forceInstant=false) at /home/src/compile/amarok/svn-968633/src/EngineController.cpp:378
#11 0xb7ae201d in EngineController::qt_metacall (this=0x8e03860, _c=QMetaObject::InvokeMetaMethod, _id=11, _a=0xbfffdb70) at /home/src/compile/amarok/svn-968633/build/src/EngineController.moc:136
#12 0xb6a60e45 in QMetaObject::activate () from /usr/lib/libQtCore.so.4
#13 0xb6a612ab in QMetaObject::activate () from /usr/lib/libQtCore.so.4
#14 0xb6f19105 in QAction::triggered () from /usr/lib/libQtGui.so.4
#15 0xb6f1a737 in QAction::activate () from /usr/lib/libQtGui.so.4
#16 0xb7b0b87d in QAction::trigger (this=0x9312768) at /usr/lib/qt4/include/QtGui/qaction.h:203
#17 0xb7b700cd in MainControlsButton::mouseReleaseEvent (this=0x931f600, event=0xbfffe1a4) at /home/src/compile/amarok/svn-968633/src/widgets/MainControlsButton.cpp:132
#18 0xb758b364 in QGraphicsItem::sceneEvent () from /usr/lib/libQtGui.so.4
#19 0xb75b0f44 in ?? () from /usr/lib/libQtGui.so.4
#20 0xb75b21b0 in ?? () from /usr/lib/libQtGui.so.4
#21 0xb75ba457 in QGraphicsScene::mouseReleaseEvent () from /usr/lib/libQtGui.so.4
#22 0xb75ba813 in QGraphicsScene::event () from /usr/lib/libQtGui.so.4
#23 0xb6f1f99c in QApplicationPrivate::notify_helper () from /usr/lib/libQtGui.so.4
#24 0xb6f280e6 in QApplication::notify () from /usr/lib/libQtGui.so.4
#25 0xb7de5c21 in KApplication::notify () from /usr/lib/libkdeui.so.5
#26 0xb6a4a33e in QCoreApplication::notifyInternal () from /usr/lib/libQtCore.so.4
#27 0xb75ced05 in QGraphicsView::mouseReleaseEvent () from /usr/lib/libQtGui.so.4
#28 0xb6f78d7d in QWidget::event () from /usr/lib/libQtGui.so.4
#29 0xb7375639 in QFrame::event () from /usr/lib/libQtGui.so.4
#30 0xb7419b90 in QAbstractScrollArea::viewportEvent () from /usr/lib/libQtGui.so.4
#31 0xb75cba78 in QGraphicsView::viewportEvent () from /usr/lib/libQtGui.so.4
#32 0xb741c206 in ?? () from /usr/lib/libQtGui.so.4
#33 0xb6a494de in QCoreApplicationPrivate::sendThroughObjectEventFilters () from /usr/lib/libQtCore.so.4
#34 0xb6f1f96f in QApplicationPrivate::notify_helper () from /usr/lib/libQtGui.so.4
#35 0xb6f28c32 in QApplication::notify () from /usr/lib/libQtGui.so.4
#36 0xb7de5c21 in KApplication::notify () from /usr/lib/libkdeui.so.5
#37 0xb6a4a33e in QCoreApplication::notifyInternal () from /usr/lib/libQtCore.so.4
#38 0xb6f27a61 in QApplicationPrivate::sendMouseEvent () from /usr/lib/libQtGui.so.4
#39 0xb6f9b28d in ?? () from /usr/lib/libQtGui.so.4
#40 0xb6f9a77c in QApplication::x11ProcessEvent () from /usr/lib/libQtGui.so.4
#41 0xb6fc4714 in ?? () from /usr/lib/libQtGui.so.4
#42 0xb4326cea in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#43 0xb432a354 in ?? () from /usr/lib/libglib-2.0.so.0
#44 0xb432a4df in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#45 0xb6a771da in QEventDispatcherGlib::processEvents () from /usr/lib/libQtCore.so.4
#46 0xb6fc3e6a in ?? () from /usr/lib/libQtGui.so.4
#47 0xb6a48903 in QEventLoop::processEvents () from /usr/lib/libQtCore.so.4
#48 0xb6a48d51 in QEventLoop::exec () from /usr/lib/libQtCore.so.4
#49 0xb6a4b2b6 in QCoreApplication::exec () from /usr/lib/libQtCore.so.4
#50 0xb6f1f804 in QApplication::exec () from /usr/lib/libQtGui.so.4
#51 0x0804bd05 in main (argc=1, argv=0xbffff514) at /home/src/compile/amarok/svn-968633/src/main.cpp:128
Comment 11 Mark Kretschmann 2009-05-16 20:06:58 UTC
Hmm, the latest backtrace indicates a crash inside of Phonon. See here:

#9  0xb5ceb685 in Phonon::Path::insertEffect () from /usr/lib/libphonon.so.4
Comment 12 bazwal 2009-05-16 21:06:03 UTC
(In reply to comment #11)
> Hmm, the latest backtrace indicates a crash inside of Phonon. See here:
> 
> #9  0xb5ceb685 in Phonon::Path::insertEffect () from /usr/lib/libphonon.so.4

i am 95% certain now that the crash only occurs when changing to the gstreamer backend. after i change to xine, there is no sound, no crash, nothing. after i change to gstreamer, there is no sound, but the track progress bar moves - the actual crash happens when i try to stop the track.
Comment 13 kinta 2009-05-17 13:26:03 UTC
Created attachment 33759 [details]
backtrace

Still not solved for me... Using r968930
Comment 14 Myriam Schweingruber 2009-05-17 14:05:29 UTC
What usecase do you have for changing the sound backend wile playing? It simply makes no sense to me why somebody would want to do that.
Amarok works fine with Phonon/Xine, as we have advised numerous times. This sounds for me like desperately trying to break things just for the sake of it
Comment 15 bazwal 2009-05-17 21:35:12 UTC
(In reply to comment #14)
> What usecase do you have for changing the sound backend wile playing? It simply
> makes no sense to me why somebody would want to do that.

i agree. and i'm not doing that, but i can see how my previous comment can be interpreted that way.

> Amarok works fine with Phonon/Xine, as we have advised numerous times. This

my system (mandriva 2009.1) is set up with gstreamer as the default backend. i had to install the xine backend, then change it to be the default. originally, when i tried changing the default via amarok's config dialog, amarok always crashed. after the recent fix, amarok doesn't crash, but when i try to play a track, there is no sound (using either xine or gstreamer). if i then try to stop the track, amarok will crash (but only if the current backend is gstreamer). the obvious workaround here is to just restart amarok immediately after changing the backend. maybe amarok should enforce this?

> sounds for me like desperately trying to break things just for the sake of it

i saw the advice about switching to xine on the amarok forum and hoped it would solve some relatively minor playback problems i was having (i've since worked out that i also needed to change some pulseaudio settings). i still think it would be good to fix my original problem, though, as others are bound to come across it sooner or later. what do you think about my suggestion of forcing a restart after changing the backend?
Comment 16 Myriam Schweingruber 2009-05-17 22:28:41 UTC
Unfortunately this is not in our hands, it's the distributions who decide which default backend is shipped. Let's just hope that gstreamer improves to be usable with KDE and phonon in the near future...
Comment 17 Vasiliy 2009-05-20 21:52:21 UTC
Приложение: Амарок (amarok), сигнал SIGSEGV
0x00007f38ffa68c31 in nanosleep () from /lib64/libc.so.6
[Current thread is 1 (Thread 0x7f3901f6d700 (LWP 22108))]

Thread 6 (Thread 0x7f38efc6d950 (LWP 22111)):
#0  0x00007f38ffa9bb86 in poll () from /lib64/libc.so.6
#1  0x00007f38f070b4ed in ?? () from /usr/lib64/libpulse.so.0
#2  0x00007f38f06fb989 in pa_mainloop_poll () from /usr/lib64/libpulse.so.0
#3  0x00007f38f06fcdc8 in pa_mainloop_iterate () from /usr/lib64/libpulse.so.0
#4  0x00007f38f06fce90 in pa_mainloop_run () from /usr/lib64/libpulse.so.0
#5  0x00007f38f070b2ed in ?? () from /usr/lib64/libpulse.so.0
#6  0x00007f38f04ce860 in ?? () from /usr/lib64/libpulsecommon-0.9.15.so
#7  0x00007f38ff55c263 in start_thread () from /lib64/libpthread.so.0
#8  0x00007f38ffaa578d in clone () from /lib64/libc.so.6

Thread 5 (Thread 0x7f38edaf3950 (LWP 22114)):
#0  0x00007f38ff55ff69 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007f38ffd85379 in QWaitCondition::wait () from /usr/lib64/libQtCore.so.4
#2  0x00007f38fcb5f5e4 in ?? () from /usr/lib64/libthreadweaver.so.4
#3  0x00007f38fcb61d93 in ?? () from /usr/lib64/libthreadweaver.so.4
#4  0x00007f38fcb6030f in ?? () from /usr/lib64/libthreadweaver.so.4
#5  0x00007f38fcb60769 in ThreadWeaver::Thread::run () from /usr/lib64/libthreadweaver.so.4
#6  0x00007f38ffd84392 in ?? () from /usr/lib64/libQtCore.so.4
#7  0x00007f38ff55c263 in start_thread () from /lib64/libpthread.so.0
#8  0x00007f38ffaa578d in clone () from /lib64/libc.so.6

Thread 4 (Thread 0x7f38e3a8f950 (LWP 22115)):
#0  0x00007f38ff55ff69 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007f38ffd85379 in QWaitCondition::wait () from /usr/lib64/libQtCore.so.4
#2  0x00007f38fcb5f5e4 in ?? () from /usr/lib64/libthreadweaver.so.4
#3  0x00007f38fcb61d93 in ?? () from /usr/lib64/libthreadweaver.so.4
#4  0x00007f38fcb6030f in ?? () from /usr/lib64/libthreadweaver.so.4
#5  0x00007f38fcb60769 in ThreadWeaver::Thread::run () from /usr/lib64/libthreadweaver.so.4
#6  0x00007f38ffd84392 in ?? () from /usr/lib64/libQtCore.so.4
#7  0x00007f38ff55c263 in start_thread () from /lib64/libpthread.so.0
#8  0x00007f38ffaa578d in clone () from /lib64/libc.so.6

Thread 3 (Thread 0x7f38d06a7950 (LWP 22120)):
#0  0x00007f38ff55ff69 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007f38ffd85379 in QWaitCondition::wait () from /usr/lib64/libQtCore.so.4
#2  0x00007f38fcb5f5e4 in ?? () from /usr/lib64/libthreadweaver.so.4
#3  0x00007f38fcb61d93 in ?? () from /usr/lib64/libthreadweaver.so.4
#4  0x00007f38fcb6030f in ?? () from /usr/lib64/libthreadweaver.so.4
#5  0x00007f38fcb60769 in ThreadWeaver::Thread::run () from /usr/lib64/libthreadweaver.so.4
#6  0x00007f38ffd84392 in ?? () from /usr/lib64/libQtCore.so.4
#7  0x00007f38ff55c263 in start_thread () from /lib64/libpthread.so.0
#8  0x00007f38ffaa578d in clone () from /lib64/libc.so.6

Thread 2 (Thread 0x7f38d1819950 (LWP 22595)):
#0  0x00007f38ff55ff69 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007f38ffd85379 in QWaitCondition::wait () from /usr/lib64/libQtCore.so.4
#2  0x00007f38fcb5f5e4 in ?? () from /usr/lib64/libthreadweaver.so.4
#3  0x00007f38fcb61d93 in ?? () from /usr/lib64/libthreadweaver.so.4
#4  0x00007f38fcb61dac in ?? () from /usr/lib64/libthreadweaver.so.4
#5  0x00007f38fcb6030f in ?? () from /usr/lib64/libthreadweaver.so.4
#6  0x00007f38fcb60769 in ThreadWeaver::Thread::run () from /usr/lib64/libthreadweaver.so.4
#7  0x00007f38ffd84392 in ?? () from /usr/lib64/libQtCore.so.4
#8  0x00007f38ff55c263 in start_thread () from /lib64/libpthread.so.0
#9  0x00007f38ffaa578d in clone () from /lib64/libc.so.6

Thread 1 (Thread 0x7f3901f6d700 (LWP 22108)):
[KCrash Handler]
#5  0x00007f390141cefc in EngineController::slotAboutToFinish () from /usr/lib64/libamaroklib.so.1
#6  0x00007f390141e0bb in EngineController::qt_metacall () from /usr/lib64/libamaroklib.so.1
#7  0x00007f38ffe82dd2 in QMetaObject::activate () from /usr/lib64/libQtCore.so.4
#8  0x00007f38fc6c50b1 in Phonon::MediaObject::prefinishMarkReached () from /usr/lib64/libphonon.so.4
#9  0x00007f38fc6c6db3 in Phonon::MediaObject::qt_metacall () from /usr/lib64/libphonon.so.4
#10 0x00007f38ffe82dd2 in QMetaObject::activate () from /usr/lib64/libQtCore.so.4
#11 0x00007f38f1aa9551 in ?? () from /usr/lib64/kde4/plugins/phonon_backend/phonon_gstreamer.so
#12 0x00007f38f1aaa1ec in ?? () from /usr/lib64/kde4/plugins/phonon_backend/phonon_gstreamer.so
#13 0x00007f38f1aada12 in ?? () from /usr/lib64/kde4/plugins/phonon_backend/phonon_gstreamer.so
#14 0x00007f38ffe82dd2 in QMetaObject::activate () from /usr/lib64/libQtCore.so.4
#15 0x00007f38ffe7d0b3 in QObject::event () from /usr/lib64/libQtCore.so.4
#16 0x00007f390074e49d in QApplicationPrivate::notify_helper () from /usr/lib64/libQtGui.so.4
#17 0x00007f390075668a in QApplication::notify () from /usr/lib64/libQtGui.so.4
#18 0x00007f39019a40db in KApplication::notify () from /usr/lib64/libkdeui.so.5
#19 0x00007f38ffe6d35c in QCoreApplication::notifyInternal () from /usr/lib64/libQtCore.so.4
#20 0x00007f38ffe9a396 in ?? () from /usr/lib64/libQtCore.so.4
#21 0x00007f38ffe96a8d in ?? () from /usr/lib64/libQtCore.so.4
#22 0x00007f38f9167e91 in g_main_context_dispatch () from /usr/lib64/libglib-2.0.so.0
#23 0x00007f38f916b540 in ?? () from /usr/lib64/libglib-2.0.so.0
#24 0x00007f38f916b6dc in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#25 0x00007f38ffe969ef in QEventDispatcherGlib::processEvents () from /usr/lib64/libQtCore.so.4
#26 0x00007f39007e564f in ?? () from /usr/lib64/libQtGui.so.4
#27 0x00007f38ffe6bc02 in QEventLoop::processEvents () from /usr/lib64/libQtCore.so.4
#28 0x00007f38ffe6bfcd in QEventLoop::exec () from /usr/lib64/libQtCore.so.4
#29 0x00007f38ffe6e294 in QCoreApplication::exec () from /usr/lib64/libQtCore.so.4
#30 0x0000000000404017 in _start ()
Comment 18 Dario Andres 2009-05-20 21:58:21 UTC
@Vasiliy: If you can reproduce the crash at will, may you read http://techbase.kde.org/Development/Tutorials/Debugging/How_to_create_useful_crash_reports and post a complete backtrace in A NEW REPORT? Do not forget to mention what were you doing when it crashed, the Amarok and KDE versions and your linux distribution. Thanks
Comment 19 Mark Kretschmann 2009-05-20 22:49:56 UTC
@Vasiliy: Your crash is already fixed in SVN. There's no need to follow up on this, thanks.