Skip to content
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

Bug: resource leak found in strict mode #198

Closed
umesh0492 opened this issue Oct 17, 2016 · 1 comment
Closed

Bug: resource leak found in strict mode #198

umesh0492 opened this issue Oct 17, 2016 · 1 comment

Comments

@umesh0492
Copy link

Strict mode configuration
StrictMode.setThreadPolicy (new StrictMode.ThreadPolicy.Builder ()
.detectDiskReads ()
.detectDiskWrites ()
.detectNetwork ()
.detectAll ()// or .detectAll() for all detectable problems
.penaltyLog ()
.build ());
StrictMode.setVmPolicy (new StrictMode.VmPolicy.Builder ()
.detectLeakedSqlLiteObjects ()
.detectLeakedClosableObjects ()
.penaltyLog ()
.penaltyDeath ()
.build ());

E/StrictMode: A resource was acquired at attached stack trace but never released. See java.io.Closeable for information on avoiding resource leaks.
java.lang.Throwable: Explicit termination method 'close' not called
at dalvik.system.CloseGuard.open(CloseGuard.java:180)
at java.io.FileInputStream.(FileInputStream.java:78)
at java.io.FileInputStream.(FileInputStream.java:103)
at android.media.ExifInterface.loadAttributes(ExifInterface.java:1342)
at android.media.ExifInterface.(ExifInterface.java:1061)
at com.kbeanie.multipicker.core.threads.FileProcessorThread.getHeightOfImage(FileProcessorThread.java:779)
at com.kbeanie.multipicker.core.threads.ImageProcessorThread.generateMetadata(ImageProcessorThread.java:96)
at com.kbeanie.multipicker.core.threads.ImageProcessorThread.postProcessImage(ImageProcessorThread.java:81)
at com.kbeanie.multipicker.core.threads.ImageProcessorThread.postProcessImages(ImageProcessorThread.java:65)
at com.kbeanie.multipicker.core.threads.ImageProcessorThread.run(ImageProcessorThread.java:42)

@jzeferino
Copy link

Got the same issue.
Any way to solve this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants