Closed cyodrew closed 1 year ago
Same here!
Some progress?
@cyodrew @flipper09112 Thank you for the bug report, two questions... 1) Are you using code from the Quickstart? 2) We have fixed many camera issues between 7.3.1 & 7.5.1. Have you tested with latest version?
@afalls-twilio I have not been able to produce the issue in the Quickstart but it doesn't happen often in our app either. I will update our app with the latest SDK version and report back here, thanks!
@cyodrew Thank you for attempting with the QuickStart, is the issue still happening post upgrade?
Description
I'm getting some reports in Crashlytics of ANRs when
stopCapture
is called onCamera2Capturer
, usually when the local video track is released during theonPause
lifecycle event.Steps to Reproduce
onPause
either due to placing the app in the background or finishing the activityCamera2Capturer
callsstopCapture
and blocks the main thread due to thewait
call not being notified.Code
N/A
Expected Behavior
The camera is released and not blocking the main thread.
Actual Behavior
The app gets stuck waiting for the camera to be released.
Reproduces how Often
Not often, but could be due to some sort of race condition. There's been 42 occurrences in the last 90 days of our app.
Logs
Versions
All relevant version information for issue.
Video Android SDK
7.3.1
Android API
33
Android Device
Mostly Samsung devices (>90%), a few Pixel devices and others