Bug 127182 - Crash when scanning jpeg images
Summary: Crash when scanning jpeg images
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Database-Scan (show other bugs)
Version: unspecified
Platform: Gentoo Packages Linux
: NOR crash
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-05-12 01:30 UTC by Steven Aiello
Modified: 2023-04-08 20:54 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Steven Aiello 2006-05-12 01:30:50 UTC
Version:           0.8.2-beta1+svn534957 (using KDE KDE 3.5.2)
Installed from:    Gentoo Packages
Compiler:          gcc version 3.3.6 (Gentoo 3.3.6, ssp-3.3.6-1.0, pie-8.7.8) 
OS:                Linux

Whenever digikam encounters a jpeg image it crashes. I have tried multiple jpegs from my Canon EOS Rebel XT, and all make digikam crash. I removed all images from my digikam album, and then copied the jpeg image that I use for my desktop background, and it too causes digikam to crash. I removed all images from my digikam album and copied a png image, no crash, saw a nice thumbnail in digikam.

I have tested the following versions of digikam:
0.7.4 - works, no crash.
0.8.1 - crash.
0.8.2-beta1+svn534957 - crash.

digikam -v produces:
Qt: 3.3.4
KDE: 3.5.2
digiKam: 0.8.2-beta1+svn534957

I belive this bug is found only on the Gentoo GNU/Linux distribution. I did see others with this/simular issue (http://forums.gentoo.org/viewtopic-p-3309378.html#3309378).

Per Gilles request I performed a gdb backtrace:
(gdb) run
Starting program: /usr/kde/3.5/bin/digikam
[Thread debugging using libthread_db enabled]
[New Thread 16384 (LWP 3536)]
[New Thread 32769 (LWP 3540)]
[New Thread 16386 (LWP 3541)]
[New Thread 32771 (LWP 3542)]
[Thread 16386 (LWP 3541) exited]
[Thread 32771 (LWP 3542) exited]
digikam: ImagePlugin_Core plugin loaded
digikam: ImagePluginLoader: Loaded plugin ImagePlugin_Core
digikam: ScanLib: Finding non-existing Albums: 7 ms

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 16384 (LWP 3536)]
0xb7eba142 in ~ImageEditorPrintDialogPage (this=0x8c20) at imageprint.cpp:127
127     {
(gdb) bt
#0  0xb7eba142 in ~ImageEditorPrintDialogPage (this=0x8c20) at imageprint.cpp:127
#1  0xb7de3324 in KDateEdit::~KDateEdit () at kdateedit.cpp:107
#2  0xb7dc1314 in ScanLib::storeItemInDatabase (this=0xbfd259dc, albumURL=@0xbfd2583c,
    filename=@0xbfd257dc, albumID=1) at scanlib.cpp:380
#3  0xb7dc0f4f in ScanLib::allFiles (this=0xbfd259dc, directory=@0xbfd258bc)
    at scanlib.cpp:341
#4  0xb7dc02d5 in ScanLib::findMissingItems (this=0xbfd259dc) at scanlib.cpp:182
#5  0xb7dbfa0c in ScanLib::startScan (this=0xbfd259dc) at scanlib.cpp:81
#6  0xb7d7e4a6 in DigikamApp::slotDatabaseRescan (this=0x8173ea8) at digikamapp.cpp:1406
#7  0xb7d7e946 in DigikamApp::qt_invoke (this=0x8173ea8, _id=99, _o=0xbfd25aac)
    at digikamapp.moc:197
#8  0xb6cb1253 in QObject::activate_signal () from /usr/qt/3/lib/libqt-mt.so.3
#9  0xb6cb1094 in QObject::activate_signal () from /usr/qt/3/lib/libqt-mt.so.3
#10 0xb74f31cb in KAction::activated () from /usr/kde/3.5/lib/libkdeui.so.4
#11 0xb74f2b92 in KAction::slotActivated () from /usr/kde/3.5/lib/libkdeui.so.4
#12 0xb74f2c8b in KAction::slotPopupActivated () from /usr/kde/3.5/lib/libkdeui.so.4
#13 0xb74f33d7 in KAction::qt_invoke () from /usr/kde/3.5/lib/libkdeui.so.4
#14 0xb6cb1253 in QObject::activate_signal () from /usr/qt/3/lib/libqt-mt.so.3
#15 0xb6fe4f58 in QSignal::signal () from /usr/qt/3/lib/libqt-mt.so.3
#16 0xb6ccadef in QSignal::activate () from /usr/qt/3/lib/libqt-mt.so.3
#17 0xb6db4cb2 in QPopupMenu::mouseReleaseEvent () from /usr/qt/3/lib/libqt-mt.so.3
#18 0xb74e3d99 in KPopupMenu::mouseReleaseEvent () from /usr/kde/3.5/lib/libkdeui.so.4
#19 0xb6ce69ba in QWidget::event () from /usr/qt/3/lib/libqt-mt.so.3
#20 0xb6c55d7c in QApplication::internalNotify () from /usr/qt/3/lib/libqt-mt.so.3
#21 0xb6c55230 in QApplication::notify () from /usr/qt/3/lib/libqt-mt.so.3
#22 0xb728f77c in KApplication::notify () from /usr/kde/3.5/lib/libkdecore.so.4
#23 0xb6beb689 in QETWidget::translateMouseEvent () from /usr/qt/3/lib/libqt-mt.so.3
#24 0xb6be96fc in QApplication::x11ProcessEvent () from /usr/qt/3/lib/libqt-mt.so.3
---Type <return> to continue, or q <return> to quit---
#25 0xb6c010fb in QEventLoop::processEvents () from /usr/qt/3/lib/libqt-mt.so.3
#26 0xb6c67c98 in QEventLoop::enterLoop () from /usr/qt/3/lib/libqt-mt.so.3
#27 0xb6c67b48 in QEventLoop::exec () from /usr/qt/3/lib/libqt-mt.so.3
#28 0xb6c55fb1 in QApplication::exec () from /usr/qt/3/lib/libqt-mt.so.3
#29 0x0804abbc in main (argc=1, argv=0xbfd269b4) at main.cpp:264
Comment 1 caulier.gilles 2006-07-03 12:37:33 UTC
digiKam crash out of scanlib during images scanning. It's impossible. I suspect that something is broken during linking or something like that. 

Can you recompile digiKam using --enable-debug=full and without any optimizations.

Re-install and re-start digiKam inside gdb and look if it crash again.

Gilles Caulier
Comment 2 ralphdewitt 2006-07-20 07:39:53 UTC
I to have had a crash while attempting to scan in a photo using the kipiplugin. Below is the back trace.

(no debugging symbols found)
Using host libthread_db library "/lib/tls/i686/cmov/libthread_db.so.1".
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
[Thread debugging using libthread_db enabled]
[New Thread -1237977408 (LWP 28192)]
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
[KCrash handler]
#6  0xb3462d85 in sane_hpaio_close () from /usr/lib/sane/libsane-hpaio.so.1
#7  0xb3a6bc46 in sane_dll_close () from /usr/lib/libsane.so.1
#8  0xb3a6d2d8 in sane_close () from /usr/lib/libsane.so.1
#9  0xb3a3827e in KScanDevice::slCloseDevice () from /usr/lib/libkscan.so.1
#10 0xb3a4148e in ScanDialog::slotClose () from /usr/lib/libkscan.so.1
#11 0xb75814b2 in KDialogBase::qt_invoke () from /usr/lib/libkdeui.so.4
#12 0xb78def7f in KScanDialog::qt_invoke () from /usr/lib/libkio.so.4
#13 0xb3a41e97 in ScanDialog::qt_invoke () from /usr/lib/libkscan.so.1
#14 0xb6c0ceb9 in QObject::activate_signal () from /usr/lib/libqt-mt.so.3
#15 0xb6c0d954 in QObject::activate_signal () from /usr/lib/libqt-mt.so.3
#16 0xb6fa8d1f in QButton::clicked () from /usr/lib/libqt-mt.so.3
#17 0xb6ca855e in QButton::mouseReleaseEvent () from /usr/lib/libqt-mt.so.3
#18 0xb6c4768d in QWidget::event () from /usr/lib/libqt-mt.so.3
#19 0xb6ba2e56 in QApplication::internalNotify () from /usr/lib/libqt-mt.so.3
#20 0xb6ba33e0 in QApplication::notify () from /usr/lib/libqt-mt.so.3
#21 0xb7325e31 in KApplication::notify () from /usr/lib/libkdecore.so.4
#22 0xb6b341c5 in QApplication::sendSpontaneousEvent ()
   from /usr/lib/libqt-mt.so.3
#23 0xb6b2f873 in QETWidget::translateMouseEvent ()
   from /usr/lib/libqt-mt.so.3
#24 0xb6b2dd59 in QApplication::x11ProcessEvent () from /usr/lib/libqt-mt.so.3
#25 0xb6b474db in QEventLoop::processEvents () from /usr/lib/libqt-mt.so.3
#26 0xb6bbb947 in QEventLoop::enterLoop () from /usr/lib/libqt-mt.so.3
#27 0xb6bbb86a in QEventLoop::exec () from /usr/lib/libqt-mt.so.3
#28 0xb6ba1965 in QApplication::exec () from /usr/lib/libqt-mt.so.3
#29 0x0804a59b in main ()
Comment 3 caulier.gilles 2006-07-20 07:45:22 UTC
ralph, 

Steven talking about the scan image process at digiKam startup, not the scanner kipi plugin. Please report you problem in a new B.K.O file into kipi-plugins area...

Gilles Caulier
Comment 4 caulier.gilles 2006-12-12 09:24:04 UTC
Steven, 
 
This crash still reproductible using digiKam/DigikamImagePlugins 0.9.0-RC2 and Exiv2 0.12 ? 
 
Thanks in advance for your feedback. 
 
Gilles Caulier 
Comment 5 caulier.gilles 2007-04-20 14:37:07 UTC
Steven,

What's news about this crash. It still reproductible using digiKam 0.9.1 ?

Gilles Caulier
Comment 6 Jan Schenk 2007-04-20 17:03:48 UTC
Gilles,
I had the exact problem as Steven described it, and it seems solved with 0.9.1!
Thanks alot,
jan
Comment 7 caulier.gilles 2007-04-20 18:20:12 UTC
ok. I close it.

Gilles