You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I add this library, I have to remove a check for LeakedClosableViolation, which weakens my overall ongoing checks of the codebase.
I understand that removing all StrictMode violations in this library is non-trivial. How about this one?
2019-08-14 11:50:24.383 19269-19278/uk.co.paymentsense.customerportal.beta 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:1786) at dalvik.system.CloseGuard.warnIfOpen(CloseGuard.java:264) at android.os.ParcelFileDescriptor.finalize(ParcelFileDescriptor.java:988) at java.lang.Daemons$FinalizerDaemon.doFinalize(Daemons.java:250) at java.lang.Daemons$FinalizerDaemon.runInternal(Daemons.java:237) at java.lang.Daemons$Daemon.run(Daemons.java:103) at java.lang.Thread.run(Thread.java:764) Caused by: java.lang.Throwable: Explicit termination method 'close' not called at dalvik.system.CloseGuard.open(CloseGuard.java:221) at android.os.ParcelFileDescriptor.<init>(ParcelFileDescriptor.java:192) at android.os.ParcelFileDescriptor.<init>(ParcelFileDescriptor.java:181) at android.content.res.AssetManager.nativeOpenAssetFd(Native Method) at android.content.res.AssetManager.openFd(AssetManager.java:768) at com.willowtreeapps.hyperion.geigercounter.DroppedFrameDetector.<init>(DroppedFrameDetector.java:60) at com.willowtreeapps.hyperion.geigercounter.GeigerCounterPlugin.onApplicationCreated(GeigerCounterPlugin.java:31) at com.willowtreeapps.hyperion.plugin.v1.Plugin.create(Plugin.java:16) at com.willowtreeapps.hyperion.core.internal.ApplicationInstaller.installIfNeeded(ApplicationInstaller.java:32) at com.willowtreeapps.hyperion.core.internal.InstallationLifecycleDelegate.onActivityCreated(InstallationLifecycleDelegate.java:30) at com.willowtreeapps.hyperion.core.internal.Lifecycle.onActivityCreated(Lifecycle.java:24) at com.willowtreeapps.hyperion.core.internal.HyperionIgnoreFilter.onActivityCreated(HyperionIgnoreFilter.java:26) at android.app.Application.dispatchActivityCreated(Application.java:220) at android.app.Activity.onCreate(Activity.java:1048) at androidx.activity.ComponentActivity.onCreate(ComponentActivity.java:149) at androidx.fragment.app.FragmentActivity.onCreate(FragmentActivity.java:313) at androidx.appcompat.app.AppCompatActivity.onCreate(AppCompatActivity.java:106)
The text was updated successfully, but these errors were encountered:
while not a fix, if you create a hyperion build variant, you can set lint rules for that specific variant or alternately disable the strict mode settings for that variant
If I add this library, I have to remove a check for LeakedClosableViolation, which weakens my overall ongoing checks of the codebase.
I understand that removing all StrictMode violations in this library is non-trivial. How about this one?
2019-08-14 11:50:24.383 19269-19278/uk.co.paymentsense.customerportal.beta 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:1786) at dalvik.system.CloseGuard.warnIfOpen(CloseGuard.java:264) at android.os.ParcelFileDescriptor.finalize(ParcelFileDescriptor.java:988) at java.lang.Daemons$FinalizerDaemon.doFinalize(Daemons.java:250) at java.lang.Daemons$FinalizerDaemon.runInternal(Daemons.java:237) at java.lang.Daemons$Daemon.run(Daemons.java:103) at java.lang.Thread.run(Thread.java:764) Caused by: java.lang.Throwable: Explicit termination method 'close' not called at dalvik.system.CloseGuard.open(CloseGuard.java:221) at android.os.ParcelFileDescriptor.<init>(ParcelFileDescriptor.java:192) at android.os.ParcelFileDescriptor.<init>(ParcelFileDescriptor.java:181) at android.content.res.AssetManager.nativeOpenAssetFd(Native Method) at android.content.res.AssetManager.openFd(AssetManager.java:768) at com.willowtreeapps.hyperion.geigercounter.DroppedFrameDetector.<init>(DroppedFrameDetector.java:60) at com.willowtreeapps.hyperion.geigercounter.GeigerCounterPlugin.onApplicationCreated(GeigerCounterPlugin.java:31) at com.willowtreeapps.hyperion.plugin.v1.Plugin.create(Plugin.java:16) at com.willowtreeapps.hyperion.core.internal.ApplicationInstaller.installIfNeeded(ApplicationInstaller.java:32) at com.willowtreeapps.hyperion.core.internal.InstallationLifecycleDelegate.onActivityCreated(InstallationLifecycleDelegate.java:30) at com.willowtreeapps.hyperion.core.internal.Lifecycle.onActivityCreated(Lifecycle.java:24) at com.willowtreeapps.hyperion.core.internal.HyperionIgnoreFilter.onActivityCreated(HyperionIgnoreFilter.java:26) at android.app.Application.dispatchActivityCreated(Application.java:220) at android.app.Activity.onCreate(Activity.java:1048) at androidx.activity.ComponentActivity.onCreate(ComponentActivity.java:149) at androidx.fragment.app.FragmentActivity.onCreate(FragmentActivity.java:313) at androidx.appcompat.app.AppCompatActivity.onCreate(AppCompatActivity.java:106)
The text was updated successfully, but these errors were encountered: