Bug 437750

Summary: digiKam causes 20 exiftool (32) .exe to run in the Task Manager panel at the end of the day W10
Product: [Applications] digikam Reporter: HJ <hannesjaagura>
Component: Metadata-ExifToolAssignee: Digikam Developers <digikam-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: caulier.gilles
Priority: NOR    
Version: 7.3.0   
Target Milestone: ---   
Platform: Microsoft Windows   
OS: Microsoft Windows   
Latest Commit: Version Fixed In: 7.3.0
Sentry Crash Report:

Description HJ 2021-05-27 20:00:37 UTC
SUMMARY
digiKam causes 20 exiftool (32) .exe to run in the  Task Manager panel at the end of the day Windows 10.
Energy consumption very low.
When digiKam is closed, the exiftool (32) remains active

Hannes

STEPS TO REPRODUCE
1. 
2. 
3. 

OBSERVED RESULT


EXPECTED RESULT


SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION
Comment 1 caulier.gilles 2021-05-27 21:16:12 UTC
did you restart digikam many time before the end of day ?
Comment 2 caulier.gilles 2021-05-28 03:12:56 UTC
The problem is the same under MacOS : a process named perl5.30 still exists at end of digiKam session. It host exiftool script and still detached from digiKam process when application is closed.

Under Linux it's also the same. This time a process named exiftool still running.

ExifToolProcess instance must be killed in ExiftoolParser destructor.

Gilles Caulier
Comment 3 caulier.gilles 2021-05-28 03:59:09 UTC
Git commit 37a4fc4d2d8e2e300c28102cc5f0e3a765e53448 by Gilles Caulier.
Committed on 28/05/2021 at 03:56.
Pushed by cgilles into branch 'master'.

always pass a parent to ExifToolPArser constructor to be sure that destructor is called.
If null parent is passed, as under separated process, call destructor explicitly.
FIXED-IN: 7.3.0

M  +1    -1    core/libs/dngwriter/dngsettings.cpp
M  +9    -3    core/libs/dngwriter/dngwriter_postprocess.cpp
M  +1    -1    core/libs/metadataengine/exiftool/exiftoolparser.h
M  +1    -1    core/libs/metadataengine/exiftool/exiftoolprocess.h
M  +1    -1    core/libs/widgets/metadata/exiftool/exiftoolconfpanel.cpp
M  +1    -1    core/libs/widgets/metadata/exiftool/exiftoollistview.cpp
M  +1    -2    core/tests/metadataengine/exiftool/exiftoolapplychanges_cli.cpp
M  +1    -1    core/tests/metadataengine/exiftool/exiftoolexport_cli.cpp
M  +3    -3    core/tests/metadataengine/exiftool/exiftoolformats_cli.cpp
M  +2    -2    core/tests/metadataengine/exiftool/exiftoollanguages_cli.cpp
M  +6    -1    core/tests/metadataengine/exiftool/exiftoolmulticore_cli.cpp
M  +1    -1    core/tests/metadataengine/exiftool/exiftooloutput_cli.cpp
M  +1    -1    core/tests/metadataengine/exiftool/exiftoolparserout_cli.cpp
M  +1    -1    core/tests/metadataengine/exiftool/exiftoolwrite_cli.cpp

https://invent.kde.org/graphics/digikam/commit/37a4fc4d2d8e2e300c28102cc5f0e3a765e53448