Skip to content

closes when i enter on options#2233

Description

Acknowledgement

  • I have read Getting-Started and FAQ
  • If dealing with version 0.1.549 or higher, you have installed the .NET 8 runtime

馃悰 Describe the bug

2026-06-25 04:21:33.845 -05:00 [ERR] Failed to load prefs. Initialize it.
System.TypeInitializationException: The type initializer for 'Microsoft.ML.OnnxRuntime.NativeMethods' threw an exception.
---> System.DllNotFoundException: Unable to load DLL 'onnxruntime' or one of its dependencies: No se puede encontrar el m贸dulo especificado. (0x8007007E)
at Microsoft.ML.OnnxRuntime.NativeMethods.OrtGetApiBase()
at Microsoft.ML.OnnxRuntime.NativeMethods..cctor()
--- End of inner exception stack trace ---
at Microsoft.ML.OnnxRuntime.OrtEnv.CreateDefaultEnv(OrtLoggingLevel logLevel, Byte[] logIdUtf8)
at Microsoft.ML.OnnxRuntime.OrtEnv.CreateInstance()
at System.Lazy1.ViaFactory(LazyThreadSafetyMode mode) at System.Lazy1.ExecutionAndPublication(LazyHelper executionAndPublication, Boolean useDefaultConstructor)
at System.Lazy1.CreateValue() at OpenUtau.Core.Onnx.getGpuInfo() in D:\a\OpenUtau\OpenUtau\OpenUtau.Core\Util\Onnx.cs:line 66 at OpenUtau.App.ViewModels.PreferencesViewModel..ctor() in D:\a\OpenUtau\OpenUtau\OpenUtau\ViewModels\PreferencesViewModel.cs:line 167 at OpenUtau.App.Views.MainWindow.OnMenuPreferences(Object sender, RoutedEventArgs args) in D:\a\OpenUtau\OpenUtau\OpenUtau\Views\MainWindow.axaml.cs:line 646 2026-06-25 04:21:34.898 -05:00 [ERR] Unhandled exception System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.TypeInitializationException: The type initializer for 'Microsoft.ML.OnnxRuntime.NativeMethods' threw an exception. ---> System.DllNotFoundException: Unable to load DLL 'onnxruntime' or one of its dependencies: No se puede encontrar el m贸dulo especificado. (0x8007007E) at Microsoft.ML.OnnxRuntime.NativeMethods.OrtGetApiBase() at Microsoft.ML.OnnxRuntime.NativeMethods..cctor() --- End of inner exception stack trace --- at Microsoft.ML.OnnxRuntime.OrtEnv.CreateDefaultEnv(OrtLoggingLevel logLevel, Byte[] logIdUtf8) at Microsoft.ML.OnnxRuntime.OrtEnv.CreateInstance() at System.Lazy1.ViaFactory(LazyThreadSafetyMode mode)
--- End of stack trace from previous location ---
at System.Lazy1.CreateValue() at OpenUtau.Core.Onnx.getGpuInfo() in D:\a\OpenUtau\OpenUtau\OpenUtau.Core\Util\Onnx.cs:line 66 at OpenUtau.App.ViewModels.PreferencesViewModel..ctor() in D:\a\OpenUtau\OpenUtau\OpenUtau\ViewModels\PreferencesViewModel.cs:line 167 at OpenUtau.App.Views.MainWindow.OnMenuPreferences(Object sender, RoutedEventArgs args) in D:\a\OpenUtau\OpenUtau\OpenUtau\Views\MainWindow.axaml.cs:line 651 at InvokeStub_EventHandler1.Invoke(Object, Span1) at System.Reflection.MethodBaseInvoker.InvokeWithFewArgs(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) --- End of inner exception stack trace --- at System.Reflection.MethodBaseInvoker.InvokeWithFewArgs(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) at System.Delegate.DynamicInvokeImpl(Object[] args) at Avalonia.Interactivity.EventRoute.RaiseEventImpl(RoutedEventArgs e) at Avalonia.Interactivity.EventRoute.RaiseEvent(Interactive source, RoutedEventArgs e) at Avalonia.Interactivity.Interactive.RaiseEvent(RoutedEventArgs e) at Avalonia.Controls.Platform.DefaultMenuInteractionHandler.Click(IMenuItem item) at Avalonia.Controls.Platform.DefaultMenuInteractionHandler.PointerReleased(Object sender, PointerReleasedEventArgs e) at Avalonia.Interactivity.EventRoute.RaiseEventImpl(RoutedEventArgs e) at Avalonia.Interactivity.EventRoute.RaiseEvent(Interactive source, RoutedEventArgs e) at Avalonia.Interactivity.Interactive.RaiseEvent(RoutedEventArgs e) at Avalonia.Input.MouseDevice.MouseUp(IMouseDevice device, UInt64 timestamp, IInputRoot root, Point p, PointerPointProperties props, KeyModifiers inputModifiers, IInputElement hitTest) at Avalonia.Input.MouseDevice.ProcessRawEvent(RawPointerEventArgs e) at Avalonia.Threading.Dispatcher.Send(SendOrPostCallback action, Object arg, Nullable1 priority)
at Avalonia.Controls.TopLevel.HandleInput(RawInputEventArgs e)
at Avalonia.Win32.WindowImpl.AppWndProc(IntPtr hWnd, UInt32 msg, IntPtr wParam, IntPtr lParam)
at Avalonia.Win32.PopupImpl.WndProc(IntPtr hWnd, UInt32 msg, IntPtr wParam, IntPtr lParam)
at Avalonia.Win32.WindowImpl.WndProcMessageHandler(IntPtr hWnd, UInt32 msg, IntPtr wParam, IntPtr lParam)
at Avalonia.Win32.Interop.UnmanagedMethods.DispatchMessage(MSG& lpmsg)
at Avalonia.Win32.Win32DispatcherImpl.RunLoop(CancellationToken cancellationToken)
at Avalonia.Threading.DispatcherFrame.Run(IControlledDispatcherImpl impl)
at Avalonia.Threading.Dispatcher.PushFrame(DispatcherFrame frame)
at Avalonia.Threading.Dispatcher.MainLoop(CancellationToken cancellationToken)
at Avalonia.Controls.ApplicationLifetimes.ClassicDesktopStyleApplicationLifetime.StartCore(String[] args)
at OpenUtau.App.Program.Main(String[] args) in D:\a\OpenUtau\OpenUtau\OpenUtau\Program.cs:line 43

Explains how to reproduce the bug

just open utau and enter the options

OS & Version

1.568

Logs

2026-06-25 04:21:33.845 -05:00 [ERR] Failed to load prefs. Initialize it.
System.TypeInitializationException: The type initializer for 'Microsoft.ML.OnnxRuntime.NativeMethods' threw an exception.
---> System.DllNotFoundException: Unable to load DLL 'onnxruntime' or one of its dependencies: No se puede encontrar el m贸dulo especificado. (0x8007007E)
at Microsoft.ML.OnnxRuntime.NativeMethods.OrtGetApiBase()
at Microsoft.ML.OnnxRuntime.NativeMethods..cctor()
--- End of inner exception stack trace ---
at Microsoft.ML.OnnxRuntime.OrtEnv.CreateDefaultEnv(OrtLoggingLevel logLevel, Byte[] logIdUtf8)
at Microsoft.ML.OnnxRuntime.OrtEnv.CreateInstance()
at System.Lazy1.ViaFactory(LazyThreadSafetyMode mode) at System.Lazy1.ExecutionAndPublication(LazyHelper executionAndPublication, Boolean useDefaultConstructor)
at System.Lazy1.CreateValue() at OpenUtau.Core.Onnx.getGpuInfo() in D:\a\OpenUtau\OpenUtau\OpenUtau.Core\Util\Onnx.cs:line 66 at OpenUtau.App.ViewModels.PreferencesViewModel..ctor() in D:\a\OpenUtau\OpenUtau\OpenUtau\ViewModels\PreferencesViewModel.cs:line 167 at OpenUtau.App.Views.MainWindow.OnMenuPreferences(Object sender, RoutedEventArgs args) in D:\a\OpenUtau\OpenUtau\OpenUtau\Views\MainWindow.axaml.cs:line 646 2026-06-25 04:21:34.898 -05:00 [ERR] Unhandled exception System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.TypeInitializationException: The type initializer for 'Microsoft.ML.OnnxRuntime.NativeMethods' threw an exception. ---> System.DllNotFoundException: Unable to load DLL 'onnxruntime' or one of its dependencies: No se puede encontrar el m贸dulo especificado. (0x8007007E) at Microsoft.ML.OnnxRuntime.NativeMethods.OrtGetApiBase() at Microsoft.ML.OnnxRuntime.NativeMethods..cctor() --- End of inner exception stack trace --- at Microsoft.ML.OnnxRuntime.OrtEnv.CreateDefaultEnv(OrtLoggingLevel logLevel, Byte[] logIdUtf8) at Microsoft.ML.OnnxRuntime.OrtEnv.CreateInstance() at System.Lazy1.ViaFactory(LazyThreadSafetyMode mode)
--- End of stack trace from previous location ---
at System.Lazy1.CreateValue() at OpenUtau.Core.Onnx.getGpuInfo() in D:\a\OpenUtau\OpenUtau\OpenUtau.Core\Util\Onnx.cs:line 66 at OpenUtau.App.ViewModels.PreferencesViewModel..ctor() in D:\a\OpenUtau\OpenUtau\OpenUtau\ViewModels\PreferencesViewModel.cs:line 167 at OpenUtau.App.Views.MainWindow.OnMenuPreferences(Object sender, RoutedEventArgs args) in D:\a\OpenUtau\OpenUtau\OpenUtau\Views\MainWindow.axaml.cs:line 651 at InvokeStub_EventHandler1.Invoke(Object, Span1) at System.Reflection.MethodBaseInvoker.InvokeWithFewArgs(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) --- End of inner exception stack trace --- at System.Reflection.MethodBaseInvoker.InvokeWithFewArgs(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) at System.Delegate.DynamicInvokeImpl(Object[] args) at Avalonia.Interactivity.EventRoute.RaiseEventImpl(RoutedEventArgs e) at Avalonia.Interactivity.EventRoute.RaiseEvent(Interactive source, RoutedEventArgs e) at Avalonia.Interactivity.Interactive.RaiseEvent(RoutedEventArgs e) at Avalonia.Controls.Platform.DefaultMenuInteractionHandler.Click(IMenuItem item) at Avalonia.Controls.Platform.DefaultMenuInteractionHandler.PointerReleased(Object sender, PointerReleasedEventArgs e) at Avalonia.Interactivity.EventRoute.RaiseEventImpl(RoutedEventArgs e) at Avalonia.Interactivity.EventRoute.RaiseEvent(Interactive source, RoutedEventArgs e) at Avalonia.Interactivity.Interactive.RaiseEvent(RoutedEventArgs e) at Avalonia.Input.MouseDevice.MouseUp(IMouseDevice device, UInt64 timestamp, IInputRoot root, Point p, PointerPointProperties props, KeyModifiers inputModifiers, IInputElement hitTest) at Avalonia.Input.MouseDevice.ProcessRawEvent(RawPointerEventArgs e) at Avalonia.Threading.Dispatcher.Send(SendOrPostCallback action, Object arg, Nullable1 priority)
at Avalonia.Controls.TopLevel.HandleInput(RawInputEventArgs e)
at Avalonia.Win32.WindowImpl.AppWndProc(IntPtr hWnd, UInt32 msg, IntPtr wParam, IntPtr lParam)
at Avalonia.Win32.PopupImpl.WndProc(IntPtr hWnd, UInt32 msg, IntPtr wParam, IntPtr lParam)
at Avalonia.Win32.WindowImpl.WndProcMessageHandler(IntPtr hWnd, UInt32 msg, IntPtr wParam, IntPtr lParam)
at Avalonia.Win32.Interop.UnmanagedMethods.DispatchMessage(MSG& lpmsg)
at Avalonia.Win32.Win32DispatcherImpl.RunLoop(CancellationToken cancellationToken)
at Avalonia.Threading.DispatcherFrame.Run(IControlledDispatcherImpl impl)
at Avalonia.Threading.Dispatcher.PushFrame(DispatcherFrame frame)
at Avalonia.Threading.Dispatcher.MainLoop(CancellationToken cancellationToken)
at Avalonia.Controls.ApplicationLifetimes.ClassicDesktopStyleApplicationLifetime.StartCore(String[] args)
at OpenUtau.App.Program.Main(String[] args) in D:\a\OpenUtau\OpenUtau\OpenUtau\Program.cs:line 43

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions