Bug 202022 - Amarok crashes on updating collection when new media files are present
Summary: Amarok crashes on updating collection when new media files are present
Status: RESOLVED DUPLICATE of bug 180578
Alias: None
Product: amarok
Classification: Applications
Component: Collections/Local (show other bugs)
Version: 2.2-SVN
Platform: Ubuntu Linux
: NOR crash
Target Milestone: ---
Assignee: Amarok Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-07-30 19:32 UTC by frederic dinh
Modified: 2009-07-30 19:38 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description frederic dinh 2009-07-30 19:32:11 UTC
Version:           2.2-SVN (using KDE 4.2.2)
OS:                Linux
Installed from:    Ubuntu Packages

I added some files to my collection, and the scanning started (the progress bar started filling).
And suddently, it crashes with the message : 
The application Amarok (amarok) crashed and caused the signal 6 (SIGABRT).

Interestingly, the collection scanner process isn't killed:  
ps -ef | grep amarok
jihaire   9983     1 20 19:23 pts/1    00:00:22 /usr/bin/amarokcollectionscanner -p -r --savelocation /home/jihaire/.kde/share/apps/amarok/ /home/archive/Musique/A Graver /home/archive/Musique/Artistes /home/archive/Musique/Compilations

I use the latest version of Amarok (on git). I have had this problem for a few days
$ amarok --version
Qt: 4.5.0
KDE: 4.2.2 (KDE 4.2.2)
Amarok: 2.2-SVN

I tried switching from a mysql database and a mysqle database, the crash occurs with both systems

Here is the output trace when using amarok --debug : 
[...]
TagLib: MPEG::Header::parse() -- Invalid sample rate.                                                                                                     
TagLib: MPEG::Header::parse() -- Invalid sample rate.                                                                                                     
TagLib: MPEG::Header::parse() -- Invalid sample rate.                                                                                                     
TagLib: MPEG::Header::parse() -- Invalid sample rate.                                                                                                     
TagLib: MPEG::Header::parse() -- Invalid sample rate.                                                                                                     
TagLib: MPEG::Header::parse() -- Invalid sample rate.                                                                                                     
TagLib: MPEG::Header::parse() -- Invalid sample rate.                                                                                                     
TagLib: MPEG::Header::parse() -- Invalid sample rate.                                                                                                     
TagLib: MPEG::Header::parse() -- Invalid sample rate.                                                                                                     
TagLib: MPEG::Header::parse() -- Invalid sample rate.                                                                                                     
TagLib: MPEG::Header::parse() -- Invalid sample rate.                                                                                                     
TagLib: MPEG::Header::parse() -- Invalid sample rate.                                                                                                     
TagLib: MPEG::Header::parse() -- Invalid sample rate.                                                                                                     
TagLib: MPEG::Header::parse() -- Invalid sample rate.                                                                                                     
TagLib: MPEG::Header::parse() -- Invalid sample rate.                                                                                                     
TagLib: MPEG::Header::parse() -- Invalid sample rate.                                                                                                     
TagLib: MPEG::Header::parse() -- Invalid sample rate.                                                                                                     
TagLib: MPEG::Header::parse() -- First byte did not mactch MPEG synch.                                                                                    
TagLib: MPEG::Header::parse() -- First byte did not mactch MPEG synch.                                                                                    
TagLib: ID3v2.4 no longer supports the frame type TDAT.  It will be discarded from the tag.                                                               
TagLib: ID3v2.4 no longer supports the frame type TDAT.  It will be discarded from the tag.
TagLib: MPEG::Header::parse() -- Invalid sample rate.
TagLib: MPEG::Header::parse() -- Invalid sample rate.
ASSERT failure in QList<T>::operator[]: "index out of range", file /usr/include/qt4/QtCore/qlist.h, line 403
QSocketNotifier: Invalid socket 6 and type 'Read', disabling...
amarok: Fatal IO error: client killed
KCrash: Application 'amarok' crashing...
sock_file=/home/jihaire/.kde/socket-Atason/kdeinit4__0
amarok: BEGIN: virtual Meta::Observer::~Observer()
amarok: END__: virtual Meta::Observer::~Observer() - Took 7.4e-05s
amarok: BEGIN: virtual ContextObserver::~ContextObserver()
amarok: BEGIN: void ContextSubject::detach(ContextObserver*)
amarok: END__: void ContextSubject::detach(ContextObserver*) - Took 3e-05s
amarok: END__: virtual ContextObserver::~ContextObserver() - Took 9.2e-05s
amarok: BEGIN: virtual CurrentEngine::~CurrentEngine()
amarok: END__: virtual CurrentEngine::~CurrentEngine() - Took 4.2e-05s
amarok: BEGIN: virtual Meta::Observer::~Observer()
amarok: END__: virtual Meta::Observer::~Observer() - Took 3e-05s
amarok: BEGIN: virtual ContextObserver::~ContextObserver()
amarok: BEGIN: void ContextSubject::detach(ContextObserver*)
amarok: END__: void ContextSubject::detach(ContextObserver*) - Took 2.8e-05s
amarok: END__: virtual ContextObserver::~ContextObserver() - Took 8e-05s
amarok: BEGIN: virtual WikipediaEngine::~WikipediaEngine()
amarok: END__: virtual WikipediaEngine::~WikipediaEngine() - Took 3.3e-05s
amarok: BEGIN: virtual Meta::Observer::~Observer()
amarok: END__: virtual Meta::Observer::~Observer() - Took 3e-05s
amarok: BEGIN: virtual ContextObserver::~ContextObserver()
amarok: BEGIN: void ContextSubject::detach(ContextObserver*)
amarok: END__: void ContextSubject::detach(ContextObserver*) - Took 2.9e-05s
amarok: END__: virtual ContextObserver::~ContextObserver() - Took 7.9e-05s


Here is the backtrace : 
Application : Amarok (amarok), signal SIGABRT
[Current thread is 0 (LWP 5928)]

Thread 16 (Thread 0xb125bb90 (LWP 5929)):
#0  0xb7faf430 in __kernel_vsyscall ()
#1  0xb49fb412 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib/tls/i686/cmov/libpthread.so.0
#2  0xb66fa344 in pthread_cond_timedwait () from /lib/tls/i686/cmov/libc.so.6
#3  0xb20daae3 in ?? () from /usr/lib/libxine.so.1

Thread 15 (Thread 0xb09cfb90 (LWP 5930)):
#0  0xb43e45c3 in g_main_context_check () from /usr/lib/libglib-2.0.so.0
#1  0xb43e4fdd in ?? () from /usr/lib/libglib-2.0.so.0
#2  0xb43e5268 in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#3  0xb6a25457 in QEventDispatcherGlib::processEvents (this=0x9dc9e68, flags={i = -1331891624}) at kernel/qeventdispatcher_glib.cpp:325
#4  0xb69f806a in QEventLoop::processEvents (this=0xb09cf2d0, flags={i = -1331891560}) at kernel/qeventloop.cpp:149
#5  0xb69f84aa in QEventLoop::exec (this=0xb09cf2d0, flags={i = -1331891496}) at kernel/qeventloop.cpp:200
#6  0xb6902639 in QThread::exec (this=0x9dcdfa8) at thread/qthread.cpp:481
#7  0xb212820a in ?? () from /usr/lib/kde4/plugins/phonon_backend/phonon_xine.so
#8  0xb690596e in QThreadPrivate::start (arg=0x9dcdfa8) at thread/qthread_unix.cpp:189
#9  0xb49f74ff in start_thread () from /lib/tls/i686/cmov/libpthread.so.0
#10 0xb66eb49e in clone () from /lib/tls/i686/cmov/libc.so.6

Thread 14 (Thread 0xb01ceb90 (LWP 5933)):
#0  0xb7faf430 in __kernel_vsyscall ()
#1  0xb66e0ae7 in poll () from /lib/tls/i686/cmov/libc.so.6
#2  0xb0a54b19 in ?? () from /usr/lib/xine/plugins/1.26/xineplug_ao_out_alsa.so
Backtrace stopped: previous frame inner to this frame (corrupt stack?)

Thread 13 (Thread 0xaf9cdb90 (LWP 5934)):
#0  0xb7faf430 in __kernel_vsyscall ()
#1  0xb49fb0e5 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/tls/i686/cmov/libpthread.so.0
#2  0xb66fa2ed in pthread_cond_wait () from /lib/tls/i686/cmov/libc.so.6
#3  0xb20ebd8e in ?? () from /usr/lib/libxine.so.1
Backtrace stopped: previous frame inner to this frame (corrupt stack?)

Thread 12 (Thread 0xaf1ccb90 (LWP 5935)):
#0  0xb7faf430 in __kernel_vsyscall ()
#1  0xb49fb0e5 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/tls/i686/cmov/libpthread.so.0
#2  0xb66fa2ed in pthread_cond_wait () from /lib/tls/i686/cmov/libc.so.6
#3  0xb20ebd8e in ?? () from /usr/lib/libxine.so.1
Backtrace stopped: previous frame inner to this frame (corrupt stack?)

Thread 11 (Thread 0xadd8cb90 (LWP 5937)):
#0  0xb7faf430 in __kernel_vsyscall ()
#1  0xb49fb0e5 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/tls/i686/cmov/libpthread.so.0
#2  0xb66fa2ed in pthread_cond_wait () from /lib/tls/i686/cmov/libc.so.6
#3  0xae5fb01e in os_event_wait_low () from /usr/lib/kde4/libamarok_collection-mysqlecollection.so
#4  0xae5f7cf1 in os_aio_simulated_handle () from /usr/lib/kde4/libamarok_collection-mysqlecollection.so
#5  0xae5b97ad in fil_aio_wait () from /usr/lib/kde4/libamarok_collection-mysqlecollection.so
#6  0xae44ab8e in io_handler_thread () from /usr/lib/kde4/libamarok_collection-mysqlecollection.so
#7  0xb49f74ff in start_thread () from /lib/tls/i686/cmov/libpthread.so.0
#8  0xb66eb49e in clone () from /lib/tls/i686/cmov/libc.so.6

Thread 10 (Thread 0xaca77b90 (LWP 5938)):
#0  0xb7faf430 in __kernel_vsyscall ()
#1  0xb49fb0e5 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/tls/i686/cmov/libpthread.so.0
#2  0xb66fa2ed in pthread_cond_wait () from /lib/tls/i686/cmov/libc.so.6
#3  0xae5fb01e in os_event_wait_low () from /usr/lib/kde4/libamarok_collection-mysqlecollection.so
#4  0xae5f7cf1 in os_aio_simulated_handle () from /usr/lib/kde4/libamarok_collection-mysqlecollection.so
#5  0xae5b97ad in fil_aio_wait () from /usr/lib/kde4/libamarok_collection-mysqlecollection.so
#6  0xae44ab8e in io_handler_thread () from /usr/lib/kde4/libamarok_collection-mysqlecollection.so
#7  0xb49f74ff in start_thread () from /lib/tls/i686/cmov/libpthread.so.0
#8  0xb66eb49e in clone () from /lib/tls/i686/cmov/libc.so.6

Thread 9 (Thread 0xac276b90 (LWP 5939)):
#0  0xb7faf430 in __kernel_vsyscall ()
#1  0xb49fb0e5 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/tls/i686/cmov/libpthread.so.0
#2  0xb66fa2ed in pthread_cond_wait () from /lib/tls/i686/cmov/libc.so.6
#3  0xae5fb01e in os_event_wait_low () from /usr/lib/kde4/libamarok_collection-mysqlecollection.so
#4  0xae5f7cf1 in os_aio_simulated_handle () from /usr/lib/kde4/libamarok_collection-mysqlecollection.so
#5  0xae5b97ad in fil_aio_wait () from /usr/lib/kde4/libamarok_collection-mysqlecollection.so
#6  0xae44ab8e in io_handler_thread () from /usr/lib/kde4/libamarok_collection-mysqlecollection.so
#7  0xb49f74ff in start_thread () from /lib/tls/i686/cmov/libpthread.so.0
#8  0xb66eb49e in clone () from /lib/tls/i686/cmov/libc.so.6

Thread 8 (Thread 0xaba75b90 (LWP 5940)):
#0  0xb7faf430 in __kernel_vsyscall ()
#1  0xb49fb0e5 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/tls/i686/cmov/libpthread.so.0
#2  0xb66fa2ed in pthread_cond_wait () from /lib/tls/i686/cmov/libc.so.6
#3  0xae5fb01e in os_event_wait_low () from /usr/lib/kde4/libamarok_collection-mysqlecollection.so
#4  0xae5f7cf1 in os_aio_simulated_handle () from /usr/lib/kde4/libamarok_collection-mysqlecollection.so
#5  0xae5b97ad in fil_aio_wait () from /usr/lib/kde4/libamarok_collection-mysqlecollection.so
#6  0xae44ab8e in io_handler_thread () from /usr/lib/kde4/libamarok_collection-mysqlecollection.so
#7  0xb49f74ff in start_thread () from /lib/tls/i686/cmov/libpthread.so.0
#8  0xb66eb49e in clone () from /lib/tls/i686/cmov/libc.so.6

Thread 7 (Thread 0xaa5e4b90 (LWP 5942)):
#0  0xb7faf430 in __kernel_vsyscall ()
#1  0xb66e37b1 in select () from /lib/tls/i686/cmov/libc.so.6
#2  0xae5fb4ea in os_thread_sleep () from /usr/lib/kde4/libamarok_collection-mysqlecollection.so
#3  0xae4470e0 in srv_lock_timeout_and_monitor_thread () from /usr/lib/kde4/libamarok_collection-mysqlecollection.so
#4  0xb49f74ff in start_thread () from /lib/tls/i686/cmov/libpthread.so.0
#5  0xb66eb49e in clone () from /lib/tls/i686/cmov/libc.so.6

Thread 6 (Thread 0xa9de3b90 (LWP 5943)):
#0  0xb7faf430 in __kernel_vsyscall ()
#1  0xb66e37b1 in select () from /lib/tls/i686/cmov/libc.so.6
#2  0xae5fb4ea in os_thread_sleep () from /usr/lib/kde4/libamarok_collection-mysqlecollection.so
#3  0xae445f39 in srv_error_monitor_thread () from /usr/lib/kde4/libamarok_collection-mysqlecollection.so
#4  0xb49f74ff in start_thread () from /lib/tls/i686/cmov/libpthread.so.0
#5  0xb66eb49e in clone () from /lib/tls/i686/cmov/libc.so.6

Thread 5 (Thread 0xa95e2b90 (LWP 5944)):
#0  0xb7faf430 in __kernel_vsyscall ()
#1  0xb49fb0e5 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/tls/i686/cmov/libpthread.so.0
#2  0xb66fa2ed in pthread_cond_wait () from /lib/tls/i686/cmov/libc.so.6
#3  0xae5fb01e in os_event_wait_low () from /usr/lib/kde4/libamarok_collection-mysqlecollection.so
#4  0xae445149 in srv_master_thread () from /usr/lib/kde4/libamarok_collection-mysqlecollection.so
#5  0xb49f74ff in start_thread () from /lib/tls/i686/cmov/libpthread.so.0
#6  0xb66eb49e in clone () from /lib/tls/i686/cmov/libc.so.6

Thread 4 (Thread 0xa80fab90 (LWP 5945)):
[KCrash Handler]
#6  0xb7faf430 in __kernel_vsyscall ()
#7  0xb66326d0 in raise () from /lib/tls/i686/cmov/libc.so.6
#8  0xb6634098 in abort () from /lib/tls/i686/cmov/libc.so.6
#9  0xb68fd595 in qt_message_output (msgType=QtFatalMsg, buf=0xc2993d0 "ASSERT failure in QList<T>::operator[]: \"index out of range\", file /usr/include/qt4/QtCore/qlist.h, line 403")
    at global/qglobal.cpp:2006
#10 0xb68fd681 in qFatal (msg=0xb6a4c2e8 "ASSERT failure in %s: \"%s\", file %s, line %d") at global/qglobal.cpp:2201
#11 0xb68fd72c in qt_assert_x (where=0xae68659f "QList<T>::operator[]", what=0xae68658c "index out of range", file=0xae68656c "/usr/include/qt4/QtCore/qlist.h", line=403) at global/qglobal.cpp:1785
#12 0xae302912 in QList<QString>::operator[] (this=0xa80f993c, i=1) at /usr/include/qt4/QtCore/qlist.h:403
#13 0xae311f35 in ScanResultProcessor::urlId (this=0xa80f9d88, url=@0xa80f9c44, uid=@0xa80f9bc4) at /home/jihaire/amarok/src/collection/sqlcollection/ScanResultProcessor.cpp:659
#14 0xae31325c in ScanResultProcessor::addTrack (this=0xa80f9d88, trackData=@0x9d9e790, albumArtistId=1) at /home/jihaire/amarok/src/collection/sqlcollection/ScanResultProcessor.cpp:348
#15 0xae314ac8 in ScanResultProcessor::processDirectory (this=0xa80f9d88, data=@0xa80fa234) at /home/jihaire/amarok/src/collection/sqlcollection/ScanResultProcessor.cpp:189
#16 0xae307c71 in XmlParseJob::run (this=0xaad0528) at /home/jihaire/amarok/src/collection/sqlcollection/ScanManager.cpp:734
#17 0xb5d5e014 in ThreadWeaver::JobRunHelper::runTheJob (this=0xa80fa2b8, th=0xa7123c8, job=0xaad0528) at /build/buildd/kde4libs-4.2.2/threadweaver/Weaver/Job.cpp:106
#18 0xb5d5e3b9 in ThreadWeaver::Job::execute (this=0xaad0528, th=0xa7123c8) at /build/buildd/kde4libs-4.2.2/threadweaver/Weaver/Job.cpp:135
#19 0xb5d5cf8a in ThreadWeaver::ThreadRunHelper::run (this=0xa80fa320, parent=0x9df9cd0, th=0xa7123c8) at /build/buildd/kde4libs-4.2.2/threadweaver/Weaver/Thread.cpp:95
#20 0xb5d5d5fb in ThreadWeaver::Thread::run (this=0xa7123c8) at /build/buildd/kde4libs-4.2.2/threadweaver/Weaver/Thread.cpp:142
#21 0xb690596e in QThreadPrivate::start (arg=0xa7123c8) at thread/qthread_unix.cpp:189
#22 0xb49f74ff in start_thread () from /lib/tls/i686/cmov/libpthread.so.0
#23 0xb66eb49e in clone () from /lib/tls/i686/cmov/libc.so.6

Thread 3 (Thread 0xa78f9b90 (LWP 5946)):
#0  0xb7faf430 in __kernel_vsyscall ()
#1  0xb66e37b1 in select () from /lib/tls/i686/cmov/libc.so.6
#2  0xb69d7380 in QProcessManager::run (this=0x9da02c0) at io/qprocess_unix.cpp:305
#3  0xb690596e in QThreadPrivate::start (arg=0x9da02c0) at thread/qthread_unix.cpp:189
#4  0xb49f74ff in start_thread () from /lib/tls/i686/cmov/libpthread.so.0
#5  0xb66eb49e in clone () from /lib/tls/i686/cmov/libc.so.6

Thread 2 (Thread 0xa70f8b90 (LWP 5953)):
#0  0xb7faf430 in __kernel_vsyscall ()
#1  0xb49fb0e5 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/tls/i686/cmov/libpthread.so.0
#2  0xb66fa2ed in pthread_cond_wait () from /lib/tls/i686/cmov/libc.so.6
#3  0xb69069b2 in QWaitCondition::wait (this=0x9df9ce8, mutex=0xa7be2c8, time=4294967295) at thread/qwaitcondition_unix.cpp:87
#4  0xb5d5c148 in ThreadWeaver::WeaverImpl::blockThreadUntilJobsAreBeingAssigned (this=0x9df9cd0, th=0xa761658) at /build/buildd/kde4libs-4.2.2/threadweaver/Weaver/WeaverImpl.cpp:365
#5  0xb5d5eeec in ThreadWeaver::WorkingHardState::waitForAvailableJob (this=0xa7905f0, th=0xa761658) at /build/buildd/kde4libs-4.2.2/threadweaver/Weaver/WorkingHardState.cpp:80
#6  0xb5d5ad2b in ThreadWeaver::WeaverImpl::waitForAvailableJob (this=0x9df9cd0, th=0xa761658) at /build/buildd/kde4libs-4.2.2/threadweaver/Weaver/WeaverImpl.cpp:356
#7  0xb5d5efea in ThreadWeaver::WorkingHardState::applyForWork (this=0xa7905f0, th=0xa761658) at /build/buildd/kde4libs-4.2.2/threadweaver/Weaver/WorkingHardState.cpp:71
#8  0xb5d5c6d3 in ThreadWeaver::WeaverImpl::applyForWork (this=0x9df9cd0, th=0xa761658, previous=0xa763938) at /build/buildd/kde4libs-4.2.2/threadweaver/Weaver/WeaverImpl.cpp:351
#9  0xb5d5cfbe in ThreadWeaver::ThreadRunHelper::run (this=0xa70f8320, parent=0x9df9cd0, th=0xa761658) at /build/buildd/kde4libs-4.2.2/threadweaver/Weaver/Thread.cpp:87
#10 0xb5d5d5fb in ThreadWeaver::Thread::run (this=0xa761658) at /build/buildd/kde4libs-4.2.2/threadweaver/Weaver/Thread.cpp:142
#11 0xb690596e in QThreadPrivate::start (arg=0xa761658) at thread/qthread_unix.cpp:189
#12 0xb49f74ff in start_thread () from /lib/tls/i686/cmov/libpthread.so.0
#13 0xb66eb49e in clone () from /lib/tls/i686/cmov/libc.so.6

Thread 1 (Thread 0xb3e8c710 (LWP 5928)):
#0  0xb7faf430 in __kernel_vsyscall ()
#1  0xb66dae2b in read () from /lib/tls/i686/cmov/libc.so.6
#2  0xb43e44fa in g_main_context_check () from /usr/lib/libglib-2.0.so.0
#3  0xb43e4fdd in ?? () from /usr/lib/libglib-2.0.so.0
#4  0xb43e5268 in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#5  0xb6a25438 in QEventDispatcherGlib::processEvents (this=0x9d7c930, flags={i = -1073957608}) at kernel/qeventdispatcher_glib.cpp:323
#6  0xb6f6c365 in QGuiEventDispatcherGlib::processEvents (this=0x9d7c930, flags={i = -1073957560}) at kernel/qguieventdispatcher_glib.cpp:202
#7  0xb69f806a in QEventLoop::processEvents (this=0xbffcb5c0, flags={i = -1073957496}) at kernel/qeventloop.cpp:149
#8  0xb69f84aa in QEventLoop::exec (this=0xbffcb5c0, flags={i = -1073957432}) at kernel/qeventloop.cpp:200
#9  0xb69fa959 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:880
#10 0xb6ecad17 in QApplication::exec () at kernel/qapplication.cpp:3553
#11 0x0804be9b in main (argc=1, argv=0xbffcbb14) at /home/jihaire/amarok/src/main.cpp:128
Comment 1 Mikko C. 2009-07-30 19:35:07 UTC
maybe try taglib-extras 0.1.5 and see if it still happens?
Comment 2 Myriam Schweingruber 2009-07-30 19:38:08 UTC
This is a duplicate of an old and mysterious bug :(

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