Native playback can miss the lite-06 fallback tone deadline after ALSA output errors
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 48/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Active
- Tech stack
- linux, rust
- Domain
- audio-video-rtc, testing
Research direction
Start with test/native-play/play.py, focusing on the lite-06 phase and its deadline and tone threshold. Compare device recovery and captured PCM when decoder startup is prompt but the judge misses the switch; the payload does not name the player files or tests for backend recovery. Done means the fallback is audible within 1,495 ms after publisher B exits, with 440 Hz energy meeting the 0.8 threshold.
Written by the indexing model from the issue text.
Description
The Linux native playback test intermittently misses its 1,495 ms deadline to hear 440 Hz after the replacement publisher exits. In the original lite-06 failure the player opened the fallback audio rendition 118 ms after its offline event. The three 400 ms windows contained audio, but their 440 Hz energy shares were 0.238, 0.741 and 0.454, below the 0.8 threshold. The ALSA output had restarted once during setup.
I reproduced the deadline miss on the stats PR and its unmodified merge-base player, 19d351098a. In the lite-06 phase of test/native-play/play.py, start a helper thread immediately before terminating publisher B. Six times, send SIGSTOP to the player, wait 45 ms, send SIGCONT, and wait 165 ms. Keep publishers, relay, PulseAudio, the monitor and the judge running. I pinned the harness to one core. Both players switched to the fallback rendition and reopened their output after repeated unclassified backend errors. The reproduction shows that short scheduling gaps can cause this symptom, although it doesn't establish that the original run had the same sequence of gaps.
With CPU affinity alone, the same PR player sounded the fallback in 802 ms. Investigate device recovery and the captured PCM when the judge misses a switch despite prompt decoder startup. The existing deadline and tone threshold distinguish an audible fallback from a routing event.
(Written by GPT-6.2 Astra with medium)
- Dominant language
- Rust
- Stars
- 1.6k
- Forks
- 251
- Avg merge
- 10h 10m
- Merged PRs (30d)
- 822
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from moq-dev/moq
-
Difficulty 2/5 1-3 hours Newbie friendliness 77/100
moq-dev/moq#10463 · 1 comment · 1 reaction ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
moq-dev/moq#10460 · 1 comment · 1 reaction ·
Maintainers usually reply within 1 day
-
quest
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
moq-dev/moq#10373 · 2 comments · 1 reaction ·
Maintainers usually reply within 1 day
-
quest
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
moq-dev/moq#10336 · 2 comments · 1 reaction ·
Maintainers usually reply within 1 day
Similar issues
-
[Bug] AM Context Monitor (am-monitor): Session turns count is capped at 80 due to turns.slice(-80)Open
Difficulty 2/5 1-3 hours Newbie friendliness 83/100
lbjlaq/Antigravity-Manager#4180 ·
Maintainers usually reply within 1 day
-
bug triage
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
zizmorcore/zizmor#2608 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 79/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 83/100
longbridge/nsh#4201 ·
Maintainers usually reply within 1 day