Skip to content

Conversation

@scarlac
Copy link
Collaborator

@scarlac scarlac commented Jan 5, 2026

Introduces a mount stress test feature in the example app, allowing repeated mounting and unmounting of the CameraExample component at a configurable interval. Updates CameraExample to support a 'stress' mode that triggers image capture and random zoom changes on mount.

Summary

iOS AVCaptureSession.commitConfiguration()/.beginConfiguration()/startRunning() does not execute synchronously. Documentation does not state that it's asynchronous, so this is basically a bug in iOS, which has increased in frequency in iOS 26. I believe the issue has existed prior, but was less common.

A stress test was added that will reproduce the issue given enough time (and without a fix).

Fixes #758

How did you test this change?

Tested on iOS 26, iPhone 17 Pro

Introduces a mount stress test feature in the example app, allowing repeated mounting and unmounting of the CameraExample component at a configurable interval. Updates CameraExample to support a 'stress' mode that triggers image capture and random zoom changes on mount.
@scarlac scarlac merged commit 03763d0 into master Jan 5, 2026
4 of 7 checks passed
@scarlac scarlac deleted the stress-test branch January 5, 2026 22:34
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.

Camera crashing the app

2 participants