Skip to content

Add start crash reproducer for #3773#4001

Draft
mrousavy wants to merge 10 commits into
mainfrom
codex/start-crash-3773
Draft

Add start crash reproducer for #3773#4001
mrousavy wants to merge 10 commits into
mainfrom
codex/start-crash-3773

Conversation

@mrousavy
Copy link
Copy Markdown
Owner

@mrousavy mrousavy commented Jun 5, 2026

Summary

Current findings

The issue stack proves AVCaptureSession.startRunning() overlaps AVFoundation/CoreMedia's private configuration-commit notification path on FigCaptureSessionNotificationQueue. VisionCamera serializes configure() and start() on its own queue, so the current root-cause candidate is that commitConfiguration() returns before AVFoundation has fully drained its private "make configuration live" work, and the next queued startRunning() can race output attachment.

I have not reproduced the exact assertion locally yet. The iPhone SE 3rd gen completed roughly 480 cycles without crashing; the iPhone 15 Pro was later locked and denied further launches. The Harness test is intended to make CI the next real-device signal.

Verification

  • bun run build
  • bunx tsc --noEmit --project apps/simple-camera/tsconfig.json
  • git diff --check
  • bun --cwd apps/simple-camera react-native bundle --platform ios --dev true --entry-file index.js --bundle-output /tmp/simple-camera-start-crash.bundle --assets-dest /tmp/simple-camera-start-crash-assets --reset-cache

Biome reported only pre-existing unused-variable warnings in CameraScreen.tsx; the new Harness file had no Biome diagnostics.

@vercel
Copy link
Copy Markdown

vercel Bot commented Jun 5, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
react-native-vision-camera-docs Ready Ready Preview, Comment Jun 5, 2026 6:03pm

Request Review

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