stlukey/whispercpp.py

Crashes on windows

stlukey opened this issue · 2 comments

Seems to crash (ends program and Python interpreter) on Windows during transcription (when calling whisper_full) without any other output or error.

After getting it in a debugger, I saw that the crash was happening when trying to read from the audio frame data passed to whisper_full.

My assumption is that the garbage collector was freeing the frame data before the call to whisper_full, but it could keep working if the memory doesn't actually get removed from the process's address space.

The behavior of how the memory is reclaimed is probably different on different platforms, which could explain why the crash wasn't happening everywhere.

Regardless, it's no longer crashing after the fix in #7.

Should be fixed by d8c0617.