Bug 237555

Summary: Digikam crashed after moving two albums to the same destination album
Product: [Applications] digikam Reporter: Raphael Ackermann <raphael.ackermann>
Component: Database-AlbumsAssignee: Digikam Developers <digikam-bugs-null>
Status: RESOLVED FIXED    
Severity: crash CC: caulier.gilles
Priority: NOR    
Version: 1.2.0   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In: 1.3.0
Sentry Crash Report:

Description Raphael Ackermann 2010-05-14 00:04:40 UTC
Application: digikam (1.2.0)
KDE Platform Version: 4.4.2 (KDE 4.4.2)
Qt Version: 4.6.2
Operating System: Linux 2.6.32-22-generic i686
Distribution: Ubuntu 10.04 LTS

-- Information about the crash:
In the album view I first moved album1 to destAlbum. Then whil album1 was still being moved, I moved album2 to destAlbum as well. 

 -- Backtrace:
Application: digiKam (digikam), signal: Segmentation fault
[Current thread is 1 (Thread 0xb76d2760 (LWP 10045))]

Thread 17 (Thread 0xb6179b70 (LWP 10046)):
#0  0x004c5422 in __kernel_vsyscall ()
#1  0x0716ee2b in read () from /lib/tls/i686/cmov/libc.so.6
#2  0x0711842b in _IO_file_underflow () from /lib/tls/i686/cmov/libc.so.6
#3  0x0711b228 in __underflow () from /lib/tls/i686/cmov/libc.so.6
#4  0x07117db0 in ?? () from /lib/tls/i686/cmov/libc.so.6
#5  0x07119d18 in _IO_sgetn () from /lib/tls/i686/cmov/libc.so.6
#6  0x0710d95e in fread () from /lib/tls/i686/cmov/libc.so.6
#7  0x04b434f0 in Exiv2::FileIo::read(unsigned char*, long) () from /usr/lib/libexiv2.so.6
#8  0x04b839f9 in Exiv2::isJpegType(Exiv2::BasicIo&, bool) () from /usr/lib/libexiv2.so.6
#9  0x04b7b827 in Exiv2::ImageFactory::open(std::auto_ptr<Exiv2::BasicIo>) () from /usr/lib/libexiv2.so.6
#10 0x04b7bad6 in Exiv2::ImageFactory::open(std::string const&) () from /usr/lib/libexiv2.so.6
#11 0x00c61682 in KExiv2Iface::KExiv2::load(QString const&) const () from /usr/lib/libkexiv2.so.8
#12 0x055a3b8c in Digikam::DMetadata::load (this=0xb6178c9c, filePath=...) at /build/buildd/digikam-1.2.0/libs/dmetadata/dmetadata.cpp:78
#13 0x00e1bd8a in Digikam::ImageScanner::loadFromDisk (this=0xb6178c94) at /build/buildd/digikam-1.2.0/libs/database/imagescanner.cpp:592
#14 0x00e2180e in Digikam::ImageScanner::copiedFrom (this=0xb6178c94, albumId=0, srcId=-4294963200) at /build/buildd/digikam-1.2.0/libs/database/imagescanner.cpp:120
#15 0x00dcdfe8 in Digikam::CollectionScanner::scanNewFile (this=0xb6179290, info=..., albumId=0) at /build/buildd/digikam-1.2.0/libs/database/collectionscanner.cpp:753
#16 0x00dcebfa in Digikam::CollectionScanner::scanAlbum (this=0xb6179290, location=..., album=...) at /build/buildd/digikam-1.2.0/libs/database/collectionscanner.cpp:665
#17 0x00dcea7c in Digikam::CollectionScanner::scanAlbum (this=0xb6179290, location=..., album=...) at /build/buildd/digikam-1.2.0/libs/database/collectionscanner.cpp:683
#18 0x00dcea7c in Digikam::CollectionScanner::scanAlbum (this=0xb6179290, location=..., album=...) at /build/buildd/digikam-1.2.0/libs/database/collectionscanner.cpp:683
#19 0x00dcea7c in Digikam::CollectionScanner::scanAlbum (this=0xb6179290, location=..., album=...) at /build/buildd/digikam-1.2.0/libs/database/collectionscanner.cpp:683
#20 0x00dcf897 in Digikam::CollectionScanner::scanAlbumRoot (this=0xb6179290, location=...) at /build/buildd/digikam-1.2.0/libs/database/collectionscanner.cpp:479
#21 0x00dd036f in Digikam::CollectionScanner::partialScan (this=0xb6179290, albumRoot=..., album=...) at /build/buildd/digikam-1.2.0/libs/database/collectionscanner.cpp:334
#22 0x00dd0664 in Digikam::CollectionScanner::partialScan (this=0xb6179290, filePath=...) at /build/buildd/digikam-1.2.0/libs/database/collectionscanner.cpp:288
#23 0x0832204f in Digikam::ScanController::run (this=0x90cbb88) at /build/buildd/digikam-1.2.0/digikam/scancontroller.cpp:553
#24 0x02ce832e in QThreadPrivate::start (arg=0x90cbb88) at thread/qthread_unix.cpp:248
#25 0x0051096e in start_thread () from /lib/tls/i686/cmov/libpthread.so.0
#26 0x0717ea0e in clone () from /lib/tls/i686/cmov/libc.so.6

Thread 16 (Thread 0xb58dfb70 (LWP 10049)):
#0  0x02053e16 in clock_gettime () from /lib/tls/i686/cmov/librt.so.1
#1  0x02e136fb in qt_gettime () at kernel/qcore_unix.cpp:111
#2  0x02e18825 in QTimerInfoList::updateCurrentTime (this=0x99ac37c) at kernel/qeventdispatcher_unix.cpp:340
#3  0x02e1886a in QTimerInfoList::timerWait (this=0x99ac37c, tm=...) at kernel/qeventdispatcher_unix.cpp:443
#4  0x02e16818 in timerSourcePrepareHelper (src=<value optimized out>, timeout=0xb58df0bc) at kernel/qeventdispatcher_glib.cpp:136
#5  0x02e168a5 in timerSourcePrepare (source=0x0, timeout=0x2057ff4) at kernel/qeventdispatcher_glib.cpp:169
#6  0x05e8daca in g_main_context_prepare () from /lib/libglib-2.0.so.0
#7  0x05e8dee9 in ?? () from /lib/libglib-2.0.so.0
#8  0x05e8e4b8 in g_main_context_iteration () from /lib/libglib-2.0.so.0
#9  0x02e1660f in QEventDispatcherGlib::processEvents (this=0x99a9190, flags=...) at kernel/qeventdispatcher_glib.cpp:414
#10 0x02de9059 in QEventLoop::processEvents (this=0xb58df280, flags=) at kernel/qeventloop.cpp:149
#11 0x02de94aa in QEventLoop::exec (this=0xb58df280, flags=...) at kernel/qeventloop.cpp:201
#12 0x02ce55a8 in QThread::exec (this=0x99a4d50) at thread/qthread.cpp:487
#13 0x00e48ced in Digikam::ImageFilterModelWorker::Thread::run (this=0x99a4d50) at /build/buildd/digikam-1.2.0/obj-i486-linux-gnu/digikam/../../libs/models/imagefiltermodelthreads.h:66
#14 0x02ce832e in QThreadPrivate::start (arg=0x99a4d50) at thread/qthread_unix.cpp:248
#15 0x0051096e in start_thread () from /lib/tls/i686/cmov/libpthread.so.0
#16 0x0717ea0e in clone () from /lib/tls/i686/cmov/libc.so.6

Thread 15 (Thread 0xb4effb70 (LWP 10050)):
#0  0x004c5422 in __kernel_vsyscall ()
#1  0x07170b86 in poll () from /lib/tls/i686/cmov/libc.so.6
#2  0x05e9b4eb in g_poll () from /lib/libglib-2.0.so.0
#3  0x05e8e0ac in ?? () from /lib/libglib-2.0.so.0
#4  0x05e8e4b8 in g_main_context_iteration () from /lib/libglib-2.0.so.0
#5  0x02e1660f in QEventDispatcherGlib::processEvents (this=0x99a6b18, flags=...) at kernel/qeventdispatcher_glib.cpp:414
#6  0x02de9059 in QEventLoop::processEvents (this=0xb4eff280, flags=) at kernel/qeventloop.cpp:149
#7  0x02de94aa in QEventLoop::exec (this=0xb4eff280, flags=...) at kernel/qeventloop.cpp:201
#8  0x02ce55a8 in QThread::exec (this=0x99a5078) at thread/qthread.cpp:487
#9  0x00e48ced in Digikam::ImageFilterModelWorker::Thread::run (this=0x99a5078) at /build/buildd/digikam-1.2.0/obj-i486-linux-gnu/digikam/../../libs/models/imagefiltermodelthreads.h:66
#10 0x02ce832e in QThreadPrivate::start (arg=0x99a5078) at thread/qthread_unix.cpp:248
#11 0x0051096e in start_thread () from /lib/tls/i686/cmov/libpthread.so.0
#12 0x0717ea0e in clone () from /lib/tls/i686/cmov/libc.so.6

Thread 14 (Thread 0xb467eb70 (LWP 10051)):
#0  0x004c5422 in __kernel_vsyscall ()
#1  0x00515015 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/tls/i686/cmov/libpthread.so.0
#2  0x02ce9287 in QWaitConditionPrivate::wait (this=0x99a9aa8, mutex=0x99a9aa4, time=4294967295) at thread/qwaitcondition_unix.cpp:87
#3  QWaitCondition::wait (this=0x99a9aa8, mutex=0x99a9aa4, time=4294967295) at thread/qwaitcondition_unix.cpp:159
#4  0x055d310a in Digikam::LoadSaveThread::run (this=0x99a9a98) at /build/buildd/digikam-1.2.0/libs/threadimageio/loadsavethread.cpp:131
#5  0x02ce832e in QThreadPrivate::start (arg=0x99a9a98) at thread/qthread_unix.cpp:248
#6  0x0051096e in start_thread () from /lib/tls/i686/cmov/libpthread.so.0
#7  0x0717ea0e in clone () from /lib/tls/i686/cmov/libc.so.6

Thread 13 (Thread 0xb3e7db70 (LWP 10052)):
#0  0x004c5422 in __kernel_vsyscall ()
#1  0x07170b86 in poll () from /lib/tls/i686/cmov/libc.so.6
#2  0x05e9b4eb in g_poll () from /lib/libglib-2.0.so.0
#3  0x05e8e0ac in ?? () from /lib/libglib-2.0.so.0
#4  0x05e8e4b8 in g_main_context_iteration () from /lib/libglib-2.0.so.0
#5  0x02e1660f in QEventDispatcherGlib::processEvents (this=0x9a01e20, flags=...) at kernel/qeventdispatcher_glib.cpp:414
#6  0x02de9059 in QEventLoop::processEvents (this=0xb3e7d2a0, flags=) at kernel/qeventloop.cpp:149
#7  0x02de94aa in QEventLoop::exec (this=0xb3e7d2a0, flags=...) at kernel/qeventloop.cpp:201
#8  0x02ce55a8 in QThread::exec (this=0x99f35e0) at thread/qthread.cpp:487
#9  0x02ce832e in QThreadPrivate::start (arg=0x99f35e0) at thread/qthread_unix.cpp:248
#10 0x0051096e in start_thread () from /lib/tls/i686/cmov/libpthread.so.0
#11 0x0717ea0e in clone () from /lib/tls/i686/cmov/libc.so.6

Thread 12 (Thread 0xb367cb70 (LWP 10053)):
#0  0x00512f5b in pthread_mutex_lock () from /lib/tls/i686/cmov/libpthread.so.0
#1  0x05e8db03 in g_main_context_prepare () from /lib/libglib-2.0.so.0
#2  0x05e8dee9 in ?? () from /lib/libglib-2.0.so.0
#3  0x05e8e4b8 in g_main_context_iteration () from /lib/libglib-2.0.so.0
#4  0x02e1660f in QEventDispatcherGlib::processEvents (this=0x9a00800, flags=...) at kernel/qeventdispatcher_glib.cpp:414
#5  0x02de9059 in QEventLoop::processEvents (this=0xb367c2a0, flags=) at kernel/qeventloop.cpp:149
#6  0x02de94aa in QEventLoop::exec (this=0xb367c2a0, flags=...) at kernel/qeventloop.cpp:201
#7  0x02ce55a8 in QThread::exec (this=0x9a00930) at thread/qthread.cpp:487
#8  0x02ce832e in QThreadPrivate::start (arg=0x9a00930) at thread/qthread_unix.cpp:248
#9  0x0051096e in start_thread () from /lib/tls/i686/cmov/libpthread.so.0
#10 0x0717ea0e in clone () from /lib/tls/i686/cmov/libc.so.6

Thread 11 (Thread 0xb1107b70 (LWP 10054)):
#0  0x004c5422 in __kernel_vsyscall ()
#1  0x00515342 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib/tls/i686/cmov/libpthread.so.0
#2  0x04318ce7 in ?? () from /usr/lib/libxine.so.1
Backtrace stopped: previous frame inner to this frame (corrupt stack?)

Thread 10 (Thread 0xb04fbb70 (LWP 10055)):
#0  0x004c5422 in __kernel_vsyscall ()
#1  0x07177971 in select () from /lib/tls/i686/cmov/libc.so.6
#2  0x043425cc in xine_usec_sleep () from /usr/lib/libxine.so.1
#3  0x00000000 in ?? ()

Thread 9 (Thread 0xafcfab70 (LWP 10056)):
#0  0x00514344 in __pthread_mutex_unlock_usercnt () from /lib/tls/i686/cmov/libpthread.so.0
#1  0x05e8dab8 in g_main_context_prepare () from /lib/libglib-2.0.so.0
#2  0x05e8dee9 in ?? () from /lib/libglib-2.0.so.0
#3  0x05e8e4b8 in g_main_context_iteration () from /lib/libglib-2.0.so.0
#4  0x02e1660f in QEventDispatcherGlib::processEvents (this=0x9fc1de0, flags=...) at kernel/qeventdispatcher_glib.cpp:414
#5  0x02de9059 in QEventLoop::processEvents (this=0xafcfa230, flags=) at kernel/qeventloop.cpp:149
#6  0x02de94aa in QEventLoop::exec (this=0xafcfa230, flags=...) at kernel/qeventloop.cpp:201
#7  0x02ce55a8 in QThread::exec (this=0x9fc19f8) at thread/qthread.cpp:487
#8  0x074d996a in Phonon::Xine::XineThread::run (this=0x9fc19f8) at ../../xine/xinethread.cpp:143
#9  0x02ce832e in QThreadPrivate::start (arg=0x9fc19f8) at thread/qthread_unix.cpp:248
#10 0x0051096e in start_thread () from /lib/tls/i686/cmov/libpthread.so.0
#11 0x0717ea0e in clone () from /lib/tls/i686/cmov/libc.so.6

Thread 8 (Thread 0xaf4f9b70 (LWP 10063)):
#0  0x00517f5c in read () from /lib/tls/i686/cmov/libpthread.so.0
#1  0x043f4de2 in ?? () from /usr/lib/libasound.so.2
#2  0x043f1b8d in snd_ctl_read () from /usr/lib/libasound.so.2
#3  0x043edf4f in snd_hctl_handle_events () from /usr/lib/libasound.so.2
#4  0x043f9dc1 in snd_mixer_handle_events () from /usr/lib/libasound.so.2
#5  0x04f06ad8 in ?? () from /usr/lib/xine/plugins/1.27/xineplug_ao_out_alsa.so
Backtrace stopped: previous frame inner to this frame (corrupt stack?)

Thread 7 (Thread 0xaecf8b70 (LWP 10064)):
#0  0x004c5422 in __kernel_vsyscall ()
#1  0x00515015 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/tls/i686/cmov/libpthread.so.0
#2  0x043299ee in ?? () from /usr/lib/libxine.so.1
Backtrace stopped: previous frame inner to this frame (corrupt stack?)

Thread 6 (Thread 0xae4f7b70 (LWP 10065)):
#0  0x004c5422 in __kernel_vsyscall ()
#1  0x00515015 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/tls/i686/cmov/libpthread.so.0
#2  0x02ce9287 in QWaitConditionPrivate::wait (this=0xa223b50, mutex=0xa223b4c, time=4294967295) at thread/qwaitcondition_unix.cpp:87
#3  QWaitCondition::wait (this=0xa223b50, mutex=0xa223b4c, time=4294967295) at thread/qwaitcondition_unix.cpp:159
#4  0x055d310a in Digikam::LoadSaveThread::run (this=0xa223b40) at /build/buildd/digikam-1.2.0/libs/threadimageio/loadsavethread.cpp:131
#5  0x02ce832e in QThreadPrivate::start (arg=0xa223b40) at thread/qthread_unix.cpp:248
#6  0x0051096e in start_thread () from /lib/tls/i686/cmov/libpthread.so.0
#7  0x0717ea0e in clone () from /lib/tls/i686/cmov/libc.so.6

Thread 5 (Thread 0xadcf6b70 (LWP 10072)):
#0  0x004c5422 in __kernel_vsyscall ()
#1  0x00515015 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/tls/i686/cmov/libpthread.so.0
#2  0x02ce9287 in QWaitConditionPrivate::wait (this=0xa8cdab0, mutex=0xa8cdaac, time=4294967295) at thread/qwaitcondition_unix.cpp:87
#3  QWaitCondition::wait (this=0xa8cdab0, mutex=0xa8cdaac, time=4294967295) at thread/qwaitcondition_unix.cpp:159
#4  0x055d310a in Digikam::LoadSaveThread::run (this=0xa8cdaa0) at /build/buildd/digikam-1.2.0/libs/threadimageio/loadsavethread.cpp:131
#5  0x02ce832e in QThreadPrivate::start (arg=0xa8cdaa0) at thread/qthread_unix.cpp:248
#6  0x0051096e in start_thread () from /lib/tls/i686/cmov/libpthread.so.0
#7  0x0717ea0e in clone () from /lib/tls/i686/cmov/libc.so.6

Thread 4 (Thread 0xad4f5b70 (LWP 10073)):
#0  0x004c5422 in __kernel_vsyscall ()
#1  0x00515015 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/tls/i686/cmov/libpthread.so.0
#2  0x02ce9287 in QWaitConditionPrivate::wait (this=0xa920690, mutex=0xa92068c, time=4294967295) at thread/qwaitcondition_unix.cpp:87
#3  QWaitCondition::wait (this=0xa920690, mutex=0xa92068c, time=4294967295) at thread/qwaitcondition_unix.cpp:159
#4  0x055d310a in Digikam::LoadSaveThread::run (this=0xa920680) at /build/buildd/digikam-1.2.0/libs/threadimageio/loadsavethread.cpp:131
#5  0x02ce832e in QThreadPrivate::start (arg=0xa920680) at thread/qthread_unix.cpp:248
#6  0x0051096e in start_thread () from /lib/tls/i686/cmov/libpthread.so.0
#7  0x0717ea0e in clone () from /lib/tls/i686/cmov/libc.so.6

Thread 3 (Thread 0xaccf4b70 (LWP 10078)):
#0  0x004c5422 in __kernel_vsyscall ()
#1  0x07170b86 in poll () from /lib/tls/i686/cmov/libc.so.6
#2  0x05e9b4eb in g_poll () from /lib/libglib-2.0.so.0
#3  0x05e8e0ac in ?? () from /lib/libglib-2.0.so.0
#4  0x05e8e4b8 in g_main_context_iteration () from /lib/libglib-2.0.so.0
#5  0x02e1660f in QEventDispatcherGlib::processEvents (this=0xa6b33e0, flags=...) at kernel/qeventdispatcher_glib.cpp:414
#6  0x02de9059 in QEventLoop::processEvents (this=0xaccf4240, flags=) at kernel/qeventloop.cpp:149
#7  0x02de94aa in QEventLoop::exec (this=0xaccf4240, flags=...) at kernel/qeventloop.cpp:201
#8  0x02ce55a8 in QThread::exec (this=0xa305b00) at thread/qthread.cpp:487
#9  0x02dc8c1b in QInotifyFileSystemWatcherEngine::run (this=0xa305b00) at io/qfilesystemwatcher_inotify.cpp:248
#10 0x02ce832e in QThreadPrivate::start (arg=0xa305b00) at thread/qthread_unix.cpp:248
#11 0x0051096e in start_thread () from /lib/tls/i686/cmov/libpthread.so.0
#12 0x0717ea0e in clone () from /lib/tls/i686/cmov/libc.so.6

Thread 2 (Thread 0xab4f1b70 (LWP 10119)):
#0  0x004c5422 in __kernel_vsyscall ()
#1  0x00515015 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/tls/i686/cmov/libpthread.so.0
#2  0x02ce9287 in QWaitConditionPrivate::wait (this=0xbc05ad8, mutex=0xbc05ad4, time=4294967295) at thread/qwaitcondition_unix.cpp:87
#3  QWaitCondition::wait (this=0xbc05ad8, mutex=0xbc05ad4, time=4294967295) at thread/qwaitcondition_unix.cpp:159
#4  0x055d310a in Digikam::LoadSaveThread::run (this=0xbc05ac8) at /build/buildd/digikam-1.2.0/libs/threadimageio/loadsavethread.cpp:131
#5  0x02ce832e in QThreadPrivate::start (arg=0xbc05ac8) at thread/qthread_unix.cpp:248
#6  0x0051096e in start_thread () from /lib/tls/i686/cmov/libpthread.so.0
#7  0x0717ea0e in clone () from /lib/tls/i686/cmov/libc.so.6

Thread 1 (Thread 0xb76d2760 (LWP 10045)):
[KCrash Handler]
#6  0x00000008 in ?? ()
#7  0x082df24d in Digikam::DIO::move (src=0x93180b8, dest=0xb198390) at /build/buildd/digikam-1.2.0/digikam/dio.cpp:60
#8  0x08262eb0 in Digikam::AlbumDragDropHandler::dropEvent (this=0xa87f198, view=0xa875610, e=0xbf8cf1a0, droppedOn=...) at /build/buildd/digikam-1.2.0/digikam/albumdragdrop.cpp:85
#9  0x0829ddd7 in Digikam::AbstractAlbumTreeView::dropEvent (this=0xa875610, e=0xbf8cf1a0) at /build/buildd/digikam-1.2.0/digikam/albumtreeview.cpp:530
#10 0x014227c0 in QWidget::event (this=0xa875610, event=0xbf8cf1a0) at kernel/qwidget.cpp:8188
#11 0x0181efd3 in QFrame::event (this=0xa875610, e=0xbf8cf1a0) at widgets/qframe.cpp:557
#12 0x018b9382 in QAbstractScrollArea::viewportEvent (this=0xcb47518, e=0x93180b8) at widgets/qabstractscrollarea.cpp:1036
#13 0x0196dbd7 in QAbstractItemView::viewportEvent (this=0xa875610, event=0xbf8cf1a0) at itemviews/qabstractitemview.cpp:1610
#14 0x019aef7c in QTreeView::viewportEvent (this=0xa875610, event=0xbf8cf1a0) at itemviews/qtreeview.cpp:1248
#15 0x0828d4b4 in Digikam::AlbumSelectionTreeView::viewportEvent (this=0xa875610, event=0x93180b8) at /build/buildd/digikam-1.2.0/digikam/albumselectiontreeview.cpp:198
#16 0x018bbc65 in QAbstractScrollAreaPrivate::viewportEvent (this=0xa8753a8, o=0xa872050, e=0xbf8cf1a0) at widgets/qabstractscrollarea_p.h:100
#17 QAbstractScrollAreaFilter::eventFilter (this=0xa8753a8, o=0xa872050, e=0xbf8cf1a0) at widgets/qabstractscrollarea_p.h:116
#18 0x02de9cda in QCoreApplicationPrivate::sendThroughObjectEventFilters (this=0x8fc8f20, receiver=0xa872050, event=0xbf8cf1a0) at kernel/qcoreapplication.cpp:819
#19 0x013c44b9 in QApplicationPrivate::notify_helper (this=0x8fc8f20, receiver=0xa872050, e=0xbf8cf1a0) at kernel/qapplication.cpp:4296
#20 0x013cb53d in QApplication::notify (this=0xbf8d1588, receiver=0xa872050, e=0xbf8cf1a0) at kernel/qapplication.cpp:4108
#21 0x07cfdf2a in KApplication::notify (this=0xbf8d1588, receiver=0xa872050, event=0xbf8cf1a0) at ../../kdeui/kernel/kapplication.cpp:302
#22 0x02deaa3b in QCoreApplication::notifyInternal (this=0xbf8d1588, receiver=0xa872050, event=0xbf8cf1a0) at kernel/qcoreapplication.cpp:704
#23 0x01464d35 in QCoreApplication::sendEvent (this=0x8fcca48, xe=0xbf8cf29c, passive=false) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:215
#24 QX11Data::xdndHandleDrop (this=0x8fcca48, xe=0xbf8cf29c, passive=false) at kernel/qdnd_x11.cpp:1168
#25 0x01465046 in QDragManager::drop (this=0xac0b5428) at kernel/qdnd_x11.cpp:1724
#26 0x014672fa in QDragManager::eventFilter (this=0xac0b5428, o=0xb2b61b0, e=0xbf8cf7f0) at kernel/qdnd_x11.cpp:1297
#27 0x02de9d9c in QCoreApplicationPrivate::sendThroughApplicationEventFilters (this=0x8fc8f20, receiver=0xb2b61b0, event=0xbf8cf7f0) at kernel/qcoreapplication.cpp:800
#28 0x013c4463 in QApplicationPrivate::notify_helper (this=0x8fc8f20, receiver=0xb2b61b0, e=0xbf8cf7f0) at kernel/qapplication.cpp:4275
#29 0x013cb9f7 in QApplication::notify (this=0xbf8d1588, receiver=0xb2b61b0, e=0xbf8cf7f0) at kernel/qapplication.cpp:3865
#30 0x07cfdf2a in KApplication::notify (this=0xbf8d1588, receiver=0xb2b61b0, event=0xbf8cf7f0) at ../../kdeui/kernel/kapplication.cpp:302
#31 0x02deaa3b in QCoreApplication::notifyInternal (this=0xbf8d1588, receiver=0xb2b61b0, event=0xbf8cf7f0) at kernel/qcoreapplication.cpp:704
#32 0x013ca952 in QCoreApplication::sendEvent (receiver=0xb2b61b0, event=0xbf8cf7f0, alienWidget=0x0, nativeWidget=0xb2b61b0, buttonDown=0x1d08058, lastMouseReceiver=..., spontaneous=true)
    at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:215
#33 QApplicationPrivate::sendMouseEvent (receiver=0xb2b61b0, event=0xbf8cf7f0, alienWidget=0x0, nativeWidget=0xb2b61b0, buttonDown=0x1d08058, lastMouseReceiver=..., spontaneous=true)
    at kernel/qapplication.cpp:2965
#34 0x01456088 in QETWidget::translateMouseEvent (this=0xb2b61b0, event=0xbf8cfd0c) at kernel/qapplication_x11.cpp:4368
#35 0x01455511 in QApplication::x11ProcessEvent (this=0xbf8d1588, event=0xbf8cfd0c) at kernel/qapplication_x11.cpp:3379
#36 0x0148460a in x11EventSourceDispatch (s=0x8fcc168, callback=0, user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:146
#37 0x05e8a5e5 in g_main_context_dispatch () from /lib/libglib-2.0.so.0
#38 0x05e8e2d8 in ?? () from /lib/libglib-2.0.so.0
#39 0x05e8e4b8 in g_main_context_iteration () from /lib/libglib-2.0.so.0
#40 0x02e165d5 in QEventDispatcherGlib::processEvents (this=0x8f9e6e8, flags=...) at kernel/qeventdispatcher_glib.cpp:412
#41 0x01484135 in QGuiEventDispatcherGlib::processEvents (this=0x8f9e6e8, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#42 0x02de9059 in QEventLoop::processEvents (this=0xb471f90, flags=) at kernel/qeventloop.cpp:149
#43 0x02de94aa in QEventLoop::exec (this=0xb471f90, flags=...) at kernel/qeventloop.cpp:201
#44 0x0146a47d in QDragManager::drag (this=0xac0b5428, o=0xb0dab78) at kernel/qdnd_x11.cpp:1984
#45 0x013dc99e in QDrag::exec (this=0xb0dab78, supportedActions=..., defaultDropAction=Qt::IgnoreAction) at kernel/qdrag.cpp:282
#46 0x0829ea9c in Digikam::AbstractAlbumTreeView::startDrag (this=0xa875610, supportedActions=...) at /build/buildd/digikam-1.2.0/digikam/albumtreeview.cpp:473
#47 0x019690fa in QAbstractItemView::mouseMoveEvent (this=0xa875610, event=0xbf8d0cc0) at itemviews/qabstractitemview.cpp:1691
#48 0x019aee14 in QTreeView::mouseMoveEvent (this=0xa875610, event=0xbf8d0cc0) at itemviews/qtreeview.cpp:1894
#49 0x0142269a in QWidget::event (this=0xa875610, event=0xbf8d0cc0) at kernel/qwidget.cpp:7983
#50 0x0181efd3 in QFrame::event (this=0xa875610, e=0xbf8d0cc0) at widgets/qframe.cpp:557
#51 0x018b9382 in QAbstractScrollArea::viewportEvent (this=0xcb47518, e=0x93180b8) at widgets/qabstractscrollarea.cpp:1036
#52 0x0196dbd7 in QAbstractItemView::viewportEvent (this=0xa875610, event=0xbf8d0cc0) at itemviews/qabstractitemview.cpp:1610
#53 0x019aef7c in QTreeView::viewportEvent (this=0xa875610, event=0xbf8d0cc0) at itemviews/qtreeview.cpp:1248
#54 0x0828d4b4 in Digikam::AlbumSelectionTreeView::viewportEvent (this=0xa875610, event=0x93180b8) at /build/buildd/digikam-1.2.0/digikam/albumselectiontreeview.cpp:198
#55 0x018bbc65 in QAbstractScrollAreaPrivate::viewportEvent (this=0xa8753a8, o=0xa872050, e=0xbf8d0cc0) at widgets/qabstractscrollarea_p.h:100
#56 QAbstractScrollAreaFilter::eventFilter (this=0xa8753a8, o=0xa872050, e=0xbf8d0cc0) at widgets/qabstractscrollarea_p.h:116
#57 0x02de9cda in QCoreApplicationPrivate::sendThroughObjectEventFilters (this=0x8fc8f20, receiver=0xa872050, event=0xbf8d0cc0) at kernel/qcoreapplication.cpp:819
#58 0x013c44b9 in QApplicationPrivate::notify_helper (this=0x8fc8f20, receiver=0xa872050, e=0xbf8d0cc0) at kernel/qapplication.cpp:4296
#59 0x013cb9f7 in QApplication::notify (this=0xbf8d1588, receiver=0xa872050, e=0xbf8d0cc0) at kernel/qapplication.cpp:3865
#60 0x07cfdf2a in KApplication::notify (this=0xbf8d1588, receiver=0xa872050, event=0xbf8d0cc0) at ../../kdeui/kernel/kapplication.cpp:302
#61 0x02deaa3b in QCoreApplication::notifyInternal (this=0xbf8d1588, receiver=0xa872050, event=0xbf8d0cc0) at kernel/qcoreapplication.cpp:704
#62 0x013ca952 in QCoreApplication::sendEvent (receiver=0xa872050, event=0xbf8d0cc0, alienWidget=0xa872050, nativeWidget=0x91d61e8, buttonDown=0x1d08058, lastMouseReceiver=..., spontaneous=true)
    at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:215
#63 QApplicationPrivate::sendMouseEvent (receiver=0xa872050, event=0xbf8d0cc0, alienWidget=0xa872050, nativeWidget=0x91d61e8, buttonDown=0x1d08058, lastMouseReceiver=..., spontaneous=true)
    at kernel/qapplication.cpp:2965
#64 0x01456088 in QETWidget::translateMouseEvent (this=0x91d61e8, event=0xbf8d11dc) at kernel/qapplication_x11.cpp:4368
#65 0x01455511 in QApplication::x11ProcessEvent (this=0xbf8d1588, event=0xbf8d11dc) at kernel/qapplication_x11.cpp:3379
#66 0x0148460a in x11EventSourceDispatch (s=0x8fcc168, callback=0, user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:146
#67 0x05e8a5e5 in g_main_context_dispatch () from /lib/libglib-2.0.so.0
#68 0x05e8e2d8 in ?? () from /lib/libglib-2.0.so.0
#69 0x05e8e4b8 in g_main_context_iteration () from /lib/libglib-2.0.so.0
#70 0x02e165d5 in QEventDispatcherGlib::processEvents (this=0x8f9e6e8, flags=...) at kernel/qeventdispatcher_glib.cpp:412
#71 0x01484135 in QGuiEventDispatcherGlib::processEvents (this=0x8f9e6e8, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#72 0x02de9059 in QEventLoop::processEvents (this=0xbf8d14d4, flags=) at kernel/qeventloop.cpp:149
#73 0x02de94aa in QEventLoop::exec (this=0xbf8d14d4, flags=...) at kernel/qeventloop.cpp:201
#74 0x02ded69f in QCoreApplication::exec () at kernel/qcoreapplication.cpp:981
#75 0x013c4577 in QApplication::exec () at kernel/qapplication.cpp:3579
#76 0x083c2c35 in main (argc=5, argv=0xbf8d19d4) at /build/buildd/digikam-1.2.0/digikam/main.cpp:193

Reported using DrKonqi
Comment 1 Marcel Wiesweg 2010-05-14 17:47:38 UTC
Is this reproducable? Any chance album2 was a subalbum of album1, so that while album1 was moved, at any point album2 would be moved as well?

There is a null pointer check missing, easy enough to fix, but I dont know why album2 got null while being dragged.
Comment 2 Raphael Ackermann 2010-05-15 12:31:37 UTC
I haven't tried to reproduce it. 
album2 wasn't a subalbum of album1 so no that wasn't the cause.
Comment 3 Marcel Wiesweg 2010-05-15 14:21:14 UTC
SVN commit 1126674 by mwiesweg:

Check if dropped album (still) exists

CCBUG: 237555

 M  +5 -0      albumdragdrop.cpp  


--- trunk/extragear/graphics/digikam/digikam/albumdragdrop.cpp #1126673:1126674
@@ -62,6 +62,9 @@
 
     PAlbum *destAlbum = model()->albumForIndex(droppedOn);
 
+    if (!destAlbum)
+        return false;
+
     if (DAlbumDrag::canDecode(e->mimeData()))
     {
         KUrl::List urls;
@@ -70,6 +73,8 @@
             return false;
 
         PAlbum *droppedAlbum = AlbumManager::instance()->findPAlbum(albumId);
+        if (!droppedAlbum)
+            return false;
 
         // TODO Copy?
         KMenu popMenu(view);
Comment 4 Marcel Wiesweg 2010-05-15 14:22:45 UTC
Crash should be fixed. Reopen if problems persist.