-
Notifications
You must be signed in to change notification settings - Fork 109
Description
Hello, I came across such a problem, here is its description and the test results that were sent under a similar error:
[ASR Unknown Error]
Cannot execute ASR: External component has thrown an exception.
System.AggregateException: One or more errors occurred. (One or more errors occurred. (External component has thrown an exception.))
---> System.AggregateException: One or more errors occurred. (External component has thrown an exception.)
---> System.Runtime.InteropServices.SEHException (0x80004005): External component has thrown an exception.
at Whisper.net.Internals.ModelLoader.WhisperProcessorModelFileLoader.LoadNativeContext(INativeWhisper nativeWhisper)
at Whisper.net.WhisperFactory..ctor(IWhisperProcessorModelLoader loader, Boolean delayInit)
at Whisper.net.WhisperFactory.FromPath(String path, WhisperFactoryOptions options)
at FlyleafLib.MediaPlayer.WhisperCppASRService..ctor(Config config) in D:\a\LLPlayer\LLPlayer\FlyleafLib\MediaPlayer\SubtitlesASR.cs:line 951
at FlyleafLib.MediaPlayer.AudioReader.<>c__DisplayClass13_0.<g__DoConsumer|3>d.MoveNext() in D:\a\LLPlayer\LLPlayer\FlyleafLib\MediaPlayer\SubtitlesASR.cs:line 464
--- End of inner exception stack trace ---
at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)
at System.Threading.Tasks.Task.Wait()
at FlyleafLib.MediaPlayer.AudioReader.ReadAll(TimeSpan curTime, Action`1 addSub, CancellationToken cancellationToken) in D:\a\LLPlayer\LLPlayer\FlyleafLib\MediaPlayer\SubtitlesASR.cs:line 443
at FlyleafLib.MediaPlayer.SubtitlesASR.Execute(Int32 subIndex, String url, Int32 streamIndex, MediaType type, TimeSpan curTime) in D:\a\LLPlayer\LLPlayer\FlyleafLib\MediaPlayer\SubtitlesASR.cs:line 204
at FlyleafLib.MediaPlayer.Subtitle.<>c__DisplayClass39_0.b__0() in D:\a\LLPlayer\LLPlayer\FlyleafLib\MediaPlayer\Subtitles.cs:line 668
at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state)
--- End of stack trace from previous location ---
at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread)
--- End of inner exception stack trace ---
Version: 0.2.2, CommitHash: 878511b
OS Architecture: x64, Process Architecture: x64
############ Environment #############
OS Architecture: X64
Process Architecture: X64
CPU Model: 12th Gen Intel(R) Core(TM) i5-12450H
GPU Model: NVIDIA GeForce RTX 3050 Laptop GPU
GPU Driver Version: NVIDIA GeForce RTX 3050 Laptop GPU@32.0.15.6614 , Intel(R) UHD Graphics@31.0.101.4255
############ Environment #############
[Debug] Searching for runtime directory Cpu in C:\Users\Роман\AppData\Local\Temp\Rar$EXa2668.43177.rartemp\WhisperTesting\runtimes\win-x64
[Debug] Searching for runtime directory Cpu in C:\Users\Роман\AppData\Local\Temp\Rar$EXa2668.43177.rartemp\WhisperTesting\runtimes\win-x64
[Debug] Checking if runtime Cpu is supported on the platform: win
[Debug] Loading dependency at C:\Users\Роман\AppData\Local\Temp\Rar$EXa2668.43177.rartemp\WhisperTesting\runtimes\win-x64\ggml-base-whisper.dll
[Debug] Loading dependency at C:\Users\Роман\AppData\Local\Temp\Rar$EXa2668.43177.rartemp\WhisperTesting\runtimes\win-x64\ggml-cpu-whisper.dll
[Debug] Loading dependency at C:\Users\Роман\AppData\Local\Temp\Rar$EXa2668.43177.rartemp\WhisperTesting\runtimes\win-x64\ggml-whisper.dll
[Debug] Trying to load whisper library from C:\Users\Роман\AppData\Local\Temp\Rar$EXa2668.43177.rartemp\WhisperTesting\runtimes\win-x64\whisper.dll
[Debug] Successfully loaded whisper library from C:\Users\Роман\AppData\Local\Temp\Rar$EXa2668.43177.rartemp\WhisperTesting\runtimes\win-x64\whisper.dll
[Debug] Using NativeLibraryWhisper for whisper library
[Error] whisper_init_from_file_with_params_no_state: loading model from 'ggml-tiny.bin'
[Error] whisper_init_with_params_no_state: use gpu = 1
[Error] whisper_init_with_params_no_state: flash attn = 0
[Error] whisper_init_with_params_no_state: gpu_device = 0
[Error] whisper_init_with_params_no_state: dtw = 0
[Error] whisper_init_with_params_no_state: devices = 1
[Error] whisper_init_with_params_no_state: backends = 1
[Error] whisper_model_load: loading model
[Error] whisper_model_load: n_vocab = 51865
[Error] whisper_model_load: n_audio_ctx = 1500
[Error] whisper_model_load: n_audio_state = 384
[Error] whisper_model_load: n_audio_head = 6
[Error] whisper_model_load: n_audio_layer = 4
[Error] whisper_model_load: n_text_ctx = 448
[Error] whisper_model_load: n_text_state = 384
[Error] whisper_model_load: n_text_head = 6
[Error] whisper_model_load: n_text_layer = 4
[Error] whisper_model_load: n_mels = 80
[Error] whisper_model_load: ftype = 1
[Error] whisper_model_load: qntvr = 0
[Error] whisper_model_load: type = 1 (tiny)
[Error] whisper_model_load: adding 1608 extra tokens
[Error] whisper_model_load: n_langs = 99
[Error] whisper_model_load: CPU total size = 77.11 MB
[Error] whisper_model_load: model size = 77.11 MB
Loaded Library: Cpu
[Error] whisper_init_state: kv self size = 3.15 MB
[Error] whisper_init_state: kv cross size = 9.44 MB
[Error] whisper_init_state: kv pad size = 2.36 MB
[Error] whisper_init_state: compute buffer (conv) = 13.19 MB
[Error] whisper_init_state: compute buffer (encode) = 64.79 MB
[Error] whisper_init_state: compute buffer (cross) = 3.88 MB
[Error] whisper_init_state: compute buffer (decode) = 95.89 MB
[Error] whisper_full_with_state: auto-detected language: en (p = 0.993890)
00:00:00->00:00:07.0400000: I believe that this nation should commit itself to achieving the goal before this decade is out
00:00:07.0400000->00:00:12.0400000: of landing a man on the moon and returning him safely to the earth.
00:00:12.0400000->00:00:21: No single space project in this period will be more impressive to mankind or more important for the long range exploration of space.
Success
Press Enter to exit