New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Capture fails after a restart of the camera #117
Comments
Is this reproducible in the sampleApp provided with the library? |
Not sure, can't get the sample app to compile. It complains that |
I had to include a google-services.json in order to compile it. I'm not sure why there is a need to have that in the project. @pvasa is that a dependency that could be removed? I also had to add gradle wrappers into a few sub projects. |
I can confirm this issue exists in the sample app as well by leaving the app and coming back. Flash will fire but the picture is not taken and no preview is shown. |
@pcm2a @arvinkx The sampleApp demos barcode detection implementation using firebase api as a demo for preview frame listener that is why it requires google-services.json. Please refer this google help article for instructions on generating google-services.json |
@pvasa Not really familiar with Kotlin but I believe the issue is related to this block of code in
Once stop is called without removing the listeners, starting the camera again and calling capture in debug mode in the sample app, gets to the line with |
@arvinkx good catch that was the exact issue. When a scope is created using |
Describe the bug
Capture doesn't work after stopping and restarting the camera in release 2.7.0. An error is not generated and the picture taken listener is not invoked. This showed up in this latest release (2.7.0), it doesn't seem to occur on 2.6.1.
To Reproduce
Steps to reproduce the behavior:
start
stop(false)
start
capture
and the dimming UI animation occurs butaddPictureTakenListener
oraddCameraErrorListener
are never calledExpected behavior
Calling capture should call either the error listener or the picture taken listener.
Using ProGuard
Device (please complete the following information):
Branch Name (if using as a local module)
The text was updated successfully, but these errors were encountered: