Skip to content

fix(web): bound camera bitmap capture waits - #329

Merged
rsasaki0109 merged 4 commits into
mainfrom
codex/camera-capture
Oct 21, 2026
Merged

rsasaki0109 merged 4 commits into
mainfrom
codex/camera-capture

Conversation

@rsasaki0109

@rsasaki0109 rsasaki0109 commented Oct 21, 2026 •

Copy link
Copy Markdown
Owner

A camera or procedural sample could keep stale output visible forever while createImageBitmap never completed. Each bitmap request now owns a five-second application wait deadline and the session's abort signal. Timeout stops capture/worker ownership, clears output and offers explicit restart. Stop rejects the wait promptly; eventual late bitmaps close without submission and late native failures are consumed, protecting replacement capture state.

Validation: reproduce both parent failures with actual browser bitmap completions held; 66 JS tests, 6 asset tests and 69 full browser checks pass with the existing Rust WASM and pinned AI model. Exact timer boundaries, cleanup, listener removal, late completion/rejection, restart and explicit Stop are covered. All seven owned commands are terminal. Preserve 517 prior camera files, 493 scientific JSON and 42 frozen native artifacts; reuse the WASM and 41,087,603 shared vendor bytes with zero compiler-cache growth or new model/sensor acquisition.

The browser-native bitmap operation itself has no cancellation API. This bounds application waiting, not unfinished native work or physical memory across repeated restarts. Physical phone/Safari and the original operational 80% gates remain open.

Contract: benchmarks/camera-capture-plan.json (146AO). Evidence: docs/receipts/2026-10-21_camera_capture.json.

The first Ubuntu Visual conformance attempt terminated in the unchanged native rendering tests with SIGSEGV. The raw log and failed merge-guard records are preserved. The individual crashing test and root cause are unknown; a same-source retry and all 131 required checks are required before merge.

@rsasaki0109
rsasaki0109 merged commit e43e0c6 into main Oct 21, 2026
255 of 256 checks passed
@rsasaki0109
rsasaki0109 deleted the codex/camera-capture branch October 22, 2026 03: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