Bug 399406 - Digikam Crash on advance rename
Summary: Digikam Crash on advance rename
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: AdvancedRename-engine (show other bugs)
Version: 6.0.0
Platform: Microsoft Windows Microsoft Windows
: NOR crash
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-10-05 12:39 UTC by Dave
Modified: 2020-08-10 10:18 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In: 6.0.0
Sentry Crash Report:


Attachments
debug (36.34 KB, text/plain)
2018-10-05 12:39 UTC, Dave
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Dave 2018-10-05 12:39:04 UTC
Created attachment 115429 [details]
debug

SUMMARY
When renaming multiple files and another file of same name exists and selecting Rename Again or Cancel results in crash

STEPS TO REPRODUCE
1. Select multiple files to rename (using '[meta:Exif.Photo.DateTimeOriginal]' to rename and then select files again and use '[file]{replace:"_","",ri}{trim}{range:1,15}{unique}{replace:" ","_",ri}' to remove the _ and space and add unique in case of pictures taken at same time with two different cameras)

OBSERVED RESULT
Digikam renames as usual until a file with same name is encountered
Choice is given to rename again, overwrite or cancel, when rename again or cancel are selected digikam hangs then quits.

EXPECTED RESULT
File to rename or add unique value to it.

SOFTWARE VERSIONS
DK 6 build Oct 2 (mysql internal, mariadb-10.3.10-winx64)
Windows 10

ADDITIONAL INFORMATION
Also using on a folder that is set for Google Backup and Sync
Comment 1 Maik Qualmann 2018-10-05 16:51:23 UTC
Git commit 6bba3f447aa3ee11924e08529ccdde1fad5ad557 by Maik Qualmann.
Committed on 05/10/2018 at 16:50.
Pushed by mqualmann into branch 'master'.

we do not need the ImageViewUtilities here

M  +1    -2    core/app/items/imageviewutilities.cpp
M  +8    -1    core/libs/database/utils/dio.cpp
M  +1    -1    core/libs/database/utils/dio.h
M  +3    -7    core/utilities/advancedrename/advancedrenameprocessdialog.cpp

https://commits.kde.org/digikam/6bba3f447aa3ee11924e08529ccdde1fad5ad557
Comment 2 Maik Qualmann 2018-10-05 16:53:01 UTC
I can not reproduce the problem on Linux or Windows. But maybe we had a double deletion of a class here. We will see it with the next update.

Maik
Comment 3 caulier.gilles 2018-10-06 09:32:35 UTC
Dave,

The bundles are under compilation stages. All will be uploaded in one hour at usual place and ready to test last changes done by Maik. Files will be uploaded here :

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

Gilles Caulier
Comment 4 Dave 2018-10-06 17:18:59 UTC
You guys are awesome, I will report back when I get a chance to download and test.

Dave Brown
Comment 5 Maik Qualmann 2018-10-11 16:34:13 UTC
I can now reproduce the problem with the current Windows build on a real Windows7 machine.

Maik
Comment 6 Maik Qualmann 2018-10-11 17:26:01 UTC
Git commit fa42aa4944270cc225102efeff41f813a53a63b8 by Maik Qualmann.
Committed on 11/10/2018 at 17:23.
Pushed by mqualmann into branch 'master'.

next attempt to fix the crash in the rename dialog

M  +2    -1    core/utilities/advancedrename/advancedrenameprocessdialog.cpp

https://commits.kde.org/digikam/fa42aa4944270cc225102efeff41f813a53a63b8
Comment 7 Maik Qualmann 2018-10-11 20:39:46 UTC
Also this commit does not fix it...

Maik
Comment 8 Maik Qualmann 2018-10-12 08:52:17 UTC
With the gdb on Windows the problem becomes clear, I fix it...

Maik
Comment 9 Dave 2018-10-12 12:52:37 UTC
Ok sorry for the delay, I have had a chance to test out the commit from 10-6 and it does the same except I can select cancel and go back without a crash. When new commit is updated I will test out and report back.

Dave Brown
Comment 10 caulier.gilles 2018-10-12 14:29:58 UTC
Maik,

I plan to release the beta 2 while this weekend as all sound fine with Exiv2 0.27 everywhere.

Do you want to wait to close this file with or not ?

Gilles
Comment 11 Maik Qualmann 2018-10-12 15:47:19 UTC
I fix the bug today.

Maik
Comment 12 Maik Qualmann 2018-10-12 17:13:24 UTC
Git commit 81fb8a0160d55851d3a2f8b49d0afba2e53e65ae by Maik Qualmann.
Committed on 12/10/2018 at 17:12.
Pushed by mqualmann into branch 'master'.

fix finish signal from Advanced Rename thread
FIXED-IN: 6.0.0

M  +2    -1    NEWS
M  +3    -2    core/libs/database/utils/dio.cpp
M  +1    -1    core/libs/database/utils/dio.h
M  +20   -29   core/utilities/advancedrename/advancedrenameprocessdialog.cpp
M  +1    -1    core/utilities/advancedrename/advancedrenameprocessdialog.h

https://commits.kde.org/digikam/81fb8a0160d55851d3a2f8b49d0afba2e53e65ae
Comment 13 Dave 2018-10-16 22:31:29 UTC
Thank you guys, works as expected now.