Bug 150872 - Crash during during RAW conversion
Summary: Crash during during RAW conversion
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Plugin-RawImport-Native (show other bugs)
Version: unspecified
Platform: Slackware Linux
: NOR crash
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-10-15 21:56 UTC by Marco Cusmai
Modified: 2022-01-26 04:23 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Marco Cusmai 2007-10-15 21:56:52 UTC
Version:           0.9.2 (using KDE KDE 3.5.7)
Installed from:    Slackware Packages
Compiler:          GCC 4.1.2 
OS:                Linux

Trying to convert a RAW file (CR2 one, from Canon EOS 350) leads to crash the program.

This is the console output just before the crash:


Found dcraw version: 8.77
Running RAW decoding command: /usr/lib/libkdcraw2/kdcraw -c -e '   /home/marco/Documents/Pictures/2007-10-11/IMG_8501.CR2'
Using embedded RAW preview extraction
Running RAW decoding command: /usr/lib/libkdcraw2/kdcraw -i -v '/home/marco/Documents/Pictures/2007-10-11/IMG_8501.CR2'
KCrash: Application 'digikam' crashing...
digikam: Fatal IO error: client killed
digikam: Fatal IO error: client killed



And this is the Backtrace:



Using host libthread_db library "/lib/libthread_db.so.1".
[Thread debugging using libthread_db enabled]
[New Thread -1246918960 (LWP 18336)]
[New Thread -1255818352 (LWP 18385)]
0xb5e26cd1 in ?? () from /lib/libpthread.so.0
#0  0xb5e26cd1 in ?? () from /lib/libpthread.so.0
#1  0xb5e4a725 in ?? () from /usr/lib/libxcb.so.1
#2  0x00000003 in ?? ()
#3  0x0805f1d0 in ?? ()
#4  0x00001000 in ?? ()
#5  0x0805f1d0 in ?? ()
#6  0x0805f14c in ?? ()
#7  0x00000000 in ?? ()
Comment 1 caulier.gilles 2007-10-15 23:08:56 UTC
Marco,

Which libkdcraw version you use ?

Gilles Caulier
Comment 2 Marco Cusmai 2007-10-15 23:20:23 UTC
I use libkdcraw version 0.1.2
Comment 3 caulier.gilles 2007-10-15 23:27:46 UTC
You backtrace is not suitable. there is no debug info. 

Also, cannot reproduce the problem here. I use RAW files everyday.

- Can you recompile all source code (digiKam + libkdcraw) with full debug support (./configure --enable-debug=full) ?

- Can you try to reproduce this problem using digiKam 0.9.3-beta1 tarball ?

Thanks in advance

Gilles Caulier
Comment 4 Marco Cusmai 2007-10-16 00:24:43 UTC
I've compiled the 0.9.3-beta1 tarball and the libkdcraw as you have suggested, but the program shows the same problem. Two strange things:

1) After the recompilation, digikam reports libkdcraw as a missing library:

    KIPI (loading): WARNING: KLibLoader says: libkdcraw.so.1: cannot open shared object file: No such file or directory

   but libkdcraw is installed... so I just linked the existing libkdcraw.so to libkdcraw.so.1 

2) even after the compilation with debugging enabled (--enable-debugging=full)   
   there's no useful backtrace:

This backtrace appears to be of no use.
This is probably because your packages are built in a way which prevents creation of proper backtraces, or the stack frame was seriously corrupted in the crash.

Using host libthread_db library "/lib/libthread_db.so.1".
[Thread debugging using libthread_db enabled]
[New Thread -1246689584 (LWP 17389)]
[New Thread -1255588976 (LWP 17441)]
0xb5becef7 in ?? () from /lib/libc.so.6
#0  0xb5becef7 in ?? () from /lib/libc.so.6
#1  0xb5e813df in ?? () from /usr/lib/libxcb.so.1
#2  0x00000004 in ?? ()
#3  0xbfa6cb1c in ?? ()
#4  0xbfa6ca9c in ?? ()
#5  0x00000000 in ?? ()



Comment 5 caulier.gilles 2007-10-16 06:13:19 UTC
Marco,

Something is wrong on your computer. i suspect both version of libkdcraw installed at the same time. Check your system please...


Gilles
Comment 6 Marco Cusmai 2007-10-16 09:48:40 UTC
I looked carefully for overlapping installations of libkdcraw, but everything appears to be fine.. anyway i've recompiled and reinstalled libkdcraw 0.1.2 tarball. The files installed with "make install" are the following:

/usr/lib/pkgconfig/libkdcraw.pc
/usr/lib/libkdcraw.so.2.0.0
/usr/lib/libkdcraw2
/usr/lib/libkdcraw2/kdcraw
/usr/lib/libkdcraw.so.2
/usr/lib/libkdcraw.la
/usr/lib/libkdcraw.so
/usr/share/icons/hicolor/64x64/apps/kdcraw.png
/usr/share/icons/hicolor/48x48/apps/kdcraw.png
/usr/share/icons/hicolor/128x128/apps/kdcraw.png
/usr/share/icons/hicolor/32x32/apps/kdcraw.png
/usr/share/locale/th/LC_MESSAGES/libkdcraw.mo
/usr/share/locale/es/LC_MESSAGES/libkdcraw.mo
/usr/share/locale/ca/LC_MESSAGES/libkdcraw.mo
/usr/share/locale/sr@Latn/LC_MESSAGES/libkdcraw.mo
/usr/share/locale/nds/LC_MESSAGES/libkdcraw.mo
/usr/share/locale/da/LC_MESSAGES/libkdcraw.mo
/usr/share/locale/it/LC_MESSAGES/libkdcraw.mo
/usr/share/locale/pa/LC_MESSAGES/libkdcraw.mo
/usr/share/locale/pt/LC_MESSAGES/libkdcraw.mo
/usr/share/locale/is/LC_MESSAGES/libkdcraw.mo
/usr/share/locale/sr/LC_MESSAGES/libkdcraw.mo
/usr/share/locale/el/LC_MESSAGES/libkdcraw.mo
/usr/share/locale/uk/LC_MESSAGES/libkdcraw.mo
/usr/share/locale/sv/LC_MESSAGES/libkdcraw.mo
/usr/share/locale/et/LC_MESSAGES/libkdcraw.mo
/usr/share/locale/ja/LC_MESSAGES/libkdcraw.mo
/usr/share/locale/de/LC_MESSAGES/libkdcraw.mo
/usr/share/locale/nl/LC_MESSAGES/libkdcraw.mo
/usr/share/locale/sk/LC_MESSAGES/libkdcraw.mo
/usr/include/libkdcraw
/usr/include/libkdcraw/rawdecodingsettings.h
/usr/include/libkdcraw/kdcraw.h
/usr/include/libkdcraw/dcrawbinary.h
/usr/include/libkdcraw/dcrawsettingswidget.h
/usr/include/libkdcraw/dcrawinfocontainer.h
/usr/include/libkdcraw/rawfiles.h
/usr/include/libkdcraw/libkdcraw_export.h
/usr/include/libkdcraw/version.h


As you can see libkdraw.so.1 in not created, so i'm forced to create it by

ln -s /usr/lib/libkdcraw.so libkdcraw.so.1 

in order to enable the raw conversion feature in digiKam. 
Should I try to install an older version of libkdcraw?
Comment 7 caulier.gilles 2007-10-16 10:01:16 UTC
>As you can see libkdraw.so.1 in not created, so i'm forced to create it by

>ln -s /usr/lib/libkdcraw.so libkdcraw.so.1

You don't need to do that. If digiKam need libkdcraw.so.1 to link, this is want mean than something running wrong on your computer during digiKam configure.

>in order to enable the raw conversion feature in digiKam.
>Should I try to install an older version of libkdcraw? 

No. Just cleanup your system and recompile/install digiKam. In digiKam source code, do :

# make distclean
# make -f Makefile.cvs
# ./configure --enable-debug=full
# make
# su
# make install

I recommend you to use current KDE3 source code of digiKam from svn (next 0.9.3-beta2)

Gilles
Comment 8 Marco Cusmai 2007-10-16 11:39:27 UTC
I've tryed to cleanup my system as you suggested, but still digiKam complains about the missing library as i reported some posts ago:


KIPI (loading): WARNING: KLibLoader says: libkdcraw.so.1: cannot open shared object file: No such file or directory

Should I try to recompile Libkipi or Kipi-plugins?
Comment 9 caulier.gilles 2007-10-16 11:55:13 UTC
Yes, because libkdcraw is also used in RAW converter kipi-plugin...

Gilles
Comment 10 Marco Cusmai 2007-10-16 12:59:57 UTC
Problem solved! It seems that there were some problems with kipi-plugins 0.1.2, since installing version 0.1.5-beta solved both the missing library and the crash issue.

Thanks for your support!

Marco Cusmai
Comment 11 caulier.gilles 2007-10-16 13:06:15 UTC
Thanks for your patience (:=)))

Gilles
Comment 12 caulier.gilles 2019-12-23 17:39:20 UTC
Not reproducible with digiKam 7.0.0-beta1.