sandrohanea / whisper.net

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

Sudden Crash on WhisperProcessor.ProcessAsync #145

Closed LSXPrime closed 11 months ago

LSXPrime commented 11 months ago

Whipser.Net method ProcessAsync from script WhisperProcessor crash suddenly without log or Exception. Model load successfully, Audio loaded and converted to stream, and then crash, the crash stopped after deleting await foreach (var result in TranscribeProcessor?.ProcessAsync(wavStream))

P.S: I manually compiled whisper.dll for cuBLAS with CUDA 11.8


    private string SelectedTranscribeModel = "C:\\External\\Models\\distil-whisper-large-v2\\ggml-model-f32.bin";
    private string SelectedTranscibeAudio = "C:\\External\\Models\\Speaker.wav";
    private string SranscibeAudioResult = string.Empty;

    private WhisperFactory? TranscribeModel;
    private WhisperProcessor? TranscribeProcessor;

public void TranscribeSwitchModels(string parameter)
    {
        try
        {
            if (parameter.Equals("unload"))
            {
                TranscribeModel?.Dispose();
                TranscribeProcessor?.Dispose();
                SelectedTranscribeModel = string.Empty;
                notification.Show(new NotificationContent { Title = "Voice Generation", Message = $"Audio Transcribe Model Unloaded", Type = NotificationType.Information }, areaName: "NotificationArea");
                return;
            }
            notification.Show(new NotificationContent { Title = "Voice Generation", Message = $"Audio Transcribe Model {SelectedTranscribeModel} Started loading", Type = NotificationType.Information }, areaName: "NotificationArea");
            Thread thread = new Thread(SwitchMethodBG);
            thread.Start();
        }
        catch (Exception ex)
        {
            notification.Show(new NotificationContent { Title = "Voice Generation", Message = $"Model Switching to {SelectedTranscribeModel} Failed, Exception: {ex.Message}", Type = NotificationType.Error }, areaName: "NotificationArea");
        }

        void SwitchMethodBG()
        {
            var modelPath = AppConfig.Instance.ModelsPath + $"\\VoiceGeneration\\transcribe\\{SelectedTranscribeModel}";
            var modelConfig = File.ReadAllText($"{modelPath}\\egoist_config.json");
            dynamic config = JObject.Parse(modelConfig);
            string model_file = config.checkpoint ?? "ggml-model.bin";

            TranscribeModel = WhisperFactory.FromPath($"{modelPath}\\{model_file}");
            TranscribeProcessor = TranscribeModel.CreateBuilder().WithLanguage("auto").Build();
            notification.Show(new NotificationContent { Title = "Voice Generation", Message = $"Audio Transcribe Model loaded Successfully", Type = NotificationType.Information }, areaName: "NotificationArea");
        }
    }

    private async Task TranscribeAudio()
    {
        try
        {
            notification.Show(new NotificationContent { Title = "Voice Generation", Message = $"Audio Transcribe Process Started", Type = NotificationType.Information }, areaName: "NotificationArea");

            using var fileStream = File.OpenRead(SelectedTranscibeAudio);
            // Only 16KHz sample rate is supported in Whisper.Net workaround
            using var wavStream = new MemoryStream();
            using var reader = new WaveFileReader(fileStream);
            var resampler = new WdlResamplingSampleProvider(reader.ToSampleProvider(), 16000);
            WaveFileWriter.WriteWavFileToStream(wavStream, resampler.ToWaveProvider16());

            // This section sets the wavStream to the beginning of the stream. (This is required because the wavStream was written to in the previous section)
            wavStream.Seek(0, SeekOrigin.Begin);

            await foreach (var result in TranscribeProcessor?.ProcessAsync(wavStream))
            {
              //  TranscibeAudioResult += $" {result.Text}";
            }
            notification.Show(new NotificationContent { Title = "Voice Generation", Message = $"Audio Transcribe Process Finished", Type = NotificationType.Information }, areaName: "NotificationArea");
        }
        catch (Exception ex)
        {
            System.Windows.MessageBox.Show(ex.Message);
            notification.Show(new NotificationContent { Title = "Voice Generation", Message = $"Audio Transcribe Process Failed, Exception: {ex.Message}", Type = NotificationType.Error }, areaName: "NotificationArea");
        }
    }
sandrohanea commented 11 months ago

Hello @LSXPrime , If using custom runtime, can you, please, confirm if you compiled it from the referenced commit id that was linked in whisper.net repostitory as submodule?

image

For 1.5.0, it should be: https://github.com/ggerganov/whisper.cpp/tree/447d49530c9af41fe24f2ae510f452903dba330d

Compiling a different version of the runtime (e.g. latest master), doesn't guarantee that those will be compatibles and runtime errors might occur.

LSXPrime commented 11 months ago

Hello @LSXPrime , If using custom runtime, can you, please, confirm if you compiled it from the referenced commit id that was linked in whisper.net repostitory as submodule?

image

For 1.5.0, it should be: https://github.com/ggerganov/whisper.cpp/tree/447d49530c9af41fe24f2ae510f452903dba330d

Compiling a different version of the runtime (e.g. latest master), doesn't guarantee that those will be compatibles and runtime errors might occur.

No, I compiled the latest version

However, I removed it and installed the CPU version from Nuget "Whisper.net.Runtime" and am still facing the same problem. I tried many methods of exception handling but it crashed before executing any of them

BTW, I am using .NET 7 (my VS2022 17.6.5 doesn't show 8.0)

Edit: I compiled it with referenced commit id and still getting the same result, crash with no error or exceptions

I use these packages

    <PackageReference Include="MessagePack" Version="2.5.140" />
    <PackageReference Include="NAudio" Version="2.2.1" />
    <PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
    <PackageReference Include="Notification.Wpf" Version="7.0.0.2" />
    <PackageReference Include="Whisper.net" Version="1.5.0" />
    <PackageReference Include="Whisper.net.Runtime.Cublas" Version="1.5.0" />
    <PackageReference Include="WPF-UI" Version="3.0.0-preview.4" />
    <PackageReference Include="CommunityToolkit.Mvvm" Version="8.2.2" />
    <PackageReference Include="Microsoft.Extensions.Hosting" Version="8.0.0 " />
    <PackageReference Include="Microsoft.Xaml.Behaviors.Wpf" Version="1.1.77" />

this the debugging log output

'EGOIST.exe' (CoreCLR: DefaultDomain): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\7.0.9\System.Private.CoreLib.dll'. Symbols loaded.
'EGOIST.exe' (CoreCLR: clrhost): Loaded 'E:\Others\Native\Personal Projects\EGOIST\Build\EGOIST\Debug\net7.0-windows7.0\EGOIST.dll'. 
'EGOIST.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App\7.0.9\PresentationFramework.dll'. 
'EGOIST.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App\7.0.9\WindowsBase.dll'. 
'EGOIST.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\7.0.9\System.Runtime.dll'. 
'EGOIST.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App\7.0.9\System.Xaml.dll'. 
'EGOIST.exe' (CoreCLR: clrhost): Loaded 'c:\program files\microsoft visual studio\2022\community\common7\ide\commonextensions\microsoft\hotreload\Microsoft.Extensions.DotNetDeltaApplier.dll'. 
'EGOIST.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\7.0.9\System.IO.Pipes.dll'. 
'EGOIST.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\7.0.9\System.Linq.dll'. 
'EGOIST.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\7.0.9\System.Collections.dll'. 
'EGOIST.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\7.0.9\System.Console.dll'. 
'EGOIST.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\7.0.9\System.Threading.dll'. 
'EGOIST.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\7.0.9\System.Runtime.InteropServices.dll'. 
'EGOIST.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\7.0.9\System.Threading.Overlapped.dll'. 
'EGOIST.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\7.0.9\System.Security.AccessControl.dll'. 
'EGOIST.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\7.0.9\System.Security.Principal.Windows.dll'. 
'EGOIST.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\7.0.9\System.Security.Claims.dll'. 
'EGOIST.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\7.0.9\System.Runtime.Loader.dll'. 
'EGOIST.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\Microsoft Visual Studio\2022\Community\Common7\IDE\PrivateAssemblies\Runtime\Microsoft.VisualStudio.Debugger.Runtime.NetCoreApp.dll'. 
'EGOIST.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\7.0.9\netstandard.dll'. 
'EGOIST.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\7.0.9\System.Threading.ThreadPool.dll'. 
'EGOIST.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\7.0.9\System.Diagnostics.TraceSource.dll'. 
'EGOIST.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App\7.0.9\System.IO.Packaging.dll'. 
'EGOIST.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\7.0.9\System.Collections.Concurrent.dll'. 
'EGOIST.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\7.0.9\System.Private.Uri.dll'. 
'EGOIST.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\7.0.9\System.Text.RegularExpressions.dll'. 
'EGOIST.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App\7.0.9\PresentationCore.dll'. 
'EGOIST.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\7.0.9\System.Memory.dll'. 
'EGOIST.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App\7.0.9\DirectWriteForwarder.dll'. 
'EGOIST.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\7.0.9\System.Runtime.Extensions.dll'. 
'EGOIST.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\7.0.9\System.Diagnostics.Debug.dll'. 
'EGOIST.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\7.0.9\System.Runtime.CompilerServices.VisualC.dll'. 
'EGOIST.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\7.0.9\Microsoft.Win32.Registry.dll'. 
'EGOIST.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\7.0.9\System.Collections.Specialized.dll'. 
'EGOIST.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\7.0.9\Microsoft.Win32.Primitives.dll'. 
'EGOIST.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\7.0.9\System.Collections.NonGeneric.dll'. 
'EGOIST.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\7.0.9\System.ComponentModel.Primitives.dll'. 
'EGOIST.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\7.0.9\System.Threading.Thread.dll'. 
'EGOIST.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App\7.0.9\System.Configuration.ConfigurationManager.dll'. 
'EGOIST.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\7.0.9\System.Xml.ReaderWriter.dll'. 
'EGOIST.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\7.0.9\System.Private.Xml.dll'. 
'EGOIST.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\7.0.9\System.Net.WebClient.dll'. 
'EGOIST.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\7.0.9\System.ComponentModel.EventBasedAsync.dll'. 
'EGOIST.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\7.0.9\System.Text.Encoding.Extensions.dll'. 
'EGOIST.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\7.0.9\System.ComponentModel.TypeConverter.dll'. 
'EGOIST.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App\7.0.9\System.Windows.Extensions.dll'. 
'EGOIST.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\7.0.9\System.ComponentModel.dll'. 
'EGOIST.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\7.0.9\System.ObjectModel.dll'. 
'EGOIST.exe' (CoreCLR: clrhost): Loaded 'E:\Others\Native\Personal Projects\EGOIST\Build\EGOIST\Debug\net7.0-windows7.0\Wpf.Ui.dll'. 
'EGOIST.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\7.0.9\System.Net.Requests.dll'. 
'EGOIST.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\7.0.9\System.Net.Primitives.dll'. 
'EGOIST.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\7.0.9\System.Net.WebHeaderCollection.dll'. 
'EGOIST.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App\7.0.9\UIAutomationTypes.dll'. 
'EGOIST.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\7.0.9\System.Diagnostics.Process.dll'. 
'EGOIST.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App\7.0.9\PresentationFramework.Aero2.dll'. 
'EGOIST.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App\7.0.9\System.Windows.Controls.Ribbon.dll'. 
'EGOIST.exe' (CoreCLR: clrhost): Loaded 'E:\Others\Native\Personal Projects\EGOIST\Build\EGOIST\Debug\net7.0-windows7.0\Microsoft.Extensions.Hosting.Abstractions.dll'. 
'EGOIST.exe' (CoreCLR: clrhost): Loaded 'E:\Others\Native\Personal Projects\EGOIST\Build\EGOIST\Debug\net7.0-windows7.0\Microsoft.Extensions.Hosting.dll'. 
'EGOIST.exe' (CoreCLR: clrhost): Loaded 'E:\Others\Native\Personal Projects\EGOIST\Build\EGOIST\Debug\net7.0-windows7.0\Microsoft.Extensions.Configuration.Abstractions.dll'. 
'EGOIST.exe' (CoreCLR: clrhost): Loaded 'E:\Others\Native\Personal Projects\EGOIST\Build\EGOIST\Debug\net7.0-windows7.0\Microsoft.Extensions.DependencyInjection.Abstractions.dll'. 
'EGOIST.exe' (CoreCLR: clrhost): Loaded 'E:\Others\Native\Personal Projects\EGOIST\Build\EGOIST\Debug\net7.0-windows7.0\Microsoft.Extensions.DependencyInjection.dll'. 
'EGOIST.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\7.0.9\System.Diagnostics.DiagnosticSource.dll'. 
'EGOIST.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\7.0.9\System.Diagnostics.Tracing.dll'. 
'EGOIST.exe' (CoreCLR: clrhost): Loaded 'E:\Others\Native\Personal Projects\EGOIST\Build\EGOIST\Debug\net7.0-windows7.0\Microsoft.Extensions.Configuration.dll'. 
'EGOIST.exe' (CoreCLR: clrhost): Loaded 'E:\Others\Native\Personal Projects\EGOIST\Build\EGOIST\Debug\net7.0-windows7.0\Microsoft.Extensions.Configuration.EnvironmentVariables.dll'. 
'EGOIST.exe' (CoreCLR: clrhost): Loaded 'E:\Others\Native\Personal Projects\EGOIST\Build\EGOIST\Debug\net7.0-windows7.0\Microsoft.Extensions.Configuration.CommandLine.dll'. 
'EGOIST.exe' (CoreCLR: clrhost): Loaded 'E:\Others\Native\Personal Projects\EGOIST\Build\EGOIST\Debug\net7.0-windows7.0\Microsoft.Extensions.Primitives.dll'. 
'EGOIST.exe' (CoreCLR: clrhost): Loaded 'E:\Others\Native\Personal Projects\EGOIST\Build\EGOIST\Debug\net7.0-windows7.0\Microsoft.Extensions.FileProviders.Abstractions.dll'. 
'EGOIST.exe' (CoreCLR: clrhost): Loaded 'E:\Others\Native\Personal Projects\EGOIST\Build\EGOIST\Debug\net7.0-windows7.0\Microsoft.Extensions.FileProviders.Physical.dll'. 
'EGOIST.exe' (CoreCLR: clrhost): Loaded 'E:\Others\Native\Personal Projects\EGOIST\Build\EGOIST\Debug\net7.0-windows7.0\Microsoft.Extensions.Configuration.FileExtensions.dll'. 
'EGOIST.exe' (CoreCLR: clrhost): Loaded 'E:\Others\Native\Personal Projects\EGOIST\Build\EGOIST\Debug\net7.0-windows7.0\Microsoft.Extensions.Configuration.Json.dll'. 
'EGOIST.exe' (CoreCLR: clrhost): Loaded 'E:\Others\Native\Personal Projects\EGOIST\Build\EGOIST\Debug\net7.0-windows7.0\Microsoft.Extensions.Configuration.UserSecrets.dll'. 
'EGOIST.exe' (CoreCLR: clrhost): Loaded 'E:\Others\Native\Personal Projects\EGOIST\Build\EGOIST\Debug\net7.0-windows7.0\Microsoft.Extensions.Configuration.Binder.dll'. 
'EGOIST.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\7.0.9\System.IO.FileSystem.Watcher.dll'. 
'EGOIST.exe' (CoreCLR: clrhost): Loaded 'E:\Others\Native\Personal Projects\EGOIST\Build\EGOIST\Debug\net7.0-windows7.0\Microsoft.Extensions.FileSystemGlobbing.dll'. 
'EGOIST.exe' (CoreCLR: clrhost): Loaded 'E:\Others\Native\Personal Projects\EGOIST\Build\EGOIST\Debug\net7.0-windows7.0\Microsoft.Extensions.Options.dll'. 
'EGOIST.exe' (CoreCLR: clrhost): Loaded 'E:\Others\Native\Personal Projects\EGOIST\Build\EGOIST\Debug\net7.0-windows7.0\Microsoft.Extensions.Logging.dll'. 
'EGOIST.exe' (CoreCLR: clrhost): Loaded 'E:\Others\Native\Personal Projects\EGOIST\Build\EGOIST\Debug\net7.0-windows7.0\Microsoft.Extensions.Logging.Abstractions.dll'. 
'EGOIST.exe' (CoreCLR: clrhost): Loaded 'E:\Others\Native\Personal Projects\EGOIST\Build\EGOIST\Debug\net7.0-windows7.0\Microsoft.Extensions.Logging.Configuration.dll'. 
'EGOIST.exe' (CoreCLR: clrhost): Loaded 'E:\Others\Native\Personal Projects\EGOIST\Build\EGOIST\Debug\net7.0-windows7.0\Microsoft.Extensions.Logging.Debug.dll'. 
'EGOIST.exe' (CoreCLR: clrhost): Loaded 'E:\Others\Native\Personal Projects\EGOIST\Build\EGOIST\Debug\net7.0-windows7.0\Microsoft.Extensions.Logging.EventSource.dll'. 
'EGOIST.exe' (CoreCLR: clrhost): Loaded 'E:\Others\Native\Personal Projects\EGOIST\Build\EGOIST\Debug\net7.0-windows7.0\Microsoft.Extensions.Logging.EventLog.dll'. 
'EGOIST.exe' (CoreCLR: clrhost): Loaded 'E:\Others\Native\Personal Projects\EGOIST\Build\EGOIST\Debug\net7.0-windows7.0\Microsoft.Extensions.Logging.Console.dll'. 
'EGOIST.exe' (CoreCLR: clrhost): Loaded 'E:\Others\Native\Personal Projects\EGOIST\Build\EGOIST\Debug\net7.0-windows7.0\Microsoft.Extensions.Options.ConfigurationExtensions.dll'. 
'EGOIST.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\7.0.9\System.Text.Json.dll'. 
'EGOIST.exe' (CoreCLR: clrhost): Loaded 'E:\Others\Native\Personal Projects\EGOIST\Build\EGOIST\Debug\net7.0-windows7.0\CommunityToolkit.Mvvm.dll'. 
'EGOIST.exe' (CoreCLR: clrhost): Loaded 'E:\Others\Native\Personal Projects\EGOIST\Build\EGOIST\Debug\net7.0-windows7.0\NAudio.Core.dll'. 
'EGOIST.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App\7.0.9\System.Diagnostics.EventLog.dll'. 
'EGOIST.exe' (CoreCLR: clrhost): Loaded 'E:\Others\Native\Personal Projects\EGOIST\Build\EGOIST\Debug\net7.0-windows7.0\Newtonsoft.Json.dll'. 
'EGOIST.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\7.0.9\System.Runtime.Serialization.Formatters.dll'. 
'EGOIST.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\7.0.9\System.Linq.Expressions.dll'. 
'EGOIST.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\7.0.9\System.Runtime.Numerics.dll'. 
'EGOIST.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\7.0.9\System.Runtime.Serialization.Primitives.dll'. 
'EGOIST.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\7.0.9\System.Data.Common.dll'. 
'EGOIST.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\7.0.9\System.Reflection.Emit.ILGeneration.dll'. 
'EGOIST.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\7.0.9\System.Reflection.Emit.Lightweight.dll'. 
'EGOIST.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\7.0.9\System.Reflection.Primitives.dll'. 
'EGOIST.exe' (CoreCLR: clrhost): Loaded 'Anonymously Hosted DynamicMethods Assembly'. 
'EGOIST.exe' (CoreCLR: clrhost): Loaded 'E:\Others\Native\Personal Projects\EGOIST\Build\EGOIST\Debug\net7.0-windows7.0\Notifications.Wpf.dll'. 
'EGOIST.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\7.0.9\mscorlib.dll'. 
'EGOIST.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App\7.0.9\PresentationFramework-SystemXml.dll'. 
'EGOIST.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App\7.0.9\UIAutomationProvider.dll'. 
'EGOIST.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App\7.0.9\PresentationFramework-SystemData.dll'. 
'EGOIST.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\7.0.9\System.Core.dll'. 
'EGOIST.exe' (CoreCLR: clrhost): Loaded 'c:\program files\microsoft visual studio\2022\community\common7\ide\commonextensions\microsoft\xamldiagnostics\Core\x64\Microsoft.VisualStudio.DesignTools.WpfTap.dll'. 
'EGOIST.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\7.0.9\System.Threading.Tasks.dll'. 
'EGOIST.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\7.0.9\System.Runtime.Serialization.Json.dll'. 
'EGOIST.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\7.0.9\System.Private.DataContractSerialization.dll'. 
'EGOIST.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\7.0.9\System.Runtime.Serialization.Xml.dll'. 
'EGOIST.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\7.0.9\System.Resources.ResourceManager.dll'. 
Microsoft.Hosting.Lifetime: Information: Application started. Press Ctrl+C to shut down.
Microsoft.Hosting.Lifetime: Information: Hosting environment: Production
Microsoft.Hosting.Lifetime: Information: Content root path: E:\Others\Native\Personal Projects\EGOIST\Build\EGOIST\Debug\net7.0-windows7.0
'EGOIST.exe' (CoreCLR: clrhost): Loaded 'E:\Others\Native\Personal Projects\EGOIST\Build\EGOIST\Debug\net7.0-windows7.0\System.Windows.Interactivity.dll'. 
'EGOIST.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\7.0.9\System.dll'. 
'EGOIST.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\7.0.9\System.Diagnostics.StackTrace.dll'. 
'EGOIST.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\7.0.9\System.Reflection.Metadata.dll'. 
'EGOIST.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\7.0.9\System.Collections.Immutable.dll'. 
'EGOIST.exe' (CoreCLR: clrhost): Loaded 'E:\Others\Native\Personal Projects\EGOIST\Build\EGOIST\Debug\net7.0-windows7.0\NAudio.WinMM.dll'. 
'EGOIST.exe' (CoreCLR: clrhost): Loaded 'E:\Others\Native\Personal Projects\EGOIST\Build\EGOIST\Debug\net7.0-windows7.0\NAudio.WinForms.dll'. 
'EGOIST.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App\7.0.9\Accessibility.dll'. Module was built without symbols.
'EGOIST.exe' (CoreCLR: clrhost): Loaded 'E:\Others\Native\Personal Projects\EGOIST\Build\EGOIST\Debug\net7.0-windows7.0\Whisper.net.dll'. 
'EGOIST.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\7.0.9\Microsoft.CSharp.dll'. 
Exception thrown: 'Microsoft.CSharp.RuntimeBinder.RuntimeBinderException' in Microsoft.CSharp.dll
Exception thrown: 'Microsoft.CSharp.RuntimeBinder.RuntimeBinderException' in Microsoft.CSharp.dll
'EGOIST.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\7.0.9\System.Runtime.InteropServices.RuntimeInformation.dll'. 
'EGOIST.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App\7.0.9\System.Windows.Forms.dll'. 
'EGOIST.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App\7.0.9\System.Windows.Forms.Primitives.dll'. 
'EGOIST.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\7.0.9\System.Drawing.Primitives.dll'. 
The thread 0x50f8 has exited with code 0 (0x0).
The program '[13420] EGOIST.exe' has exited with code 1 (0x1).
LSXPrime commented 11 months ago

will I just recreated the whole project from scratch with the same code and it's all working fine.