Closed BlohoJo closed 4 days ago
See install.md
You need to install https://aka.ms/vs/17/release/vc_redist.x64.exe
The problem persists even after this.... when the transcribing process starts, it crashes unexpectedly.
The problem persists even after this.... when the transcribing process starts, it crashes unexpectedly.
If it happens after transcribe the problem is with whisper.cpp. you can try check the logs and hit transcribe https://github.com/thewh1teagle/vibe/blob/main/docs/DEBUG.md
2024-09-21T11:23:14.997826Z DEBUG vibe_core::transcribe: use gpu: true
2024-09-21T11:23:14.998119Z DEBUG vibe_core::transcribe: creating whisper context with model path C:\Users\Administrator\AppData\Local\github.com.thewh1teagle.vibe\ggml-medium.bin
2024-09-21T11:23:14.999709Z INFO whisper_rs::whisper_sys_tracing: whisper_init_from_file_with_params_no_state: loading model from 'C:\Users\Administrator\AppData\Local\github.com.thewh1teagle.vibe\ggml-medium.bin'
2024-09-21T11:23:15.000304Z INFO whisper_rs::whisper_sys_tracing: whisper_init_with_params_no_state: use gpu = 1
2024-09-21T11:23:15.000429Z INFO whisper_rs::whisper_sys_tracing: whisper_init_with_params_no_state: flash attn = 0
2024-09-21T11:23:15.000536Z INFO whisper_rs::whisper_sys_tracing: whisper_init_with_params_no_state: gpu_device = 0
2024-09-21T11:23:15.000636Z INFO whisper_rs::whisper_sys_tracing: whisper_init_with_params_no_state: dtw = 0
2024-09-21T11:23:15.000741Z INFO whisper_rs::whisper_sys_tracing: whisper_model_load: loading model
2024-09-21T11:23:15.000910Z INFO whisper_rs::whisper_sys_tracing: whisper_model_load: n_vocab = 51865
2024-09-21T11:23:15.001006Z INFO whisper_rs::whisper_sys_tracing: whisper_model_load: n_audio_ctx = 1500
2024-09-21T11:23:15.001095Z INFO whisper_rs::whisper_sys_tracing: whisper_model_load: n_audio_state = 1024
2024-09-21T11:23:15.001181Z INFO whisper_rs::whisper_sys_tracing: whisper_model_load: n_audio_head = 16
2024-09-21T11:23:15.001270Z INFO whisper_rs::whisper_sys_tracing: whisper_model_load: n_audio_layer = 24
2024-09-21T11:23:15.001356Z INFO whisper_rs::whisper_sys_tracing: whisper_model_load: n_text_ctx = 448
2024-09-21T11:23:15.001442Z INFO whisper_rs::whisper_sys_tracing: whisper_model_load: n_text_state = 1024
2024-09-21T11:23:15.001529Z INFO whisper_rs::whisper_sys_tracing: whisper_model_load: n_text_head = 16
2024-09-21T11:23:15.003737Z INFO whisper_rs::whisper_sys_tracing: whisper_model_load: n_text_layer = 24
2024-09-21T11:23:15.004275Z INFO whisper_rs::whisper_sys_tracing: whisper_model_load: n_mels = 80
2024-09-21T11:23:15.004380Z INFO whisper_rs::whisper_sys_tracing: whisper_model_load: ftype = 1
2024-09-21T11:23:15.004469Z INFO whisper_rs::whisper_sys_tracing: whisper_model_load: qntvr = 0
2024-09-21T11:23:15.004558Z INFO whisper_rs::whisper_sys_tracing: whisper_model_load: type = 4 (medium)
2024-09-21T11:23:15.204004Z INFO whisper_rs::whisper_sys_tracing: whisper_model_load: adding 1608 extra tokens
2024-09-21T11:23:15.209177Z INFO whisper_rs::whisper_sys_tracing: whisper_model_load: n_langs = 99
fatal runtime error: Rust cannot catch foreign exceptions
@ilovefreesw
Are you sure it's version 2.5.0
? It should show the errors from whisper.cpp directly in the terminal.
Did you got the logs from the terminal or from the settings?
To run it from the terminal with logs enabled:
cmd.exe
(not powershell)set RUST_BACKTRACE=1
set RUST_LOG=vibe=debug,whisper_rs=debug
%localappdata%\vibe\vibe.exe
C:\Users\Administrator>set RUST_BACKTRACE=1
C:\Users\Administrator>set RUST_LOG=vibe=debug,whisper_rs=debug
C:\Users\Administrator>%localappdata%\vibe\vibe.exe
C:\Users\Administrator>2024-09-21T11:38:45.173088Z DEBUG vibe::setup: Vibe App Running
2024-09-21T11:38:45.174645Z DEBUG vibe::setup: webview version: 128.0.2739.79
2024-09-21T11:38:45.174975Z DEBUG vibe::custom_protocol: Protocol handler registered successfully.
2024-09-21T11:38:45.175120Z DEBUG vibe::setup: Cargo features: vulkan
2024-09-21T11:38:45.175257Z DEBUG vibe::setup: CPU Features
{"avx":{"enabled":true,"support":true},"avx2":{"enabled":true,"support":true},"f16c":{"enabled":true,"support":true},"fma":{"enabled":true,"support":true}}
2024-09-21T11:38:45.175384Z DEBUG vibe::setup: Executable Architecture: x86_64
2024-09-21T11:38:45.175492Z DEBUG vibe::setup: APP VERSION: 2.5.2
2024-09-21T11:38:45.175587Z DEBUG vibe::setup: COMMIT HASH: 7780d6fa971ef096a21e4ec84dc3330172f8a241
2024-09-21T11:38:45.175698Z DEBUG vibe::setup: Non CLI mode
2024-09-21T11:38:46.646517Z DEBUG vibe::cmd: models folder Some(String("D:\\whisper\\models"))
2024-09-21T11:38:46.729997Z DEBUG vibe::cmd: models folder: "D:\\whisper\\models"
2024-09-21T11:38:46.749620Z DEBUG vibe::cmd::audio: Default Input Device:
Ok("Microphone (High Definition Audio Device)")
2024-09-21T11:38:46.759214Z DEBUG vibe::cmd::audio: Default Output Device:
Ok("Speakers (High Definition Audio Device)")
2024-09-21T11:38:46.770018Z DEBUG vibe::cmd::audio: Devices:
2024-09-21T11:38:54.376539Z DEBUG vibe::cmd: loading model first time
2024-09-21T11:38:54.376739Z DEBUG vibe_core::transcribe: open model...
2024-09-21T11:38:54.376959Z DEBUG vibe_core::transcribe: gpu device: -1
2024-09-21T11:38:54.377055Z DEBUG vibe_core::transcribe: use gpu: true
2024-09-21T11:38:54.377759Z DEBUG vibe_core::transcribe: creating whisper context with model path C:\Users\Administrator\AppData\Local\github.com.thewh1teagle.vibe\ggml-medium.bin
2024-09-21T11:38:54.377964Z INFO whisper_rs::whisper_sys_tracing: whisper_init_from_file_with_params_no_state: loading model from 'C:\Users\Administrator\AppData\Local\github.com.thewh1teagle.vibe\ggml-medium.bin'
2024-09-21T11:38:54.379508Z INFO whisper_rs::whisper_sys_tracing: whisper_init_with_params_no_state: use gpu = 1
2024-09-21T11:38:54.379809Z INFO whisper_rs::whisper_sys_tracing: whisper_init_with_params_no_state: flash attn = 0
2024-09-21T11:38:54.380745Z INFO whisper_rs::whisper_sys_tracing: whisper_init_with_params_no_state: gpu_device = -1
2024-09-21T11:38:54.381633Z INFO whisper_rs::whisper_sys_tracing: whisper_init_with_params_no_state: dtw = 0
2024-09-21T11:38:54.382728Z INFO whisper_rs::whisper_sys_tracing: whisper_model_load: loading model
2024-09-21T11:38:54.385234Z INFO whisper_rs::whisper_sys_tracing: whisper_model_load: n_vocab = 51865
2024-09-21T11:38:54.385634Z INFO whisper_rs::whisper_sys_tracing: whisper_model_load: n_audio_ctx = 1500
2024-09-21T11:38:54.393332Z INFO whisper_rs::whisper_sys_tracing: whisper_model_load: n_audio_state = 1024
2024-09-21T11:38:54.394568Z INFO whisper_rs::whisper_sys_tracing: whisper_model_load: n_audio_head = 16
2024-09-21T11:38:54.394943Z INFO whisper_rs::whisper_sys_tracing: whisper_model_load: n_audio_layer = 24
2024-09-21T11:38:54.395977Z INFO whisper_rs::whisper_sys_tracing: whisper_model_load: n_text_ctx = 448
2024-09-21T11:38:54.396865Z INFO whisper_rs::whisper_sys_tracing: whisper_model_load: n_text_state = 1024
2024-09-21T11:38:54.398050Z INFO whisper_rs::whisper_sys_tracing: whisper_model_load: n_text_head = 16
2024-09-21T11:38:54.398959Z INFO whisper_rs::whisper_sys_tracing: whisper_model_load: n_text_layer = 24
2024-09-21T11:38:54.399967Z INFO whisper_rs::whisper_sys_tracing: whisper_model_load: n_mels = 80
2024-09-21T11:38:54.410156Z INFO whisper_rs::whisper_sys_tracing: whisper_model_load: ftype = 1
2024-09-21T11:38:54.411198Z INFO whisper_rs::whisper_sys_tracing: whisper_model_load: qntvr = 0
2024-09-21T11:38:54.412088Z INFO whisper_rs::whisper_sys_tracing: whisper_model_load: type = 4 (medium)
2024-09-21T11:38:54.757935Z INFO whisper_rs::whisper_sys_tracing: whisper_model_load: adding 1608 extra tokens
2024-09-21T11:38:54.764232Z INFO whisper_rs::whisper_sys_tracing: whisper_model_load: n_langs = 99
fatal runtime error: Rust cannot catch foreign exceptions
https://github.com/user-attachments/assets/b384b8d9-f756-4870-a9cf-09777e149476
I think it has to do something with GPU. I don't have GPU. So, I set GPU to 0 and also tried settings GPU to -1 settings. But in the log it always show use gpu:true
I think it has to do something with GPU. I don't have GPU. So, I set GPU to 0 and also tried settings GPU to -1 settings. But in the log it always show
use gpu:true
What's your pc model or cpu model?
it's Hp probook 430 g1 ... i5 4300U .. 4th gen processor. It comes with Intel HD Graphics ....
Seems like your GPU doesn't support Vulkan. The last thing you can try is install vulkan runtime https://sdk.lunarg.com/sdk/download/1.3.290.0/windows/VulkanRT-1.3.290.0-Installer.exe
Then try again to transcribe.
If it still doesn't work than you can install https://github.com/thewh1teagle/vibe/releases/download/v2.5.3/vibe_2.5.3_x64-setup_older-cpu.exe
Which works much slower. but at least will work.
Oh .. if that's the case, then it will not work on mine. Vulkan's minimum requirements is 6th gen CPU.
And I tried the second setup and it works. Thanks.
I uninstalled the old Visual C++ Runtime 2015-2019 and installed the latest Visual C++ Runtime 2015-2022.
It now runs, but now I have the problem where it crashes when I hit "transcribe". A log for this would be useful, I see that the OP of the previous link posted a debug log but I have no idea how to get this log. (Update: I did not notice the three dots in the top part of the application window that opens settings, which contains a button to open the log file folder. My bad!!)
Faulting application name: vibe.exe, version: 2.5.3.0, time stamp: 0x66eeb429
Faulting module name: vibe.exe, version: 2.5.3.0, time stamp: 0x66eeb429
Exception code: 0xc0000409
Fault offset: 0x0000000000f78d3c
Faulting process id: 0x2390
Faulting application start time: 0x01db0d9096198c41
Faulting application path: C:\Program Files\Vibe\vibe.exe
Faulting module path: C:\Program Files\Vibe\vibe.exe
Report Id: 52b50dcc-036c-419e-8932-bf444fcaf9e5
Faulting package full name:
Faulting package-relative application ID:
Doesn't tell much.
I tried vibe_2.5.3_x64-setup_older-cpu-vulkan.exe
, vibe_2.5.3_x64-setup_portable.zip
, both the same.
I tried vibe_2.5.3_x64-setup_older-cpu.exe
, and that seems to be working but it's too slow to be useful... it's only using 2 out of 16 CPU threads, even if I enter 16 threads into the settings. And it's not maxing out either of those threads either. Update: I guess I just had to wait for it, it's now maxed all 16 threads. But it's extremely slow with no Vulkan device installed. Which I don't have; I'm running it on a CPU only machine. That's probably what made the other application versions crash when I clicked on the Transcribe button.
So I guess it's working for me now, but too slow to work for anything that isn't a few minutes or so in length.
I also found it seems to missing a lot of sentences for some reason. Maybe it needs a GPU? I'll try the large model but that will slow it down even more. Update: I tried the large language model and it is still missing sentences... interestingly enough, it is missing the exact same sentences. Not sure what's up with that. I uploaded my file to Revodiv and it didn't have the missing sentences problem there.
One possible solution for machines without GPU's would be if Vibe could be made to work using OpenVINO (which works on my CPU listed below), but that's probably not worth it. (OpenVINO is for making AI run significantly faster with CPUs instead of GPUs, but will still be slower than GPUs.)
I also found myself frustrated when trying to figure out where the model file location is for the model file it downloaded. (Update: saved in C:\Users\[USER]\AppData\Local\github.com.thewh1teagle.vibe\
.) I see in the docs that there are other model files you can try but there is nowhere in the application to specify different model files, so I'm not sure how you'd even use them. I read all of the documentation I could find and searched Google and Reddit but I could not find answers to this. (I did not notice the three dots in the top part of the application window that opens settings, which contains everything I was looking for. My bad!!)
I created new release and added check that will show error with instructions to solve it in case that vulkan is not supported.
What happened?
Install Vibe, start Vibe, instant crash. Application event log indicates the faulting module is
MSVCP140.dll
.Steps to reproduce
I guess if it starts for you then you can't reproduce whatever is happening to me.
What OS are you seeing the problem on?
Window
Relevant log output