-
-
Notifications
You must be signed in to change notification settings - Fork 419
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error Report hscommon\gui\progress_window.py #630
Comments
I've got a similar failure on Linux while scanning in picture mode with
|
I was moving files and a folder while dupguru was processing those files/folder. |
If you can reproduce the bug, please enable logging in the Preferences and post the log here. This has something to do with EXIF data. The error probably comes from core/pe/exif.py (in get_fields() or more specifically in dump_IFD())or core/pe/photo.py. |
* In some cases, the function dump_IFD() in core/pe/exif.py assigns a string instead of an int as "values". * This value is then used as _cached_orientation in core/pe/photo.py in _get_orientation(). * The method _plat_get_blocks() in qt/pe/photo.py was only expecting an integer for the orientation argument, so we work around the issue for now by ignoring the value if it's a string.
On reproduction, debug log showed this:
|
exiftool reports |
Thanks for the report. I'm assuming this is a TIFF file. If you want to test it further you could run my workaround branch (in debug mode still) and see the exact output. |
I tested the workaround branch and can confirm that the failure no longer occurs: Unrelated, but is it normal for the scan in picture mode to take multiple minutes to scan a directory containing only 3 pictures using Sqlite cache mode? |
Thank you very much for testing the patch and reporting the log. Looks like it might be safe to just cast the string to an int (hopefully).
This is not normal, unless maybe the files are exceptionally huge? Not familiar with the code to be honest but this might warrant a separate issue report. |
Error Report from crash.
Debug Log
Application Name: dupeGuru
Version: 4.0.4 RC
Windows
Traceback (most recent call last):
File "hscommon\gui\progress_window.py", line 101, in pulse
File "core\app.py", line 323, in _job_error
File "hscommon\jobprogress\performer.py", line 43, in _async_run
File "core\app.py", line 780, in do
File "core\scanner.py", line 137, in get_dupe_groups
File "core\pe\scanner.py", line 31, in _getmatches
File "core\pe\matchblock.py", line 167, in getmatches
File "core\pe\matchblock.py", line 83, in prepare_pictures
File "core\pe\photo.py", line 105, in get_blocks
File "qt\pe\photo.py", line 36, in _plat_get_blocks
TypeError: '<=' not supported between instances of 'int' and 'str'
The text was updated successfully, but these errors were encountered: