You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There were crashes on iOS devices when retaking images again and initialCameraMode is passed to rememberPeekabooCameraState.
Not on every image retake, but quite often. I was able to reproduce the problem by adding it into sample code of camera setup in this repo as well. val state = rememberPeekabooCameraState(initialCameraMode = cameraMode, onCapture = onCapture)
where cameraMode is passed as variable to PeekabooCameraView (i think it wasn't crashing if i just set locally initialCameraMode = CameraMode.Back, but not sure).
That's the crash description
** Terminating app due to uncaught exception 'NSGenericException', reason: '*** -[AVCaptureSession startRunning] startRunning may not be called between calls to beginConfiguration and commitConfiguration'
And then debug breakpoint is activate in the place below.
So I stopped passing that variable in my app and I think it helped, but need to test on more device - so there is a workaround, but would be great to fix it.
The text was updated successfully, but these errors were encountered:
shtolik
changed the title
Pekaboo crashes if cameraMode variable passed to rememberPeekabooCameraState
Pekaboo crashes on iOS if cameraMode variable passed to rememberPeekabooCameraState
Jun 19, 2024
So it may not be this camerMode related, still crashes without setting it on ios quite often:(
shtolik
changed the title
Pekaboo crashes on iOS if cameraMode variable passed to rememberPeekabooCameraState
Pekaboo crashes on iOS with "startRunning may not be called between calls to beginConfiguration and commitConfiguration"
Jun 20, 2024
There were crashes on iOS devices when retaking images again and initialCameraMode is passed to rememberPeekabooCameraState.
Not on every image retake, but quite often. I was able to reproduce the problem by adding it into sample code of camera setup in this repo as well.
val state = rememberPeekabooCameraState(initialCameraMode = cameraMode, onCapture = onCapture)
where cameraMode is passed as variable to PeekabooCameraView (i think it wasn't crashing if i just set locally initialCameraMode = CameraMode.Back, but not sure).
That's the crash description
And then debug breakpoint is activate in the place below.
So I stopped passing that variable in my app and I think it helped, but need to test on more device - so there is a workaround, but would be great to fix it.
The text was updated successfully, but these errors were encountered: