Fixed
Status Update
Comments
cc...@google.com <cc...@google.com> #2
Thanks, that's an issue with the safe shell check. Will fix.
la...@team.bumble.com <la...@team.bumble.com> #3
Thanks for the quick response! Looking forward to trying out the improvements in the next release
ap...@google.com <ap...@google.com> #4
Project: platform/frameworks/support
Branch: androidx-main
commit 4f3a2edf189583e6c932165cc6bee92c0395c1de
Author: Chris Craik <ccraik@google.com>
Date: Fri Nov 18 16:09:26 2022
Fix dropKernelPageCache crash on unrooted builds < API33
Fixes: 259508183
Test: MacrobenchmarkScopeTest # unrooted API 29 emulator
Relnote:"Fixed crash on unrooted builds below Android 13 (API 33) with message `Expected no stderr from echo 3 > /proc/sys/vm/drop_caches`"
Change-Id: I6c2454926a9f73b665e7ec8f349ad21afe1f94b5
M benchmark/benchmark-macro/src/androidTest/java/androidx/benchmark/macro/MacrobenchmarkScopeTest.kt
M benchmark/benchmark-macro/src/main/java/androidx/benchmark/macro/MacrobenchmarkScope.kt
https://android-review.googlesource.com/2309967
Branch: androidx-main
commit 4f3a2edf189583e6c932165cc6bee92c0395c1de
Author: Chris Craik <ccraik@google.com>
Date: Fri Nov 18 16:09:26 2022
Fix dropKernelPageCache crash on unrooted builds < API33
Fixes: 259508183
Test: MacrobenchmarkScopeTest # unrooted API 29 emulator
Relnote:"Fixed crash on unrooted builds below Android 13 (API 33) with message `Expected no stderr from echo 3 > /proc/sys/vm/drop_caches`"
Change-Id: I6c2454926a9f73b665e7ec8f349ad21afe1f94b5
M benchmark/benchmark-macro/src/androidTest/java/androidx/benchmark/macro/MacrobenchmarkScopeTest.kt
M benchmark/benchmark-macro/src/main/java/androidx/benchmark/macro/MacrobenchmarkScope.kt
ju...@google.com <ju...@google.com> #5
The following release(s) address this bug.It is possible this bug has only been partially addressed:
androidx.benchmark:benchmark-macro:1.2.0-alpha08
la...@team.bumble.com <la...@team.bumble.com> #6
It seems to be fixed!
Great work. Thank you all :D
Description
Component used: Macrobenchmark, profileinstaller
Version used: 1.2.0-alpha07 (Macrobenchmark), 1.3.0-alpha02 (profileinstaller)
Devices/Android versions reproduced on: Samsung SM-A415F/SM-A217F (API 30) [not-rooted]
Hi!
I'm trying to update to macrobenchmark 1.2.0-alpha06 to 1.2.0-alpha07, and unfortunately due to the latest change relating to the dropShaderCache (or perhaps 'safe shell commands' -https://android-review.googlesource.com/c/platform/frameworks/support/+/2267992 ) macrobenchmark is failing on the first iteration of the test run.
Any tips to avoid this crash? Or is it possibly a bug with the latest version?