Native playback can miss the lite-06 fallback tone deadline after ALSA output errors

Open
#10,440 1 comment 1 reaction 0 assignees View on GitHub

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

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

quest

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from moq-dev/moq

All issues in moq-dev/moq

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.