Bug 258102

Summary: KphotoAlbum crashed on create DB Photo and Video
Product: [Applications] kphotoalbum Reporter: Xandersoft <linux>
Component: generalAssignee: KPhotoAlbum Bugs <kpabugs>
Status: RESOLVED DUPLICATE    
Severity: crash CC: ahuggel, andresbajotierra, linux
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: New crash information added by DrKonqi

Description Xandersoft 2010-11-27 20:11:17 UTC
Application: kphotoalbum (4.1.1)
KDE Platform Version: 4.4.4 (KDE 4.4.4) "release 3"
Qt Version: 4.6.3
Operating System: Linux 2.6.34.7-0.5-default x86_64
Distribution: "openSUSE 11.3 (x86_64)"

-- Information about the crash:
Beim Starten von KphotoAlbum sollten die Bilder in einem bereits existierendn Ordner eingelesen werden.
Sowohl mit der Orginal DB wie auch mit der MSQL3 DB stürtz das Program nach wenigen Prozenten (%) ab.
Die Sicherungsdatei könnte beim Neustart zwar wieder verwendet/genutzt werden doch ist das Ergebnis das selbe. Absturz.
Wie bereits erwähnt auch mit einer MySql Datenbank ist der Abstutz vorprogramiert.
In dem Odner befinden sich sowohl *.jpg wie auch *.cr2 und eine Reihe Video Dateien. Hinzukommt das das Programm nicht immer an der selben stelle zum Absturz gebracht wird.

The crash can be reproduced every time.

 -- Backtrace:
Application: KPhotoAlbum (kphotoalbum), signal: Aborted
[Current thread is 1 (Thread 0x7ff4ab0367c0 (LWP 10638))]

Thread 5 (Thread 0x7ff49962b710 (LWP 29920)):
#0  0x00007ff4a851839c in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007ff4a87a22bb in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib64/libQtCore.so.4
#2  0x00000000004d66b2 in ImageManager::Manager::next (this=0x1d58ca0) at /usr/src/debug/kphotoalbum-4.1.1/ImageManager/Manager.cpp:142
#3  0x00000000004d594b in ImageManager::ImageLoader::run (this=0xe64340) at /usr/src/debug/kphotoalbum-4.1.1/ImageManager/ImageLoader.cpp:61
#4  0x00007ff4a87a1bf5 in ?? () from /usr/lib64/libQtCore.so.4
#5  0x00007ff4a8513a4f in start_thread () from /lib64/libpthread.so.0
#6  0x00007ff4a69af82d in clone () from /lib64/libc.so.6
#7  0x0000000000000000 in ?? ()

Thread 4 (Thread 0x7ff489b26710 (LWP 29921)):
#0  0x00007ff4a851839c in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007ff4a87a22bb in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib64/libQtCore.so.4
#2  0x00000000004d66b2 in ImageManager::Manager::next (this=0x1d58ca0) at /usr/src/debug/kphotoalbum-4.1.1/ImageManager/Manager.cpp:142
#3  0x00000000004d594b in ImageManager::ImageLoader::run (this=0xf5d820) at /usr/src/debug/kphotoalbum-4.1.1/ImageManager/ImageLoader.cpp:61
#4  0x00007ff4a87a1bf5 in ?? () from /usr/lib64/libQtCore.so.4
#5  0x00007ff4a8513a4f in start_thread () from /lib64/libpthread.so.0
#6  0x00007ff4a69af82d in clone () from /lib64/libc.so.6
#7  0x0000000000000000 in ?? ()

Thread 3 (Thread 0x7ff489325710 (LWP 29922)):
#0  0x00007ff4a851839c in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007ff4a87a22bb in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib64/libQtCore.so.4
#2  0x00000000004d66b2 in ImageManager::Manager::next (this=0x1d58ca0) at /usr/src/debug/kphotoalbum-4.1.1/ImageManager/Manager.cpp:142
#3  0x00000000004d594b in ImageManager::ImageLoader::run (this=0xeb7480) at /usr/src/debug/kphotoalbum-4.1.1/ImageManager/ImageLoader.cpp:61
#4  0x00007ff4a87a1bf5 in ?? () from /usr/lib64/libQtCore.so.4
#5  0x00007ff4a8513a4f in start_thread () from /lib64/libpthread.so.0
#6  0x00007ff4a69af82d in clone () from /lib64/libc.so.6
#7  0x0000000000000000 in ?? ()

Thread 2 (Thread 0x7ff488b24710 (LWP 29923)):
#0  0x00007ff4a851839c in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007ff4a87a22bb in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib64/libQtCore.so.4
#2  0x00000000004d66b2 in ImageManager::Manager::next (this=0x1d58ca0) at /usr/src/debug/kphotoalbum-4.1.1/ImageManager/Manager.cpp:142
#3  0x00000000004d594b in ImageManager::ImageLoader::run (this=0x1bdf1d0) at /usr/src/debug/kphotoalbum-4.1.1/ImageManager/ImageLoader.cpp:61
#4  0x00007ff4a87a1bf5 in ?? () from /usr/lib64/libQtCore.so.4
#5  0x00007ff4a8513a4f in start_thread () from /lib64/libpthread.so.0
#6  0x00007ff4a69af82d in clone () from /lib64/libc.so.6
#7  0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7ff4ab0367c0 (LWP 10638)):
[KCrash Handler]
#5  0x00007ff4a69119e5 in raise () from /lib64/libc.so.6
#6  0x00007ff4a6912ee6 in abort () from /lib64/libc.so.6
#7  0x00007ff4a690a235 in __assert_fail () from /lib64/libc.so.6
#8  0x00007ff4a9d9d13e in Exiv2::Internal::TiffMnCreator::create (tag=37500, group=256, make=<value optimized out>, pData=0x7ff483128fb8 "!", size=20164, byteOrder=Exiv2::littleEndian)
    at makernote.cpp:103
#9  0x00007ff4a9df0d38 in Exiv2::Internal::TiffReader::visitMnEntry (this=0x7fffb47e6c50, object=0x267c2e0) at tiffvisitor.cpp:1290
#10 0x00007ff4a9de0ba8 in Exiv2::Internal::TiffMnEntry::doAccept (this=0x267c2e0, visitor=...) at tiffcomposite.cpp:918
#11 0x00007ff4a9de0d17 in Exiv2::Internal::TiffDirectory::doAccept (this=0x23a7940, visitor=...) at tiffcomposite.cpp:900
#12 0x00007ff4a9de0c3e in Exiv2::Internal::TiffSubIfd::doAccept (this=0x269d110, visitor=...) at tiffcomposite.cpp:912
#13 0x00007ff4a9de0d17 in Exiv2::Internal::TiffDirectory::doAccept (this=0x23bae50, visitor=...) at tiffcomposite.cpp:900
#14 0x00007ff4a9de6623 in Exiv2::Internal::TiffParserWorker::parse (pData=0x7ff483128000 "II*", size=15564544, root=<value optimized out>, pHeader=<value optimized out>) at tiffimage.cpp:1380
#15 0x00007ff4a9de6eba in Exiv2::Internal::TiffParserWorker::decode (exifData=..., iptcData=..., xmpData=..., pData=<value optimized out>, size=<value optimized out>, root=<value optimized out>, 
    findDecoderFct=0x7ff4a9de6240 <Exiv2::Internal::TiffMapping::findDecoder(std::string const&, uint32_t, uint16_t)>, pHeader=0x7fffb47e6e40) at tiffimage.cpp:1280
#16 0x00007ff4a9d77807 in Exiv2::Cr2Parser::decode (exifData=..., iptcData=..., xmpData=..., pData=0x7ff483128000 "II*", size=<value optimized out>) at cr2image.cpp:152
#17 0x00007ff4a9d779bd in Exiv2::Cr2Image::readMetadata (this=0x269a1d0) at cr2image.cpp:126
#18 0x00000000005471ee in Exif::Info::metadata (this=<value optimized out>, fileName=<value optimized out>) at /usr/src/debug/kphotoalbum-4.1.1/Exif/Info.cpp:208
#19 0x00000000004f2b12 in DB::FileInfo::parseEXIV2 (this=0x7fffb47e71f0, fileName=...) at /usr/src/debug/kphotoalbum-4.1.1/DB/FileInfo.cpp:75
#20 0x00000000004f326a in DB::FileInfo::FileInfo (this=0x7fffb47e71f0, fileName=..., mode=...) at /usr/src/debug/kphotoalbum-4.1.1/DB/FileInfo.cpp:39
#21 0x00000000004f3335 in DB::FileInfo::read (fileName=<value optimized out>, mode=<value optimized out>) at /usr/src/debug/kphotoalbum-4.1.1/DB/FileInfo.cpp:32
#22 0x00000000004dc1a1 in DB::ImageInfo::readExif (this=0x269a6d0, fullPath=..., mode=<value optimized out>) at /usr/src/debug/kphotoalbum-4.1.1/DB/ImageInfo.cpp:325
#23 0x00000000004df204 in DB::ImageInfo::ImageInfo (this=0x269a6d0, relativeFileName=..., type=<value optimized out>, readExifInfo=true) at /usr/src/debug/kphotoalbum-4.1.1/DB/ImageInfo.cpp:56
#24 0x00000000004f3a41 in DB::NewImageFinder::loadExtraFile (this=<value optimized out>, relativeNewFileName=..., type=DB::Image) at /usr/src/debug/kphotoalbum-4.1.1/DB/NewImageFinder.cpp:230
#25 0x00000000004f514d in DB::NewImageFinder::loadExtraFiles (this=0x7fffb47e7650) at /usr/src/debug/kphotoalbum-4.1.1/DB/NewImageFinder.cpp:182
#26 0x00000000004f53f4 in DB::NewImageFinder::findImages (this=0x7fffb47e7650) at /usr/src/debug/kphotoalbum-4.1.1/DB/NewImageFinder.cpp:63
#27 0x00000000004f13a0 in DB::ImageDB::slotRescan (this=0xbcf5e0) at /usr/src/debug/kphotoalbum-4.1.1/DB/ImageDB.cpp:108
#28 0x00000000004f134a in DB::ImageDB::qt_metacall (this=0xbcf5e0, _c=QMetaObject::InvokeMetaMethod, _id=5, _a=0x7fffb47e77f0) at /usr/src/debug/kphotoalbum-4.1.1/ImageDB.moc:97
#29 0x0000000000464970 in XMLDB::Database::qt_metacall (this=0xbcf5e0, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fffb47e77f0)
    at /usr/src/debug/kphotoalbum-4.1.1/Database.moc:74
#30 0x00007ff4a889ca1f in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib64/libQtCore.so.4
#31 0x00007ff4a7a57d12 in QAction::triggered (this=<value optimized out>, _t1=false) at .moc/release-shared/moc_qaction.cpp:263
#32 0x00007ff4a7a57f0a in QAction::activate (this=0xe1fc40, event=<value optimized out>) at kernel/qaction.cpp:1255
#33 0x00007ff4a7e798b3 in QMenuPrivate::activateCausedStack (this=0xb4f600, causedStack=..., action=0xe1fc40, action_e=QAction::Trigger, self=true) at widgets/qmenu.cpp:1002
#34 0x00007ff4a7e7f97a in QMenuPrivate::activateAction (this=0xb4f600, action=0xe1fc40, action_e=QAction::Trigger, self=true) at widgets/qmenu.cpp:1094
#35 0x00007ff4a913f27d in KMenu::mouseReleaseEvent(QMouseEvent*) () from /usr/lib64/libkdeui.so.5
#36 0x00007ff4a7aaddbc in QWidget::event (this=0xda0410, event=0x7fffb47e8470) at kernel/qwidget.cpp:8044
#37 0x00007ff4a7e80bcb in QMenu::event (this=0xda0410, e=0x7fffb47e8470) at widgets/qmenu.cpp:2421
#38 0x00007ff4a7a5d4d4 in QApplicationPrivate::notify_helper (this=0x83ea10, receiver=0xda0410, e=0x7fffb47e8470) at kernel/qapplication.cpp:4302
#39 0x00007ff4a7a6634a in QApplication::notify (this=<value optimized out>, receiver=0xda0410, e=0x7fffb47e8470) at kernel/qapplication.cpp:3867
#40 0x00007ff4a916bc06 in KApplication::notify(QObject*, QEvent*) () from /usr/lib64/libkdeui.so.5
#41 0x00007ff4a8888e4c in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib64/libQtCore.so.4
#42 0x00007ff4a7a5f1e5 in sendEvent (receiver=0xda0410, event=0x7fffb47e8470, alienWidget=0x0, nativeWidget=0xda0410, buttonDown=0x7ff4a8509b28, lastMouseReceiver=..., spontaneous=true)
    at ../../src/corelib/kernel/qcoreapplication.h:215
#43 QApplicationPrivate::sendMouseEvent (receiver=0xda0410, event=0x7fffb47e8470, alienWidget=0x0, nativeWidget=0xda0410, buttonDown=0x7ff4a8509b28, lastMouseReceiver=..., spontaneous=true)
    at kernel/qapplication.cpp:2967
#44 0x00007ff4a7ad9914 in QETWidget::translateMouseEvent (this=0xda0410, event=<value optimized out>) at kernel/qapplication_x11.cpp:4314
#45 0x00007ff4a7ad7e19 in QApplication::x11ProcessEvent (this=0x7fffb47e91a0, event=0x7fffb47e8dd0) at kernel/qapplication_x11.cpp:3513
#46 0x00007ff4a7afe492 in x11EventSourceDispatch (s=0x842790, callback=0, user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:146
#47 0x00007ff4a24dba93 in g_main_context_dispatch () from /usr/lib64/libglib-2.0.so.0
#48 0x00007ff4a24dc270 in ?? () from /usr/lib64/libglib-2.0.so.0
#49 0x00007ff4a24dc510 in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#50 0x00007ff4a88b167f in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQtCore.so.4
#51 0x00007ff4a7afe14e in QGuiEventDispatcherGlib::processEvents (this=<value optimized out>, flags=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:204
#52 0x00007ff4a8888292 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQtCore.so.4
#53 0x00007ff4a8888495 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQtCore.so.4
#54 0x00007ff4a888c88b in QCoreApplication::exec() () from /usr/lib64/libQtCore.so.4
#55 0x0000000000443031 in main (argc=1, argv=0x7fffb47e98c8) at /usr/src/debug/kphotoalbum-4.1.1/main.cpp:86

Reported using DrKonqi
Comment 1 Xandersoft 2010-11-28 18:10:25 UTC
Created attachment 53831 [details]
New crash information added by DrKonqi

Change to:

libkexiv2.so.8()(64bit)
libkexiv2-8 = 4.4.4-500.1
libkexiv2-8(x86-64) = 4.4.4-500.1
Comment 2 Andreas Huggel 2010-11-29 02:38:52 UTC
The crash appears to be in Exiv2 while reading a CR2 image.

Which version of Exiv2 are you using? (exiv2 -V)

Please try to find the offending image and reproduce the issue with the exiv2 command line tool: Just run something like 

$ exiv2 -v *.CR2

over the CR2 images that you were loading with kphotoalbum. We need that image to fix the problem. Please post a link, attach it here or send it to me at ahuggel at gmx dot net once you identified it.

Andreas
Comment 3 Dario Andres 2010-12-12 15:14:41 UTC

*** This bug has been marked as a duplicate of bug 258106 ***
Comment 4 Andreas Huggel 2011-01-03 02:44:50 UTC
I believe this problem is fixed in Exiv2 0.21, please upgrade and report if it still occurs.

http://dev.exiv2.org/issues/show/736