fix(dupe): guard dupe-scan startup against crashes; fix packaged-build logging (#111) #119
No reviewers
Labels
No labels
Kind/Bug
Kind/Feature
Priority/High
Priority/Medium
Reviewed/Confirmed
Compat/Breaking
Kind/Bug
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Security
Kind/Testing
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Reviewed
Confirmed
Reviewed
Duplicate
Reviewed
Invalid
Reviewed
Won't Fix
Status
Abandoned
Status
Blocked
Status
Need More Info
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
ai-collab/bulk-image-organizer!119
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "0.1.38/issue-111-dupe-scan-crash"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
_start_dupe_scan()and its progress/finished/error signal handlers had no exception handling of their own; any exception in that path propagated straight out of a Qt slot and the app just closed. Wrapped the synchronous start path and each signal handler in try/except, routing failures through a new_fail_dupe_scan()helper that shows a "Duplicate Scan Error" dialog and resets scan state (each reset step runs independently so one failing widget call can't suppress the rest, including the dialog itself).setup_logging()only checkedsys.frozen, which Nuitka doesn't reliably set on packaged builds — so packaged builds fell through to the dev logging branch (a useless/silently-swallowed stdout handler on Windows, and no file handler at all), meaning any exception logged vialogger.exception()along the #111 path would vanish without a trace. Added_running_packaged()(matchingresource_paths.py's__compiled__check) so packaged builds get a durable log file under the global config dir instead.Test plan
ruff check/ruff format --checkpytestRefs #111.
First of a chain of 11 sequential PRs (each based on the previous one's tip) bringing the full feature-branch backlog into
mainin order.