qarmin / czkawka

Multi functional app to find duplicates, empty folders, similar images etc.
Other
19.98k stars 655 forks source link

When there are special folders in the scan target, it may cause the duplicate file scan to become stuck. #1101

Open codercplus opened 1 year ago

codercplus commented 1 year ago

Desktop (please complete the following information):

Bug Description If the target path for scanning contains a special folder of the following type: its size is 0, and when opened by double-clicking in Windows, it displays the message "File or directory is corrupted and unreadable" - of course, we do not know in advance that such a special folder exists on the disk because its attributes are hidden by default.

So, when we click "Start Scan" in Czkawka, the program becomes unresponsive and freezes. The interface status in Czkawka is as follows.

Snipaste_2023-10-18_17-03-08

In Windows Explorer, the properties of this folder are as follows. Snipaste_2023-10-18_17-03-46

When double-clicking this special folder, the prompt message is as follows. Snipaste_2023-10-18_17-04-01

...

qarmin commented 1 year ago

Can you run windows_czkawka_gui_console.zip from https://github.com/qarmin/czkawka/releases/tag/6.1.0 and paste here what is printed into console(crashes etc.)? RUST_LOG=debug ./czkawka_gui.exe

Operations on disk are done only via standard windows functions, so I don't know which part of code not handled properly this situation.