Bug 194116 - digicam crashed for no obvious reason
Summary: digicam crashed for no obvious reason
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Database-Models (show other bugs)
Version: 1.0.0
Platform: Unlisted Binaries Linux
: NOR crash
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-05-26 03:59 UTC by simon
Modified: 2017-08-15 05:35 UTC (History)
2 users (show)

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


Attachments
crash (40.14 KB, image/png)
2009-05-27 09:17 UTC, Andi Clemens
Details

Note You need to log in before you can comment on or make changes to this bug.
Description simon 2009-05-26 03:59:53 UTC
Application that crashed: digikam
Version of the application: 0.11.0-svn
KDE Version: 4.2.87 (KDE 4.2.87 (KDE 4.3 >= 20090519))
Qt Version: 4.5.1
Operating System: Linux 2.6.30-rc6-git3 x86_64

What I was doing when the application crashed:

hi,
tried digikam with a new user and suddenly when clicking around in the albumview it crashed, no idea

 -- Backtrace:
Application: digiKam (digikam), signal: Segmentation fault
[Current thread is 0 (LWP 11018)]

Thread 16 (Thread 0x4279a950 (LWP 11019)):
#0  0x00007f2f53e019b9 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#1  0x00007f2f5406f875 in QWaitCondition::wait () from /usr/lib64/qt4/libQtCore.so.4
#2  0x000000000060ecf9 in Digikam::ScanController::run (this=0xb50270) at /var/tmp/portage/media-gfx/digikam-9999/work/digikam-9999/digikam/scancontroller.cpp:455
#3  0x00007f2f5406ebf0 in ?? () from /usr/lib64/qt4/libQtCore.so.4
#4  0x00007f2f53dfd097 in start_thread () from /lib/libpthread.so.0
#5  0x00007f2f52333ccd in clone () from /lib/libc.so.6
#6  0x0000000000000000 in ?? ()

Thread 15 (Thread 0x41d02950 (LWP 11021)):
#0  0x00007f2f53e009d1 in __pthread_mutex_unlock_usercnt () from /lib/libpthread.so.0
#1  0x00007f2f4f942126 in g_main_context_query () from /usr/lib/libglib-2.0.so.0
#2  0x00007f2f4f946446 in ?? () from /usr/lib/libglib-2.0.so.0
#3  0x00007f2f4f946c9b in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#4  0x00007f2f54170465 in QEventDispatcherGlib::processEvents () from /usr/lib64/qt4/libQtCore.so.4
#5  0x00007f2f54146f85 in QEventLoop::processEvents () from /usr/lib64/qt4/libQtCore.so.4
#6  0x00007f2f541470f6 in QEventLoop::exec () from /usr/lib64/qt4/libQtCore.so.4
#7  0x00007f2f5406c04c in QThread::exec () from /usr/lib64/qt4/libQtCore.so.4
#8  0x00007f2f5406ebf0 in ?? () from /usr/lib64/qt4/libQtCore.so.4
#9  0x00007f2f53dfd097 in start_thread () from /lib/libpthread.so.0
#10 0x00007f2f52333ccd in clone () from /lib/libc.so.6
#11 0x0000000000000000 in ?? ()

Thread 14 (Thread 0x40fc2950 (LWP 11022)):
#0  0xffffffffff60016b in ?? ()
#1  0x0000000040fc1d50 in ?? ()
#2  0x00007fffa3bab533 in ?? ()
Backtrace stopped: previous frame identical to this frame (corrupt stack?)

Thread 13 (Thread 0x42f9b950 (LWP 11023)):
#0  0x00007f2f53e019b9 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#1  0x00007f2f5406f875 in QWaitCondition::wait () from /usr/lib64/qt4/libQtCore.so.4
#2  0x00007f2f55faf71a in Digikam::LoadSaveThread::run (this=0xdfa640) at /var/tmp/portage/media-gfx/digikam-9999/work/digikam-9999/libs/threadimageio/loadsavethread.cpp:136
#3  0x00007f2f5406ebf0 in ?? () from /usr/lib64/qt4/libQtCore.so.4
#4  0x00007f2f53dfd097 in start_thread () from /lib/libpthread.so.0
#5  0x00007f2f52333ccd in clone () from /lib/libc.so.6
#6  0x0000000000000000 in ?? ()

Thread 12 (Thread 0x4379c950 (LWP 11024)):
#0  0x00007f2f53e019b9 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#1  0x00007f2f5406f875 in QWaitCondition::wait () from /usr/lib64/qt4/libQtCore.so.4
#2  0x00007f2f55faf71a in Digikam::LoadSaveThread::run (this=0xe10140) at /var/tmp/portage/media-gfx/digikam-9999/work/digikam-9999/libs/threadimageio/loadsavethread.cpp:136
#3  0x00007f2f5406ebf0 in ?? () from /usr/lib64/qt4/libQtCore.so.4
#4  0x00007f2f53dfd097 in start_thread () from /lib/libpthread.so.0
#5  0x00007f2f52333ccd in clone () from /lib/libc.so.6
#6  0x0000000000000000 in ?? ()

Thread 11 (Thread 0x43f9d950 (LWP 11025)):
#0  0x00007f2f53e01c3d in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#1  0x00007f2f44c2caf5 in ?? () from /usr/lib64/libxine.so.1
#2  0x00007f2f53dfd097 in start_thread () from /lib/libpthread.so.0
#3  0x00007f2f52333ccd in clone () from /lib/libc.so.6
#4  0x0000000000000000 in ?? ()

Thread 10 (Thread 0x4479e950 (LWP 11026)):
#0  0x00007f2f5232da62 in select () from /lib/libc.so.6
#1  0x00007f2f44c50354 in xine_usec_sleep () from /usr/lib64/libxine.so.1
#2  0x00007f2f44c38900 in ?? () from /usr/lib64/libxine.so.1
#3  0x00007f2f53dfd097 in start_thread () from /lib/libpthread.so.0
#4  0x00007f2f52333ccd in clone () from /lib/libc.so.6
#5  0x0000000000000000 in ?? ()

Thread 9 (Thread 0x44f9f950 (LWP 11027)):
#0  0x00007f2f5232bbb6 in poll () from /lib/libc.so.6
#1  0x00007f2f4f9465e4 in ?? () from /usr/lib/libglib-2.0.so.0
#2  0x00007f2f4f946c9b in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#3  0x00007f2f54170465 in QEventDispatcherGlib::processEvents () from /usr/lib64/qt4/libQtCore.so.4
#4  0x00007f2f54146f85 in QEventLoop::processEvents () from /usr/lib64/qt4/libQtCore.so.4
#5  0x00007f2f541470f6 in QEventLoop::exec () from /usr/lib64/qt4/libQtCore.so.4
#6  0x00007f2f5406c04c in QThread::exec () from /usr/lib64/qt4/libQtCore.so.4
#7  0x00007f2f44e8349e in ?? () from /usr/lib64/kde4/plugins/phonon_backend/phonon_xine.so
#8  0x00007f2f5406ebf0 in ?? () from /usr/lib64/qt4/libQtCore.so.4
#9  0x00007f2f53dfd097 in start_thread () from /lib/libpthread.so.0
#10 0x00007f2f52333ccd in clone () from /lib/libc.so.6
#11 0x0000000000000000 in ?? ()

Thread 8 (Thread 0x457a0950 (LWP 11030)):
#0  0x00007f2f5232bbb6 in poll () from /lib/libc.so.6
#1  0x00007f2f405c6969 in ?? () from /usr/lib64/xine/plugins/1.26/xineplug_ao_out_alsa.so
#2  0x00007f2f53dfd097 in start_thread () from /lib/libpthread.so.0
#3  0x00007f2f52333ccd in clone () from /lib/libc.so.6
#4  0x0000000000000000 in ?? ()

Thread 7 (Thread 0x45fa1950 (LWP 11031)):
#0  0x00007f2f53e019b9 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#1  0x00007f2f44c39e7d in ?? () from /usr/lib64/libxine.so.1
#2  0x00007f2f44c3acc8 in ?? () from /usr/lib64/libxine.so.1
#3  0x00007f2f53dfd097 in start_thread () from /lib/libpthread.so.0
#4  0x00007f2f52333ccd in clone () from /lib/libc.so.6
#5  0x0000000000000000 in ?? ()

Thread 6 (Thread 0x467a2950 (LWP 11032)):
#0  0x00007f2f53e019b9 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#1  0x00007f2f5406f875 in QWaitCondition::wait () from /usr/lib64/qt4/libQtCore.so.4
#2  0x00007f2f55faf71a in Digikam::LoadSaveThread::run (this=0x1668bc0) at /var/tmp/portage/media-gfx/digikam-9999/work/digikam-9999/libs/threadimageio/loadsavethread.cpp:136
#3  0x00007f2f5406ebf0 in ?? () from /usr/lib64/qt4/libQtCore.so.4
#4  0x00007f2f53dfd097 in start_thread () from /lib/libpthread.so.0
#5  0x00007f2f52333ccd in clone () from /lib/libc.so.6
#6  0x0000000000000000 in ?? ()

Thread 5 (Thread 0x46fa3950 (LWP 11033)):
#0  0xffffffffff60016b in ?? ()
#1  0x0000000046fa2d50 in ?? ()
#2  0x00007fffa3bab533 in ?? ()
Backtrace stopped: previous frame identical to this frame (corrupt stack?)

Thread 4 (Thread 0x477a4950 (LWP 11034)):
#0  0xffffffffff60016b in ?? ()
#1  0x00000000477a3d50 in ?? ()
#2  0x00007fffa3bab533 in ?? ()
Backtrace stopped: previous frame identical to this frame (corrupt stack?)

Thread 3 (Thread 0x487a6950 (LWP 11053)):
#0  0x00007f2f53e019b9 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#1  0x00007f2f5406f875 in QWaitCondition::wait () from /usr/lib64/qt4/libQtCore.so.4
#2  0x00007f2f55faf71a in Digikam::LoadSaveThread::run (this=0x2178b90) at /var/tmp/portage/media-gfx/digikam-9999/work/digikam-9999/libs/threadimageio/loadsavethread.cpp:136
#3  0x00007f2f5406ebf0 in ?? () from /usr/lib64/qt4/libQtCore.so.4
#4  0x00007f2f53dfd097 in start_thread () from /lib/libpthread.so.0
#5  0x00007f2f52333ccd in clone () from /lib/libc.so.6
#6  0x0000000000000000 in ?? ()

Thread 2 (Thread 0x47fa5950 (LWP 11054)):
#0  0x00007f2f53e019b9 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#1  0x00007f2f5406f875 in QWaitCondition::wait () from /usr/lib64/qt4/libQtCore.so.4
#2  0x00007f2f55faf71a in Digikam::LoadSaveThread::run (this=0x1d6b180) at /var/tmp/portage/media-gfx/digikam-9999/work/digikam-9999/libs/threadimageio/loadsavethread.cpp:136
#3  0x00007f2f5406ebf0 in ?? () from /usr/lib64/qt4/libQtCore.so.4
#4  0x00007f2f53dfd097 in start_thread () from /lib/libpthread.so.0
#5  0x00007f2f52333ccd in clone () from /lib/libc.so.6
#6  0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7f2f58bfb760 (LWP 11018)):
[KCrash Handler]
#5  0x00007f2f5344a76d in ?? () from /usr/lib64/qt4/libQtGui.so.4
#6  0x00007f2f5344a8fd in QSortFilterProxyModel::mapToSource () from /usr/lib64/qt4/libQtGui.so.4
#7  0x00007f2f55bb837f in Digikam::ImageFilterModel::data (this=0xd0f0f0, index=@0x7fffa3a621d0, role=<value optimized out>)
    at /var/tmp/portage/media-gfx/digikam-9999/work/digikam-9999/libs/models/imagefiltermodel.cpp:197
#8  0x0000000000495ee1 in QModelIndex::data (this=0x0, arole=536) at /usr/include/qt4/QtCore/qabstractitemmodel.h:378
#9  0x00000000005dfa2f in Digikam::ImageCategorizedView::albumAt (this=<value optimized out>, pos=@0x7fffa3a63630)
    at /var/tmp/portage/media-gfx/digikam-9999/work/digikam-9999/digikam/imagecategorizedview.cpp:564
#10 0x00000000005e8e74 in Digikam::ImageDragDropHandler::dropEvent (this=0xdf9860, abstractview=0xd1c8a0, e=0x7fffa3a63610, droppedOn=@0x7fffa3a62a50)
    at /var/tmp/portage/media-gfx/digikam-9999/work/digikam-9999/digikam/imagedragdrop.cpp:86
#11 0x00000000005dd881 in Digikam::ImageCategorizedView::dropEvent (this=0xd1c8a0, e=0x7fffa3a63610) at /var/tmp/portage/media-gfx/digikam-9999/work/digikam-9999/digikam/imagecategorizedview.cpp:920
#12 0x00007f2f52f35d57 in QWidget::event () from /usr/lib64/qt4/libQtGui.so.4
#13 0x00007f2f532ba92b in QFrame::event () from /usr/lib64/qt4/libQtGui.so.4
#14 0x00007f2f5333f58a in QAbstractScrollArea::viewportEvent () from /usr/lib64/qt4/libQtGui.so.4
#15 0x00007f2f533d32ba in QAbstractItemView::viewportEvent () from /usr/lib64/qt4/libQtGui.so.4
#16 0x00000000005de8f8 in Digikam::ImageCategorizedView::viewportEvent (this=0xd1c8a0, event=0x7fffa3a63610)
    at /var/tmp/portage/media-gfx/digikam-9999/work/digikam-9999/digikam/imagecategorizedview.cpp:875
#17 0x00007f2f53340f88 in ?? () from /usr/lib64/qt4/libQtGui.so.4
#18 0x00007f2f541484cc in QCoreApplicationPrivate::sendThroughObjectEventFilters () from /usr/lib64/qt4/libQtCore.so.4
#19 0x00007f2f52ee92cf in QApplicationPrivate::notify_helper () from /usr/lib64/qt4/libQtGui.so.4
#20 0x00007f2f52ef0c29 in QApplication::notify () from /usr/lib64/qt4/libQtGui.so.4
#21 0x00007f2f54f34311 in KApplication::notify (this=0x7fffa3a68cb0, receiver=0xcd3480, event=0x7fffa3a63610)
    at /var/tmp/portage/kde-base/kdelibs-9999-r1/work/kdelibs-9999/kdeui/kernel/kapplication.cpp:302
#22 0x00007f2f54147cf3 in QCoreApplication::notifyInternal () from /usr/lib64/qt4/libQtCore.so.4
#23 0x00007f2f52f59e62 in ?? () from /usr/lib64/qt4/libQtGui.so.4
#24 0x00007f2f52f5a147 in QDragManager::drop () from /usr/lib64/qt4/libQtGui.so.4
#25 0x00007f2f52f5ca2f in QDragManager::eventFilter () from /usr/lib64/qt4/libQtGui.so.4
#26 0x00007f2f54147c51 in QCoreApplicationPrivate::sendThroughApplicationEventFilters () from /usr/lib64/qt4/libQtCore.so.4
#27 0x00007f2f52ee9276 in QApplicationPrivate::notify_helper () from /usr/lib64/qt4/libQtGui.so.4
#28 0x00007f2f52ef08c8 in QApplication::notify () from /usr/lib64/qt4/libQtGui.so.4
#29 0x00007f2f54f34311 in KApplication::notify (this=0x7fffa3a68cb0, receiver=0x1d3a0e0, event=0x7fffa3a63f60)
    at /var/tmp/portage/kde-base/kdelibs-9999-r1/work/kdelibs-9999/kdeui/kernel/kapplication.cpp:302
#30 0x00007f2f54147cf3 in QCoreApplication::notifyInternal () from /usr/lib64/qt4/libQtCore.so.4
#31 0x00007f2f52ef029b in QApplicationPrivate::sendMouseEvent () from /usr/lib64/qt4/libQtGui.so.4
#32 0x00007f2f52f4e0b8 in ?? () from /usr/lib64/qt4/libQtGui.so.4
#33 0x00007f2f52f4c908 in QApplication::x11ProcessEvent () from /usr/lib64/qt4/libQtGui.so.4
#34 0x00007f2f52f71ae2 in ?? () from /usr/lib64/qt4/libQtGui.so.4
#35 0x00007f2f4f9434b2 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#36 0x00007f2f4f946795 in ?? () from /usr/lib/libglib-2.0.so.0
#37 0x00007f2f4f946c9b in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#38 0x00007f2f5417044e in QEventDispatcherGlib::processEvents () from /usr/lib64/qt4/libQtCore.so.4
#39 0x00007f2f52f718cf in ?? () from /usr/lib64/qt4/libQtGui.so.4
#40 0x00007f2f54146f85 in QEventLoop::processEvents () from /usr/lib64/qt4/libQtCore.so.4
#41 0x00007f2f541470f6 in QEventLoop::exec () from /usr/lib64/qt4/libQtCore.so.4
#42 0x00007f2f52f5c74a in QDragManager::drag () from /usr/lib64/qt4/libQtGui.so.4
#43 0x00007f2f52efa6fa in QDrag::exec () from /usr/lib64/qt4/libQtGui.so.4
#44 0x00007f2f52efa783 in QDrag::exec () from /usr/lib64/qt4/libQtGui.so.4
#45 0x00000000005ddb02 in Digikam::ImageCategorizedView::startDrag (this=<value optimized out>, supportedActions=@0x7fffa3a65ef0)
    at /var/tmp/portage/media-gfx/digikam-9999/work/digikam-9999/digikam/imagecategorizedview.cpp:891
#46 0x00007f2f533cf609 in QAbstractItemView::mouseMoveEvent () from /usr/lib64/qt4/libQtGui.so.4
#47 0x00007f2f533e82fa in QListView::mouseMoveEvent () from /usr/lib64/qt4/libQtGui.so.4
#48 0x00000000005f959c in KCategorizedView::mouseMoveEvent (this=0x7fffa3a62130, event=0xd09800) at /var/tmp/portage/media-gfx/digikam-9999/work/digikam-9999/digikam/kcategorizedview.cpp:1097
#49 0x00000000005ddcf1 in Digikam::ImageCategorizedView::mouseMoveEvent (this=0xd1c8a0, event=0x7fffa3a67060)
    at /var/tmp/portage/media-gfx/digikam-9999/work/digikam-9999/digikam/imagecategorizedview.cpp:733
#50 0x00007f2f52f35db7 in QWidget::event () from /usr/lib64/qt4/libQtGui.so.4
#51 0x00007f2f532ba92b in QFrame::event () from /usr/lib64/qt4/libQtGui.so.4
#52 0x00007f2f5333f58a in QAbstractScrollArea::viewportEvent () from /usr/lib64/qt4/libQtGui.so.4
#53 0x00007f2f533d32ba in QAbstractItemView::viewportEvent () from /usr/lib64/qt4/libQtGui.so.4
#54 0x00000000005de8f8 in Digikam::ImageCategorizedView::viewportEvent (this=0xd1c8a0, event=0x7fffa3a67060)
    at /var/tmp/portage/media-gfx/digikam-9999/work/digikam-9999/digikam/imagecategorizedview.cpp:875
#55 0x00007f2f53340f88 in ?? () from /usr/lib64/qt4/libQtGui.so.4
#56 0x00007f2f541484cc in QCoreApplicationPrivate::sendThroughObjectEventFilters () from /usr/lib64/qt4/libQtCore.so.4
#57 0x00007f2f52ee92cf in QApplicationPrivate::notify_helper () from /usr/lib64/qt4/libQtGui.so.4
#58 0x00007f2f52ef08c8 in QApplication::notify () from /usr/lib64/qt4/libQtGui.so.4
#59 0x00007f2f54f34311 in KApplication::notify (this=0x7fffa3a68cb0, receiver=0xcd3480, event=0x7fffa3a67060)
    at /var/tmp/portage/kde-base/kdelibs-9999-r1/work/kdelibs-9999/kdeui/kernel/kapplication.cpp:302
#60 0x00007f2f54147cf3 in QCoreApplication::notifyInternal () from /usr/lib64/qt4/libQtCore.so.4
#61 0x00007f2f52ef029b in QApplicationPrivate::sendMouseEvent () from /usr/lib64/qt4/libQtGui.so.4
#62 0x00007f2f52f4e0b8 in ?? () from /usr/lib64/qt4/libQtGui.so.4
#63 0x00007f2f52f4c908 in QApplication::x11ProcessEvent () from /usr/lib64/qt4/libQtGui.so.4
#64 0x00007f2f52f71ae2 in ?? () from /usr/lib64/qt4/libQtGui.so.4
#65 0x00007f2f4f9434b2 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#66 0x00007f2f4f946795 in ?? () from /usr/lib/libglib-2.0.so.0
#67 0x00007f2f4f946c9b in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#68 0x00007f2f5417044e in QEventDispatcherGlib::processEvents () from /usr/lib64/qt4/libQtCore.so.4
#69 0x00007f2f52f718cf in ?? () from /usr/lib64/qt4/libQtGui.so.4
#70 0x00007f2f54146f85 in QEventLoop::processEvents () from /usr/lib64/qt4/libQtCore.so.4
#71 0x00007f2f541470f6 in QEventLoop::exec () from /usr/lib64/qt4/libQtCore.so.4
#72 0x00007f2f5414931b in QCoreApplication::exec () from /usr/lib64/qt4/libQtCore.so.4
#73 0x000000000063222c in main (argc=5, argv=0x7fffa3a692a8) at /var/tmp/portage/media-gfx/digikam-9999/work/digikam-9999/digikam/main.cpp:184
Comment 1 caulier.gilles 2009-05-26 06:28:33 UTC
Marcel,

I'm not sure if it's your new code but look :

/var/tmp/portage/media-gfx/digikam-9999/work/digikam-9999/libs/models/imagefiltermodel.cpp:197
#8  0x0000000000495ee1 in QModelIndex::data (this=0x0, arole=536) at
/usr/include/qt4/QtCore/qabstractitemmodel.h:378
#9  0x00000000005dfa2f in Digikam::ImageCategorizedView::albumAt (this=<value
optimized out>, pos=@0x7fffa3a63630)
    at
/var/tmp/portage/media-gfx/digikam-9999/work/digikam-9999/digikam/imagecategorizedview.cpp:564
#10 0x00000000005e8e74 in Digikam::ImageDragDropHandler::dropEvent
(this=0xdf9860, abstractview=0xd1c8a0, e=0x7fffa3a63610,
droppedOn=@0x7fffa3a62a50)
    at
/var/tmp/portage/media-gfx/digikam-9999/work/digikam-9999/digikam/imagedragdrop.cpp:86

Gilles
Comment 2 Marcel Wiesweg 2009-05-26 18:27:23 UTC
I think this is the same problem that Andi has sent backtraces of. I have not yet been able to reproduce this. Must think about it.
Comment 3 Andi Clemens 2009-05-26 18:54:58 UTC
Yes, seems to be the same.

Simon,
can you go into AlbumIconView, click on one item and drag it just some millimeters, then release (although it might also crash when dragging the item centimeters or even meters around the screen :-))

If it crashing now, we are at least aware of it :D

Andi
Comment 4 simon 2009-05-26 19:17:13 UTC
yes it crashes
Comment 5 Marcel Wiesweg 2009-05-26 22:38:43 UTC
I managed to get this crash just once when running under valgrind, but not since then with or without valgrind. Does it happen in all albums or only with some albums, tags, searches? I have added Q_ASSERTs and a debug statement in albumAt to check if the returned model index is valid (it should be the first index in the category under the mouse; if dragging the first image, it should be the model index (0,0) )
Comment 6 Andi Clemens 2009-05-26 22:48:03 UTC
It doesn't seem to crash in every album, only in some specific. But they have the same permissions and filetypes as the other ones. Also the names are normal, for example "Urlaub 2008" crashes, but "Weihnachtsfeier 2007" does not.
Here is what I get from the console:

digikam(5955) Digikam::ImageCategorizedView::albumAt: QModelIndex(0,0,0xbe7e5f0,Digikam::ImageAlbumFilterModel(0x9eeb0a0) )
digikam(5955) Digikam::ImageCategorizedView::albumAt: QModelIndex(0,0,0xbe7e5f0,Digikam::ImageAlbumFilterModel(0x9eeb0a0) )
digikam(5955) Digikam::ImageCategorizedView::albumAt: QModelIndex(0,0,0xbe7e5f0,Digikam::ImageAlbumFilterModel(0x9eeb0a0) )
digikam(5955) Digikam::ImageCategorizedView::albumAt: QModelIndex(0,0,0xbe7e5f0,Digikam::ImageAlbumFilterModel(0x9eeb0a0) )
digikam(5955) Digikam::ImageCategorizedView::albumAt: QModelIndex(0,0,0xbe7e5f0,Digikam::ImageAlbumFilterModel(0x9eeb0a0) )
digikam(5955) Digikam::ImageCategorizedView::albumAt: QModelIndex(0,0,0xbe7e5f0,Digikam::ImageAlbumFilterModel(0x9eeb0a0) )
digikam(5955) Digikam::ImageCategorizedView::albumAt: QModelIndex(0,0,0xbe7e5f0,Digikam::ImageAlbumFilterModel(0x9eeb0a0) )
digikam(5955) Digikam::ImageCategorizedView::albumAt: QModelIndex(0,0,0xbe7e5f0,Digikam::ImageAlbumFilterModel(0x9eeb0a0) )
digikam(5955) Digikam::ImageCategorizedView::albumAt: QModelIndex(0,0,0xbe7e5f0,Digikam::ImageAlbumFilterModel(0x9eeb0a0) )
digikam(5955) Digikam::ImageCategorizedView::albumAt: QModelIndex(0,0,0xbe7e5f0,Digikam::ImageAlbumFilterModel(0x9eeb0a0) )
digikam(5955) Digikam::ImageCategorizedView::albumAt: QModelIndex(0,0,0xbe7e5f0,Digikam::ImageAlbumFilterModel(0x9eeb0a0) )
digikam(5955) Digikam::ImageCategorizedView::albumAt: QModelIndex(0,0,0xbe7e5f0,Digikam::ImageAlbumFilterModel(0x9eeb0a0) )
digikam(5955) Digikam::ImageCategorizedView::albumAt: QModelIndex(0,0,0xbe7e5f0,Digikam::ImageAlbumFilterModel(0x9eeb0a0) )
digikam(5955) Digikam::ImageCategorizedView::albumAt: QModelIndex(0,0,0xbe7e5f0,Digikam::ImageAlbumFilterModel(0x9eeb0a0) )
digikam(5955) Digikam::ImageCategorizedView::albumAt: QModelIndex(0,0,0xbe7e5f0,Digikam::ImageAlbumFilterModel(0x9eeb0a0) )
digikam(5955) Digikam::ImageCategorizedView::albumAt: QModelIndex(0,0,0xbe7e5f0,Digikam::ImageAlbumFilterModel(0x9eeb0a0) )
digikam(5955) Digikam::ImageCategorizedView::albumAt: QModelIndex(0,0,0xbe7e5f0,Digikam::ImageAlbumFilterModel(0x9eeb0a0) )
digikam(5955) Digikam::ImageCategorizedView::albumAt: QModelIndex(0,0,0xbe7e5f0,Digikam::ImageAlbumFilterModel(0x9eeb0a0) )


Andi
Comment 7 Andi Clemens 2009-05-27 09:17:30 UTC
Created attachment 34039 [details]
crash

Marcel,

for me it always crashes here... maybe it helps?

Andi
Comment 8 Marcel Wiesweg 2009-05-28 21:16:47 UTC
SVN commit 974225 by mwiesweg:

Add temporary debugging code to catch the crash that I dont get.
CCBUG: 194116

 M  +6 -0      imagefiltermodel.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=974225
Comment 9 Andi Clemens 2009-05-28 21:22:06 UTC
Marcel,

maybe a stupid question but what Qt version are you using? I'm running 4.5.1 here. Maybe this is some indicator?

Andi
Comment 10 Marcel Wiesweg 2009-05-28 21:23:54 UTC
Added some lines. I would be interested if / which one of the added lines crashes and the debug output prior to the crash.
Comment 11 Marcel Wiesweg 2009-05-28 21:26:15 UTC
I'm running latest 4.4.x. Yes this is a difference. I was reluctant to upgrade so far. Simon is also at 4.5. Gilles, running 4.4?
Comment 12 Andi Clemens 2009-05-28 21:28:56 UTC
Current console output after D&D:

digikam(4579) Digikam::ImageFilterModel::data: Query album id of QModelIndex(0,0,0xa1cb558,Digikam::ImageAlbumFilterModel(0xa1cd770) )  77 77
digikam(4579) Digikam::ImageFilterModel::data: QModelIndex(0,0,0x0,Digikam::ImageAlbumModel(0xa1cc520) )  2407 false
digikam(4579) Digikam::ImageFilterModel::data: Query album id of QModelIndex(0,0,0xa1cb558,Digikam::ImageAlbumFilterModel(0xa1cd770) )  77 77
digikam(4579) Digikam::ImageFilterModel::data: QModelIndex(0,0,0x0,Digikam::ImageAlbumModel(0xa1cc520) )  2407 false
digikam(4579) Digikam::ImageFilterModel::data: Query album id of QModelIndex(0,0,0xa1cb558,Digikam::ImageAlbumFilterModel(0xa1cd770) )  77 77
digikam(4579) Digikam::ImageFilterModel::data: QModelIndex(0,0,0x0,Digikam::ImageAlbumModel(0xa1cc520) )  2407 false
digikam(4579) Digikam::ImageFilterModel::data: Query album id of QModelIndex(0,0,0xa1cb558,Digikam::ImageAlbumFilterModel(0xa1cd770) )  77 77
digikam(4579) Digikam::ImageFilterModel::data: QModelIndex(0,0,0x0,Digikam::ImageAlbumModel(0xa1cc520) )  2407 false
digikam(4579) Digikam::ImageFilterModel::data: Query album id of QModelIndex(0,0,0xa1cb558,Digikam::ImageAlbumFilterModel(0xa1cd770) )  77 77
digikam(4579) Digikam::ImageFilterModel::data: QModelIndex(0,0,0x0,Digikam::ImageAlbumModel(0xa1cc520) )  2407 false
digikam(4579) Digikam::ImageFilterModel::data: Query album id of QModelIndex(0,0,0xa1cb558,Digikam::ImageAlbumFilterModel(0xa1cd770) )  77 77
digikam(4579) Digikam::ImageFilterModel::data: QModelIndex(0,0,0x0,Digikam::ImageAlbumModel(0xa1cc520) )  2407 false
digikam(4579) Digikam::ImageFilterModel::data: Query album id of QModelIndex(0,0,0xa1cb558,Digikam::ImageAlbumFilterModel(0xa1cd770) )  77 77
digikam(4579) Digikam::ImageFilterModel::data: QModelIndex(0,0,0x0,Digikam::ImageAlbumModel(0xa1cc520) )  2407 false
digikam(4579) Digikam::ImageFilterModel::data: Query album id of QModelIndex(0,0,0xa1cb558,Digikam::ImageAlbumFilterModel(0xa1cd770) )  77 77
digikam(4579) Digikam::ImageFilterModel::data: QModelIndex(0,0,0x0,Digikam::ImageAlbumModel(0xa1cc520) )  2407 false
digikam(4579) Digikam::ImageFilterModel::data: Query album id of QModelIndex(0,0,0xa1cb558,Digikam::ImageAlbumFilterModel(0xa1cd770) )  77 77
digikam(4579) Digikam::ImageFilterModel::data: QModelIndex(0,0,0x0,Digikam::ImageAlbumModel(0xa1cc520) )  2407 false
digikam(4579) Digikam::ImageFilterModel::data: Query album id of QModelIndex(0,0,0xa1cb558,Digikam::ImageAlbumFilterModel(0xa1cd770) )  77 77
digikam(4579) Digikam::ImageFilterModel::data: QModelIndex(0,0,0x0,Digikam::ImageAlbumModel(0xa1cc520) )  2407 false
digikam(4579) Digikam::ImageFilterModel::data: Query album id of QModelIndex(0,0,0xa1cb558,Digikam::ImageAlbumFilterModel(0xa1cd770) )  77 77
digikam(4579) Digikam::ImageFilterModel::data: QModelIndex(0,0,0x0,Digikam::ImageAlbumModel(0xa1cc520) )  2407 false
digikam(4579) Digikam::ImageFilterModel::data: Query album id of QModelIndex(0,0,0xa1cb558,Digikam::ImageAlbumFilterModel(0xa1cd770) )  77 77
digikam(4579) Digikam::ImageFilterModel::data: QModelIndex(0,0,0x0,Digikam::ImageAlbumModel(0xa1cc520) )  2407 false
digikam(4579) Digikam::ImageCategorizedView::albumAt: QModelIndex(0,0,0xa20cce0,Digikam::ImageAlbumFilterModel(0xa1cd770) )
digikam(4579) Digikam::ImageFilterModel::data: Query album id of QModelIndex(0,0,0xa20cce0,Digikam::ImageAlbumFilterModel(0xa1cd770) )  77 77


Andi
Comment 13 Andi Clemens 2009-05-28 21:29:50 UTC
Strange that I get this data output so many times. It is always the same object as far as I see.
Comment 14 Marcel Wiesweg 2009-05-28 21:50:01 UTC
It is also called when the category drawer is repainted. And repaints seem to occur very often, here as well.
The interesting part is this:
QModelIndex(0,0,0xa1cb558,Digikam::ImageAlbumFilterModel(0xa1cd770) )
QModelIndex(0,0,0xa20cce0,Digikam::ImageAlbumFilterModel(0xa1cd770) )

I will follow this trace! For me, the internal pointers of QSortFilterProxyModel are the same in both cases.
Comment 15 caulier.gilles 2009-05-28 21:52:34 UTC
I'm running 4.5.0 (Mandriva 2009.1), everywhere now...

Gilles
Comment 16 Marcel Wiesweg 2009-05-29 09:26:29 UTC
SVN commit 974370 by mwiesweg:

To retrieve the index in categoryAt(), use the same code like for drawNewCategory():
call model->index(storedIndex.row(), 0) instead of returning storedIndex.
This leads to the fact that storing QModelIndexes is illegal and leads to crashes;
remove all stored QModelIndexes from Private

CCBUG: 194116

 M  +16 -23    kcategorizedview.cpp  
 M  +3 -4      kcategorizedview_p.h  


WebSVN link: http://websvn.kde.org/?view=rev&revision=974370
Comment 17 Andi Clemens 2009-05-29 09:37:26 UTC
Yes,

seems to work now. I'll commit the updated spreadsheet now.
Thanks Marcel!!!

Andi
Comment 18 caulier.gilles 2009-05-29 09:49:56 UTC
Simon,

Can you checkout last digiKam code from svn and confirm that crash disappear for you ?  

Thanks in advance

Gilles Caulier
Comment 19 simon 2009-05-29 10:46:27 UTC
works flawless, thanks guys!