Skip to content

Cannot execute ASR: External component has thrown an exception. #141

@ynamsa

Description

@ynamsa

[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.<<ReadAll>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.<EnableASR>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
Win 10

Thank you for your help!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions