Bug 183753

Summary: DigiKam crashes while detecting my camera
Product: [Applications] digikam Reporter: Sean Campbell <goy_ben_regesh>
Component: Import-Gphoto2Assignee: Digikam Developers <digikam-bugs-null>
Status: RESOLVED FIXED    
Severity: crash CC: caulier.gilles, goy_ben_regesh, kde
Priority: NOR    
Version: 0.10.0   
Target Milestone: ---   
Platform: Mandriva RPMs   
OS: Linux   
Latest Commit: Version Fixed In: 5.8.0
Sentry Crash Report:

Description Sean Campbell 2009-02-09 07:30:01 UTC
Version:           0.10.0-beta3 (using KDE 3.5.10)
Compiler:          gcc version 4.3.2 
OS:                Linux
Installed from:    Mandriva RPMs

I have been having trouble with DigiKam after a Mandriva inline upgrade. 
Not known if this is a version issue with DigiKam or MDV-2009.0

I knowing that I was having issues, tried running DigiKam from the 
command dialog and was unable to as I must have not known how to do it 
right. Then I ran DigiKam normally and tried to manually detect my 
camera as both manual and auto have failed in the past but only with 2009.0.
This time on 2.8.09 I was able to detect this output via the GUI:

Could not generate a backtrace as the debugger 'gdb

Next after seeing that I learned about digikam --help from the CLI at 
which point I ran #digikam --detect-camera and got this error:

bash-3.2$ digikam --help
Usage: digikam [Qt-options] [KDE-options] [options]

Manage your photographs like a professional with the power of open source

Generic options:
  --help                    Show help about options
  --help-qt                 Show Qt specific options
  --help-kde                Show KDE specific options
  --help-all                Show all options
  --author                  Show author information
  -v, --version             Show version information
  --license                 Show license information
  --                        End of options

Options:
  --detect-camera           Automatically detect and open camera
  --download-from <path>    Open camera dialog at <path>
  --album-root <path>       Start digikam with the album root <path>
bash-3.2$ digikam --detect-camera
digikam(28621): Root Album Path:  "/home/brotherred/Pictures/digiKam"
digikam(28621): Database Path:  "/home/brotherred/Pictures/digiKam"
digikam(28621): SchemaUpdater update
digikam(28621): Have a database structure version  "5"
digikam(28621): makeUpdates  5  to  5
digikam(28621): listFromType
digikam(28621): got listFromType
digikam(28621): Creating new Location  "/brotherred/Pictures/digiKam"  uuid 
"vo
lumeid:?uuid=d8f36861-04eb-4488-b0d1-322575231016"
digikam(28621): location for  "/home/brotherred/Pictures/digiKam"  is available
 true
Starting to load Plugins.
Files:  "CompassFloatItem.so"
Files:  "MapScaleFloatItem.so"
Files:  "MarbleOverviewMap.so"
Files:  "MarbleStarsPlugin.so"
=== MarbleDirs: ===
Local Path: "/home/brotherred/.marble/data"
Plugin Local Path: "/home/brotherred/.marble/plugins"

Marble Data Path (Run Time) : ""
Marble Data Path (Compile Time): "/usr/share/apps/marble/data"

Marble Plugin Path (Run Time) : ""
Marble Plugin Path (Compile Time): "/usr/lib/kde4/plugins/marble"

System Path: "/usr/share/apps/marble/data"
Plugin System Path: "/usr/lib/kde4/plugins/marble"
===================
"CompassFloatItem.so"  -  "/usr/lib/kde4/plugins/marble/CompassFloatItem.so"
"MapScaleFloatItem.so"  -  "/usr/lib/kde4/plugins/marble/MapScaleFloatItem.so"
"MarbleOverviewMap.so"  -  "/usr/lib/kde4/plugins/marble/MarbleOverviewMap.so"
"MarbleStarsPlugin.so"  -  "/usr/lib/kde4/plugins/marble/MarbleStarsPlugin.so"
Use workaround:  0
"Loading Default Placemark Cache
File:/usr/share/apps/marble/data/placemarks/cit
yplacemarks.cache"
Style reset requested.
"Loading Default Placemark Cache
File:/usr/share/apps/marble/data/placemarks/bas
eplacemarks.cache"
Style reset requested.
"Loading Default Placemark Cache
File:/usr/share/apps/marble/data/placemarks/ele
vplacemarks.cache"
Style reset requested.
"Loading Default Placemark Cache
File:/usr/share/apps/marble/data/placemarks/oth
erplacemarks.cache"
Style reset requested.
"Loading Default Placemark Cache
File:/usr/share/apps/marble/data/placemarks/bou
ndaryplacemarks.cache"
Style reset requested.
loadMapTheme "earth/citylights/citylights.dgml"

Succesfully parsed file!
loadMapTheme "earth/bluemarble/bluemarble.dgml"

Succesfully parsed file!
MapThemeId "earth/srtm/srtm.dgml"
loadMapTheme "earth/srtm/srtm.dgml"

Succesfully parsed file!
DGML2 Name       :  "Atlas"
Style reset requested.
THEME CHANGED: *** "earth/srtm/srtm.dgml"
Starting to load Plugins.
Files:  "CompassFloatItem.so"
Files:  "MapScaleFloatItem.so"
Files:  "MarbleOverviewMap.so"
Files:  "MarbleStarsPlugin.so"
=== MarbleDirs: ===
Local Path: "/home/brotherred/.marble/data"
Plugin Local Path: "/home/brotherred/.marble/plugins"

Marble Data Path (Run Time) : ""
Marble Data Path (Compile Time): "/usr/share/apps/marble/data"

Marble Plugin Path (Run Time) : ""
Marble Plugin Path (Compile Time): "/usr/lib/kde4/plugins/marble"

System Path: "/usr/share/apps/marble/data"
Plugin System Path: "/usr/lib/kde4/plugins/marble"
===================
"CompassFloatItem.so"  -  "/usr/lib/kde4/plugins/marble/CompassFloatItem.so"
"MapScaleFloatItem.so"  -  "/usr/lib/kde4/plugins/marble/MapScaleFloatItem.so"
"MarbleOverviewMap.so"  -  "/usr/lib/kde4/plugins/marble/MarbleOverviewMap.so"
"MarbleStarsPlugin.so"  -  "/usr/lib/kde4/plugins/marble/MarbleStarsPlugin.so"
Use workaround:  0
"Loading Default Placemark Cache
File:/usr/share/apps/marble/data/placemarks/cit
yplacemarks.cache"
Style reset requested.
"Loading Default Placemark Cache
File:/usr/share/apps/marble/data/placemarks/bas
eplacemarks.cache"
Style reset requested.
"Loading Default Placemark Cache
File:/usr/share/apps/marble/data/placemarks/ele
vplacemarks.cache"
Style reset requested.
"Loading Default Placemark Cache
File:/usr/share/apps/marble/data/placemarks/oth
erplacemarks.cache"
Style reset requested.
"Loading Default Placemark Cache
File:/usr/share/apps/marble/data/placemarks/bou
ndaryplacemarks.cache"
Style reset requested.
loadMapTheme "earth/citylights/citylights.dgml"

Succesfully parsed file!
loadMapTheme "earth/bluemarble/bluemarble.dgml"

Succesfully parsed file!
MapThemeId "earth/srtm/srtm.dgml"
loadMapTheme "earth/srtm/srtm.dgml"

Succesfully parsed file!
DGML2 Name       :  "Atlas"
Style reset requested.
THEME CHANGED: *** "earth/srtm/srtm.dgml"
Style reset requested.
digikam(28621): fillSolidMenus: Found Camera  " USB Imaging Interface" 
protocol
s  ("ptp")  drivers  ("gphoto")
Found dcraw version: 8.87
digikam(28621): KDirWatch method =  "FAM"
Style reset requested.
Style reset requested.
Style reset requested.
Style reset requested.
digikam(28621): ImagePlugin_Core plugin loaded
digikam(28621): ImagePluginLoader: Loaded plugin  "ImagePlugin_Core"
digikam(28621): ImagePlugin_AdjustCurves plugin loaded
digikam(28621): ImagePluginLoader: Loaded plugin  "ImagePlugin_AdjustCurves"
digikam(28621): ImagePlugin_AdjustLevels plugin loaded
digikam(28621): ImagePluginLoader: Loaded plugin  "ImagePlugin_AdjustLevels"
digikam(28621): ImagePlugin_BlurFX plugin loaded
digikam(28621): ImagePluginLoader: Loaded plugin  "ImagePlugin_BlurFX"
digikam(28621): ImagePlugin_Border plugin loaded
digikam(28621): ImagePluginLoader: Loaded plugin  "ImagePlugin_Border"
digikam(28621): ImagePlugin_ChannelMixer plugin loaded
digikam(28621): ImagePluginLoader: Loaded plugin  "ImagePlugin_ChannelMixer"
digikam(28621): ImagePlugin_Charcoal plugin loaded
digikam(28621): ImagePluginLoader: Loaded plugin  "ImagePlugin_Charcoal"
digikam(28621): ImagePlugin_ColorFX plugin loaded
digikam(28621): ImagePluginLoader: Loaded plugin  "ImagePlugin_ColorFx"
digikam(28621): ImagePlugin_DistortionFX plugin loaded
digikam(28621): ImagePluginLoader: Loaded plugin  "ImagePlugin_DistortionFX"
digikam(28621): ImagePlugin_Emboss plugin loaded
digikam(28621): ImagePluginLoader: Loaded plugin  "ImagePlugin_Emboss"
digikam(28621): ImagePlugin_FilmGrain plugin loaded
digikam(28621): ImagePluginLoader: Loaded plugin  "ImagePlugin_FilmGrain"
digikam(28621): ImagePlugin_FreeRotation plugin loaded
digikam(28621): ImagePluginLoader: Loaded plugin  "ImagePlugin_FreeRotation"
digikam(28621): ImagePlugin_HotPixels plugin loaded
digikam(28621): ImagePluginLoader: Loaded plugin  "ImagePlugin_HotPixels"
digikam(28621): ImagePlugin_InPainting plugin loaded
digikam(28621): ImagePluginLoader: Loaded plugin  "ImagePlugin_InPainting"
digikam(28621): ImagePlugin_Infrared plugin loaded
digikam(28621): ImagePluginLoader: Loaded plugin  "ImagePlugin_Infrared"
digikam(28621): ImagePlugin_InsertText plugin loaded
digikam(28621): ImagePluginLoader: Loaded plugin  "ImagePlugin_InsertText"
digikam(28621): ImagePlugin_LensCorrection plugin loaded
digikam(28621): ImagePluginLoader: Loaded plugin  "ImagePlugin_LensCorrection"
digikam(28621): ImagePlugin_NoiseReduction plugin loaded
digikam(28621): ImagePluginLoader: Loaded plugin  "ImagePlugin_NoiseReduction"
digikam(28621): ImagePlugin_OilPaint plugin loaded
digikam(28621): ImagePluginLoader: Loaded plugin  "ImagePlugin_OilPaint"
digikam(28621): ImagePlugin_Perspective plugin loaded
digikam(28621): ImagePluginLoader: Loaded plugin  "ImagePlugin_Perspective"
digikam(28621): ImagePlugin_RainDrop plugin loaded
digikam(28621): ImagePluginLoader: Loaded plugin  "ImagePlugin_RainDrop"
digikam(28621): ImagePlugin_Restoration plugin loaded
digikam(28621): ImagePluginLoader: Loaded plugin  "ImagePlugin_Restoration"
digikam(28621): ImagePlugin_ShearTool plugin loaded
digikam(28621): ImagePluginLoader: Loaded plugin  "ImagePlugin_ShearTool"
digikam(28621): ImagePlugin_SuperImpose plugin loaded
digikam(28621): ImagePluginLoader: Loaded plugin  "ImagePlugin_SuperImpose"
digikam(28621): ImagePlugin_Texture plugin loaded
digikam(28621): ImagePluginLoader: Loaded plugin  "ImagePlugin_Texture"
digikam(28621): ImagePlugin_WhiteBalance plugin loaded
digikam(28621): ImagePluginLoader: Loaded plugin  "ImagePlugin_WhiteBalance"
QGridLayout: Multi-cell fromRow greater than toRow
QGridLayout: Multi-cell fromRow greater than toRow
QGridLayout: Multi-cell fromRow greater than toRow
QGridLayout: Multi-cell fromRow greater than toRow
Starting to load Plugins.
Files:  "CompassFloatItem.so"
Files:  "MapScaleFloatItem.so"
Files:  "MarbleOverviewMap.so"
Files:  "MarbleStarsPlugin.so"
=== MarbleDirs: ===
Local Path: "/home/brotherred/.marble/data"
Plugin Local Path: "/home/brotherred/.marble/plugins"

Marble Data Path (Run Time) : ""
Marble Data Path (Compile Time): "/usr/share/apps/marble/data"

Marble Plugin Path (Run Time) : ""
Marble Plugin Path (Compile Time): "/usr/lib/kde4/plugins/marble"

System Path: "/usr/share/apps/marble/data"
Plugin System Path: "/usr/lib/kde4/plugins/marble"
===================
"CompassFloatItem.so"  -  "/usr/lib/kde4/plugins/marble/CompassFloatItem.so"
"MapScaleFloatItem.so"  -  "/usr/lib/kde4/plugins/marble/MapScaleFloatItem.so"
"MarbleOverviewMap.so"  -  "/usr/lib/kde4/plugins/marble/MarbleOverviewMap.so"
"MarbleStarsPlugin.so"  -  "/usr/lib/kde4/plugins/marble/MarbleStarsPlugin.so"
Use workaround:  0
"Loading Default Placemark Cache
File:/usr/share/apps/marble/data/placemarks/cit
yplacemarks.cache"
Style reset requested.
"Loading Default Placemark Cache
File:/usr/share/apps/marble/data/placemarks/bas
eplacemarks.cache"
Style reset requested.
"Loading Default Placemark Cache
File:/usr/share/apps/marble/data/placemarks/ele
vplacemarks.cache"
Style reset requested.
"Loading Default Placemark Cache
File:/usr/share/apps/marble/data/placemarks/oth
erplacemarks.cache"
Style reset requested.
"Loading Default Placemark Cache
File:/usr/share/apps/marble/data/placemarks/bou
ndaryplacemarks.cache"
Style reset requested.
loadMapTheme "earth/citylights/citylights.dgml"

Succesfully parsed file!
loadMapTheme "earth/bluemarble/bluemarble.dgml"

Succesfully parsed file!
MapThemeId "earth/srtm/srtm.dgml"
loadMapTheme "earth/srtm/srtm.dgml"

Succesfully parsed file!
DGML2 Name       :  "Atlas"
Style reset requested.
THEME CHANGED: *** "earth/srtm/srtm.dgml"
QPainter::end: Painter ended with 2 saved states
QPainter::end: Painter ended with 2 saved states
QPainter::end: Painter ended with 2 saved states
QPainter::end: Painter ended with 2 saved states
QPainter::end: Painter ended with 2 saved states
digikam(28621): Storage base-dir:  "/store_00010001"
digikam(28621): Storage access: R/W
digikam(28621): Storage type: removable RAM
digikam(28621): Storage capacity:  248960
digikam(28621): Storage free-space:  25200
QPainter::end: Painter ended with 2 saved states
QPainter::end: Painter ended with 2 saved states
QPainter::end: Painter ended with 2 saved states
QPainter::end: Painter ended with 2 saved states
digikam(28621): Failed to get camera item!
digikam(28621): Libgphoto2 error:  Unsupported operation  ( -6 )
QPainter::end: Painter ended with 2 saved states
digikam(28621): Failed to get camera item!
digikam(28621): Libgphoto2 error:  Unsupported operation  ( -6 )
ASSERT: "d" in file /usr/include/ksharedptr.h, line 116
KCrash: Application 'digikam' crashing...
sock_file=/home/brotherred/.kde4/socket-localhost/kdeinit4__1



Version-Release number of selected component (if applicable):
0.10.0-beta3

How reproducible:
Very reproducible per my config ie BIOS, Kodak Easy Share CD33, ect.

Steps to Reproduce:
1.Plug in camera
2.Start DigiKam
3.Manually Detect Camera

Auto also failed as noted but no backtrace on that.
Comment 1 Sean Campbell 2009-02-09 07:35:50 UTC
To reproduce connect a Kodak Easy Share CD33 camera via USB. Start DigiKam and detect (manually per my backtrace) camera.
Comment 2 caulier.gilles 2009-02-09 08:55:43 UTC
First, please use last digiKam 0.10.0-rc1. beta3 is pretty old.

Second, we need to know which libgphoto and libkde versions you use. Go to Help/Components Info menu entry and copy and paste contents.

Gilles Caulier
Comment 3 Sean Campbell 2009-02-15 08:37:30 UTC
As I was not really sure where this bug went I first reported it to you and the Mandriva team. This was enlightening for me as you gave info that they did not naturally. But like you they sugested that I install rc1 which is in the "testing" repo at this time. Not sure of any other info I can provide. Regards

bash-3.2$ digikam
Starting to load Plugins.
Files:  "CompassFloatItem.so"
Files:  "MapScaleFloatItem.so"
Files:  "MarbleOverviewMap.so"
Files:  "MarbleStarsPlugin.so"
=== MarbleDirs: ===
Local Path: "/home/brotherred/.marble/data"
Plugin Local Path: "/home/brotherred/.marble/plugins"

Marble Data Path (Run Time) : ""
Marble Data Path (Compile Time): "/usr/share/apps/marble/data"

Marble Plugin Path (Run Time) : ""
Marble Plugin Path (Compile Time): "/usr/lib/kde4/plugins/marble"

System Path: "/usr/share/apps/marble/data"
Plugin System Path: "/usr/lib/kde4/plugins/marble"
===================
"CompassFloatItem.so"  -  "/usr/lib/kde4/plugins/marble/CompassFloatItem.so"
"MapScaleFloatItem.so"  -  "/usr/lib/kde4/plugins/marble/MapScaleFloatItem.so"
"MarbleOverviewMap.so"  -  "/usr/lib/kde4/plugins/marble/MarbleOverviewMap.so"
"MarbleStarsPlugin.so"  -  "/usr/lib/kde4/plugins/marble/MarbleStarsPlugin.so"
Use workaround:  0
"Loading Default Placemark Cache File:/usr/share/apps/marble/data/placemarks/cityplacemarks.cache"
Style reset requested.
"Loading Default Placemark Cache File:/usr/share/apps/marble/data/placemarks/baseplacemarks.cache"
Style reset requested.
"Loading Default Placemark Cache File:/usr/share/apps/marble/data/placemarks/elevplacemarks.cache"
Style reset requested.
"Loading Default Placemark Cache File:/usr/share/apps/marble/data/placemarks/otherplacemarks.cache"
Style reset requested.
"Loading Default Placemark Cache File:/usr/share/apps/marble/data/placemarks/boundaryplacemarks.cache"
Style reset requested.
loadMapTheme "earth/citylights/citylights.dgml"

Succesfully parsed file!
loadMapTheme "earth/bluemarble/bluemarble.dgml"

Succesfully parsed file!
MapThemeId "earth/srtm/srtm.dgml"
loadMapTheme "earth/srtm/srtm.dgml"

Succesfully parsed file!
DGML2 Name       :  "Atlas"
Style reset requested.
THEME CHANGED: *** "earth/srtm/srtm.dgml"
Starting to load Plugins.
Files:  "CompassFloatItem.so"
Files:  "MapScaleFloatItem.so"
Files:  "MarbleOverviewMap.so"
Files:  "MarbleStarsPlugin.so"
=== MarbleDirs: ===
Local Path: "/home/brotherred/.marble/data"
Plugin Local Path: "/home/brotherred/.marble/plugins"

Marble Data Path (Run Time) : ""
Marble Data Path (Compile Time): "/usr/share/apps/marble/data"

Marble Plugin Path (Run Time) : ""
Marble Plugin Path (Compile Time): "/usr/lib/kde4/plugins/marble"

System Path: "/usr/share/apps/marble/data"
Plugin System Path: "/usr/lib/kde4/plugins/marble"
===================
"CompassFloatItem.so"  -  "/usr/lib/kde4/plugins/marble/CompassFloatItem.so"
"MapScaleFloatItem.so"  -  "/usr/lib/kde4/plugins/marble/MapScaleFloatItem.so"
"MarbleOverviewMap.so"  -  "/usr/lib/kde4/plugins/marble/MarbleOverviewMap.so"
"MarbleStarsPlugin.so"  -  "/usr/lib/kde4/plugins/marble/MarbleStarsPlugin.so"
Use workaround:  0
"Loading Default Placemark Cache File:/usr/share/apps/marble/data/placemarks/cityplacemarks.cache"
Style reset requested.
"Loading Default Placemark Cache File:/usr/share/apps/marble/data/placemarks/baseplacemarks.cache"
Style reset requested.
"Loading Default Placemark Cache File:/usr/share/apps/marble/data/placemarks/elevplacemarks.cache"
Style reset requested.
"Loading Default Placemark Cache File:/usr/share/apps/marble/data/placemarks/otherplacemarks.cache"
Style reset requested.
"Loading Default Placemark Cache File:/usr/share/apps/marble/data/placemarks/boundaryplacemarks.cache"
Style reset requested.
loadMapTheme "earth/citylights/citylights.dgml"

Succesfully parsed file!
loadMapTheme "earth/bluemarble/bluemarble.dgml"

Succesfully parsed file!
MapThemeId "earth/srtm/srtm.dgml"
loadMapTheme "earth/srtm/srtm.dgml"

Succesfully parsed file!
DGML2 Name       :  "Atlas"
Style reset requested.
THEME CHANGED: *** "earth/srtm/srtm.dgml"
Object::connect: No such signal Digikam::GPSSearchWidget::regionSelected(QList<double>)
digikam: symbol lookup error: /usr/lib/libdigikamcore.so.1: undefined symbol: _ZN18KSqueezedTextLabel5clearEv
bash-3.2$  
Comment 4 caulier.gilles 2009-02-15 08:49:22 UTC
Now, you have a binary compatibility issue. sound like shared lib for digiKam is not updated with the last version of core program.

Cleanup you system and try again.

Note: compiling all by hands is always the ultimate way...

Gilles Caulier

Comment 5 Nicolas L. 2009-02-17 00:59:58 UTC
Hi,

i updated digikam in main/testing for mandriva 2009.0 to the latest Rc2

please install them and then make sure 

digikam
libdigikamcore1
libdigikamdatabase1


have the same version
Comment 6 caulier.gilles 2009-05-12 11:23:50 UTC
Sean,

What's news here ? can you reproduce the crash with 0.10.0 stable release ?

Gilles Caulier
Comment 7 caulier.gilles 2009-05-19 15:37:21 UTC
Sean,

Without a fresh report i will close this file...

Gilles Caulier
Comment 8 Andi Clemens 2009-10-08 10:28:54 UTC
Closing...
Comment 9 caulier.gilles 2017-12-16 11:05:49 UTC
This crash is not reproducible use current 5.8.0 pre-release bundle available
here :

https://files.kde.org/digikam/

I close this file now. Re-open it if necessary.

Gilles Caulier