-
Notifications
You must be signed in to change notification settings - Fork 408
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
A resource was acquired at attached stack trace but never released. #212
Labels
Comments
Facing the same issue |
Same issue here |
Having the same issue on a Samsaung Galaxy Tab Active T365. I made sure that fa.stop() is called when finishing the activity. |
It looks to me that we need to 'release' surface in CameraDevice.kt in close() method. Surface is not released anywhere - what do you think? Something like this:
|
Fixed in the finally released v2.3.1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What are you trying to achieve or the steps to reproduce?
StrictMode throws an error:
resource was acquired at attached stack trace but never released. See java.io.Closeable for information on avoiding resource leaks.
I used the sample app from this repository, added an App class which extends
Application
class and implementedonCreate()
method where I initialised StrictMode:AndroidManifest.xml
Steps to reproduce:
How did you initialize FA?
FA was initialised like in the sample app (actually, the sample app was used to reproduce this issue)
What was the result you received?
What did you expect?
There is no issues coming from StrictMode.
Context:
The text was updated successfully, but these errors were encountered: