Bug 179035

Summary: crash using save as and selecting JPEG
Product: [Applications] digikam Reporter: Gianni De Domenico <gdedomenico>
Component: Albums-EngineAssignee: Digikam Developers <digikam-bugs-null>
Status: RESOLVED FIXED    
Severity: crash CC: andresbajotierra, caulier.gilles
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In: 5.7.0
Sentry Crash Report:

Description Gianni De Domenico 2008-12-29 11:37:16 UTC
Version:            (using KDE 4.1.3)
Compiler:          gcc version 4.3.2 (Ubuntu 4.3.2-1ubuntu11) Configured with: ../src/configure -v --with-pkgversion='Ubuntu 4.3.2-1ubuntu11' --with-bugurl=file:///usr/share/doc/gcc-4.3/README.Bugs --enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr --enable-shared --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --enable-nls --with-gxx-include-dir=/usr/include/c++/4.3 --program-suffix=-4.3 --enable-clocale=gnu --enable-libstdcxx-debug --enable-objc-gc --enable-mpfr --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
OS:                Linux
Installed from:    Ubuntu Packages

I can import file from my camera no problem. Then I want to modify one and save it as jpeg and application crashes as I am on the "save as" window and as soon as I select JPG in the drop down list.

Application : DigiKam (digikam), signal SIGABRT
[Thread debugging using libthread_db enabled]
[New Thread 0x7fd3640dc6f0 (LWP 26443)]
[New Thread 0x4575a950 (LWP 26584)]
[New Thread 0x44f59950 (LWP 26473)]
[New Thread 0x44758950 (LWP 26469)]
[New Thread 0x43f57950 (LWP 26468)]
[New Thread 0x40a09950 (LWP 26467)]
[New Thread 0x43756950 (LWP 26466)]
[New Thread 0x4144e950 (LWP 26463)]
[New Thread 0x42754950 (LWP 26462)]
[New Thread 0x42f55950 (LWP 26461)]
[New Thread 0x41cb4950 (LWP 26444)]
[KCrash handler]
#5  0x00007fd358c22fd5 in raise () from /lib/libc.so.6
#6  0x00007fd358c24b43 in abort () from /lib/libc.so.6
#7  0x00007fd363b2c6b5 in qt_message_output () from /usr/lib/libQtCore.so.4
#8  0x00007fd363b2c7fd in qFatal () from /usr/lib/libQtCore.so.4
#9  0x00007fd362cdd93e in ?? () from /usr/lib/libkio.so.5
#10 0x00007fd362ce096e in KDirModel::qt_metacall () from /usr/lib/libkio.so.5
#11 0x00007fd363c31134 in QMetaObject::activate ()
   from /usr/lib/libQtCore.so.4
#12 0x00007fd362cc6605 in KDirLister::itemsDeleted ()
   from /usr/lib/libkio.so.5
#13 0x00007fd362ccd4c1 in KDirLister::emitChanges () from /usr/lib/libkio.so.5
#14 0x00007fd357813dfa in ?? () from /usr/lib/libkfile.so.4
#15 0x00007fd3578146ff in KFileWidget::qt_metacall ()
   from /usr/lib/libkfile.so.4
#16 0x00007fd363c31134 in QMetaObject::activate ()
   from /usr/lib/libQtCore.so.4
#17 0x00007fd357801278 in KFileFilterCombo::qt_metacall ()
   from /usr/lib/libkfile.so.4
#18 0x00007fd363c31134 in QMetaObject::activate ()
   from /usr/lib/libQtCore.so.4
#19 0x00007fd35e36db01 in QComboBox::activated () from /usr/lib/libQtGui.so.4
#20 0x00007fd35e36fba6 in ?? () from /usr/lib/libQtGui.so.4
#21 0x00007fd35e3719cd in ?? () from /usr/lib/libQtGui.so.4
#22 0x00007fd35e3766cb in QComboBox::qt_metacall ()
   from /usr/lib/libQtGui.so.4
#23 0x00007fd363331e65 in KComboBox::qt_metacall ()
   from /usr/lib/libkdeui.so.5
#24 0x00007fd35780122d in KFileFilterCombo::qt_metacall ()
   from /usr/lib/libkfile.so.4
#25 0x00007fd363c31134 in QMetaObject::activate ()
   from /usr/lib/libQtCore.so.4
#26 0x00007fd35e5d4552 in ?? () from /usr/lib/libQtGui.so.4
#27 0x00007fd35e36f697 in ?? () from /usr/lib/libQtGui.so.4
#28 0x00007fd363c1c038 in QCoreApplicationPrivate::sendThroughObjectEventFilters () from /usr/lib/libQtCore.so.4
#29 0x00007fd35e04cc0c in QApplicationPrivate::notify_helper ()
   from /usr/lib/libQtGui.so.4
#30 0x00007fd35e05522a in QApplication::notify () from /usr/lib/libQtGui.so.4
#31 0x00007fd363298fcb in KApplication::notify () from /usr/lib/libkdeui.so.5
#32 0x00007fd363c1cd61 in QCoreApplication::notifyInternal ()
   from /usr/lib/libQtCore.so.4
#33 0x00007fd35e0545c8 in QApplicationPrivate::sendMouseEvent ()
   from /usr/lib/libQtGui.so.4
#34 0x00007fd35e0b8da4 in ?? () from /usr/lib/libQtGui.so.4
#35 0x00007fd35e0b7607 in QApplication::x11ProcessEvent ()
   from /usr/lib/libQtGui.so.4
#36 0x00007fd35e0df2c4 in ?? () from /usr/lib/libQtGui.so.4
#37 0x00007fd358556d3b in g_main_context_dispatch ()
   from /usr/lib/libglib-2.0.so.0
#38 0x00007fd35855a50d in ?? () from /usr/lib/libglib-2.0.so.0
#39 0x00007fd35855a6cb in g_main_context_iteration ()
   from /usr/lib/libglib-2.0.so.0
#40 0x00007fd363c4515f in QEventDispatcherGlib::processEvents ()
   from /usr/lib/libQtCore.so.4
#41 0x00007fd35e0dea6f in ?? () from /usr/lib/libQtGui.so.4
#42 0x00007fd363c1b682 in QEventLoop::processEvents ()
   from /usr/lib/libQtCore.so.4
#43 0x00007fd363c1b80d in QEventLoop::exec () from /usr/lib/libQtCore.so.4
#44 0x00007fd35e466065 in QDialog::exec () from /usr/lib/libQtGui.so.4
#45 0x00007fd35f98d40e in Digikam::EditorWindow::startingSaveAs (
    this=0x4495f20, url=@0x4494860)
    at /misc/downloads/graphics/digikam/utilities/imageeditor/editor/editorwindow.cpp:1531
#46 0x0000000000459e13 in Digikam::ImageWindow::saveAs (this=0x4495f20)
    at /misc/downloads/graphics/digikam/utilities/imageeditor/editor/imagewindow.cpp:1010
#47 0x00007fd35f99c0dc in Digikam::EditorWindow::slotSaveAs (this=0x4495f20)
    at /misc/downloads/graphics/digikam/utilities/imageeditor/editor/editorwindow.h:178
#48 0x00007fd35f99bba7 in Digikam::EditorWindow::qt_metacall (this=0x4495f20, 
    _c=QMetaObject::InvokeMetaMethod, _id=3, _a=0x7fff6c120220)
    at /misc/downloads/graphics/build/digikam/digikam/editorwindow.moc:159
#49 0x0000000000461fcb in Digikam::ImageWindow::qt_metacall (this=0x4495f20, 
    _c=QMetaObject::InvokeMetaMethod, _id=48, _a=0x7fff6c120220)
    at /misc/downloads/graphics/build/digikam/digikam/imagewindow.moc:117
#50 0x00007fd363c31134 in QMetaObject::activate ()
   from /usr/lib/libQtCore.so.4
#51 0x00007fd35e046f57 in QAction::triggered () from /usr/lib/libQtGui.so.4
#52 0x00007fd35e047720 in QAction::activate () from /usr/lib/libQtGui.so.4
#53 0x00007fd35e3e01ad in ?? () from /usr/lib/libQtGui.so.4
#54 0x00007fd363358aa1 in KMenu::mouseReleaseEvent ()
   from /usr/lib/libkdeui.so.5
#55 0x00007fd35e09f329 in QWidget::event () from /usr/lib/libQtGui.so.4
#56 0x00007fd35e3e298b in QMenu::event () from /usr/lib/libQtGui.so.4
#57 0x00007fd35e04cc3d in QApplicationPrivate::notify_helper ()
   from /usr/lib/libQtGui.so.4
#58 0x00007fd35e05522a in QApplication::notify () from /usr/lib/libQtGui.so.4
#59 0x00007fd363298fcb in KApplication::notify () from /usr/lib/libkdeui.so.5
#60 0x00007fd363c1cd61 in QCoreApplication::notifyInternal ()
   from /usr/lib/libQtCore.so.4
#61 0x00007fd35e0545c8 in QApplicationPrivate::sendMouseEvent ()
   from /usr/lib/libQtGui.so.4
#62 0x00007fd35e0b8da4 in ?? () from /usr/lib/libQtGui.so.4
#63 0x00007fd35e0b7607 in QApplication::x11ProcessEvent ()
   from /usr/lib/libQtGui.so.4
#64 0x00007fd35e0df2c4 in ?? () from /usr/lib/libQtGui.so.4
#65 0x00007fd358556d3b in g_main_context_dispatch ()
   from /usr/lib/libglib-2.0.so.0
#66 0x00007fd35855a50d in ?? () from /usr/lib/libglib-2.0.so.0
#67 0x00007fd35855a6cb in g_main_context_iteration ()
   from /usr/lib/libglib-2.0.so.0
#68 0x00007fd363c4515f in QEventDispatcherGlib::processEvents ()
   from /usr/lib/libQtCore.so.4
#69 0x00007fd35e0dea6f in ?? () from /usr/lib/libQtGui.so.4
#70 0x00007fd363c1b682 in QEventLoop::processEvents ()
   from /usr/lib/libQtCore.so.4
#71 0x00007fd363c1b80d in QEventLoop::exec () from /usr/lib/libQtCore.so.4
#72 0x00007fd363c1dcbd in QCoreApplication::exec ()
   from /usr/lib/libQtCore.so.4
#73 0x0000000000697261 in main (argc=1, argv=0x7fff6c122208)
    at /misc/downloads/graphics/digikam/digikam/main.cpp:185
#0  0x00007fd358c98621 in nanosleep () from /lib/libc.so.6

I have actually the latest SVN version (updated today) that I compiled myself using : 
http://wiki.kde.org/tiki-index.php?page=Digikam+Compilation+on+Kubuntu+Intrepid
I already had the same problem with the version I compiled am mid-december.

Thank you
Gianni
Comment 1 Gianni De Domenico 2008-12-29 11:41:39 UTC
In the outputs from proram, I can find :
digikam(26443) Digikam::EditorWindow::startingSaveAs: startingSaveAs: Offered mimetypes:  ("image/png", "image/jpeg", "image/tiff", "image/jp2", "image/x-tga", "video/x-mng", "image/x-eps", "image/x-xbitmap", "image/x-portable-bitmap", "image/x-pcx", "image/x-portable-graymap", "image/x-xpixmap", "image/x-portable-pixmap", "image/x-rgb", "image/bmp")
digikam(26443) KMimeTypeFactory::parseMagic: Now parsing  "/usr/share/mime/magic"
digikam(26443) KMimeTypeFactory::parseMagic: Now parsing  "/home/gdedomenico/.local/share/mime/magic"
digikam(26443) KFileItem::isDir: can't say -> false
ASSERT: "node" in file /build/buildd/kde4libs-4.1.3/kio/kio/kdirmodel.cpp, line 441
KCrash: Application 'digikam' crashing...
sock_file=/home/gdedomenico/.kde/socket-laptop-0085/kdeinit4__0
Comment 2 Dario Andres 2008-12-29 11:57:36 UTC
This may be related/duplicate of bug 176916 (same assert on changing filters in a file dialog)
Comment 3 Marcel Wiesweg 2008-12-29 13:09:38 UTC
Thanks Dario, this is certainly is kdelibs bug as we have the same problem reported for two other KDE apps as well.

*** This bug has been marked as a duplicate of bug 176916 ***
Comment 4 caulier.gilles 2017-08-08 11:54:02 UTC
Since digiKam 5.0.0, KDirWatch was been replaced by QFileSytemWatcher. It will
not reproducible.

Gilles Caulier