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
after add the leakcanary-android dependency to our app’s build.gradle file,build and install app 。
start our application to test.
when leaks sometimes leackcanary can detect success,but sometimes applicaiton crashed and the log show the crash is caused by leackcanary。
Crash Log:
Exception:()java.lang.IllegalStateException: Already closed
at leakcanary.internal.activity.db.ScopedLeaksDb$DbOpener.checkClosed(ScopedLeaksDb.kt:69)
at leakcanary.internal.activity.db.ScopedLeaksDb$DbOpener.getWritableDatabase(ScopedLeaksDb.kt:51)
at leakcanary.internal.activity.db.Db$execute$1.invoke(Db.kt:35)
at leakcanary.internal.activity.db.Db$execute$1.invoke(Db.kt:9)
at leakcanary.internal.activity.db.Io$execute$2.invoke(Io.kt:44)
at leakcanary.internal.activity.db.Io$execute$2.run(Io.kt:10)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
at java.lang.Thread.run(Thread.java:929)
Version Information
LeakCanary version:2.9.1
Android OS version:HarmonyOS 2.0.0
Gradle version:6.7
The text was updated successfully, but these errors were encountered:
Also faced this bug into android 12, please fix it @JakeWharton
nb: LeakCanary version:2.9.1
E/AndroidRuntime: FATAL EXCEPTION: pool-27-thread-1
Process: com.example.myapp, PID: 12034
java.lang.IllegalStateException: Already closed
at leakcanary.internal.activity.db.ScopedLeaksDb$DbOpener.checkClosed(ScopedLeaksDb.kt:69)
at leakcanary.internal.activity.db.ScopedLeaksDb$DbOpener.getWritableDatabase(ScopedLeaksDb.kt:51)
at leakcanary.internal.activity.db.Db$execute$1.invoke(Db.kt:35)
at leakcanary.internal.activity.db.Db$execute$1.invoke(Db.kt:9)
at leakcanary.internal.activity.db.Io$execute$2.invoke(Io.kt:44)
at leakcanary.internal.activity.db.Io$execute$2.run(Io.kt:10)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
at java.lang.Thread.run(Thread.java:920)
Description
leackcanary crashed when detect leak。
Steps to Reproduce
after add the leakcanary-android dependency to our app’s build.gradle file,build and install app 。
Crash Log:
Version Information
The text was updated successfully, but these errors were encountered: