Android: popping is still audible on the release build, which carries no underrun counter #203
Open
opened 2026-08-22 17:17:51 +00:00 by logan
·
0 comments
No Branch/Tag Specified
main
fix/146-stub-etxtbsy
fix/175-wizard-follows-the-library
fix/231-setter-rollback
fix/197-duplicate-column-label
docs/225-fixtures-wav-tags
docs/220-skill-check-scope
test/217-fixture-names-in-queue-selection
fix/216-riff-parse-allocation
fix/170-queue-header-action-names
fix/210-nav-sheet-scroll-affordance
docs/50-readme-landing-page
feat/65-art-prefetch-ahead
feat/71-more-as-a-bottom-sheet
feat/54-native-touch-feel
feat/67-entity-links-into-menus
test/196-visual-tier-gates
fix/138-ui-test-storage-leak
fix/104-wav-tags-read
fix/207-sheet-scroll-affordance
fix/204-ui-visual-update-filter
pi-agent-backlog-automation
63-touch-model-phase-2
63-android-touch-model
186-touch-targets-settings
186-touch-targets-page-header
187-seek-bar-hit-area
189-190-explore-correctness
135-android-underrun-instrumentation
51-android-small-screens
fix/171-phone-queue-scrim
fix/137-touch-only-affordances
fix/154-nested-css-check
feat/58-mini-player-progress-line
fix/66-album-page-scrolls-as-one
60-context-menu-action-sheet
64-android-system-volume
59-slim-the-mini-player
55-queue-as-a-screen
feat/57-drop-the-android-top-bar
feat/62-jobs-as-a-notification
fix/53-seek-bar-never-moves
fix/159-android-task-app-id
fix/52-android-activity-recreation-restarts-the-process
fix/150-expand-button-under-the-art
feat/42-inline-volume-and-centred-transport
fix/156-queue-selection-fixture-order
fix/151-fuse-the-scroll-guard-and-the-write
fix/43-queue-panel-selection
fix/143-top-bar-fits-its-window
feat/27-jobs-into-settings
feat/25-configurable-sidebar-tabs
feat/6-global-back-forward
fix/72-active-view-broadcast
fix/69-page-header-action-overflow
fix/quick-wins-batch
fix/118-in-library-clear
fix/61-mini-player-plain-text
fix/68-hover-affordances-pointer
fix/119-dev-headless-port
fix/130-issue-claim-user
fix/131-codegen-check-scope
feat/28-autotag-match-on-album
feat/17-demote-version-selector
feat/38-ownership-visibility
ci/115-manual-release
feat/34-icon-language
feat/7-full-tracklist-toggle
fix/16-tagwriter-totals
fix/unclaim-ca-certs
fix/unclaim-shell
ci/unclaim-on-close
docs/closing-keyword
docs/retire-stale-planning-docs
docs/issue-driven-workflow
integration/small-fixes
fix/small-issue-batch
fix/queue-toggle-state
fix/drag-count-badge
fix/album-card-year
fix/album-tracklist-heading
fix/seek-bar-clock-width
fix/explore-art-scanner-requests
chore/workflow-guardrails
v0.7.0
v0.6.0
v0.5.0
v0.4.0
v0.3.1
v0.3.0
v0.2.3
v0.2.2
v0.2.1
v0.2.0
v0.1.0
v0.0.1
v0.0.0
Labels
Clear labels
Area/Design
Area/Downloads
Area/Explore
Area/Library-UI
Area/Metadata
Area/Packaging
Area/Player
Area/Queue
Area/Settings
Area/Shell-Nav
Compat/Breaking
Kind/Bug
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Security
Kind/Testing
Platform/Android
Platform/Desktop
Breaking change that won't be backward compatible
Something is not working
Documentation changes
Improve existing functionality
New functionality
This is security issue
Issue or pull request related to testing
Priority
Critical
1
The priority is critical
Priority
High
2
The priority is high
Priority
Medium
3
The priority is medium
Priority
Low
4
The priority is low
Reviewed
Confirmed
1
Issue has been confirmed
Reviewed
Duplicate
2
This issue or pull request already exists
Reviewed
Invalid
3
Invalid issue
Reviewed
Won't Fix
3
This issue won't be fixed
Status
Blocked
1
Something is blocking this issue or pull request
Status
Need More Info
2
Feedback is required to reproduce issue or to continue work
Status
Abandoned
3
Somebody has started to work on this but abandoned work
Status
In Progress
Somebody is actively working on this right now
Milestone
No items
No Milestone
Projects
Clear projects
No projects
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: yonlu/yellowjacket#203
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Report
Popping is still audible on Android during playback, on the most recent
release build. It is less obvious than what #135 described — that
was static; this is occasional — so #135's work improved it without
settling it.
Reported by ear, from the device, by the person holding it. Nothing in
this issue has been reproduced by an agent, and no tier here can hear a
phone.
Findings
The release build cannot answer the question #135 answered. #135
was closed on a measurement — zero underruns, in steady playback and
under a full index build — taken with the counter added by PR #191.
That counter is not in v0.5.0:
So the build being listened to has no underrun counter and emits no
audio underrunline at all. "Measured at zero underruns" is astatement about a debug build of
main, and it is not a statementabout v0.5.0. Candidate 1 of #135 is not eliminated for this build;
it was never tested on it.
Nothing needs to change for it to become answerable. The instrument
is in an untagged file and logs at Info deliberately, so that a
build a phone actually runs can be read — the reasoning is in
reportUnderrunsLocked's comment. Andmake android-logsfilters onthe fixed
yellowjackettag rather than one derived from the packageid, so it reads the release app as well as the
.devone. Arelease cut from current
main, or a debug build of it, reports thiswith no code change.
The two builds differ in several ways that all bear on a real-time
deadline, and none of them were controlled for. Listing them without
claiming a direction, because each could cut either way:
the release build is the AOT-optimised one;
governor, and #135's measurement had to be attached, since reading
the counter means logcat;
off, where a
mediaPlaybackforeground service is the only thingkeeping the process scheduled at all.
The third is the one worth trying first: it is the normal way this app
is used and the least like the conditions #135 verified in.
The two live candidates from #135 are unchanged and both are the same
TODO. Candidate 2 is the sample rate — the speaker opens at 44100while the device runs at 48000, so everything is resampled twice and
the stream opens as OpenSL ES rather than AAudio (#194, measured
with
dumpsys audio,Reviewed/Confirmed). Candidate 3 is the devicebuffer:
InitSpeaker's comment says 200 ms, beep halves it, so Oboegets ~100 ms, and oto's own documentation for that option says to raise
it to "reduce noises". It has never been tuned per platform.
#194's framing needs revisiting because of this. It says in as many
words that it is "an efficiency and latency report, not a defect anyone
can hear, and it should be judged on those terms". That sentence rests
on #135's listening test, which was done on a build that predates the
instrument and under the conditions above. Someone can hear
something.
Direction
Measure on a build that can answer, before changing anything — which is
#135's own Direction, applied to the build in question rather than to
main.main(release or debug — the log lineis Info and the tag is fixed either way) and listen until it pops.
make android-logswhile it is audible.Attaching is what the measurement requires and is itself one of the
variables; if it only pops unattached, that is the finding, and the
counter still reports cumulatively so the run is visible when you
plug in afterwards.
runsis non-zero while it pops, it is candidate 1 after all andthe levers are candidate 3's, in order of cost: raise the speaker
buffer per platform (a phone can afford latency a desktop player
cannot), raise the 2 s read-ahead, and consider holding the last
sample instead of jumping to zero — which turns a step
discontinuity into a much less audible artifact.
the cause is below us. #194 becomes the prime suspect rather than an
efficiency report: the double resampling and the OpenSL ES path are
in the layer whose buffer is being missed.
reason it exists (#194's Direction says the same).
Not a reopen of #135, deliberately. That issue's leading hypothesis
was disproven by measurement and its record — the instrument, two
measured conditions and a listening test — is worth keeping intact and
findable rather than being reopened under a new symptom. What it did
not establish, and what this issue is, is whether any of that holds for
the build people install.