Status Update
Comments
cc...@google.com <cc...@google.com>
ma...@google.com <ma...@google.com> #2
This is logged
2022-09-02 15:16:19.699 9160-9173/de.welt.benchmark E/TestRunner: java.lang.IllegalStateException: Perfetto unexpected exit code, output = 9462
EXITCODE=2
2022-09-02 15:16:57.418 9160-9173/de.welt.benchmark E/TestRunner: java.lang.IllegalStateException: Perfetto unexpected exit code, output = 9803
EXITCODE=2
And the actual error code is 2
.
Looking at perfetto
I wonder if some of those data sources are not supported on that device that runs Android 6.
cc...@google.com <cc...@google.com> #3
Agree, likely related to
cc...@google.com <cc...@google.com>
ou...@gmail.com <ou...@gmail.com> #5
java.lang.IllegalStateException: Failed to stop [ProcessPid(processName=perfetto, pid=18066)]
lo...@onepeloton.com <lo...@onepeloton.com> #6
Seeing a similar issue while running benchmark tests on Pixel 6 Pro running Android 14.
java.lang.IllegalStateException: Failed to stop [ProcessPid(processName=perfetto, pid=28209)] at androidx.benchmark.Shell.terminateProcessesAndWait(Shell.kt:596) at androidx.benchmark.Shell.terminateProcessesAndWait(Shell.kt:565) at androidx.benchmark.perfetto.PerfettoHelper$Companion.stopAllPerfettoProcesses(PerfettoHelper.kt:443) at androidx.benchmark.perfetto.PerfettoHelper.startCollecting(PerfettoHelper.kt:93) at androidx.benchmark.perfetto.PerfettoCapture.start(PerfettoCapture.kt:72) at androidx.benchmark.perfetto.PerfettoCaptureWrapper.start(PerfettoCaptureWrapper.kt:70) at androidx.benchmark.perfetto.PerfettoCaptureWrapper.record(PerfettoCaptureWrapper.kt:127) at androidx.benchmark.perfetto.PerfettoCaptureWrapper.record$default(PerfettoCaptureWrapper.kt:92) at androidx.benchmark.macro.MacrobenchmarkKt$macrobenchmark$measurements$1.invoke(Macrobenchmark.kt:256) at androidx.benchmark.macro.MacrobenchmarkKt$macrobenchmark$measurements$1.invoke(Macrobenchmark.kt:241) at androidx.benchmark.perfetto.PerfettoTraceProcessor$Companion.runServer(PerfettoTraceProcessor.kt:105) at androidx.benchmark.macro.MacrobenchmarkKt.macrobenchmark(Macrobenchmark.kt:241) at androidx.benchmark.macro.MacrobenchmarkKt.macrobenchmarkWithStartupMode(Macrobenchmark.kt:415) at androidx.benchmark.macro.junit4.MacrobenchmarkRule.measureRepeated(MacrobenchmarkRule.kt:107)
sa...@gmail.com <sa...@gmail.com> #7
On the running macrobenchmark test on the emulator working fine, but failing on Pixel 6a Android 14 (Physical device) 🧐
Facing the same error
java.lang.IllegalStateException: Failed to stop [ProcessPid(processName=perfetto, pid=26338)]
at androidx.benchmark.Shell.terminateProcessesAndWait(Shell.kt:596)
at androidx.benchmark.Shell.terminateProcessesAndWait(Shell.kt:565)
at androidx.benchmark.perfetto.PerfettoHelper$Companion.stopAllPerfettoProcesses(PerfettoHelper.kt:441)
at androidx.benchmark.perfetto.PerfettoHelper.startCollecting(PerfettoHelper.kt:92)
at androidx.benchmark.perfetto.PerfettoCapture.start(PerfettoCapture.kt:72)
at androidx.benchmark.perfetto.PerfettoCaptureWrapper.start(PerfettoCaptureWrapper.kt:68)
at androidx.benchmark.perfetto.PerfettoCaptureWrapper.record(PerfettoCaptureWrapper.kt:124)
at androidx.benchmark.perfetto.PerfettoCaptureWrapper.record$default(PerfettoCaptureWrapper.kt:90)
at androidx.benchmark.macro.MacrobenchmarkKt$macrobenchmark$measurements$1.invoke(Macrobenchmark.kt:243)
at androidx.benchmark.macro.MacrobenchmarkKt$macrobenchmark$measurements$1.invoke(Macrobenchmark.kt:228)
at androidx.benchmark.perfetto.PerfettoTraceProcessor$Companion.runServer(PerfettoTraceProcessor.kt:105)
at androidx.benchmark.macro.MacrobenchmarkKt.macrobenchmark(Macrobenchmark.kt:228)
at androidx.benchmark.macro.MacrobenchmarkKt.macrobenchmarkWithStartupMode(Macrobenchmark.kt:405)
at androidx.benchmark.macro.junit4.MacrobenchmarkRule.measureRepeated(MacrobenchmarkRule.kt:107)
at androidx.benchmark.macro.junit4.MacrobenchmarkRule.measureRepeated$default(MacrobenchmarkRule.kt:97)
sa...@gmail.com <sa...@gmail.com> #8
Updating the dependency from androidx.benchmark:benchmark-macro-junit4:1.2.0-beta01
to androidx.benchmark:benchmark-macro-junit4:1.2.0-beta05
solved it :)
sa...@gmail.com <sa...@gmail.com> #9
getting the error again 😭 I've updated my Android 14 version to a newest patch, I think that's the suspect
cc...@google.com <cc...@google.com> #10
These Failed to stop
issues on Android 14 are separate from the exception in this bug
Description
Component used: androidx.benchmark:benchmark-macro-junit4:1.2.0-alpha02 Version used: Devices/Android versions reproduced on: HTC One M9 (Android 6)
If this is a bug in the library, we would appreciate if you could attach:
logs: