Linux timing error, fixed by rebooting Linux
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 20/100
- Issue type
- Bug
- Clarity
- Needs clarification
- Activity status
- Stale
- Tech stack
- rust
- Domain
- audio-video-rtc
Research direction
Start by reading the reported panic location in cpal's ALSA backend, host/alsa/mod.rs around line 860, and investigate how the reported timestamps are obtained. The report says rebooting Linux Mint resolved the problem, but gives no reproduction steps or expected fix; done would require identifying and addressing the cause, with a way to verify the timing error no longer occurs.
Written by the indexing model from the issue text.
Description
This happened for the first time, Linux Mint with Rodio.
thread 'cpal_alsa_out' panicked at 'get_htstamp timespec { tv_sec: 554, tv_nsec: 806798670 } was earlier than get_trigger_htstamp timespec { tv_sec: 554, tv_nsec: 861573515 }', /home/breath1001/.cargo/registry/src/github.com-1ecc6299db9ec823/cpal-0.13.4/src/host/alsa/mod.rs:860thread ':thread 'cpal_alsa_out17cpal_alsa_out' panicked at '
' panicked at 'get_htstamp timespec { tv_sec: 554, tv_nsec: 806798670 } was earlier than get_trigger_htstamp timespec { tv_sec: 554, tv_nsec: 862057928 }note: run with RUST_BACKTRACE=1 environment variable to display a backtrace
get_htstamp timespec { tv_sec: 554, tv_nsec: 806798670 } was earlier than get_trigger_htstamp timespec { tv_sec: 554, tv_nsec: 861134897 }', ',
--
Since rebooting the computer fixed the issue, it may well be an upstream issue, but something to keep an eye on.
- Dominant language
- Rust
- Stars
- 4k
- Forks
- 554
- Avg merge
- 1d 3h
- Merged PRs (30d)
- 1
Getting set up
- Ships a Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
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 RustAudio/cpal
-
API design
Difficulty 2/5 1-3 hours Newbie friendliness 64/100
-
correctness
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
-
aaudio: dynamic buffer tuning never grows the buffer (set_buffer_size_in_frames reports Err on success)Possibly taken @dannyward630 claimed this 39 days ago. Openhost - aaudio platform - android
Difficulty 2/5 1-3 hours Newbie friendliness 79/100
-
WebAudio wasm build fails with wasm-bindgen panic=unwind closuresPossibly taken @bogusyogi claimed this 48 days ago. Openhost - webaudio platform - web
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
-
PipeWire: dropping callback captures on the realtime worker can terminate the process with SIGXCPUOpenhost - pipewire platform - linux
Difficulty 4/5 3-5 days Newbie friendliness 45/100
Similar issues
-
Difficulty 1/5 Under an hour Newbie friendliness 68/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
ci: migrate pinned macos-15 runners to macos-26 and macos-26-intelPossibly taken @hawkingrei claimed this today. Openenhancement
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
nowledge-co/hawdb#2224 ·
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
eclipse-score/coverage_tool#95 ·
Maintainers usually reply within 2 days
-
bug nvim
Difficulty 2/5 1-3 hours Newbie friendliness 74/100