Linux timing error, fixed by rebooting Linux

Open
#604 4 comments 3 reactions 0 assignees View on GitHub

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

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

host - alsa platform - linux

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

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 RustAudio/cpal

All issues in RustAudio/cpal

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.