Bug 131414 - crash when quickly switching songs
Summary: crash when quickly switching songs
Status: RESOLVED DUPLICATE of bug 115827
Alias: None
Product: amarok
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Mandriva RPMs Linux
: NOR crash
Target Milestone: ---
Assignee: Amarok Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-07-26 22:06 UTC by Frederik Himpe
Modified: 2006-07-27 01:06 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Frederik Himpe 2006-07-26 22:06:50 UTC
Version:           1.4.4 (using KDE KDE 3.5.4)
Installed from:    Mandriva RPMs
Compiler:          gcc 4.0.1 
OS:                Linux

I'm using amarok 1.4.1 on Mandriva Cooker x86_64 with xine 1.1.2 and alsa output plugin.

When quickly switching songs, for example by several times quickly quicking the "next track" button, or by double clicking quickly several times on different songs in the playlist window, I can easily reproduce a crash. I experienced this crash in normal real use situations before, just by skipping several songs.

Debugging information:
======== DEBUG INFORMATION  =======
Version:    1.4.1
Engine:     xine-engine
Build date: Jul 24 2006
CC version: 4.1.1 20060518 (prerelease)
KDElibs:    3.5.3
Qt:         3.3.6
TagLib:     1.4.0

==== file `which amarokapp` =======
/usr/bin/amarokapp: ELF 64-bit LSB executable, AMD x86-64, version 1 (SYSV), for GNU/Linux 2.6.9, dynamically linked (uses shared libs), for GNU/Linux 2.6.9, not stripped


==== (gdb) bt =====================
Using host libthread_db library "/lib64/libthread_db.so.1".
[Thread debugging using libthread_db enabled]
[New Thread 47228589092400 (LWP 23100)]
[New Thread 1132489024 (LWP 23175)]
[New Thread 1124096320 (LWP 23166)]
[New Thread 1115703616 (LWP 23118)]
[New Thread 1107310912 (LWP 23117)]
[New Thread 1098918208 (LWP 23116)]
[New Thread 1082132800 (LWP 23115)]
[New Thread 1090525504 (LWP 23114)]
0x00002af4422b39d7 in pthread_cond_timedwait@@GLIBC_2.3.2 ()
   from /lib64/libpthread.so.0
#0  0x00002af4422b39d7 in pthread_cond_timedwait@@GLIBC_2.3.2 ()
   from /lib64/libpthread.so.0
#1  0x00002aaaab4673fd in ao_flush (this_gen=) at audio_out.c:1933
#2  0x00002aaaab470e3f in post_audio_flush (port_gen=) at post.c:653
#3  0x00002aaaab46ebdc in _x_demux_flush_engine (stream=0xb39940)
    at demux.c:114
#4  0x00002aaaab46ec3e in _x_demux_stop_thread (stream=0xb39940)
    at demux.c:370
#5  0x00002aaaab456816 in close_internal (stream=0xb39940) at xine.c:288
#6  0x00002aaaab456848 in xine_close (stream=0xb39940) at xine.c:399
#7  0x00002aaaab31b4d3 in XineEngine::load (this=0x9aeea0, 
    url=@0x7fffffe6afa0, isStream=) at xine-engine.cpp:234
#8  0x00002af43cf2df32 in EngineController::play (this=0x2af43d278d60, 
    bundle=@0x89e560, offset=0) at enginecontroller.cpp:398
#9  0x00002af43cf92888 in Playlist::activate (this=0x69cf50, item=0x89e648)
    at playlist.cpp:1764
#10 0x00002af43cf9465c in Playlist::playNextTrack (this=0x69cf50, 
    forceNext=true) at playlist.cpp:1277
#11 0x00002af43cf989a2 in Playlist::qt_invoke (this=0x69cf50, _id=117, 
    _o=0x7fffffe6b720) at playlist.moc:454
#12 0x00002af43fad2e9c in QObject::activate_signal ()
   from /usr/lib/qt3/lib64/libqt-mt.so.3
#13 0x00002af43fad35ce in QObject::activate_signal_bool ()
   from /usr/lib/qt3/lib64/libqt-mt.so.3
#14 0x00002af43cf2f638 in EngineController::qt_invoke (this=0x2af43d278d60, 
    _id=3, _o=0x7fffffe6b820) at enginecontroller.moc:231
#15 0x00002af43fad2e9c in QObject::activate_signal ()
   from /usr/lib/qt3/lib64/libqt-mt.so.3
#16 0x00002af43fad3b13 in QObject::activate_signal ()
   from /usr/lib/qt3/lib64/libqt-mt.so.3
#17 0x00002af43ea25181 in KAction::qt_invoke () from /usr/lib64/libkdeui.so.4
#18 0x00002af43fad2e9c in QObject::activate_signal ()
   from /usr/lib/qt3/lib64/libqt-mt.so.3
#19 0x00002af43e9803d6 in KToolBarButton::buttonClicked ()
   from /usr/lib64/libkdeui.so.4
#20 0x00002af43e980678 in KToolBarButton::mouseReleaseEvent ()
   from /usr/lib64/libkdeui.so.4
#21 0x00002af43fb04a66 in QWidget::event ()
   from /usr/lib/qt3/lib64/libqt-mt.so.3
#22 0x00002af43e9e1d76 in KToolBarButton::event ()
   from /usr/lib64/libkdeui.so.4
#23 0x00002af43fa7eb15 in QApplication::internalNotify ()
   from /usr/lib/qt3/lib64/libqt-mt.so.3
#24 0x00002af43fa7fa65 in QApplication::notify ()
   from /usr/lib/qt3/lib64/libqt-mt.so.3
#25 0x00002af43f037dff in KApplication::notify ()
   from /usr/lib64/libkdecore.so.4
#26 0x00002af43fa2a4e8 in QETWidget::translateMouseEvent ()
   from /usr/lib/qt3/lib64/libqt-mt.so.3
#27 0x00002af43fa29523 in QApplication::x11ProcessEvent ()
   from /usr/lib/qt3/lib64/libqt-mt.so.3
#28 0x00002af43fa37d0f in QEventLoop::processEvents ()
   from /usr/lib/qt3/lib64/libqt-mt.so.3
#29 0x00002af43fa92751 in QEventLoop::enterLoop ()
   from /usr/lib/qt3/lib64/libqt-mt.so.3
#30 0x00002af43fa92632 in QEventLoop::exec ()
   from /usr/lib/qt3/lib64/libqt-mt.so.3
#31 0x0000000000405af9 in main (argc=1, argv=0x7fffffe6c6a8) at main.cpp:107
#0  0x00002af4422b39d7 in pthread_cond_timedwait@@GLIBC_2.3.2 ()
   from /lib64/libpthread.so.0
No symbol table info available.
#1  0x00002aaaab4673fd in ao_flush (this_gen=) at audio_out.c:1933
	tv = {tv_sec = 1153944049, tv_usec = 458775}
	ts = {tv_sec = 1153944050, tv_nsec = 458775000}
	this = (aos_t *) 0xa19a10
	buf = (audio_buffer_t *) 0xa70650
#2  0x00002aaaab470e3f in post_audio_flush (port_gen=) at post.c:653
	port = (post_audio_port_t *) 0xb52a50
#3  0x00002aaaab46ebdc in _x_demux_flush_engine (stream=0xb39940)
    at demux.c:114
	buf = 
==== (gdb) thread apply all bt ====
Thread 8 (Thread 1090525504 (LWP 23114)):
#0  0x00002af4422b39d7 in pthread_cond_timedwait@@GLIBC_2.3.2 ()
   from /lib64/libpthread.so.0
#1  0x00002aaaab458f23 in metronom_sync_loop (this=0x9e7160) at metronom.c:873
#2  0x00002af4422b0360 in start_thread () from /lib64/libpthread.so.0
#3  0x00002af442fb852d in clone () from /lib64/libc.so.6
#4  0x0000000000000000 in ?? ()
Thread 7 (Thread 1082132800 (LWP 23115)):
#0  0x00002af442faf826 in poll () from /lib64/libc.so.6
#1  0x00002aaaad0889fd in ao_alsa_handle_event_thread (data=)
    at audio_alsa_out.c:157
#2  0x00002af4422b0360 in start_thread () from /lib64/libpthread.so.0
#3  0x00002af442fb852d in clone () from /lib64/libc.so.6
#4  0x0000000000000000 in ?? ()
Thread 6 (Thread 1098918208 (LWP 23116)):
#0  0x00002af4422b37e6 in pthread_cond_wait@@GLIBC_2.3.2 ()
   from /lib64/libpthread.so.0
#1  0x00002aaaab46622d in fifo_remove_int (fifo=0xa38260, blocking=1)
    at audio_out.c:342
#2  0x00002aaaab46790e in ao_loop (this_gen=) at audio_out.c:380
#3  0x00002af4422b0360 in start_thread () from /lib64/libpthread.so.0
#4  0x00002af442fb852d in clone () from /lib64/libc.so.6
#5  0x0000000000000000 in ?? ()
Thread 5 (Thread 1107310912 (LWP 23117)):
#0  0x00002af4422b37e6 in pthread_cond_wait@@GLIBC_2.3.2 ()
   from /lib64/libpthread.so.0
#1  0x00002aaaab45c152 in fifo_buffer_get (fifo=0xb45da0) at buffer.c:233
#2  0x00002aaaab4622e1 in audio_decoder_loop (stream_gen=)
    at audio_decoder.c:68
#3  0x00002af4422b0360 in start_thread () from /lib64/libpthread.so.0
#4  0x00002af442fb852d in clone () from /lib64/libc.so.6
#5  0x0000000000000000 in ?? ()
Thread 4 (Thread 1115703616 (LWP 23118)):
#0  0x00002af4422b37e6 in pthread_cond_wait@@GLIBC_2.3.2 ()
   from /lib64/libpthread.so.0
#1  0x00002aaaab46a06b in xine_event_wait (queue=0xb51be0) at events.c:59
#2  0x00002aaaab46a0e5 in listener_loop (queue_gen=) at events.c:213
#3  0x00002af4422b0360 in start_thread () from /lib64/libpthread.so.0
#4  0x00002af442fb852d in clone () from /lib64/libc.so.6
#5  0x0000000000000000 in ?? ()
Thread 3 (Thread 1124096320 (LWP 23166)):
#0  0x00002af4422b6d6f in waitpid () from /lib64/libpthread.so.0
#1  0x00000000004065b8 in amaroK::Crash::crashHandler ()
    at crashhandler.cpp:223
#2  0x00002af442f1b030 in killpg () from /lib64/libc.so.6
#3  0x0000000000000000 in ?? ()
Thread 2 (Thread 1132489024 (LWP 23175)):
#0  0x00002af4422b5b78 in __lll_mutex_lock_wait () from /lib64/libpthread.so.0
#1  0x00002af4422b8238 in default_attr () from /lib64/libpthread.so.0
#2  0x000000000000001f in ?? ()
#3  0x0000000000000000 in ?? ()
Thread 1 (Thread 47228589092400 (LWP 23100)):
#0  0x00002af4422b39d7 in pthread_cond_timedwait@@GLIBC_2.3.2 ()
   from /lib64/libpthread.so.0
#1  0x00002aaaab4673fd in ao_flush (this_gen=) at audio_out.c:1933
#2  0x00002aaaab470e3f in post_audio_flush (port_gen=) at post.c:653
#3  0x00002aaaab46ebdc in _x_demux_flush_engine (stream=0xb39940)
    at demux.c:114
#4  0x00002aaaab46ec3e in _x_demux_stop_thread (stream=0xb39940)
    at demux.c:370
#5  0x00002aaaab456816 in close_internal (stream=0xb39940) at xine.c:288
#6  0x00002aaaab456848 in xine_close (stream=0xb39940) at xine.c:399
#7  0x00002aaaab31b4d3 in XineEngine::load (this=0x9aeea0, 
    url=@0x7fffffe6afa0, isStream=) at xine-engine.cpp:234
#8  0x00002af43cf2df32 in EngineController::play (this=0x2af43d278d60, 
    bundle=@0x89e560, offset=0) at enginecontroller.cpp:398
#9  0x00002af43cf92888 in Playlist::activate (this=0x69cf50, item=0x89e648)
    at playlist.cpp:1764
#10 0x00002af43cf9465c in Playlist::playNextTrack (this=0x69cf50, 
    forceNext=true) at playlist.cpp:1277
#11 0x00002af43cf989a2 in Playlist::qt_invoke (this=0x69cf50, _id=117, 
    _o=0x7fffffe6b720) at playlist.moc:454
#12 0x00002af43fad2e9c in QObject::activate_signal ()
   from /usr/lib/qt3/lib64/libqt-mt.so.3
#13 0x00002af43fad35ce in QObject::activate_signal_bool ()
   from /usr/lib/qt3/lib64/libqt-mt.so.3
#14 0x00002af43cf2f638 in EngineController::qt_invoke (this=0x2af43d278d60, 
    _id=3, _o=0x7fffffe6b820) at enginecontroller.moc:231
#15 0x00002af43fad2e9c in QObject::activate_signal ()
   from /usr/lib/qt3/lib64/libqt-mt.so.3
#16 0x00002af43fad3b13 in QObject::activate_signal ()
   from /usr/lib/qt3/lib64/libqt-mt.so.3
#17 0x00002af43ea25181 in KAction::qt_invoke () from /usr/lib64/libkdeui.so.4
#18 0x00002af43fad2e9c in QObject::activate_signal ()
   from /usr/lib/qt3/lib64/libqt-mt.so.3
#19 0x00002af43e9803d6 in KToolBarButton::buttonClicked ()
   from /usr/lib64/libkdeui.so.4
#20 0x00002af43e980678 in KToolBarButton::mouseReleaseEvent ()
   from /usr/lib64/libkdeui.so.4
#21 0x00002af43fb04a66 in QWidget::event ()
   from /usr/lib/qt3/lib64/libqt-mt.so.3
#22 0x00002af43e9e1d76 in KToolBarButton::event ()
   from /usr/lib64/libkdeui.so.4
#23 0x00002af43fa7eb15 in QApplication::internalNotify ()
   from /usr/lib/qt3/lib64/libqt-mt.so.3
#24 0x00002af43fa7fa65 in QApplication::notify ()
   from /usr/lib/qt3/lib64/libqt-mt.so.3
#25 0x00002af43f037dff in KApplication::notify ()
   from /usr/lib64/libkdecore.so.4
#26 0x00002af43fa2a4e8 in QETWidget::translateMouseEvent ()
   from /usr/lib/qt3/lib64/libqt-mt.so.3
#27 0x00002af43fa29523 in QApplication::x11ProcessEvent ()
   from /usr/lib/qt3/lib64/libqt-mt.so.3
#28 0x00002af43fa37d0f in QEventLoop::processEvents ()
   from /usr/lib/qt3/lib64/libqt-mt.so.3
#29 0x00002af43fa92751 in QEventLoop::enterLoop ()
   from /usr/lib/qt3/lib64/libqt-mt.so.3
#30 0x00002af43fa92632 in QEventLoop::exec ()
   from /usr/lib/qt3/lib64/libqt-mt.so.3
#31 0x0000000000405af9 in main (argc=1, argv=0x7fffffe6c6a8) at main.cpp:107


==== kdBacktrace() ================
[
0: /usr/lib64/libkdecore.so.4(_Z11kdBacktracei+0x48) [0x2af43ef96868]
1: /usr/lib64/libkdecore.so.4(_Z11kdBacktracev+0xe) [0x2af43ef96afe]
2: amarokapp(_ZN6amaroK5Crash12crashHandlerEi+0x628) [0x406268]
3: /lib64/libc.so.6 [0x2af442f1b030]
4: /usr/lib64/libpng12.so.0 [0x2af440e8dda6]
]
Comment 1 Martin Aumueller 2006-07-27 01:06:10 UTC
This smells quite similar as bug #115827. BTW, Amarok 1.4.2 should have improved quite a bit wrt the switching problem.

*** This bug has been marked as a duplicate of 115827 ***