Closed mmBs closed 6 years ago
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:
/**
* Closes the connection to a camera.
*/
open fun close() {
logger.recordMethod()
surface.release()
camera.release()
}
Fixed in the finally released v2.3.1
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: