Skip to content

Firebase Installations Strict Mode Violation: Explicit termination method 'end' not called #4583

Open
@eygraber

Description

@eygraber

[REQUIRED] Step 2: Describe your environment

  • Android Studio version: Flamingo Beta 1
  • Firebase Component: Installations
  • Component version: BOM 31.1.1

[REQUIRED] Step 3: Describe the problem

I'm getting a Strict Mode violation on Android 33

Steps to reproduce:

I call FirebaseInstallations.delete

Here are the logs:

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:1986)
                 	at dalvik.system.CloseGuard.warnIfOpen(CloseGuard.java:336)
                 	at java.util.zip.Inflater.finalize(Inflater.java:407)
                 	at java.lang.Daemons$FinalizerDaemon.doFinalize(Daemons.java:319)
                 	at java.lang.Daemons$FinalizerDaemon.runInternal(Daemons.java:306)
                 	at java.lang.Daemons$Daemon.run(Daemons.java:140)
                 	at java.lang.Thread.run(Thread.java:1012)
                 Caused by: java.lang.Throwable: Explicit termination method 'end' not called
                 	at dalvik.system.CloseGuard.openWithCallSite(CloseGuard.java:288)
                 	at dalvik.system.CloseGuard.open(CloseGuard.java:257)
                 	at java.util.zip.Inflater.<init>(Inflater.java:122)
                 	at com.android.okhttp.okio.GzipSource.<init>(GzipSource.java:64)
                 	at com.android.okhttp.internal.http.HttpEngine.unzip(HttpEngine.java:484)
                 	at com.android.okhttp.internal.http.HttpEngine.readResponse(HttpEngine.java:661)
                 	at com.android.okhttp.internal.huc.HttpURLConnectionImpl.execute(HttpURLConnectionImpl.java:475)
                 	at com.android.okhttp.internal.huc.HttpURLConnectionImpl.getResponse(HttpURLConnectionImpl.java:411)
                 	at com.android.okhttp.internal.huc.HttpURLConnectionImpl.getResponseCode(HttpURLConnectionImpl.java:542)
                 	at com.android.okhttp.internal.huc.DelegatingHttpsURLConnection.getResponseCode(DelegatingHttpsURLConnection.java:106)
                 	at com.android.okhttp.internal.huc.HttpsURLConnectionImpl.getResponseCode(HttpsURLConnectionImpl.java:30)
                 	at com.google.firebase.installations.remote.FirebaseInstallationServiceClient.deleteFirebaseInstallation(FirebaseInstallationServiceClient.java:326)
                 	at com.google.firebase.installations.FirebaseInstallations.deleteFirebaseInstallationId(FirebaseInstallations.java:604)
                 	at com.google.firebase.installations.FirebaseInstallations.$r8$lambda$ukIZcZ_XlkiT9OCDxQIhblgD6_Y(Unknown Source:0)
                 	at com.google.firebase.installations.FirebaseInstallations$$ExternalSyntheticLambda1.call(Unknown Source:2)
                 	at com.google.android.gms.tasks.zzz.run(com.google.android.gms:play-services-tasks@@18.0.2:1)
                 	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1137)
                 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:637)
                 	at java.lang.Thread.run(Thread.java:1012)

Activity

google-oss-bot

google-oss-bot commented on Jan 23, 2023

@google-oss-bot
Contributor

I found a few problems with this issue:

  • I couldn't figure out how to label this issue, so I've labeled it for a human to triage. Hang tight.
  • This issue does not seem to follow the issue template. Make sure you provide all the required information.
argzdev

argzdev commented on Jan 23, 2023

@argzdev
Contributor

Thanks for reporting, @eygraber. I was able to reproduce the same behavior, I'll notify our engineers.

eygraber

eygraber commented on Nov 27, 2023

@eygraber
Author

Any movement on this? It's still happening.

added a commit that references this issue on Jan 12, 2024
WonderCsabo

WonderCsabo commented on Mar 27, 2024

@WonderCsabo

I can also reproduce this problem. @argzdev

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @WonderCsabo@eygraber@google-oss-bot@argzdev

        Issue actions

          Firebase Installations Strict Mode Violation: Explicit termination method 'end' not called · Issue #4583 · firebase/firebase-android-sdk