Bug 164973 - showfoto crashed at startup
Summary: showfoto crashed at startup
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Showfoto-Core (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR crash
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-06-26 00:05 UTC by Shrikant Khare
Modified: 2016-07-04 04:38 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In: 0.10.0


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Shrikant Khare 2008-06-26 00:05:34 UTC
Version:           0.10.0-svn (rev.: 824309) (using Devel)
Installed from:    Compiled sources
Compiler:          gcc (SUSE Linux) 4.3.1 20080507 openSUSE 11.0 gcc-4_3-branch revision 135036] 
OS:                Linux

I am running openSUSE 11.0 with KDE 4.1 compiled from svn. I had never heard of showfoto and when I saw it in extragear/graphics directory with digikam; decided to give it a try.

When I was compiling, 'cmakekde' told me that installing the lens correction library was optional (the lack of which seems like the cause of the crash from the backtrace). Digikam runs fine, but showfoto crashed at startup.

This is the backtrace:

Application: showFoto (showfoto), signal SIGSEGV
[?1034h[Thread debugging using libthread_db enabled]
[New Thread 0x7fb5ed267700 (LWP 4026)]
[New Thread 0x42628950 (LWP 4031)]
[New Thread 0x41e27950 (LWP 4030)]
[New Thread 0x4131a950 (LWP 4028)]
[New Thread 0x40b19950 (LWP 4027)]
[KCrash handler]
#5  0x00007fb5e4b7d098 in QAction::setEnabled () from /usr/lib64/libQtGui.so.4
#6  0x00007fb5d95d27dc in ImagePlugin_LensCorrection::setEnabledActions (
    this=0xa71c40, enable=false)
    at /home/khare/kde/src/trunk/extragear/graphics/digikam/imageplugins/lenscorrection/imageplugin_lenscorrection.cpp:84
#7  0x00007fb5ece02d10 in Digikam::EditorWindow::toggleStandardActions (
    this=0x6efe50, val=false)
    at /home/khare/kde/src/trunk/extragear/graphics/digikam/utilities/imageeditor/editor/editorwindow.cpp:998
#8  0x0000000000438021 in ShowFoto::ShowFoto::toggleActions (this=0x6efe50, 
    val=false)
    at /home/khare/kde/src/trunk/extragear/graphics/digikam/showfoto/showfoto.cpp:719
#9  0x000000000043f7c5 in ShowFoto (this=0x6efe50, urlList=@0x7ffff52aa5b0)
    at /home/khare/kde/src/trunk/extragear/graphics/digikam/showfoto/showfoto.cpp:318
#10 0x0000000000435ff5 in main (argc=5, argv=0x7ffff52aacb8)
    at /home/khare/kde/src/trunk/extragear/graphics/digikam/showfoto/main.cpp:166
#0  0x00007fb5e350d261 in nanosleep () from /lib64/libc.so.6
Comment 1 Shrikant Khare 2008-06-26 00:10:55 UTC
The konsole output when running showfoto:
$showfoto
showfoto(4221)/kio (KDirWatch) KDirWatchPrivate::KDirWatchPrivate: Can't use FAM (fam daemon not running?)
showfoto(4221)/kio (KDirWatch) KDirWatchPrivate::KDirWatchPrivate: Available methods:  ("Stat", "INotify")
Found dcraw version: 8.86                                                                                 
showfoto(4221)/kdecore (KSycoca) KSycocaPrivate::openDatabase: Trying to open ksycoca from  "/var/tmp/kdecache-khare/ksycoca4"
showfoto(4221): ImagePlugin_Core plugin loaded                                                                                
showfoto(4221): ImagePluginLoader: Loaded plugin  "ImagePlugin_Core"                                                          
showfoto(4221): ImagePlugin_AdjustCurves plugin loaded                                                                        
showfoto(4221): ImagePluginLoader: Loaded plugin  "ImagePlugin_AdjustCurves"                                                  
showfoto(4221): ImagePlugin_AdjustLevels plugin loaded                                                                        
showfoto(4221): ImagePluginLoader: Loaded plugin  "ImagePlugin_AdjustLevels"                                                  
showfoto(4221): ImagePlugin_BlurFX plugin loaded                                                                              
showfoto(4221): ImagePluginLoader: Loaded plugin  "ImagePlugin_BlurFX"                                                        
showfoto(4221): ImagePlugin_Border plugin loaded                                                                              
showfoto(4221): ImagePluginLoader: Loaded plugin  "ImagePlugin_Border"                                                        
showfoto(4221): ImagePlugin_ChannelMixer plugin loaded                                                                        
showfoto(4221): ImagePluginLoader: Loaded plugin  "ImagePlugin_ChannelMixer"                                                  
showfoto(4221): ImagePlugin_Charcoal plugin loaded                                                                            
showfoto(4221): ImagePluginLoader: Loaded plugin  "ImagePlugin_Charcoal"                                                      
showfoto(4221): ImagePlugin_ColorFX plugin loaded                                                                             
showfoto(4221): ImagePluginLoader: Loaded plugin  "ImagePlugin_ColorFx"                                                       
showfoto(4221): ImagePlugin_DistortionFX plugin loaded                                                                        
showfoto(4221): ImagePluginLoader: Loaded plugin  "ImagePlugin_DistortionFX"                                                  
showfoto(4221): ImagePlugin_Emboss plugin loaded                                                                              
showfoto(4221): ImagePluginLoader: Loaded plugin  "ImagePlugin_Emboss"                                                        
showfoto(4221): ImagePlugin_FilmGrain plugin loaded                                                                           
showfoto(4221): ImagePluginLoader: Loaded plugin  "ImagePlugin_FilmGrain"                                                     
showfoto(4221): ImagePlugin_FreeRotation plugin loaded                                                                        
showfoto(4221): ImagePluginLoader: Loaded plugin  "ImagePlugin_FreeRotation"                                                  
showfoto(4221): ImagePlugin_HotPixels plugin loaded                                                                           
showfoto(4221): ImagePluginLoader: Loaded plugin  "ImagePlugin_HotPixels"                                                     
showfoto(4221): ImagePlugin_InPainting plugin loaded                                                                          
showfoto(4221): ImagePluginLoader: Loaded plugin  "ImagePlugin_InPainting"                                                    
showfoto(4221): ImagePlugin_Infrared plugin loaded                                                                            
showfoto(4221): ImagePluginLoader: Loaded plugin  "ImagePlugin_Infrared"                                                      
showfoto(4221): ImagePlugin_InsertText plugin loaded                                                                          
showfoto(4221): ImagePluginLoader: Loaded plugin  "ImagePlugin_InsertText"                                                    
showfoto(4221): ImagePlugin_LensCorrection plugin loaded                                                                      
showfoto(4221): ImagePluginLoader: Loaded plugin  "ImagePlugin_LensCorrection"                                                
showfoto(4221): ImagePlugin_NoiseReduction plugin loaded                                                                      
showfoto(4221): ImagePluginLoader: Loaded plugin  "ImagePlugin_NoiseReduction"                                                
showfoto(4221): ImagePlugin_OilPaint plugin loaded                                                                            
showfoto(4221): ImagePluginLoader: Loaded plugin  "ImagePlugin_OilPaint"                                                      
showfoto(4221): ImagePlugin_Perspective plugin loaded                                                                         
showfoto(4221): ImagePluginLoader: Loaded plugin  "ImagePlugin_Perspective"                                                   
showfoto(4221): ImagePlugin_RainDrop plugin loaded                                                                            
showfoto(4221): ImagePluginLoader: Loaded plugin  "ImagePlugin_RainDrop"
showfoto(4221): ImagePlugin_Restoration plugin loaded
showfoto(4221): ImagePluginLoader: Loaded plugin  "ImagePlugin_Restoration"
showfoto(4221): ImagePlugin_ShearTool plugin loaded
showfoto(4221): ImagePluginLoader: Loaded plugin  "ImagePlugin_ShearTool"
showfoto(4221): ImagePlugin_SuperImpose plugin loaded
showfoto(4221): ImagePluginLoader: Loaded plugin  "ImagePlugin_SuperImpose"
showfoto(4221): ImagePlugin_Texture plugin loaded
showfoto(4221): ImagePluginLoader: Loaded plugin  "ImagePlugin_Texture"
showfoto(4221): ImagePlugin_WhiteBalance plugin loaded
showfoto(4221): ImagePluginLoader: Loaded plugin  "ImagePlugin_WhiteBalance"
showfoto(4221) KShortcut::KShortcut: unusable primary shortcut sequence  ""
showfoto(4221) KShortcut::KShortcut: unusable primary shortcut sequence  ""
showfoto(4221) KShortcut::KShortcut: unusable primary shortcut sequence  ""
showfoto(4221) KShortcut::KShortcut: unusable primary shortcut sequence  ""
showfoto(4221) KShortcut::KShortcut: unusable primary shortcut sequence  ""
showfoto(4221) KShortcut::KShortcut: unusable primary shortcut sequence  ""
showfoto(4221) KShortcut::KShortcut: unusable primary shortcut sequence  ""
showfoto(4221) KShortcut::KShortcut: unusable primary shortcut sequence  ""
showfoto(4221) KShortcut::KShortcut: unusable primary shortcut sequence  ""
showfoto(4221) KShortcut::KShortcut: unusable primary shortcut sequence  ""
showfoto(4221) KShortcut::KShortcut: unusable primary shortcut sequence  ""
showfoto(4221) KShortcut::KShortcut: unusable primary shortcut sequence  ""
showfoto(4221) KShortcut::KShortcut: unusable primary shortcut sequence  ""
showfoto(4221) KShortcut::KShortcut: unusable primary shortcut sequence  ""
showfoto(4221) KShortcut::KShortcut: unusable primary shortcut sequence  ""
showfoto(4221) KShortcut::KShortcut: unusable primary shortcut sequence  ""
QFSFileEngine::open: No file name specified
QFSFileEngine::open: No file name specified
KCrash: crashing... crashRecursionCounter = 2
KCrash: Application Name = showfoto path = <unknown> pid = 4221
sock_file=/home/khare/.kde4/socket-khare/kdeinit4__0
Comment 2 caulier.gilles 2008-06-26 08:52:11 UTC
Shrikant,

There is no reason to have a crash here. The backtrace to do give enough informations. Sound like a broken package or something like that.

Note : here i use this plugin without problem. I compile digiKam and showfoto every day (i'm developer)

Gilles Caulier
Comment 3 Shrikant Khare 2008-06-28 14:40:15 UTC
Digikam runs properly.

I HAVE NOT INSTALLED the lens correction library (OPTIONAL). Therefore, there is no LensCorrection plugin built for showfoto. Still, it shows the following message when running

showfoto(4221): ImagePlugin_LensCorrection plugin loaded                                                                      
showfoto(4221): ImagePluginLoader: Loaded plugin  "ImagePlugin_LensCorrection"                                               


and the crash occurs when showfoto tries to set the plugin as disabled during GUI initialization.

#6  0x00007fb5d95d27dc in ImagePlugin_LensCorrection::setEnabledActions (
    this=0xa71c40, enable=false)
    at /home/khare/kde/src/trunk/extragear/graphics/digikam/imageplugins/lenscorrection/imageplugin_lenscorrection.cpp:84


I am sure there are no problems when the plugin is installed. But this is a different case. Please correct me if I am wrong. I am still new to bugtraces :)
Comment 4 caulier.gilles 2008-06-28 16:55:57 UTC
>I HAVE NOT INSTALLED the lens correction library (OPTIONAL). Therefore, there is 

Ok, now, i have understand where is the problem. I will fix it.

>no LensCorrection plugin built for showfoto. Still, it shows the following >message when running 

It's normal. there is 2 others tools in this plugin which not depand of LensFun.

Gilles Caulier

Comment 5 caulier.gilles 2008-06-28 18:07:05 UTC
SVN commit 825547 by cgilles:

do not play with lensautocoorection action if LensFun is not installed
BUGS: 164973


 M  +3 -0      imageplugin_lenscorrection.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=825547