[GH-ISSUE #949] Very high CPU in idle with Rodio in Docker #465

Closed
opened 2026-02-27 19:30:46 +03:00 by kerem · 4 comments
Owner

Originally created by @agramner on GitHub (Jan 26, 2022).
Original GitHub issue: https://github.com/librespot-org/librespot/issues/949

I've built and run librespot (v0.3.1) on a linux machine (amd64) in docker. After a couple of minutes in idle top is showing 100% (1 core) for librespot. Ran it with -v flag but nothing is written to the log. I rebuilt librespot from tag v0.2.0 but same problem. Finally rebuilt librespot with [--no-default-features --features="alsa-backend"] and configured it to use alsa as backend. After this the problem disappeared and everything works fine.

Originally created by @agramner on GitHub (Jan 26, 2022). Original GitHub issue: https://github.com/librespot-org/librespot/issues/949 I've built and run librespot (v0.3.1) on a linux machine (amd64) in docker. After a couple of minutes in idle top is showing 100% (1 core) for librespot. Ran it with -v flag but nothing is written to the log. I rebuilt librespot from tag v0.2.0 but same problem. Finally rebuilt librespot with [--no-default-features --features="alsa-backend"] and configured it to use alsa as backend. After this the problem disappeared and everything works fine.
kerem 2026-02-27 19:30:46 +03:00
Author
Owner

@roderickvd commented on GitHub (Jan 26, 2022):

That seems like a bug in Rodio then, perhaps in combination with Docker. Please report it upstream: https://github.com/RustAudio/rodio

<!-- gh-comment-id:1022615073 --> @roderickvd commented on GitHub (Jan 26, 2022): That seems like a bug in Rodio then, perhaps in combination with Docker. Please report it upstream: https://github.com/RustAudio/rodio
Author
Owner

@agramner commented on GitHub (Jan 26, 2022):

Ok, that was my guess as well. Will report it, thanks!

<!-- gh-comment-id:1022627010 --> @agramner commented on GitHub (Jan 26, 2022): Ok, that was my guess as well. Will report it, thanks!
Author
Owner

@roderickvd commented on GitHub (Jan 26, 2022):

If you want you can try 827b815 on new-api but if that doesn't work, not much more we can do.

<!-- gh-comment-id:1022639273 --> @roderickvd commented on GitHub (Jan 26, 2022): If you want you can try 827b815 on `new-api` but if that doesn't work, not much more we can do.
Author
Owner

@agramner commented on GitHub (Jan 28, 2022):

Ok I understand, maybe I'll try that if I have some time over but I'll probably stick with using alsa backend for less layers of abstraction

<!-- gh-comment-id:1024243699 --> @agramner commented on GitHub (Jan 28, 2022): Ok I understand, maybe I'll try that if I have some time over but I'll probably stick with using alsa backend for less layers of abstraction
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/librespot#465
No description provided.