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

LeakedClosableViolation #19

Closed
Dolfik1 opened this issue Nov 25, 2021 · 1 comment
Closed

LeakedClosableViolation #19

Dolfik1 opened this issue Nov 25, 2021 · 1 comment

Comments

@Dolfik1
Copy link

Dolfik1 commented Nov 25, 2021

I got this error on AXrLottie 1.1.0 but I have not found a fix for this error in any release after 1.1.0.

D/StrictMode: StrictMode policy violation: android.os.strictmode.LeakedClosableViolation: A resource was acquired at attached stack trace but never released. See java.io.Closeable for information on avoiding resource leaks.

        at android.os.StrictMode$AndroidCloseGuardReporter.report(StrictMode.java:1924)

        at dalvik.system.CloseGuard.warnIfOpen(CloseGuard.java:303)

        at java.io.FileOutputStream.finalize(FileOutputStream.java:492)

        at java.lang.Daemons$FinalizerDaemon.doFinalize(Daemons.java:291)

        at java.lang.Daemons$FinalizerDaemon.runInternal(Daemons.java:278)

        at java.lang.Daemons$Daemon.run(Daemons.java:139)

        at java.lang.Thread.run(Thread.java:923)

     Caused by: java.lang.Throwable: Explicit termination method 'close' not called

        at dalvik.system.CloseGuard.openWithCallSite(CloseGuard.java:259)

        at dalvik.system.CloseGuard.open(CloseGuard.java:230)

        at java.io.FileOutputStream.<init>(FileOutputStream.java:253)

        at java.io.FileOutputStream.<init>(FileOutputStream.java:186)

        at com.aghajari.rlottie.extension.GZipFileExtension.toFile(GZipFileExtension.java:58)

        at com.aghajari.rlottie.extension.GZipFileExtension.toFile(GZipFileExtension.java:78)

        at com.aghajari.rlottie.extension.AXrFileExtension.toFile(AXrFileExtension.java:54)

        at com.aghajari.rlottie.decoder.AXrFileReader.read(AXrFileReader.java:107)

        at com.aghajari.rlottie.decoder.AXrFileReader.fromAssets(AXrFileReader.java:83)

        at com.aghajari.rlottie.AXrLottieDrawable.fromAssets(AXrLottieDrawable.java:1272)

        at com.aghajari.rlottie.AXrLottieDrawable.fromAssets(AXrLottieDrawable.java:1268)

        at com.aghajari.rlottie.AXrLottie$Loader.createFromAssets(AXrLottie.java:245)
@Aghajari
Copy link
Owner

Aghajari commented Oct 1, 2022

Fixed on v1.4.0

@Aghajari Aghajari closed this as completed Oct 1, 2022
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