Skip to content

Reasource leak on Lollipop (API 21) #1

Description

@ale5000-git

microG GmsCore v0.2.29 (latest GIT as of 2023/09/18) on Lollipop (API 21).
I wasn't doing nothing, just popped up on logcat.

Logcat:

E/StrictMode( 1731): A resource was acquired at attached stack trace but never released. See java.io.Closeable for information on avoiding resource leaks.
E/StrictMode( 1731): java.lang.Throwable: Explicit termination method 'end' not called
E/StrictMode( 1731): 	at dalvik.system.CloseGuard.open(CloseGuard.java:184)
E/StrictMode( 1731): 	at java.util.zip.Inflater.<init>(Inflater.java:82)
E/StrictMode( 1731): 	at java.util.zip.ZipFile.getInputStream(ZipFile.java:331)
E/StrictMode( 1731): 	at java.util.jar.JarFile.getInputStream(JarFile.java:390)
E/StrictMode( 1731): 	at libcore.net.url.JarURLConnectionImpl.getInputStream(JarURLConnectionImpl.java:222)
E/StrictMode( 1731): 	at java.net.URL.openStream(URL.java:470)
E/StrictMode( 1731): 	at java.lang.ClassLoader.getResourceAsStream(ClassLoader.java:444)
E/StrictMode( 1731): 	at org.microg.address.Formatter.open(Formatter.java:463)
E/StrictMode( 1731): 	at org.microg.address.Formatter.loadFile(Formatter.java:459)
E/StrictMode( 1731): 	at org.microg.address.Formatter.readConfiguration(Formatter.java:384)
E/StrictMode( 1731): 	at org.microg.address.Formatter.<init>(Formatter.java:66)
E/StrictMode( 1731): 	at org.microg.address.Formatter.<init>(Formatter.java:61)
E/StrictMode( 1731): 	at org.microg.gms.location.provider.OpenStreetMapNominatimGeocodeProvider.<init>(OpenStreetMapNominatimGeocodeProvider.kt:31)
E/StrictMode( 1731): 	at org.microg.gms.location.provider.GeocodeProviderService.onBind(GeocodeProviderService.kt:20)
E/StrictMode( 1731): 	at android.app.ActivityThread.handleBindService(ActivityThread.java:2758)
E/StrictMode( 1731): 	at android.app.ActivityThread.access$1900(ActivityThread.java:144)
E/StrictMode( 1731): 	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1366)
E/StrictMode( 1731): 	at android.os.Handler.dispatchMessage(Handler.java:102)
E/StrictMode( 1731): 	at android.os.Looper.loop(Looper.java:135)
E/StrictMode( 1731): 	at android.app.ActivityThread.main(ActivityThread.java:5221)
E/StrictMode( 1731): 	at java.lang.reflect.Method.invoke(Native Method)
E/StrictMode( 1731): 	at java.lang.reflect.Method.invoke(Method.java:372)
E/StrictMode( 1731): 	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:899)
E/StrictMode( 1731): 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:694)
E/StrictMode( 1731): A resource was acquired at attached stack trace but never released. See java.io.Closeable for information on avoiding resource leaks.
E/StrictMode( 1731): java.lang.Throwable: Explicit termination method 'end' not called
E/StrictMode( 1731): 	at dalvik.system.CloseGuard.open(CloseGuard.java:184)
E/StrictMode( 1731): 	at java.util.zip.Inflater.<init>(Inflater.java:82)
E/StrictMode( 1731): 	at java.util.zip.ZipFile.getInputStream(ZipFile.java:331)
E/StrictMode( 1731): 	at java.util.jar.JarFile.getInputStream(JarFile.java:390)
E/StrictMode( 1731): 	at libcore.net.url.JarURLConnectionImpl.getInputStream(JarURLConnectionImpl.java:222)
E/StrictMode( 1731): 	at java.net.URL.openStream(URL.java:470)
E/StrictMode( 1731): 	at java.lang.ClassLoader.getResourceAsStream(ClassLoader.java:444)
E/StrictMode( 1731): 	at org.microg.address.Formatter.open(Formatter.java:463)
E/StrictMode( 1731): 	at org.microg.address.Formatter.loadFile(Formatter.java:459)
E/StrictMode( 1731): 	at org.microg.address.Formatter.readConfiguration(Formatter.java:396)
E/StrictMode( 1731): 	at org.microg.address.Formatter.<init>(Formatter.java:66)
E/StrictMode( 1731): 	at org.microg.address.Formatter.<init>(Formatter.java:61)
E/StrictMode( 1731): 	at org.microg.gms.location.provider.OpenStreetMapNominatimGeocodeProvider.<init>(OpenStreetMapNominatimGeocodeProvider.kt:31)
E/StrictMode( 1731): 	at org.microg.gms.location.provider.GeocodeProviderService.onBind(GeocodeProviderService.kt:20)
E/StrictMode( 1731): 	at android.app.ActivityThread.handleBindService(ActivityThread.java:2758)
E/StrictMode( 1731): 	at android.app.ActivityThread.access$1900(ActivityThread.java:144)
E/StrictMode( 1731): 	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1366)
E/StrictMode( 1731): 	at android.os.Handler.dispatchMessage(Handler.java:102)
E/StrictMode( 1731): 	at android.os.Looper.loop(Looper.java:135)
E/StrictMode( 1731): 	at android.app.ActivityThread.main(ActivityThread.java:5221)
E/StrictMode( 1731): 	at java.lang.reflect.Method.invoke(Native Method)
E/StrictMode( 1731): 	at java.lang.reflect.Method.invoke(Method.java:372)
E/StrictMode( 1731): 	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:899)
E/StrictMode( 1731): 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:694)

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions