android / android/performance-samples

Unable to run macrobenchmarks on physical devices

Open
#334 1 comment 1 reaction 0 assignees View on GitHub
Dominant language
Kotlin
Stars
1.4k
Forks
250
Avg merge
9m
Merged PRs (30d)
4

Description

i tried running the ColdStartupBenchmark on a physical device - samsung a34, tests failed due to the error below, i see the same error on other projects

java.lang.IllegalStateException: Expected no stdout/stderr from cp /data/misc/perfetto-traces/trace_output.pb /storage/emulated/0/Android/media/com.example.macrobenchmark/ColdStartupBenchmark_startupPartialWithBaselineProfiles_iter000_2025-11-29-14-18-36.perfetto-trace, saw Output(stdout=, stderr=cp: /storage/emulated/0/Android/media/com.example.macrobenchmark/ColdStartupBenchmark_startupPartialWithBaselineProfiles_iter000_2025-11-29-14-18-36.perfetto-trace: Bad address

Contributor guide

Open the contributing guide

Research direction

Start by reproducing ColdStartupBenchmark on the Samsung A34 or another physical device and capture the reported cp failure. Investigate the trace-copy step that reports “Bad address”; done means the benchmark runs successfully and produces the expected Perfetto trace on a physical device.

Written by the indexing model from the issue text.

Assessment

Tech stack
kotlin
Domain
mobile-dev, performance
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.