Skip to content
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

Silent crash on Windows #2175

Open
thewh1teagle opened this issue May 22, 2024 · 1 comment
Open

Silent crash on Windows #2175

thewh1teagle opened this issue May 22, 2024 · 1 comment

Comments

@thewh1teagle
Copy link
Contributor

thewh1teagle commented May 22, 2024

When trying to transcribe audio files using version 1.6.0 on Windows I get the following errors: (Tried multiple different files)

Happens on CPU which supports f16c instruction

command line output
C:\Users\User\Downloads\whisper-bin-x64>main.exe -m "%localappdata%\github.com.thewh1teagle.vibe\ggml-medium.bin" -f "samples_single.wav"
whisper_init_from_file_with_params_no_state: loading model from 'C:\Users\User\AppData\Local\github.com.thewh1teagle.vibe\ggml-medium.bin'
whisper_init_with_params_no_state: use gpu    = 1
whisper_init_with_params_no_state: flash attn = 0
whisper_init_with_params_no_state: gpu_device = 0
whisper_init_with_params_no_state: dtw        = 0
whisper_model_load: loading model
whisper_model_load: n_vocab       = 51865
whisper_model_load: n_audio_ctx   = 1500
whisper_model_load: n_audio_state = 1024
whisper_model_load: n_audio_head  = 16
whisper_model_load: n_audio_layer = 24
whisper_model_load: n_text_ctx    = 448
whisper_model_load: n_text_state  = 1024
whisper_model_load: n_text_head   = 16
whisper_model_load: n_text_layer  = 24
whisper_model_load: n_mels        = 80
whisper_model_load: ftype         = 1
whisper_model_load: qntvr         = 0
whisper_model_load: type          = 4 (medium)
Event viewer
Faulting application name: main.exe, version: 0.0.0.0, time stamp: 0x6644b82c
Faulting module name: whisper.dll, version: 0.0.0.0, time stamp: 0x6644b81e
Exception code: 0xc000001d
Fault offset: 0x00000000000a0d24
Faulting process id: 0x0x2164
Faulting application start time: 0x0x1DAAC4BE362C819
Faulting application path: C:\Users\User\Downloads\whisper-bin-x64\main.exe
Faulting module path: C:\Users\User\Downloads\whisper-bin-x64\whisper.dll
Report Id: 16c30353-9eb1-4ef6-ab6c-d32baf747669
Faulting package full name: 
Faulting package-relative application ID: 
System Info
USER@USER-PC
--------------
OS: Windows 11
Build: 23H2 (22631)
CPU: Intel(R) Core(TM) i7-3770 CPU @ 3.40GHz
GPU: NVIDIA GeForce RTX 3060
Memory: 10078 MB / 16336 MB (61% in use)
Disk: C:\ 228.05 GB (160.44 GB free)

Related: thewh1teagle/vibe#79, #367, #828 (comment)
#860 (comment)

@thewh1teagle
Copy link
Contributor Author

thewh1teagle commented May 23, 2024

Update:
It happend because of unsupported cpu instructions
these are the supported instructions on the cpu:

AVX: true
AVX2: false
AVX512: false
AVX512-VBMI: false
AVX512-VNNI: false
FMA: false
F16C: true

Once I disabled AVX2 and FMA, it worked!

I believe that whisper.cpp should check if the instructions enabled, and if they are supported by the cpu, and will raise it's own error instead of crashing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant