Bug 303992

Summary: Digikam is closing after opening any file dialog
Product: [Applications] digikam Reporter: Rafael Linux User <rafael.linux.user>
Component: Portability-RuntimeAssignee: Digikam Developers <digikam-bugs-null>
Status: RESOLVED FIXED    
Severity: critical CC: ajg02, anantapalani, caulier.gilles, rafael.linux.user
Priority: NOR    
Version: 2.7.0   
Target Milestone: ---   
Platform: Microsoft Windows   
OS: Microsoft Windows   
Latest Commit: Version Fixed In: 5.0.0
Sentry Crash Report:
Attachments: Last image before Digikam is automatically closed

Description Rafael Linux User 2012-07-24 07:58:54 UTC
After installing digikam standalone version (that have no gtb), if I try to launch a selection dialog, like to add a new album, digikam is closed. It happen with ANY program with file dialog window from "digikam/bin", as with "dngconverter.exe", when I press "`+" to add files to convert. I'm using Win 7.



Reproducible: Always

Steps to Reproduce:
1.Launch digikam
2.Try to add a new Album
3.A file dialog appear ("Select the folder ....") and inmediately, digikam is closed.
Actual Results:  
digikam is closed

Expected Results:  
Browse acroos folders tree to select any folders / files
Comment 1 caulier.gilles 2012-07-24 08:34:32 UTC
We need  a debugger backtrace please...
Gilles caulier
Comment 2 Rafael Linux User 2012-07-24 08:48:27 UTC
I don't have gdb (is NOT included in the installation) and didn't use it before. Could you guide me , please?
Comment 3 Rafael Linux User 2012-07-24 11:28:20 UTC
I tried to debug with WinDbg, with 2 options, "Open executable" and "Attach to process",  but this is what I got ....

ModLoad: 00000000`58ea0000 00000000`58ecf000   digikamimageplugin_fxfilters.dll
ModLoad: 00000000`58e40000 00000000`58e91000   digikamimageplugin_transform.dll
(1404.1f7c): Break instruction exception - code 80000003 (first chance)
*** ERROR: Symbol file could not be found.  Defaulted to export symbols for C:\Windows\SYSTEM32\ntdll.dll - 
ntdll!DbgBreakPoint:
00000000`76d70530 cc              int     3
Comment 4 Rafael Linux User 2012-07-24 11:37:48 UTC
That was with "Attach to process" from WinDBG (so I can't get to open any dialog cause WinDBG blocked digikam).

With "Open executable", this is what I got (and digikam doesn't appear)
Microsoft (R) Windows Debugger Version 6.12.0002.633 AMD64
Copyright (c) Microsoft Corporation. All rights reserved.

CommandLine: "C:\Program Files (x86)\digiKam\bin\digikam.exe"
Symbol search path is: *** Invalid ***
****************************************************************************
* Symbol loading may be unreliable without a symbol search path.           *
* Use .symfix to have the debugger choose a symbol path.                   *
* After setting your symbol path, use .reload to refresh symbol locations. *
****************************************************************************
Executable search path is: 
ModLoad: 00000000`012d0000 00000000`0172b000   digikam.exe
ModLoad: 00000000`76d20000 00000000`76ec9000   ntdll.dll
ModLoad: 00000000`76f00000 00000000`77080000   ntdll32.dll
ModLoad: 00000000`74580000 00000000`745bf000   C:\Windows\SYSTEM32\wow64.dll
ModLoad: 00000000`74520000 00000000`7457c000   C:\Windows\SYSTEM32\wow64win.dll
ModLoad: 00000000`74510000 00000000`74518000   C:\Windows\SYSTEM32\wow64cpu.dll
(1b44.1fd0): Break instruction exception - code 80000003 (first chance)
*** ERROR: Symbol file could not be found.  Defaulted to export symbols for ntdll.dll - 
ntdll!CsrSetPriorityClass+0x40:
00000000`76dccb60 cc              int     3
Comment 5 Rafael Linux User 2012-08-02 10:24:15 UTC
Please, no one will help me then?
Comment 6 caulier.gilles 2012-08-02 10:29:03 UTC
Look like it miss an internal windows dll file in your system  :

*** ERROR: Symbol file could not be found.  Defaulted to export symbols for C:\Windows\SYSTEM32\ntdll.dll - 

The question is why ?

Gilles Caulier
Comment 7 Rafael Linux User 2012-08-02 10:53:14 UTC
I don't know why. The file is there and even in more directories (sysnow64
for example). I'm admin on this Windows 7 x64 and really have no idea
what's the problem, cause I didn't use a debugger before.

Thank you
Comment 8 caulier.gilles 2012-08-02 11:27:25 UTC
Perhaps it's not the right version of DLL

Gilles Caulier
Comment 9 Andrew Goodbody 2012-08-02 18:25:14 UTC
The issue with ntdll.dll is that WinDbg cannot find the symbols for printing in the backtrace. You can configure WinDbg to automatically download any Windows symbols it needs. See the article at this link http://features.techworld.com/operating-systems/3275067/solving-windows-7-crashes-with-debugging-tools/?pn=2
This does not explain why the code is ending up at the breakpoint though.
Comment 10 Rafael Linux User 2012-08-06 08:47:33 UTC
Thank you Andrew. This is the result after I did what you told me.

ModLoad: 00000000`013e0000 00000000`0183b000   digikam.exe
ModLoad: 00000000`775a0000 00000000`77749000   ntdll.dll
ModLoad: 00000000`77780000 00000000`77900000   ntdll32.dll
ModLoad: 00000000`74e00000 00000000`74e3f000   C:\Windows\SYSTEM32\wow64.dll
ModLoad: 00000000`74da0000 00000000`74dfc000
C:\Windows\SYSTEM32\wow64win.dll
ModLoad: 00000000`74d90000 00000000`74d98000
C:\Windows\SYSTEM32\wow64cpu.dll
(188c.1f9c): Break instruction exception - code 80000003 (first chance)
ntdll!LdrpDoDebuggerBreak+0x30:
00000000`7764cb60 cc              int     3

I don't know what's the problem neither.

2012/8/2 Andrew Goodbody <ajg02@elfringham.co.uk>

> https://bugs.kde.org/show_bug.cgi?id=303992
>
> Andrew Goodbody <ajg02@elfringham.co.uk> changed:
>
>            What    |Removed                     |Added
>
> ----------------------------------------------------------------------------
>                  CC|                            |ajg02@elfringham.co.uk
>
> --- Comment #9 from Andrew Goodbody <ajg02@elfringham.co.uk> ---
> The issue with ntdll.dll is that WinDbg cannot find the symbols for
> printing in
> the backtrace. You can configure WinDbg to automatically download any
> Windows
> symbols it needs. See the article at this link
>
> http://features.techworld.com/operating-systems/3275067/solving-windows-7-crashes-with-debugging-tools/?pn=2
> This does not explain why the code is ending up at the breakpoint though.
>
> --
> You are receiving this mail because:
> You are on the CC list for the bug.
> You reported the bug.
>
Comment 11 Rafael Linux User 2012-08-06 08:48:37 UTC
Thank you Andrew. This is the result after I did what you told me.

ModLoad: 00000000`013e0000 00000000`0183b000   digikam.exe
ModLoad: 00000000`775a0000 00000000`77749000   ntdll.dll
ModLoad: 00000000`77780000 00000000`77900000   ntdll32.dll
ModLoad: 00000000`74e00000 00000000`74e3f000   C:\Windows\SYSTEM32\wow64.dll
ModLoad: 00000000`74da0000 00000000`74dfc000   C:\Windows\SYSTEM32\wow64win.dll
ModLoad: 00000000`74d90000 00000000`74d98000   C:\Windows\SYSTEM32\wow64cpu.dll
(188c.1f9c): Break instruction exception - code 80000003 (first chance)
ntdll!LdrpDoDebuggerBreak+0x30:
00000000`7764cb60 cc              int     3

I don't know what's the problem neither.
Comment 12 caulier.gilles 2012-08-06 09:00:23 UTC
Ananta,

Any idea about the problem under windows DLL ?

Gilles Caulier
Comment 13 Rafael Linux User 2012-08-06 09:31:20 UTC
I have no idea about Windows libraries. Could it be related to x64
platform? Is digikam working right on Windows x64?
Comment 14 caulier.gilles 2012-08-06 09:40:25 UTC
yes, it run fine on my Toshiba Z830 Win7 64bits ultrabook...

Gilles Caulier
Comment 15 Rafael Linux User 2012-08-06 09:48:42 UTC
So we are now in a no exit road. I try again and again to lauch Digikam, but always, any time I try to open a file dialog, it appear for 2 seconds and finally, Digikam is closed. I'll give up.

:(
Comment 16 Ananta Palani 2012-08-06 17:19:31 UTC
(In reply to comment #15)
> So we are now in a no exit road. I try again and again to lauch Digikam, but
> always, any time I try to open a file dialog, it appear for 2 seconds and
> finally, Digikam is closed. I'll give up.

Do you have any external devices for plugged in, such as SD cards, USB devices, etc.? If so, try unplugging all of them and restarting your computer. Then run digiKam and test again. I'm wondering if this is related to problems some users have when starting digiKam with some external devices mounted.
Comment 17 Rafael Linux User 2012-08-06 20:07:54 UTC
Thank you Ananta.

I must say that I have no one storage device to my Dell, only mouse and
keyboard. But I'm agree with you. Is the fact of showing storage drives.
I'm thinking on trying to unattach logical drives of my Windows net, cause
that could be a cause.

Thank you any way!!!!!! I will report tomorrow about this try.
Comment 18 Rafael Linux User 2012-08-07 11:44:33 UTC
Created attachment 73020 [details]
Last image before Digikam is automatically closed

I detached logical drives, but it did not solve the problem.

:(
Comment 19 caulier.gilles 2015-06-26 13:43:48 UTC
New digiKam 4.11.0 is available :

https://www.digikam.org/node/740

Can you reproduce the problem with this release ?

Gilles Caulier
Comment 20 Rafael Linux User 2015-06-29 10:47:27 UTC
Hi. Please, WHERE is available for Windows? Here http://download.kde.org/stable/digikam/ there is not version 4.11 available for Windows. Or I can't see it al least.
Comment 21 caulier.gilles 2015-06-29 10:58:14 UTC
4.11.0 will be compiled in few days by Ananta.

Else, 4.10.0 installer can be used for a first try...

Gilles Caulier
Comment 22 caulier.gilles 2015-07-06 07:40:04 UTC
digiKam 4.11.0 Windows installer is available for download :

http://download.kde.org/stable/digikam/digiKam-installer-4.11.0-win32.exe.mirrorlist
Comment 23 caulier.gilles 2015-08-21 07:05:58 UTC
digiKam 4.12.0 is out :

https://www.digikam.org/node/741

We need a fresh feedback using this release please...
Thanks in advance.
Comment 24 caulier.gilles 2016-05-28 18:24:17 UTC
With next digiKam 5.0.0, we will provide a fully cross-compiled version Windows under Linux where a lots of problems have been fixed.

https://www.flickr.com/photos/digikam/27033685570/in/dateposted-public/

The Windows installer is available here to test :

https://drive.google.com/open?id=0B7yq-xFihT0_SzhxVzF1RDhPbFE

Gilles Caulier