[Bug]: Cancelling Sort Into Folders Hangs #194

Closed
opened 2026-10-24 16:02:56 +00:00 by ValleyGeek · 1 comment
Owner

App version

dev-0.9.4-issue-179-184

Platform

No response

Steps to reproduce

Click sort into folders then cancel while it's building a sort preview.

Expected behavior

operation stops and dialog closes

Actual behavior

Dialog operation freezes, won't close, and blocks access to the application

Additional context

7,200 images open. 3,700 tagged

### App version dev-0.9.4-issue-179-184 ### Platform _No response_ ### Steps to reproduce Click sort into folders then cancel while it's building a sort preview. ### Expected behavior operation stops and dialog closes ### Actual behavior Dialog operation freezes, won't close, and blocks access to the application ### Additional context 7,200 images open. 3,700 tagged
Member

Two things kept Cancel from closing the preview.

The build runs before exec() so the loading page can paint. Cancel called reject(), then exec() ran anyway, reset the dialog result, and showed the loading page again with nothing left reading the cancel flag. The caller now skips exec() when the build was cancelled. The dialog result cannot be that signal: it defaults to Rejected even after a finished build.

The build also decoded every eligible thumbnail on the UI thread and relaid out the strip on each image, which is what froze a few thousand tagged images before Cancel was noticed. The preview now loads paths and filenames only. Thumbnails for a group load in chunks of 40 when that group is expanded.

On 0.10.0/issue-193-194-scroll-sort-cancel. Left open until that branch merges.

Two things kept Cancel from closing the preview. The build runs before `exec()` so the loading page can paint. Cancel called `reject()`, then `exec()` ran anyway, reset the dialog result, and showed the loading page again with nothing left reading the cancel flag. The caller now skips `exec()` when the build was cancelled. The dialog result cannot be that signal: it defaults to Rejected even after a finished build. The build also decoded every eligible thumbnail on the UI thread and relaid out the strip on each image, which is what froze a few thousand tagged images before Cancel was noticed. The preview now loads paths and filenames only. Thumbnails for a group load in chunks of 40 when that group is expanded. On `0.10.0/issue-193-194-scroll-sort-cancel`. Left open until that branch merges.
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
ai-collab/bulk-image-organizer#194
No description provided.