Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Seeking with buffer duration 0 causes playback to freeze or restart with error QObject::startTimer: Timers can only be used with threads started with QThread #1302

Closed
3 tasks done
K1aymore opened this issue Oct 26, 2023 · 0 comments
Assignees

Comments

@K1aymore
Copy link

  • I have checked the FAQ for answers.
  • I have checked the Changelog that the issue is not already fixed.
  • I believe this issue is a bug, and not a general technical issue, question or feature requests that can be discussed on the forum.

Describe the bug
When buffer duration is set to zero, seeking in a song using the mouse or keyboard sometimes causes playback to freeze with the error QObject::startTimer: Timers can only be used with threads started with QThread.

Seeking close to the end of the song sometimes causes playback to restart from the beginning of the song with the same error, or start playing the next song without updating the cover art or song info.

It seems like playing the same song multiple times seems to mostly solve the issue, which might be since Linux caches the file in RAM for faster access, although the error still shows up.

Setting the buffer duration to even 1 ms fixes these issues.

To Reproduce
Set buffer duration to 0 milliseconds and seek through a song.

Expected behavior
Seeking to part of the song continues playing from that point.

System Information:

  • Operating system: NixOS 23.11 (Tapir) 23.11 - (linux 6.5.7) [x86_64]
  • Strawberry Version: Strawberry 1.0.21 Qt "5.15.10" (also happened on 1.0.20)
@K1aymore K1aymore changed the title Seeking with buffer duration 0 causes playback to freeze or restart Seeking with buffer duration 0 causes playback to freeze or restart with error QObject::startTimer: Timers can only be used with threads started with QThread Oct 26, 2023
@jonaski jonaski self-assigned this Nov 12, 2023
jonaski added a commit that referenced this issue Nov 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants