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
After waiting for Camera.StartCameraPreview to complete, taking pictures rapidly throws an uncatchable exception, crashing the app.
On Windows it's not as bad: you need to double-click a shutter button soon after the camera preview becomes active. If you single click, then wait a few seconds, no amount of rapid clicking will crash the app.
On iOS, you can consistently crash the app by double-tapping a shutter button at any point after the preview becomes active.
Edit: it looks like the ValueTask returned from Camera.StartCameraPreview never completes, execution stays halted. The first Camera.CaptureImage call throws a TaskCanceledException from Camera.StartCameraPreview that breaks out. If you only capture one image, wait about 4-ish seconds and capture more images, no more TaskCanceledExceptions are thrown (on Windows at least).
Expected Behavior
Throw an exception that can be caught—or some other ideal error state that is feasible.
Steps To Reproduce
Run solution from repro repo
Windows: double-click the "Take photo" button soon after the camera preview is active
Observe uncatchable exception and crash.
iOS: at any point after the camera preview has loaded, double-tap the "Take photo" button
Is there an existing issue for this?
Did you read the "Reporting a bug" section on Contributing file?
Current Behavior
After waiting for
Camera.StartCameraPreview
to complete, taking pictures rapidly throws an uncatchable exception, crashing the app.On Windows it's not as bad: you need to double-click a shutter button soon after the camera preview becomes active. If you single click, then wait a few seconds, no amount of rapid clicking will crash the app.
On iOS, you can consistently crash the app by double-tapping a shutter button at any point after the preview becomes active.
Edit: it looks like the ValueTask returned from
Camera.StartCameraPreview
never completes, execution stays halted. The firstCamera.CaptureImage
call throws aTaskCanceledException
fromCamera.StartCameraPreview
that breaks out. If you only capture one image, wait about 4-ish seconds and capture more images, no moreTaskCanceledExceptions
are thrown (on Windows at least).Expected Behavior
Throw an exception that can be caught—or some other ideal error state that is feasible.
Steps To Reproduce
Link to public reproduction project repository
https://github.com/tschbc/CmtyToolkitCameraViewIssues
Environment
Anything else?
No response
The text was updated successfully, but these errors were encountered: