Skip to content

fix(memory): stop crashing when Vision rejects a screenshot - #21

Merged
Quost merged 1 commit into
mainfrom
fix/ocr-double-resume
Nov 11, 2026
Merged

Quost merged 1 commit into
mainfrom
fix/ocr-double-resume

Conversation

@Quost

@Quost Quost commented Nov 11, 2026

Copy link
Copy Markdown
Owner

Menew 1.100.0 quits by itself every ~5 minutes on macOS 27 (3 crash reports here: EXC_BREAKPOINT in CheckedContinuation.resume on a background thread).

Cause: when Vision can't read an image, it calls the VNRecognizeTextRequest completion handler with the error and throws from perform, so TextRecognizer.recognize resumed its continuation twice (SWIFT TASK CONTINUATION MISUSE). Automatic Memory retried the same screenshot after every relaunch.

Fix: ResumeOnce resumes the continuation only once. New test with a 1×1 image reproduces the exact crash on the old code (signal 5, "tried to resume its continuation more than once") and passes now. 92 tests pass. CHANGELOG: 1.100.1.

🤖 Generated with Claude Code

On failure, Vision calls the request's completion handler with the error
and also throws from perform, so TextRecognizer resumed its continuation
twice and the app aborted. Automatic Memory then retried the same image
after each relaunch, so Menew quit every few minutes. The continuation is
now resumed once.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Quost
Quost merged commit 2ccec6e into main Nov 11, 2026
11 checks passed
@Quost
Quost deleted the fix/ocr-double-resume branch November 11, 2026 13:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant