-
Notifications
You must be signed in to change notification settings - Fork 634
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
Panic with message "No space left on device" #51
Comments
Comment by plietar Interesting, I never really considered very large tracks. As a temporary workaround, you can change this line from Ideally, if a cache directory is specified we can just use |
Comment by joerg-krause Thanks, I will try this. In fact, this track is an extreme. It my also happen for tracks having a length of six or seven minutes, depending on the free RAM left. |
Comment by joerg-krause On second thought, my system is NAND flash based. So, using anything else than the RAM for caching is not a good idea. So, I need a bigger RAM? |
Comment by plietar Pretty much. A solution would be to change |
Comment by michaelherger I've modified librespot to disable the audio file-cache. See pull request #181. |
The final PR for this was closed. See here. |
This is different from plietar/librespot#204. The issue here is that librespot tries to download the entire file (whether or not cache is enabled), which may be impossible for long tracks and low memory devices. |
Yep, I had to learn this the hard way: though I had the audio-cache disabled I still saw people with large files in TMPDIR. In my case I was able to work around this using the method mentioned by @plietar: have librespot write to some place outside in-memory storage. Setting |
given that all spotify songs are downloaded in chunks, is there an easy way to discard chunks once they have been played when the cache is disabled? |
Issue by joerg-krause
Friday Mar 17, 2017 at 09:51 GMT
Originally opened as plietar/librespot#166
When playling long tracks on my embedded device with about 36MB of free RAM, librespot panics with:
thread 'main' panicked at 'called
Result::unwrap()on an
Errvalue: Error { repr: Os { code: 28, message: "No space left on device" } }'
.For example using this track (45:31). Is there a way not to load the whole song into RAM?
The text was updated successfully, but these errors were encountered: