-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
SIGFPE on certain audio files #39
Comments
Very likely that the length of the audio is 0. There should be a check for division by zero. When using |
I'm willing to try out implementing this, how would you want the division by zero check to be handled? ie. should it throw an error or should it just silently skip? |
Right after computing the mel spectrogram, check if the length is less than 100 (i.e. 1 second) and if yes - return 0: Lines 2315 to 2320 in 8d94358
Add short comment with explanation that we do not process audio less than 1 second |
…tate-struct-with-lifetime refactor: delete map for State and expose struct with lifetime
Hey there! I'm testing out whisper.cpp to see if it would be suitable for production use. However I'm running into a SIGFPE on certain audio files: namely those that do not produce any output from the model. Because of the way my system is set up, I'm unable to provide any test files that can reproduce this bug.
However, I was able to build the library with debug symbols and trigger the exception. It seems to be a divide-by-zero error on line 2349 of whisper.cpp:
whisper.cpp/whisper.cpp
Line 2349 in 8d94358
The GDB output is as follows:
Unfortunately, despite compiling with debug symbols (
-g
flag),bt
gave no extra info beyond that:Let me know if there's anything else I can do to help!
The text was updated successfully, but these errors were encountered: