mirror of
https://github.com/librespot-org/librespot.git
synced 2026-04-27 08:15:50 +03:00
[GH-ISSUE #677] Memory Leak? #388
Labels
No labels
A-Alsa
SpotifyAPI
Tokio 1.0
audio
bug
can't reproduce
compilation
dependencies
duplicate
enhancement
good first issue
help wanted
high priority
imported
imported
invalid
new api
pull-request
question
reverse engineering
wiki
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/librespot#388
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Johannesd3 on GitHub (Mar 20, 2021).
Original GitHub issue: https://github.com/librespot-org/librespot/issues/677
When running Librespot (release mode) and skipping through playlists, the used memory increases slowly but steady. It starts with 2-3MB, but after a while I was able to reach 8MB.
It seems to happen in both the
devand thetokio_migrationbranch.@kingosticks commented on GitHub (Mar 20, 2021):
8MB sounds like approx. two 'normal' length tracks worth of compressed audio data. Could this be the track prefetching working correctly?
@Johannesd3 commented on GitHub (Mar 20, 2021):
I just stopped at 8MB, probably it's possible to reach more. Every time I skip a track, memory usage grows by something between nothing and 0.5MB.
@kingosticks commented on GitHub (Mar 20, 2021):
Maybe share your cache settings and which backend also.
@Johannesd3 commented on GitHub (Mar 20, 2021):
I'm using rodio-backend under Windows, no cache enabled.
I tried different configurations out, and it's possible (but I'm not really sure) this is an issue of lewton. With tremor it doesn't exceed
3MBpermanently.Edit: I've reached 3.7MB with tremor, while Iewton seems to stop at this limit too now. It's really hard to reproduce as it doesn't behave deterministic.
@Johannesd3 commented on GitHub (Mar 20, 2021):
Actually I think it's only an issue in
devand I just imagined the same thing happens intokio_migrationwhen the numbers rose a little. And indevit happens with bothlewtonandtremor. So wherever the problem lies, it will probably be fixed by #665.