-
Notifications
You must be signed in to change notification settings - Fork 302
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
Broken with libFLAC < 1.4.0 ("internal psf_fseek() failed") #486
Comments
Okay, sorry, got it. I'm now first doing this:
On MacOS 14.6 Beta (23G5061b) M1 Max, I see the error for soundfile==0.11.0 but not for 0.12.1 soundfile==0.11.0
soundfile==0.12.1
Runs without error. |
After hammering on this a bit more, it looks like this is actually a bug in libFLAC, and not a bug in libsndfile. For example, running However, this bug is not detected by the prober I posted in #488. And as we've seen, this bug exists in libFLAC 1.3.3 but not 1.4.2, whereas the other bug exists in 1.4.2 but not 1.3.3. |
1.2.0 broken fixed by 3fc5ba46375e48009cd9428091cd2ffd242de6b9 1.4.0 working |
Some versions of the SoundFile package on PyPI, including the latest version (0.12.1), appear to be broken. It appears that something is wrong with the precompiled "libsndfile_x86_64.so". I have no idea about other platforms. I don't know if this is actually a bug in libFLAC, or in libsndfile, or in SoundFile, or a bug in how libFLAC/libsndfile was compiled.
The latest version in the libsndfile-binaries repo is possibly fixed, but there hasn't been a new release of SoundFile for a while.
Here is an example file, gzipped and base64ed:
I think this is a valid FLAC file, though I'm not sure. Running
python3 -c 'import soundfile; soundfile.SoundFile("example.dat").read(78419)'
should succeed.The text was updated successfully, but these errors were encountered: