Bug 172733 - Crash on Synchronize images with database
Summary: Crash on Synchronize images with database
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Maintenance-Database (show other bugs)
Version: 0.10.0
Platform: unspecified Linux
: NOR crash
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-10-13 17:31 UTC by René Krell
Modified: 2017-07-26 06:45 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In: 0.10.0


Attachments
The backtrace of the crash (6.41 KB, text/plain)
2008-10-13 17:33 UTC, René Krell
Details

Note You need to log in before you can comment on or make changes to this bug.
Description René Krell 2008-10-13 17:31:14 UTC
Version:           0.10.0-beta4 (using 4.1.2 (KDE 4.1.2) "release 44.5", KDE:KDE4:Factory:Desktop / openSUSE_11.0)
Compiler:          gcc
OS:                Linux (i686) release 2.6.25.16-0.1-default

New in 0.10.0 Beta4: Each time I call Synchronize images with database Digikam crashes with a backtrace I will append later.

BTW: I have installed mysql 5.0.67, if this plays a role.
Comment 1 René Krell 2008-10-13 17:33:28 UTC
Created attachment 27857 [details]
The backtrace of the crash

Note: This crash did not happen in Beta3, yet.
Comment 2 caulier.gilles 2008-10-13 18:46:10 UTC
Same here. crash appears in Qt...

Gilles Caulier
Comment 3 Andi Clemens 2008-10-13 20:10:56 UTC
Hmm works fine here...
Comment 4 Gerhard Kulzer 2008-10-14 08:03:39 UTC
Crashes here too, at the very end of the update.

Gerhard
Comment 5 René Krell 2008-10-14 09:05:08 UTC
(In reply to comment #4)
> Crashes here too, at the very end of the update.

Hi Gerhard, for seeing whether this is possibly a distribution-specific bug it could be helpful to get the details of your crash, too, that means
Digikam+Qt version or svn release, special repositories of precompiled packages if you use those, distribution, compiler, kernel + processor and a backtrace with debug symbols installed. Are you able to reproduce this again and provide them? Thanks, René
Comment 6 Andi Clemens 2008-10-14 12:27:18 UTC
Now I can confirm this, too, but I get a different BT, for me it looks like a out-of-range error when accessing the QList:

#0  0xb7f95424 in __kernel_vsyscall ()
#1  0xb556c720 in raise () from /lib/libc.so.6
#2  0xb556e058 in abort () from /lib/libc.so.6
#3  0xb7e11965 in qt_message_output () from /usr/lib/libQtCore.so.4
#4  0xb7e11a17 in qFatal () from /usr/lib/libQtCore.so.4
#5  0xb7e11a5d in qt_assert_x () from /usr/lib/libQtCore.so.4
#6  0x080961e6 in QList<Digikam::ImageInfo>::operator[] (this=0xac4047e0, i=15) at /usr/include/QtCore/qlist.h:395
#7  0x08176dd9 in Digikam::BatchSyncMetadata::parsePicture (this=0xac40c320) at /home/andi/Programmieren/workspace/digikam_KDE4/digikam/utilities/batch/batchsyncmetadata.cpp:137
#8  0x08176f4f in Digikam::BatchSyncMetadata::parsePicture (this=0xac40c320) at /home/andi/Programmieren/workspace/digikam_KDE4/digikam/utilities/batch/batchsyncmetadata.cpp:149
#9  0x08176f4f in Digikam::BatchSyncMetadata::parsePicture (this=0xac40c320) at /home/andi/Programmieren/workspace/digikam_KDE4/digikam/utilities/batch/batchsyncmetadata.cpp:149
#10 0x08176f4f in Digikam::BatchSyncMetadata::parsePicture (this=0xac40c320) at /home/andi/Programmieren/workspace/digikam_KDE4/digikam/utilities/batch/batchsyncmetadata.cpp:149
#11 0x08176f4f in Digikam::BatchSyncMetadata::parsePicture (this=0xac40c320) at /home/andi/Programmieren/workspace/digikam_KDE4/digikam/utilities/batch/batchsyncmetadata.cpp:149
#12 0x08176f4f in Digikam::BatchSyncMetadata::parsePicture (this=0xac40c320) at /home/andi/Programmieren/workspace/digikam_KDE4/digikam/utilities/batch/batchsyncmetadata.cpp:149
#13 0x08176f4f in Digikam::BatchSyncMetadata::parsePicture (this=0xac40c320) at /home/andi/Programmieren/workspace/digikam_KDE4/digikam/utilities/batch/batchsyncmetadata.cpp:149
#14 0x08176f4f in Digikam::BatchSyncMetadata::parsePicture (this=0xac40c320) at /home/andi/Programmieren/workspace/digikam_KDE4/digikam/utilities/batch/batchsyncmetadata.cpp:149
#15 0x08176f4f in Digikam::BatchSyncMetadata::parsePicture (this=0xac40c320) at /home/andi/Programmieren/workspace/digikam_KDE4/digikam/utilities/batch/batchsyncmetadata.cpp:149
#16 0x08176f4f in Digikam::BatchSyncMetadata::parsePicture (this=0xac40c320) at /home/andi/Programmieren/workspace/digikam_KDE4/digikam/utilities/batch/batchsyncmetadata.cpp:149
#17 0x08176f4f in Digikam::BatchSyncMetadata::parsePicture (this=0xac40c320) at /home/andi/Programmieren/workspace/digikam_KDE4/digikam/utilities/batch/batchsyncmetadata.cpp:149
#18 0x08176f4f in Digikam::BatchSyncMetadata::parsePicture (this=0xac40c320) at /home/andi/Programmieren/workspace/digikam_KDE4/digikam/utilities/batch/batchsyncmetadata.cpp:149
#19 0x08176f4f in Digikam::BatchSyncMetadata::parsePicture (this=0xac40c320) at /home/andi/Programmieren/workspace/digikam_KDE4/digikam/utilities/batch/batchsyncmetadata.cpp:149
#20 0x08176f4f in Digikam::BatchSyncMetadata::parsePicture (this=0xac40c320) at /home/andi/Programmieren/workspace/digikam_KDE4/digikam/utilities/batch/batchsyncmetadata.cpp:149
#21 0x08176f4f in Digikam::BatchSyncMetadata::parsePicture (this=0xac40c320) at /home/andi/Programmieren/workspace/digikam_KDE4/digikam/utilities/batch/batchsyncmetadata.cpp:149
#22 0x08176f4f in Digikam::BatchSyncMetadata::parsePicture (this=0xac40c320) at /home/andi/Programmieren/workspace/digikam_KDE4/digikam/utilities/batch/batchsyncmetadata.cpp:149
#23 0x08177013 in Digikam::BatchSyncMetadata::parseList (this=0xac40c320) at /home/andi/Programmieren/workspace/digikam_KDE4/digikam/utilities/batch/batchsyncmetadata.cpp:121
#24 0x08177067 in Digikam::BatchSyncMetadata::slotAlbumParsed (this=0xac40c320, list=@0xbffb17fc) at /home/andi/Programmieren/workspace/digikam_KDE4/digikam/utilities/batch/batchsyncmetadata.cpp:112
#25 0x08177163 in Digikam::BatchSyncMetadata::qt_metacall (this=0xac40c320, _c=QMetaObject::InvokeMetaMethod, _id=4, _a=0xbffb1770)
    at /home/andi/Programmieren/workspace/digikam_KDE4/digikam/digikam/batchsyncmetadata.moc:80
#26 0xb7f06b03 in QMetaObject::activate () from /usr/lib/libQtCore.so.4
#27 0xb7f07063 in QMetaObject::activate () from /usr/lib/libQtCore.so.4
#28 0x081735a8 in Digikam::ImageInfoJob::signalItemsInfo (this=0xac402180, _t1=@0xbffb17fc) at /home/andi/Programmieren/workspace/digikam_KDE4/digikam/digikam/imageinfojob.moc:87
#29 0x081736a8 in Digikam::ImageInfoJob::slotData (this=0xac402180, data=@0xbffb1bb4) at /home/andi/Programmieren/workspace/digikam_KDE4/digikam/utilities/batch/imageinfojob.cpp:131
#30 0x081737e4 in Digikam::ImageInfoJob::qt_metacall (this=0xac402180, _c=QMetaObject::InvokeMetaMethod, _id=3, _a=0xbffb18e8)
    at /home/andi/Programmieren/workspace/digikam_KDE4/digikam/digikam/imageinfojob.moc:76
#31 0xb7f06b03 in QMetaObject::activate () from /usr/lib/libQtCore.so.4
#32 0xb7f07063 in QMetaObject::activate () from /usr/lib/libQtCore.so.4
#33 0xb763b50a in KIO::TransferJob::data () from /usr/lib/libkio.so.5
#34 0xb763bf03 in KIO::TransferJob::slotData () from /usr/lib/libkio.so.5
#35 0xb764a44d in KIO::TransferJob::qt_metacall () from /usr/lib/libkio.so.5
#36 0xb764a5a3 in KIO::SpecialJob::qt_metacall () from /usr/lib/libkio.so.5
#37 0xb7f06b03 in QMetaObject::activate () from /usr/lib/libQtCore.so.4
#38 0xb7f07063 in QMetaObject::activate () from /usr/lib/libQtCore.so.4
#39 0xb770be34 in KIO::SlaveInterface::data () from /usr/lib/libkio.so.5
#40 0xb770fb0c in KIO::SlaveInterface::dispatch () from /usr/lib/libkio.so.5
#41 0xb770c4bc in KIO::SlaveInterface::dispatch () from /usr/lib/libkio.so.5
#42 0xb76fc2be in KIO::Slave::gotInput () from /usr/lib/libkio.so.5
#43 0xb76fed3b in KIO::Slave::qt_metacall () from /usr/lib/libkio.so.5
#44 0xb7f06b03 in QMetaObject::activate () from /usr/lib/libQtCore.so.4
#45 0xb7f07063 in QMetaObject::activate () from /usr/lib/libQtCore.so.4
#46 0xb7608a98 in KIO::Connection::readyRead () from /usr/lib/libkio.so.5
#47 0xb760abed in KIO::ConnectionPrivate::dequeue () from /usr/lib/libkio.so.5
#48 0xb760ad6e in KIO::Connection::qt_metacall () from /usr/lib/libkio.so.5
#49 0xb7f0192b in QMetaCallEvent::placeMetaCall () from /usr/lib/libQtCore.so.4
#50 0xb7f034f9 in QObject::event () from /usr/lib/libQtCore.so.4
#51 0xb60e1eac in QApplicationPrivate::notify_helper () from /usr/lib/libQtGui.so.4
#52 0xb60e8423 in QApplication::notify () from /usr/lib/libQtGui.so.4
#53 0xb79d2e9e in KApplication::notify () from /usr/lib/libkdeui.so.5
#54 0xb7ef4f60 in QCoreApplication::notifyInternal () from /usr/lib/libQtCore.so.4
#55 0xb7ef58e0 in QCoreApplicationPrivate::sendPostedEvents () from /usr/lib/libQtCore.so.4
#56 0xb7ef5a7e in QCoreApplication::sendPostedEvents () from /usr/lib/libQtCore.so.4
#57 0xb7f1c090 in ?? () from /usr/lib/libQtCore.so.4
#58 0x00000000 in ?? ()

Andi
Comment 7 Andi Clemens 2008-10-14 12:44:59 UTC
I think it is really a indexing problem: If I open a folder with 17 images, it crashes when accessing the image with the index '17', which should be '16'. So we need to check for this... I will have a look at the issue today.

Andi
Comment 8 Andi Clemens 2008-10-14 14:38:50 UTC
SVN commit 871298 by aclemens:

We need to set a parentheses around the expression, otherwise we get an out-of-index error.

BUG:172733

 M  +1 -1      batchsyncmetadata.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=871298
Comment 9 Gerhard Kulzer 2008-10-15 08:16:09 UTC
It works now Andi, no crash anymore
Thanks a lot :-)

Gerhard