sandrohanea / whisper.net

Whisper.net. Speech to text made simple using Whisper Models
MIT License
505 stars 77 forks source link

Windows UWP release execution errors #163

Open asata opened 5 months ago

asata commented 5 months ago

Added Whisper.net to the Windows UWP project. When in debug mode, it runs fine. When in release mode, it fails to run with the error below.

image
'App1.exe' (Win32): Loaded 'C:\Users\asata-win\Project\App1\App1\bin\x64\Release\AppX\App1.exe'. Module was built without symbols.
'App1.exe' (Win32): Loaded 'C:\Windows\System32\ntdll.dll'. Skipped loading symbols. Module is native, and native debugging is currently disabled.
'App1.exe' (Win32): Loaded 'C:\Windows\System32\kernel32.dll'. Skipped loading symbols. Module is native, and native debugging is currently disabled.
'App1.exe' (Win32): Loaded 'C:\Windows\System32\KernelBase.dll'. Skipped loading symbols. Module is native, and native debugging is currently disabled.
'App1.exe' (Win32): Loaded 'C:\Windows\System32\crypt32.dll'. Skipped loading symbols. Module is native, and native debugging is currently disabled.
'App1.exe' (Win32): Loaded 'C:\Windows\System32\ucrtbase.dll'. Skipped loading symbols. Module is native, and native debugging is currently disabled.
'App1.exe' (Win32): Loaded 'C:\Program Files\WindowsApps\Microsoft.NET.Native.Runtime.2.2_2.2.28604.0_x64__8wekyb3d8bbwe\mrt100_app.dll'. Skipped loading symbols. Module is native, and native debugging is currently disabled.
'App1.exe' (Win32): Loaded 'C:\Windows\System32\combase.dll'. Skipped loading symbols. Module is native, and native debugging is currently disabled.
'App1.exe' (Win32): Loaded 'C:\Windows\System32\advapi32.dll'. Skipped loading symbols. Module is native, and native debugging is currently disabled.
'App1.exe' (Win32): Loaded 'C:\Windows\System32\ole32.dll'. Skipped loading symbols. Module is native, and native debugging is currently disabled.
'App1.exe' (Win32): Loaded 'C:\Windows\System32\rpcrt4.dll'. Skipped loading symbols. Module is native, and native debugging is currently disabled.
'App1.exe' (Win32): Loaded 'C:\Windows\System32\msvcrt.dll'. Skipped loading symbols. Module is native, and native debugging is currently disabled.
'App1.exe' (Win32): Loaded 'C:\Windows\System32\msvcp_win.dll'. Skipped loading symbols. Module is native, and native debugging is currently disabled.
'App1.exe' (Win32): Loaded 'C:\Windows\System32\sechost.dll'. Skipped loading symbols. Module is native, and native debugging is currently disabled.
'App1.exe' (Win32): Loaded 'C:\Windows\System32\gdi32.dll'. Skipped loading symbols. Module is native, and native debugging is currently disabled.
'App1.exe' (Win32): Loaded 'C:\Windows\System32\win32u.dll'. Skipped loading symbols. Module is native, and native debugging is currently disabled.
'App1.exe' (Win32): Loaded 'C:\Program Files\WindowsApps\Microsoft.VCLibs.140.00_14.0.33321.0_x64__8wekyb3d8bbwe\vcruntime140_app.dll'. Skipped loading symbols. Module is native, and native debugging is currently disabled.
'App1.exe' (Win32): Loaded 'C:\Windows\System32\gdi32full.dll'. Skipped loading symbols. Module is native, and native debugging is currently disabled.
'App1.exe' (Win32): Loaded 'C:\Windows\System32\ncrypt.dll'. Skipped loading symbols. Module is native, and native debugging is currently disabled.
'App1.exe' (Win32): Loaded 'C:\Windows\System32\WinTypes.dll'. Skipped loading symbols. Module is native, and native debugging is currently disabled.
'App1.exe' (Win32): Loaded 'C:\Windows\System32\user32.dll'. Skipped loading symbols. Module is native, and native debugging is currently disabled.
'App1.exe' (Win32): Loaded 'C:\Windows\System32\IPHLPAPI.DLL'. Skipped loading symbols. Module is native, and native debugging is currently disabled.
'App1.exe' (Win32): Loaded 'C:\Windows\System32\oleaut32.dll'. Skipped loading symbols. Module is native, and native debugging is currently disabled.
'App1.exe' (Win32): Loaded 'C:\Users\asata-win\Project\App1\App1\bin\x64\Release\AppX\clrcompression.dll'. Skipped loading symbols. Module is native, and native debugging is currently disabled.
'App1.exe' (Win32): Loaded 'C:\Windows\System32\bcrypt.dll'. Skipped loading symbols. Module is native, and native debugging is currently disabled.
'App1.exe' (Win32): Loaded 'C:\Windows\System32\normaliz.dll'. Skipped loading symbols. Module is native, and native debugging is currently disabled.
The thread 0x557c has exited with code 3221225781 (0xc0000135).
The thread 0x45f0 has exited with code 3221225781 (0xc0000135).
The thread 0x6f44 has exited with code 3221225781 (0xc0000135).
The thread 0x7728 has exited with code 3221225781 (0xc0000135).
The program '[43996] App1.exe' has exited with code 3221225781 (0xc0000135) 'A dependent dll was not found'.
Activation of the Windows Store app 'b02c3742-d2a4-4f1f-bf7b-a564089df6b2_98md129wqmfb4!App' failed with error 'The target process aborted before activation completed. More information may be available in the Debug pane of the Output window (Debug->Windows->Output)'.
Activation of the Windows Store app 'b02c3742-d2a4-4f1f-bf7b-a564089df6b2_98md129wqmfb4!App' failed with error '앱이 시작되지 않았습니다'.

I installed Whisper.net with nuget and it was working fine before the installation.

Is there a solution to this problem?

sandrohanea commented 5 months ago

Hello @asata ,

Probably the native dll is not copied by Windows UWP release build. if you navigate to bin/release, can you find the native dlls there?

asata commented 5 months ago

Thank you for your response. @sandrohanea

Yes, there is a Whisper.net.dll inside the bin/release folder. There is also whisper.dll in the runtimes folder.

The difference with bin/debug is that there is no Whisper.net.dll inside the bin/release/AppX folder. If you add the Whisper.net.dll file to that folder and run it, you get the same error.