Bug 169684

Summary: amarok nightly crashes wenn using the "organize files" function in the context menu of the collection
Product: [Applications] amarok Reporter: Sputnik <sputnikshock>
Component: Collections/LocalAssignee: Amarok Developers <amarok-bugs-dist>
Status: RESOLVED FIXED    
Severity: crash CC: boerk, fatlardo, felix_michel, jrm, Regnaron, sputnikshock, teo, zoryfl
Priority: HI Keywords: needs_verification
Version: 2.3-GIT   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Sputnik 2008-08-23 21:18:40 UTC
Version:           20080822+svn850949-0neon1 (using Devel)
OS:                Linux
Installed from:    Compiled sources

using neon package 20080822+svn850949-0neon1 on kubuntu.

Note: There seems to be a similar bug for this: https://bugs.kde.org/show_bug.cgi?id=168464 As it has explicitly closed due to changes, I report this one as a new bug report.

2nd note: I ran Neon with the KDE 4.1 SVN packages under KDE 3.5.9. 

I have had some error messages before in Neon that seemed to be related to the file system structure...

Here is the bug report:

[Thread debugging using libthread_db enabled]
[New Thread 0xb4df4720 (LWP 28922)]
[New Thread 0xaac60b90 (LWP 31886)]
[New Thread 0xab461b90 (LWP 31885)]
[New Thread 0xabe2fb90 (LWP 31883)]
[New Thread 0xaca19b90 (LWP 31879)]
[New Thread 0xad625b90 (LWP 31170)]
[New Thread 0xadefeb90 (LWP 28953)]
[New Thread 0xae6ffb90 (LWP 28952)]
[New Thread 0xaf10eb90 (LWP 28951)]
[New Thread 0xb0a38b90 (LWP 28950)]
[New Thread 0xb0237b90 (LWP 28941)]
[New Thread 0xb1297b90 (LWP 28937)]
[New Thread 0xb1adab90 (LWP 28936)]
[New Thread 0xb22dbb90 (LWP 28929)]
[New Thread 0xb2b4cb90 (LWP 28928)]
[KCrash handler]
#5  0xb7f3a410 in __kernel_vsyscall ()
#6  0xb53b4085 in raise () from /lib/tls/i686/cmov/libc.so.6
#7  0xb53b5a01 in abort () from /lib/tls/i686/cmov/libc.so.6
#8  0xb6402bc5 in qt_message_output ()
   from /opt/project-neon/lib/libQtCore.so.4
#9  0xb6402c88 in qFatal () from /opt/project-neon/lib/libQtCore.so.4
#10 0xb6402f35 in qt_assert () from /opt/project-neon/lib/libQtCore.so.4
#11 0xb0a522e0 in KSharedPtr<Meta::Track>::operator-> (this=0x804d910)
    at /opt/amarok-nightly/include/ksharedptr.h:115
#12 0xb0a4e8b5 in OrganizeCollectionDialog::buildDestination (this=0x8de5248, 
    format=@0xbfd1faac, track=@0x8de5270)
    at /build/buildd/amarok-nightly-20080822+svn850949/src/collection/sqlcollection/OrganizeCollectionDialog.cpp:150
#13 0xb0a4f9aa in OrganizeCollectionDialog::preview (this=0x8de5248, 
    format=@0xbfd1faac)
    at /build/buildd/amarok-nightly-20080822+svn850949/src/collection/sqlcollection/OrganizeCollectionDialog.cpp:285
#14 0xb0a4f9fd in OrganizeCollectionDialog::slotUpdatePreview (this=0x8de5248)
    at /build/buildd/amarok-nightly-20080822+svn850949/src/collection/sqlcollection/OrganizeCollectionDialog.cpp:392
#15 0xb0a4faf8 in OrganizeCollectionDialog::init (this=0x8de5248)
    at /build/buildd/amarok-nightly-20080822+svn850949/src/collection/sqlcollection/OrganizeCollectionDialog.cpp:386
#16 0xb0a50466 in OrganizeCollectionDialog (this=0x8de5248, 
    tracks=@0x905ae28, parent=0x0, name=0x0, modal=<value optimized out>, 
    caption=@0xbfd1fbd8, buttonMask=@0xbfd1fbd0)
    at /build/buildd/amarok-nightly-20080822+svn850949/src/collection/sqlcollection/OrganizeCollectionDialog.cpp:118
#17 0xb0a67abd in SqlCollectionLocation::showDestinationDialog (
    this=0x8c5b6b0, tracks=@0x905ae28, removeSources=true)
    at /build/buildd/amarok-nightly-20080822+svn850949/src/collection/sqlcollection/SqlCollectionLocation.cpp:129
#18 0xb7dee145 in CollectionLocation::slotPrepareOperation (this=0x8c5b6b0, 
    tracks=@0x905ae28, removeSources=<value optimized out>)
    at /build/buildd/amarok-nightly-20080822+svn850949/src/collection/CollectionLocation.cpp:239
#19 0xb7deedc5 in CollectionLocation::qt_metacall (this=0x8c5b6b0, 
    _c=QMetaObject::InvokeMetaMethod, _id=9, _a=0xbfd1fd28)
    at /build/buildd/amarok-nightly-20080822+svn850949/obj-i486-linux-gnu/src/CollectionLocation.moc:106
#20 0xb0a6798a in SqlCollectionLocation::qt_metacall (this=0x8c5b6b0, 
    _c=QMetaObject::InvokeMetaMethod, _id=13, _a=0xbfd1fd28)
    at /build/buildd/amarok-nightly-20080822+svn850949/obj-i486-linux-gnu/src/collection/sqlcollection/SqlCollectionLocation.moc:64
#21 0xb6504e28 in QMetaObject::activate ()
   from /opt/project-neon/lib/libQtCore.so.4
#22 0xb6505472 in QMetaObject::activate ()
   from /opt/project-neon/lib/libQtCore.so.4
#23 0xb7dee34f in CollectionLocation::prepareOperation (this=0x905ae18, 
    _t1=@0x905ae28, _t2=true)
    at /build/buildd/amarok-nightly-20080822+svn850949/obj-i486-linux-gnu/src/CollectionLocation.moc:136
#24 0xb7dee38c in CollectionLocation::slotShowSourceDialogDone (
    this=0x905ae18)
    at /build/buildd/amarok-nightly-20080822+svn850949/src/collection/CollectionLocation.cpp:226
#25 0xb7dee3bd in CollectionLocation::showSourceDialog (this=0x905ae18, 
    tracks=@0x905ae28, removeSources=true)
    at /build/buildd/amarok-nightly-20080822+svn850949/src/collection/CollectionLocation.cpp:200
#26 0xb7dee7b1 in CollectionLocation::startWorkflow (this=0x905ae18, 
    tracks=@0x905ae28, removeSources=true)
    at /build/buildd/amarok-nightly-20080822+svn850949/src/collection/CollectionLocation.cpp:317
#27 0xb7dee9c6 in CollectionLocation::prepareMove (this=0x905ae18, 
    tracks=@0x905ae28, destination=0x8c5b6b0)
    at /build/buildd/amarok-nightly-20080822+svn850949/src/collection/CollectionLocation.cpp:140
#28 0xb7deebda in CollectionLocation::queryDone (this=0x905ae18)
    at /build/buildd/amarok-nightly-20080822+svn850949/src/collection/CollectionLocation.cpp:289
#29 0xb7deecf0 in CollectionLocation::qt_metacall (this=0x905ae18, 
    _c=QMetaObject::InvokeMetaMethod, _id=15, _a=0xbfd1fe98)
    at /build/buildd/amarok-nightly-20080822+svn850949/obj-i486-linux-gnu/src/CollectionLocation.moc:112
#30 0xb0a6798a in SqlCollectionLocation::qt_metacall (this=0x905ae18, 
    _c=QMetaObject::InvokeMetaMethod, _id=19, _a=0xbfd1fe98)
    at /build/buildd/amarok-nightly-20080822+svn850949/obj-i486-linux-gnu/src/collection/sqlcollection/SqlCollectionLocation.moc:64
#31 0xb6504e28 in QMetaObject::activate ()
   from /opt/project-neon/lib/libQtCore.so.4
#32 0xb6505472 in QMetaObject::activate ()
   from /opt/project-neon/lib/libQtCore.so.4
#33 0xb7df17b7 in QueryMaker::queryDone (this=0x895ee90)
    at /build/buildd/amarok-nightly-20080822+svn850949/obj-i486-linux-gnu/src/QueryMaker.moc:156
#34 0xb7def32b in MetaQueryMaker::slotQueryDone (this=0x895ee90)
    at /build/buildd/amarok-nightly-20080822+svn850949/src/collection/MetaQueryMaker.cpp:341
#35 0xb7def383 in MetaQueryMaker::qt_metacall (this=0x895ee90, 
    _c=QMetaObject::InvokeMetaMethod, _id=0, _a=0xbfd1ffa8)
    at /build/buildd/amarok-nightly-20080822+svn850949/obj-i486-linux-gnu/src/MetaQueryMaker.moc:65
#36 0xb6504e28 in QMetaObject::activate ()
   from /opt/project-neon/lib/libQtCore.so.4
#37 0xb6505472 in QMetaObject::activate ()
   from /opt/project-neon/lib/libQtCore.so.4
#38 0xb7df17b7 in QueryMaker::queryDone (this=0x892c908)
    at /build/buildd/amarok-nightly-20080822+svn850949/obj-i486-linux-gnu/src/QueryMaker.moc:156
#39 0xb0a6daeb in SqlQueryMaker::done (this=0x892c908, job=0x814e358)
    at /build/buildd/amarok-nightly-20080822+svn850949/src/collection/sqlcollection/SqlQueryMaker.cpp:165
#40 0xb0a6db5f in SqlQueryMaker::qt_metacall (this=0x892c908, 
    _c=QMetaObject::InvokeMetaMethod, _id=0, _a=0xbfd2010c)
    at /build/buildd/amarok-nightly-20080822+svn850949/obj-i486-linux-gnu/src/collection/sqlcollection/SqlQueryMaker.moc:65
#41 0xb6504e28 in QMetaObject::activate ()
   from /opt/project-neon/lib/libQtCore.so.4
#42 0xb6505472 in QMetaObject::activate ()
   from /opt/project-neon/lib/libQtCore.so.4
#43 0xb6f7fa33 in ThreadWeaver::Job::done (this=0x814e358, _t1=0x814e358)
    at /build/buildd/amarok-nightly-kdelibs-20080817+svn848400/obj-i486-linux-gnu/threadweaver/Weaver/Job.moc:89
#44 0xb6f7fc0a in ThreadWeaver::Job::qt_metacall (this=0x814e358, 
    _c=QMetaObject::InvokeMetaMethod, _id=135586648, _a=0x8f18798)
    at /build/buildd/amarok-nightly-kdelibs-20080817+svn848400/obj-i486-linux-gnu/threadweaver/Weaver/Job.moc:70
#45 0xb64fe9db in QMetaCallEvent::placeMetaCall ()
   from /opt/project-neon/lib/libQtCore.so.4
#46 0xb65010d3 in QObject::event () from /opt/project-neon/lib/libQtCore.so.4
#47 0xb5a03d0c in QApplicationPrivate::notify_helper ()
   from /opt/project-neon/lib/libQtGui.so.4
#48 0xb5a0ad97 in QApplication::notify ()
   from /opt/project-neon/lib/libQtGui.so.4
#49 0xb7a78373 in KApplication::notify (this=0xbfd2087c, receiver=0x814e358, 
    event=0x8913720)
    at /build/buildd/amarok-nightly-kdelibs-20080817+svn848400/kdeui/kernel/kapplication.cpp:311
#50 0xb64f0919 in QCoreApplication::notifyInternal ()
   from /opt/project-neon/lib/libQtCore.so.4
#51 0xb64f1cd4 in QCoreApplicationPrivate::sendPostedEvents ()
   from /opt/project-neon/lib/libQtCore.so.4
#52 0xb64f1f1d in QCoreApplication::sendPostedEvents ()
   from /opt/project-neon/lib/libQtCore.so.4
#53 0xb651abdf in ?? () from /opt/project-neon/lib/libQtCore.so.4
#54 0xb4fdadd6 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#55 0xb4fde193 in ?? () from /usr/lib/libglib-2.0.so.0
#56 0xb4fde74e in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#57 0xb651b1d8 in QEventDispatcherGlib::processEvents ()
   from /opt/project-neon/lib/libQtCore.so.4
#58 0xb5a93225 in ?? () from /opt/project-neon/lib/libQtGui.so.4
#59 0xb64ef99d in QEventLoop::processEvents ()
   from /opt/project-neon/lib/libQtCore.so.4
#60 0xb64efb3a in QEventLoop::exec ()
   from /opt/project-neon/lib/libQtCore.so.4
#61 0xb64f1fda in QCoreApplication::exec ()
   from /opt/project-neon/lib/libQtCore.so.4
#62 0xb5a03447 in QApplication::exec ()
   from /opt/project-neon/lib/libQtGui.so.4
#63 0x0804b5ba in main (argc=3, argv=0xbfd20d64)
    at /build/buildd/amarok-nightly-20080822+svn850949/src/main.cpp:127
Comment 1 Teo Mrnjavac 2008-08-27 19:05:38 UTC
I identified what could possibly be the immediate cause of the crash but I haven't been able to reproduce it. Could you please explain in more detail the steps you took that caused the crash? Just saying "when using Organize files" doesn't help us much.
Comment 2 Sputnik 2008-08-27 19:16:51 UTC
Teo, 

when I open Amarok nightly (today: 20080826+svn852796-0neon1) I straighly go to the left part of the interface where my collection appears. 

I then go to one of the entries (artist) and right click. Choosing now the option "Organize Files" crashes Amarok immediately on my system.



Thanks for the attention!
Comment 3 Oliver Putz 2008-09-07 11:32:20 UTC
*** Bug 170410 has been marked as a duplicate of this bug. ***
Comment 4 Oliver Putz 2008-09-07 11:33:37 UTC
Confirming (see bug 170410 for more backtraces)
Comment 5 Teo Mrnjavac 2008-09-07 12:17:25 UTC
I'm on it, but I'm still having a hard time reproducing it.
Are the files in the collection already tagged?
Or do you perhaps have an empty collection?
Any other particular circumstances at all?
Comment 6 Sputnik 2008-09-07 12:24:54 UTC
Teo,

> Are the files in the collection already tagged?
for me: No labels so far, but normal mp3-tags

> Or do you perhaps have an empty collection?
in my case no. I use the collection view to apply the right mouse button an a random artist. Every selection of "organize files" on an artist crashed so far instantly.

> Any other particular circumstances at all?
I don't know what that could be in this case... 
Comment 7 Oliver Putz 2008-09-07 13:45:56 UTC
Hi,

I have an empty collection, but even if I add items and rescan the collection and all I can still crash it by using "organize files" on either the collection, some artist or some particular album. I also don't use anything but normal mp3 tags.
Comment 8 Tobias Zimmermann 2008-09-13 17:12:10 UTC
confirming.. Same for me. Using the svn version from Sept. 11.
Comment 9 Gary Steinert 2008-11-13 19:32:59 UTC
This bug seems to have been fixed. Im using svn from 13 Nov morning.
Suggest this report be closed.
Comment 10 Dario Andres 2009-01-10 03:47:50 UTC
*** Bug 180199 has been marked as a duplicate of this bug. ***
Comment 11 Dan Meltzer 2009-03-06 01:43:38 UTC
*** Bug 186287 has been marked as a duplicate of this bug. ***
Comment 12 Teo Mrnjavac 2009-10-03 23:00:54 UTC
This doesn't seem to be fixed according to a report on IRC, so I checked and one of the lines reported in the backtrace has a nice //FIXME comment before it. Reopening.
Comment 13 Teo Mrnjavac 2009-10-03 23:03:50 UTC
New bt:

Application: Amarok (amarok), signal: Aborted
[Current thread is 0 (LWP 26693)]

Thread 15 (Thread 0x7fbd174af950 (LWP 26694)):
#0  0x00007fbd2611656d in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#1  0x00007fbd1c3c2f91 in metronom_sync_loop (this=0xb7f540) at metronom.c:870
#2  0x00007fbd261123ba in start_thread () from /lib/libpthread.so.0
#3  0x00007fbd2c24bfcd in clone () from /lib/libc.so.6
#4  0x0000000000000000 in ?? ()

Thread 14 (Thread 0x7fbd15e08950 (LWP 26695)):
#0  0x00007fbd2c242496 in poll () from /lib/libc.so.6
#1  0x00007fbd2483977f in ?? () from /usr/lib/libglib-2.0.so.0
#2  0x00007fbd24839a7c in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#3  0x00007fbd2c956aae in QEventDispatcherGlib::processEvents (this=0xaab880, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:329
#4  0x00007fbd2c92bf42 in QEventLoop::processEvents (this=<value optimized out>, flags={i = 367034256}) at kernel/qeventloop.cpp:149
#5  0x00007fbd2c92c314 in QEventLoop::exec (this=0x7fbd15e07fd0, flags={i = 367034336}) at kernel/qeventloop.cpp:201
#6  0x00007fbd2c840dc8 in QThread::exec (this=<value optimized out>) at thread/qthread.cpp:487
#7  0x00007fbd1c61e62c in Phonon::Xine::XineThread::run (this=0xb81ba0) at /build/buildd/phonon-4.3.1/xine/xinethread.cpp:143
#8  0x00007fbd2c843d35 in QThreadPrivate::start (arg=0xb81ba0) at thread/qthread_unix.cpp:188
#9  0x00007fbd261123ba in start_thread () from /lib/libpthread.so.0
#10 0x00007fbd2c24bfcd in clone () from /lib/libc.so.6
#11 0x0000000000000000 in ?? ()

Thread 13 (Thread 0x7fbd111f5950 (LWP 26701)):
#0  0x00007fbd1c9a3dbf in snd_pcm_writei () from /usr/lib/libasound.so.2
#1  0x00007fbd154041f7 in ao_alsa_write (this_gen=0xb85ba0, data=0xcd4c80, count=<value optimized out>) at audio_alsa_out.c:799
#2  0x00007fbd1c3d4919 in ao_loop (this_gen=<value optimized out>) at audio_out.c:1245
#3  0x00007fbd261123ba in start_thread () from /lib/libpthread.so.0
#4  0x00007fbd2c24bfcd in clone () from /lib/libc.so.6
#5  0x0000000000000000 in ?? ()

Thread 12 (Thread 0x7fbd14ff0950 (LWP 26702)):
#0  0x00007fbd261162e9 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#1  0x00007fbd1c3d4353 in ao_loop (this_gen=<value optimized out>) at audio_out.c:348
#2  0x00007fbd261123ba in start_thread () from /lib/libpthread.so.0
#3  0x00007fbd2c24bfcd in clone () from /lib/libc.so.6
#4  0x0000000000000000 in ?? ()

Thread 11 (Thread 0x7fbd147ef950 (LWP 26703)):
#0  0x00007fbd261162e9 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#1  0x00007fbd1c3d4353 in ao_loop (this_gen=<value optimized out>) at audio_out.c:348
#2  0x00007fbd261123ba in start_thread () from /lib/libpthread.so.0
#3  0x00007fbd2c24bfcd in clone () from /lib/libc.so.6
#4  0x0000000000000000 in ?? ()

Thread 10 (Thread 0x7fbd12a5e950 (LWP 26705)):
#0  0x00007fbd261162e9 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#1  0x00007fbd2c844d19 in QWaitCondition::wait (this=0x1672cb8, mutex=0x14792e0, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:87
#2  0x00007fbd28dee5e4 in ?? () from /usr/lib/libthreadweaver.so.4
#3  0x00007fbd28df0d93 in ?? () from /usr/lib/libthreadweaver.so.4
#4  0x00007fbd28df0dac in ?? () from /usr/lib/libthreadweaver.so.4
#5  0x00007fbd28df0dac in ?? () from /usr/lib/libthreadweaver.so.4
#6  0x00007fbd28def30f in ?? () from /usr/lib/libthreadweaver.so.4
#7  0x00007fbd28def769 in ThreadWeaver::Thread::run () from /usr/lib/libthreadweaver.so.4
#8  0x00007fbd2c843d35 in QThreadPrivate::start (arg=0x14b8d60) at thread/qthread_unix.cpp:188
#9  0x00007fbd261123ba in start_thread () from /lib/libpthread.so.0
#10 0x00007fbd2c24bfcd in clone () from /lib/libc.so.6
#11 0x0000000000000000 in ?? ()

Thread 9 (Thread 0x7fbd0b0e7950 (LWP 26706)):
#0  0x00007fbd261162e9 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#1  0x00007fbd2c844d19 in QWaitCondition::wait (this=0x1672cb8, mutex=0x14792e0, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:87
#2  0x00007fbd28dee5e4 in ?? () from /usr/lib/libthreadweaver.so.4
#3  0x00007fbd28df0d93 in ?? () from /usr/lib/libthreadweaver.so.4
#4  0x00007fbd28def30f in ?? () from /usr/lib/libthreadweaver.so.4
#5  0x00007fbd28def769 in ThreadWeaver::Thread::run () from /usr/lib/libthreadweaver.so.4
#6  0x00007fbd2c843d35 in QThreadPrivate::start (arg=0x179dcf0) at thread/qthread_unix.cpp:188
#7  0x00007fbd261123ba in start_thread () from /lib/libpthread.so.0
#8  0x00007fbd2c24bfcd in clone () from /lib/libc.so.6
#9  0x0000000000000000 in ?? ()

Thread 8 (Thread 0x7fbd09cdd950 (LWP 26708)):
#0  0x00007fbd261162e9 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#1  0x00007fbd2c844d19 in QWaitCondition::wait (this=0x1672cb8, mutex=0x14792e0, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:87
#2  0x00007fbd28dee5e4 in ?? () from /usr/lib/libthreadweaver.so.4
#3  0x00007fbd28df0d93 in ?? () from /usr/lib/libthreadweaver.so.4
#4  0x00007fbd28df0dac in ?? () from /usr/lib/libthreadweaver.so.4
#5  0x00007fbd28def30f in ?? () from /usr/lib/libthreadweaver.so.4
#6  0x00007fbd28def769 in ThreadWeaver::Thread::run () from /usr/lib/libthreadweaver.so.4
#7  0x00007fbd2c843d35 in QThreadPrivate::start (arg=0x18b5db0) at thread/qthread_unix.cpp:188
#8  0x00007fbd261123ba in start_thread () from /lib/libpthread.so.0
#9  0x00007fbd2c24bfcd in clone () from /lib/libc.so.6
#10 0x0000000000000000 in ?? ()

Thread 7 (Thread 0x7fbd0656d950 (LWP 26712)):
#0  0x00007fbd261162e9 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#1  0x00007fbd2c844d19 in QWaitCondition::wait (this=0x1672cb8, mutex=0x14792e0, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:87
#2  0x00007fbd28dee5e4 in ?? () from /usr/lib/libthreadweaver.so.4
#3  0x00007fbd28df0d93 in ?? () from /usr/lib/libthreadweaver.so.4
#4  0x00007fbd28df0dac in ?? () from /usr/lib/libthreadweaver.so.4
#5  0x00007fbd28df0dac in ?? () from /usr/lib/libthreadweaver.so.4
#6  0x00007fbd28df0dac in ?? () from /usr/lib/libthreadweaver.so.4
#7  0x00007fbd28df0dac in ?? () from /usr/lib/libthreadweaver.so.4
#8  0x00007fbd28def30f in ?? () from /usr/lib/libthreadweaver.so.4
#9  0x00007fbd28def769 in ThreadWeaver::Thread::run () from /usr/lib/libthreadweaver.so.4
#10 0x00007fbd2c843d35 in QThreadPrivate::start (arg=0x18655e0) at thread/qthread_unix.cpp:188
#11 0x00007fbd261123ba in start_thread () from /lib/libpthread.so.0
#12 0x00007fbd2c24bfcd in clone () from /lib/libc.so.6
#13 0x0000000000000000 in ?? ()

Thread 6 (Thread 0x7fbcfb477950 (LWP 26713)):
#0  0x00007fbd2c244742 in select () from /lib/libc.so.6
#1  0x00007fbd1c3ec0a4 in xine_usec_sleep (usec=<value optimized out>) at utils.c:481
#2  0x00007fbd1c3d0deb in video_out_loop (this_gen=<value optimized out>) at video_out.c:1246
#3  0x00007fbd261123ba in start_thread () from /lib/libpthread.so.0
#4  0x00007fbd2c24bfcd in clone () from /lib/libc.so.6
#5  0x0000000000000000 in ?? ()

Thread 5 (Thread 0x7fbcfa88d950 (LWP 26714)):
#0  0x00007fbd261162e9 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#1  0x00007fbd1c3c6afb in fifo_buffer_get (fifo=0x39036e0) at buffer.c:230
#2  0x00007fbd1c3cca6e in video_decoder_loop (stream_gen=<value optimized out>) at video_decoder.c:130
#3  0x00007fbd261123ba in start_thread () from /lib/libpthread.so.0
#4  0x00007fbd2c24bfcd in clone () from /lib/libc.so.6
#5  0x0000000000000000 in ?? ()

Thread 4 (Thread 0x7fbcf9ebf950 (LWP 26715)):
#0  0x00007fbd2611656d in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#1  0x00007fbd1c3d2dd0 in ao_get_buffer (this_gen=<value optimized out>) at audio_out.c:355
#2  0x00007fbd1c3df075 in post_audio_get_buffer (port_gen=<value optimized out>) at post.c:618
#3  0x00007fbd1c3df075 in post_audio_get_buffer (port_gen=<value optimized out>) at post.c:618
#4  0x00007fbcf3ccf0b9 in mad_decode_data (this_gen=0x3dc82e0, buf=0x3d9ea50) at xine_mad_decoder.c:280
#5  0x00007fbd1c3ce1e4 in audio_decoder_loop (stream_gen=<value optimized out>) at audio_decoder.c:362
#6  0x00007fbd261123ba in start_thread () from /lib/libpthread.so.0
#7  0x00007fbd2c24bfcd in clone () from /lib/libc.so.6
#8  0x0000000000000000 in ?? ()

Thread 3 (Thread 0x7fbcf96be950 (LWP 26716)):
#0  0x00007fbd261162e9 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#1  0x00007fbd1c3d702b in listener_loop (queue_gen=<value optimized out>) at events.c:56
#2  0x00007fbd261123ba in start_thread () from /lib/libpthread.so.0
#3  0x00007fbd2c24bfcd in clone () from /lib/libc.so.6
#4  0x0000000000000000 in ?? ()

Thread 2 (Thread 0x7fbcf3aad950 (LWP 27472)):
#0  0x00007fbd2c244742 in select () from /lib/libc.so.6
#1  0x00007fbd1c3ec0a4 in xine_usec_sleep (usec=<value optimized out>) at utils.c:481
#2  0x00007fbd1c3dc430 in demux_loop (stream_gen=<value optimized out>) at demux.c:352
#3  0x00007fbd261123ba in start_thread () from /lib/libpthread.so.0
#4  0x00007fbd2c24bfcd in clone () from /lib/libc.so.6
#5  0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7fbd2ebec790 (LWP 26693)):
[KCrash Handler]
#5  0x00007fbd2c198fb5 in raise () from /lib/libc.so.6
#6  0x00007fbd2c19abc3 in abort () from /lib/libc.so.6
#7  0x00007fbd2c83bda5 in qt_message_output (msgType=QtFatalMsg, buf=<value optimized out>) at global/qglobal.cpp:2042
#8  0x00007fbd2c83beeb in qFatal (msg=<value optimized out>) at global/qglobal.cpp:2241
#9  0x00007fbd2de0480c in KSharedPtr<Meta::Track>::operator-> (this=0x436e9b0) at /usr/include/ksharedptr.h:125
#10 0x00007fbd2e0d468c in OrganizeCollectionDialog::buildDestination (this=0x436e970, format=@0x7fff36d296a0, track=@0x436e9b0) at /home/tycho/amarok/src/dialogs/OrganizeCollectionDialog.cpp:137
#11 0x00007fbd2e0d5955 in OrganizeCollectionDialog::preview (this=0x436e970, format=@0x7fff36d296a0) at /home/tycho/amarok/src/dialogs/OrganizeCollectionDialog.cpp:262
#12 0x00007fbd2e0d5994 in OrganizeCollectionDialog::slotUpdatePreview (this=0x436e970) at /home/tycho/amarok/src/dialogs/OrganizeCollectionDialog.cpp:322
#13 0x00007fbd2e0d59b5 in OrganizeCollectionDialog::init (this=0x436e970) at /home/tycho/amarok/src/dialogs/OrganizeCollectionDialog.cpp:316
#14 0x00007fbd2e0d65b2 in OrganizeCollectionDialog (this=0x436e970, tracks=@0x18931e0, folders=@0x7fff36d297f0, parent=0x9f2c10, name=0x7fbd1327dd2a "", modal=true, caption=@0x7fff36d297e0, 
    buttonMask={i = 919771136}) at /home/tycho/amarok/src/dialogs/OrganizeCollectionDialog.cpp:101
#15 0x00007fbd12f432cb in SqlCollectionLocation::showDestinationDialog (this=0x17242e0, tracks=@0x18931e0, removeSources=false)
    at /home/tycho/amarok/src/collection/sqlcollection/SqlCollectionLocation.cpp:154
#16 0x00007fbd2dfb89e4 in CollectionLocation::slotPrepareOperation (this=0x17242e0, tracks=@0x18931e0, removeSources=false) at /home/tycho/amarok/src/collection/CollectionLocation.cpp:344
#17 0x00007fbd2dfba1ef in CollectionLocation::qt_metacall (this=0x17242e0, _c=QMetaObject::InvokeMetaMethod, _id=13, _a=0x7fff36d299d0) at /home/tycho/amarok/build/src/CollectionLocation.moc:121
#18 0x00007fbd12f43179 in SqlCollectionLocation::qt_metacall (this=0x17242e0, _c=QMetaObject::InvokeMetaMethod, _id=17, _a=0x7fff36d299d0)
    at /home/tycho/amarok/build/src/collection/mysqlecollection/SqlCollectionLocation.moc:65
#19 0x00007fbd2c942ea2 in QMetaObject::activate (sender=0x18931c0, from_signal_index=<value optimized out>, to_signal_index=8, argv=0xffffffffffffffff) at kernel/qobject.cpp:3113
#20 0x00007fbd2dfb8c2e in CollectionLocation::prepareOperation (this=0x18931c0, _t1=@0x18931e0, _t2=false) at /home/tycho/amarok/build/src/CollectionLocation.moc:166
#21 0x00007fbd2dfb8c58 in CollectionLocation::slotShowSourceDialogDone (this=0x18931c0) at /home/tycho/amarok/src/collection/CollectionLocation.cpp:324
#22 0x00007fbd2dfb8c76 in CollectionLocation::showSourceDialog (this=0x18931c0, tracks=@0x1ad6ae8, removeSources=false) at /home/tycho/amarok/src/collection/CollectionLocation.cpp:267
#23 0x00007fbd2dfb9902 in CollectionLocation::startWorkflow (this=0x18931c0, tracks=@0x1ad6ae8, removeSources=false) at /home/tycho/amarok/src/collection/CollectionLocation.cpp:460
#24 0x00007fbd2dfb9ecc in CollectionLocation::prepareCopy (this=0x18931c0, tracks=@0x1ad6ae8, destination=0x17242e0) at /home/tycho/amarok/src/collection/CollectionLocation.cpp:106
#25 0x00007fbd2e1052cf in MyDirOperator::slotCopyTracks (this=0x17bbf00, tracks=@0x1ad6ae8) at /home/tycho/amarok/src/browsers/filebrowser/MyDirOperator.cpp:133
#26 0x00007fbd2e105ae3 in MyDirOperator::qt_metacall (this=0x17bbf00, _c=QMetaObject::InvokeMetaMethod, _id=5, _a=0x7fff36d29c20) at /home/tycho/amarok/build/src/MyDirOperator.moc:85
#27 0x00007fbd2c942ea2 in QMetaObject::activate (sender=0x1ad6ac0, from_signal_index=<value optimized out>, to_signal_index=4, argv=0xffffffffffffffff) at kernel/qobject.cpp:3113
#28 0x00007fbd2ddd6661 in DirectoryLoader::finished (this=0x1ad6ac0, _t1=@0x1ad6ae8) at /home/tycho/amarok/build/src/moc_DirectoryLoader.cpp:88
#29 0x00007fbd2e086476 in DirectoryLoader::finishUrlList (this=0x1ad6ac0) at /home/tycho/amarok/src/DirectoryLoader.cpp:146
#30 0x00007fbd2e0868ff in DirectoryLoader::init (this=0x1ad6ac0, urls=@0x7fff36d29de0) at /home/tycho/amarok/src/DirectoryLoader.cpp:103
#31 0x00007fbd2e105063 in MyDirOperator::slotPrepareCopyTracks (this=0x17bbf00) at /home/tycho/amarok/src/browsers/filebrowser/MyDirOperator.cpp:193
#32 0x00007fbd2e105ab1 in MyDirOperator::qt_metacall (this=0x17bbf00, _c=QMetaObject::InvokeMetaMethod, _id=3, _a=0x7fff36d29f30) at /home/tycho/amarok/build/src/MyDirOperator.moc:83
#33 0x00007fbd2c942ea2 in QMetaObject::activate (sender=0x1aed0d0, from_signal_index=<value optimized out>, to_signal_index=6, argv=0xffffffffffffffff) at kernel/qobject.cpp:3113
#34 0x00007fbd2d233f37 in QAction::triggered (this=0x6845, _t1=false) at .moc/release-shared/moc_qaction.cpp:236
#35 0x00007fbd2d2353b0 in QAction::activate (this=0x1aed0d0, event=<value optimized out>) at kernel/qaction.cpp:1160
#36 0x00007fbd2d63c52d in QMenuPrivate::activateCausedStack (this=0x4c9eb70, causedStack=@0x7fff36d2a050, action=0x1aed0d0, action_e=QAction::Trigger, self=true) at widgets/qmenu.cpp:967
#37 0x00007fbd2d64253e in QMenuPrivate::activateAction (this=0x4c9eb70, action=0x1aed0d0, action_e=QAction::Trigger, self=true) at widgets/qmenu.cpp:1060
#38 0x00007fbd2d28b0bf in QWidget::event (this=0x4c93bd0, event=0x7fff36d2a860) at kernel/qwidget.cpp:7549
#39 0x00007fbd2d644d8b in QMenu::event (this=0x4c93bd0, e=0x7fff36d2a860) at widgets/qmenu.cpp:2353
#40 0x00007fbd2d239f4d in QApplicationPrivate::notify_helper (this=0xa050b0, receiver=0x4c93bd0, e=0x7fff36d2a860) at kernel/qapplication.cpp:4056
#41 0x00007fbd2d2428ea in QApplication::notify (this=<value optimized out>, receiver=0x4c93bd0, e=0x7fff36d2a860) at kernel/qapplication.cpp:3758
#42 0x00007fbd2e71adeb in KApplication::notify () from /usr/lib/libkdeui.so.5
#43 0x00007fbd2c92d6ac in QCoreApplication::notifyInternal (this=0x7fff36d2f2f0, receiver=0x4c93bd0, event=0x7fff36d2a860) at kernel/qcoreapplication.cpp:610
#44 0x00007fbd2d241b38 in QApplicationPrivate::sendMouseEvent (receiver=0x4c93bd0, event=0x7fff36d2a860, alienWidget=0x0, nativeWidget=0x4c93bd0, buttonDown=<value optimized out>, 
    lastMouseReceiver=@0x7fbd2dc71010) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:216
#45 0x00007fbd2d2abcd4 in QETWidget::translateMouseEvent (this=0x4c93bd0, event=<value optimized out>) at kernel/qapplication_x11.cpp:4343
#46 0x00007fbd2d2aab53 in QApplication::x11ProcessEvent (this=0x7fff36d2f2f0, event=0x7fff36d2c3e0) at kernel/qapplication_x11.cpp:3550
#47 0x00007fbd2d2d3454 in x11EventSourceDispatch (s=0x9fff00, callback=0, user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:146
#48 0x00007fbd2483620a in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#49 0x00007fbd248398e0 in ?? () from /usr/lib/libglib-2.0.so.0
#50 0x00007fbd24839a7c in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#51 0x00007fbd2c956a8f in QEventDispatcherGlib::processEvents (this=0x8e3bf0, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:327
#52 0x00007fbd2d2d2bdf in QGuiEventDispatcherGlib::processEvents (this=0x6845, flags=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:202
#53 0x00007fbd2c92bf42 in QEventLoop::processEvents (this=<value optimized out>, flags={i = 919783120}) at kernel/qeventloop.cpp:149
#54 0x00007fbd2c92c314 in QEventLoop::exec (this=0x7fff36d2c710, flags={i = 919783216}) at kernel/qeventloop.cpp:201
#55 0x00007fbd2d644be5 in QMenu::exec (this=<value optimized out>, p=@0x7fff36d2c7b0, action=0x0) at widgets/qmenu.cpp:1993
#56 0x00007fbd29033776 in KDirOperator::Private::_k_openContextMenu () from /usr/lib/libkfile.so.4
#57 0x00007fbd2903ee33 in KDirOperator::qt_metacall () from /usr/lib/libkfile.so.4
#58 0x00007fbd2e105a29 in MyDirOperator::qt_metacall (this=0x17bbf00, _c=QMetaObject::InvokeMetaMethod, _id=89, _a=0x7fff36d2c930) at /home/tycho/amarok/build/src/MyDirOperator.moc:75
#59 0x00007fbd2c942ea2 in QMetaObject::activate (sender=0x17eb750, from_signal_index=<value optimized out>, to_signal_index=4, argv=0xffffffffffffffff) at kernel/qobject.cpp:3113
#60 0x00007fbd2d27d842 in QWidget::customContextMenuRequested (this=0x6845, _t1=<value optimized out>) at .moc/release-shared/moc_qwidget.cpp:350
#61 0x00007fbd2d28b51a in QWidget::event (this=0x17eb750, event=0x7fff36d2d3a0) at kernel/qwidget.cpp:7711
#62 0x00007fbd2d5fdf0b in QFrame::event (this=0x17eb750, e=0x7fff36d2d3a0) at widgets/qframe.cpp:559
#63 0x00007fbd2d733c0d in QAbstractItemView::viewportEvent (this=0x17eb750, event=0x7fff36d2d3a0) at itemviews/qabstractitemview.cpp:1476
#64 0x00007fbd2c92c9b8 in QCoreApplicationPrivate::sendThroughObjectEventFilters (this=<value optimized out>, receiver=0x9f7390, event=0x7fff36d2d3a0) at kernel/qcoreapplication.cpp:726
#65 0x00007fbd2d239f1c in QApplicationPrivate::notify_helper (this=0xa050b0, receiver=0x9f7390, e=0x7fff36d2d3a0) at kernel/qapplication.cpp:4052
#66 0x00007fbd2d24262a in QApplication::notify (this=<value optimized out>, receiver=0x9f7390, e=0x7fff36d2d3a0) at kernel/qapplication.cpp:3845
#67 0x00007fbd2e71adeb in KApplication::notify () from /usr/lib/libkdeui.so.5
#68 0x00007fbd2c92d6ac in QCoreApplication::notifyInternal (this=0x7fff36d2f2f0, receiver=0x9f7390, event=0x7fff36d2d3a0) at kernel/qcoreapplication.cpp:610
#69 0x00007fbd2d2ac15a in QETWidget::translateMouseEvent (this=0x179cd80, event=<value optimized out>) at kernel/qapplication_x11.cpp:4415
#70 0x00007fbd2d2aab53 in QApplication::x11ProcessEvent (this=0x7fff36d2f2f0, event=0x7fff36d2ef50) at kernel/qapplication_x11.cpp:3550
#71 0x00007fbd2d2d3454 in x11EventSourceDispatch (s=0x9fff00, callback=0, user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:146
#72 0x00007fbd2483620a in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#73 0x00007fbd248398e0 in ?? () from /usr/lib/libglib-2.0.so.0
#74 0x00007fbd24839a7c in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#75 0x00007fbd2c956a8f in QEventDispatcherGlib::processEvents (this=0x8e3bf0, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:327
#76 0x00007fbd2d2d2bdf in QGuiEventDispatcherGlib::processEvents (this=0x6845, flags=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:202
#77 0x00007fbd2c92bf42 in QEventLoop::processEvents (this=<value optimized out>, flags={i = 919794240}) at kernel/qeventloop.cpp:149
#78 0x00007fbd2c92c314 in QEventLoop::exec (this=0x7fff36d2f280, flags={i = 919794320}) at kernel/qeventloop.cpp:201
#79 0x00007fbd2c92e5e4 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:888
#80 0x0000000000405fb6 in main (argc=2, argv=0x7fff36d310d8) at /home/tycho/amarok/src/main.cpp:227
Comment 14 Teo Mrnjavac 2009-10-04 12:02:22 UTC
commit 8fea64b56a4727bc0d81f2c269bb1d89b0283efc
Author: Teo Mrnjavac <teo@getamarok.com>
Date:   Sun Oct 4 11:55:05 2009 +0200

    Trying to fix BUG 169684 by checking for Meta::TrackPtr sanity before calling buildDestination. I haven't tested this fix because I can't reproduce the issue, but it looks sane.
    BUG: 169684


While this should fix the crash, it doesn't solve other deeper OrganizeCollectionDialog issues.
Those who could reproduce this issue, please test.