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
Open MacrobenchmarkSample in Android Studio. I'm using Bumblebee 2021.1.1 Beta 1.
Run TrivialStartupBenchmark on physical device with Android 12 (Pixel 5 in my case)
Expected output
Tests are passing
Actual output
Macrobenchmark fails to pull trace file
java.io.FileNotFoundException: /storage/emulated/0/Android/data/com.example.macrobenchmark/cache/TrivialStartupBenchmark_startup[mode=COLD]_iter000_2021-10-26-07-09-40.perfetto-trace: open failed: EACCES (Permission denied)
at libcore.io.IoBridge.open(IoBridge.java:575)
at java.io.FileOutputStream.<init>(FileOutputStream.java:236)
at kotlin.io.FilesKt__FileReadWriteKt.appendBytes(FileReadWrite.kt:115)
at androidx.benchmark.perfetto.UiStateKt.appendUiState(UiState.kt:45)
at androidx.benchmark.macro.MacrobenchmarkKt.macrobenchmark(Macrobenchmark.kt:200)
at androidx.benchmark.macro.MacrobenchmarkKt.macrobenchmarkWithStartupMode(Macrobenchmark.kt:273)
at androidx.benchmark.macro.junit4.MacrobenchmarkRule.measureRepeated(MacrobenchmarkRule.kt:68)
at androidx.benchmark.macro.junit4.MacrobenchmarkRule.measureRepeated$default(MacrobenchmarkRule.kt:58)
at com.example.macrobenchmark.StartupUtilsKt.measureStartup(StartupUtils.kt:32)
at com.example.macrobenchmark.TrivialStartupBenchmark.startup(TrivialStartupBenchmark.kt:34)
... 37 trimmed
Caused by: android.system.ErrnoException: open failed: EACCES (Permission denied)
at libcore.io.Linux.open(Native Method)
at libcore.io.ForwardingOs.open(ForwardingOs.java:567)
at libcore.io.BlockGuardOs.open(BlockGuardOs.java:273)
at libcore.io.ForwardingOs.open(ForwardingOs.java:567)
at android.app.ActivityThread$AndroidOs.open(ActivityThread.java:7728)
at libcore.io.IoBridge.open(IoBridge.java:561)
... 47 more
It looks like the file exists cause I can pull it using adb pull
Steps to reproduce issue
MacrobenchmarkSample
in Android Studio. I'm using Bumblebee 2021.1.1 Beta 1.TrivialStartupBenchmark
on physical device with Android 12 (Pixel 5 in my case)Expected output
Actual output
It looks like the file exists cause I can pull it using adb pull
The text was updated successfully, but these errors were encountered: