question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

StrictMode: Explicit termination method 'end' not called

See original GitHub issue

Firebase crashlytics version :17.0.0

Stack Trace

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 'end' not called
	at dalvik.system.CloseGuard.open(CloseGuard.java:184)
	at java.util.zip.Inflater.<init>(Inflater.java:82)
	at java.util.zip.ZipFile.getInputStream(ZipFile.java:331)
	at java.util.jar.JarFile.getInputStream(JarFile.java:390)
	at libcore.net.url.JarURLConnectionImpl.getInputStream(JarURLConnectionImpl.java:222)
	at java.net.URL.openStream(URL.java:470)
	at java.lang.ClassLoader.getResourceAsStream(ClassLoader.java:444)
	at java.lang.Class.getResourceAsStream(Class.java:1334)
	at com.google.android.gms.common.internal.LibraryVersion.getVersion(Unknown Source)
	at com.google.firebase.iid.zzt.zzb(com.google.firebase:firebase-iid@@20.1.5:61)
	at com.google.firebase.iid.zzt.zza(com.google.firebase:firebase-iid@@20.1.5:72)
	at com.google.firebase.iid.zzs.run(com.google.firebase:firebase-iid@@20.1.5)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
	at com.google.android.gms.common.util.concurrent.zza.run(Unknown Source)
	at java.lang.Thread.run(Thread.java:818)
StrictMode VmPolicy violation with POLICY_DEATH; shutting down.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:9 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
ShivamPokhriyalcommented, Aug 29, 2020

@mrwillis21 Seems like the issue is resolved in 17.2.1. Thanks for the fix.

0reactions
ShivamPokhriyalcommented, Aug 25, 2020

@mrwillis21 Thanks for notifying. I’ll try running a couple builds using this version and will update you by the end of this week.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Explicit termination method 'end' not called - Stack Overflow
I found somebody complaining of seeing the same StrictMode failure when using Google AdMob SDK (https://groups.google.com/forum/?fromgroups=#! ...
Read more >
Strict Mode Error: Explicit termination method 'close' not called ...
E/StrictMode: A resource was acquired at attached stack trace but never released. See java.io.Closeable for information on avoiding resource ...
Read more >
java.lang.Throwable: Explicit termination method 'close' not ...
E/StrictMode(10704): A resource was acquired at attached stack trace but never released. See java.io.Closeable for information on avoiding resource leaks.
Read more >
Android Strict Mode complaining HttpURLConnection is never ...
I'm seeing the same Throwable: Explicit termination method 'end' not called when trying to use HttpURLConnection.getResponseCode in my own code, ...
Read more >
Strict Mode “A resource was acquired at attached stack trace ...
Throwable: Explicit termination method 'close' not called 10-29 16:11:22.605: E/StrictMode(1121): at dalvik.system.CloseGuard.open(CloseGuard.java:184)
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found