Bug 336650

Summary: Face Detection always(!) crashes after first and only successful run (Digikam 3.4.0 on Windows 7)
Product: [Applications] digikam Reporter: Unknown <null>
Component: Faces-DetectionAssignee: Digikam Developers <digikam-bugs-null>
Status: RESOLVED FIXED    
Severity: crash CC: caulier.gilles, null
Priority: NOR    
Version: 3.5.0   
Target Milestone: ---   
Platform: Microsoft Windows   
OS: Microsoft Windows   
Latest Commit: Version Fixed In: 4.2.0
Sentry Crash Report:

Description Unknown 2014-06-24 10:00:10 UTC
Digikam 3.4.0 on Windows 7 Professional 64-bit SP1 (patch level up-to-date)

Face Detection:
First initial run was successful and worked properly. Results were given.
But any further run crashes Digikam main program. Sometimes with the internal Bugtracker shown (Backtrace is generated, but it always says that it is not useful), sometimes not. Regardless to what options for Face Detection have been chosen (tried most of the combinations).

Reproducible: Always




Operating System
	Windows 7 Professional 64-bit SP1
	Computer type: Desktop
		Antivirus
			Antivirus	Enabled
			Display Name	Sophos Anti-Virus
			Virus Signature Database	Up to date
		.NET Frameworks installed
			v4.5 Full
			v4.5 Client
			v3.5 SP1
			v3.0 SP2
			v2.0 SP2
		Internet Explorer
			Version	11.0.9600.17126
		Java
				Java Runtime Environment
					Path	C:\Program Files (x86)\Java\jre7\bin\java.exe
					Version	7.0
					Update	60
					Build	19
				Java Runtime Environment
					Path	C:\Program Files\Java\jre7\bin\java.exe
					Version	7.0
					Update	60
					Build	19
Comment 1 caulier.gilles 2014-06-24 11:55:51 UTC
Please try my unoficial windows installer updated to 4.1.0 :

https://drive.google.com/file/d/0B7yq-xFihT0_TTZTaXlUaExlaWs/edit?usp=sharing

Note : don't forget to delete libkface database file from your home directory before to run digiKam. Mine under Windows7 is located here :

C:\Users\GILLES\AppData\Roaming\.kde\share\apps\libkface\database\recognition.db

Gilles Caulier
Comment 2 Unknown 2014-07-02 17:07:44 UTC
Dear Gilles, Salut!

Can you, please, offer that - or any new up-to-date Windows Installer of Digikam (full install). It should be mostly stable, because I cannot need a crash of my system. I can just handle single program crashes. So, if you can offer this, please feel free to do so. I would like to try face detection (if it works now regularly). If you have any questions and topics I should pay attention to, please, tell me about. I can try to serve you with comments and data. But, please, note, I don't use all of digikam's features and tools. So, if you want something specific being tested (on a Windows system), tell me.

Merci beaucoup pour ton aide, à bientôt,

Gunner
Comment 3 caulier.gilles 2014-07-06 18:03:39 UTC
New pre-version of digiKam 4.2.0 windows installer is available here.

https://drive.google.com/file/d/0B7yq-xFihT0_TTZTaXlUaExlaWs/edit?usp=sharing

I recently released 4.1.0 installer which is available in offcial KDE download repository, but this version crash immediately when face detection is started.

Crash appear when loading haar cascade XML files. There is no reason for that...
The crash  is inside core of OpenCV. This is not a problem relevant of digiKam. I'm sure, i found partially why :

Originally, OpenCV have been compiled using minimal options enabled, to optimize install. This is the case of 4.1.0 where OpenCV 2.4.9 is installed as shared lib.

Trying to find the problem using small libkface tests program, i finally tried to recompile and install whole OpenCV with all options enabled. And all work fine...

So to conclude : OpenCV is a big mess puzzle, providing around 30 optional features. Playing with this options as side effect due to internal dependencies. OpenCV is really weird here.

For me this problem is an important UPSTREAM dysfunction which must be reported to OpenCV team.

I don't know about Linux and OSX, but there is a big chance that similar problem will appear if OpenCV compilation options are enabled or disabled...

So to all packagers, please take a care about OpenCV packages.

Thanks in advance.

Gilles Caulier
Comment 4 caulier.gilles 2014-07-06 18:12:04 UTC
digiKam 4.2.0 running Face Detection under Windows 7 :

https://www.flickr.com/photos/digikam/14402474860/sizes/o/

Gilles Caulier