-
-
Notifications
You must be signed in to change notification settings - Fork 108
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
Process exits when language detection is enabled #103
Comments
Yep I noticed this bug last night with an unrelated PR. Don't have time to fix until later today, but it's an easy fix from what I can tell. |
Turns out I had no clue what it was, I think it's a safe bet this is an upstream bug. I'll do some digging and see. |
I can narrow the segfault down to this line of code: https://github.com/ggerganov/whisper.cpp/blob/master/whisper.cpp#L3503 but can't find much more since debug symbols are always stripped for some reason. |
Hey, got the same problem with language detection. Looks like it takes ctx.state (which is null in this context - from my debugger), and state variable is full - as a function name (whisper_decode_with_state) suggests. From what I see in the latest code of whisper.cpp, is is now targeted directly to state instead of ctx.state: So update to latest version of whisper.cpp should be the fix to this issue. I'll try to update whisper.cpp on sys crate, just to understand how it works and to help you and me :) |
I ran into this myself, I'll be doing some testing to see if this is resolved or not on my service. |
Hi, I got the same problem and google leads me to here. It seems the fix will be published on
I'm not sure how to fix it, any help appreciate. Thanks in advance. |
I added
set_language(Some("auto"))
to the full_usage example and ran it(whisper-rs v0.10.0, MBP M1 Max, large-v2 model).The process terminated with the following message:
... whisper_model_load: model size = 3117.02 MB whisper_init_state: kv self size = 220.20 MB whisper_init_state: kv cross size = 245.76 MB whisper_init_state: compute buffer (conv) = 30.92 MB whisper_init_state: compute buffer (encode) = 212.36 MB whisper_init_state: compute buffer (cross) = 9.32 MB whisper_init_state: compute buffer (decode) = 99.17 MB Process finished with exit code 139 (interrupted by signal 11:SIGSEGV)
When I set
Some("en")
orSome("ja")
, it works correctly,but
Some("auto")
,None
,set_detect_language(true)
also finished the process.The text was updated successfully, but these errors were encountered: