square / leakcanary

A memory leak detection library for Android.
https://square.github.io/leakcanary
Apache License 2.0
29.32k stars 3.97k forks source link

Command Execution Crashes on Android 14 #2693

Open SireAI opened 1 month ago

SireAI commented 1 month ago

Exception in thread "main" java.lang.IllegalThreadStateException: process hasn't exited at java.base/java.lang.ProcessImpl.exitValue(ProcessImpl.java:452) at shark.SharkCliCommand$Companion.runCommand(SharkCliCommand.kt:192) at shark.DumpProcessCommand$Companion.dumpHeap(DumpProcessCommand.kt:69) at shark.SharkCliCommand$Companion.retrieveHeapDumpFile(SharkCliCommand.kt:158) at shark.AnalyzeCommand.run(AnalyzeCommand.kt:16) at com.github.ajalt.clikt.parsers.Parser.parse(Parser.kt:139) at com.github.ajalt.clikt.parsers.Parser.parse(Parser.kt:14) at com.github.ajalt.clikt.core.CliktCommand.parse(CliktCommand.kt:215) at com.github.ajalt.clikt.core.CliktCommand.parse$default(CliktCommand.kt:212) at com.github.ajalt.clikt.core.CliktCommand.main(CliktCommand.kt:230) at com.github.ajalt.clikt.core.CliktCommand.main(CliktCommand.kt:253) at shark.MainKt.main(Main.kt:13)

SireAI commented 1 month ago

$ shark-cli -p com.xx.xx.xx dump-process
Exception in thread "main" java.lang.IllegalThreadStateException: process hasn't exited at java.base/java.lang.ProcessImpl.exitValue(ProcessImpl.java:452) at shark.SharkCliCommand$Companion.runCommand(SharkCliCommand.kt:192) at shark.DumpProcessCommand$Companion.dumpHeap(DumpProcessCommand.kt:69) at shark.SharkCliCommand$Companion.retrieveHeapDumpFile(SharkCliCommand.kt:158) at shark.DumpProcessCommand.run(DumpProcessCommand.kt:26) at com.github.ajalt.clikt.parsers.Parser.parse(Parser.kt:139) at com.github.ajalt.clikt.parsers.Parser.parse(Parser.kt:14) at com.github.ajalt.clikt.core.CliktCommand.parse(CliktCommand.kt:215) at com.github.ajalt.clikt.core.CliktCommand.parse$default(CliktCommand.kt:212) at com.github.ajalt.clikt.core.CliktCommand.main(CliktCommand.kt:230) at com.github.ajalt.clikt.core.CliktCommand.main(CliktCommand.kt:253) at shark.MainKt.main(Main.kt:13)

SireAI commented 1 month ago

On Android 14