Open littlecattle opened 12 months ago
Thank you for the bug report. However, I'm afraid you'll have to create the bug report in libsndfile, the C library soundfile is built upon. Segfaults are not generally caused by soundfile, but usually somewhere in the OGG decoder inside libsndfile.
If write long frames to ogg, python will crash without any traceback or info. After faulthandler enabled, it will give "Windows fatal exception: stack overflow" Environments: Windows 10, Python 3.10.8
Oddly, while reduced to 500000, it will run successfully probabilistically or give "access violation".
While python Crashed, the output ogg truncated at 4KB.
For the stack limit of Windows dll call, a solution is to run in a new Thread.
I can't confirm whether other problems related to ogg write crashes are also this reason. I think it is possible to add instructions in the documentation or provide other thread wrapping methods.