Not running anymore :/
Describe the bug Can't start simhub, well it starts but like one time out of 30...
Simhub version 9.7.2
Expected behavior I expect it to run
Log files
looks like there are different problems... i copy/paste a few logs
"[2025-02-06 13:47:29,330] FATAL - System.TypeInitializationException: The type initializer for 'System.Windows.Window' threw an exception. ---> System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt. at System.Windows.Window..cctor() --- End of inner exception stack trace --- at System.Windows.Window..ctor() at SimHubWPF.Controls.LoadingSplash..ctor() at 쎪.쎪.<App_Startup>d__15.MoveNext() [2025-02-06 13:47:29,331] ERROR - Unhandled dispatcher error System.TypeInitializationException: The type initializer for 'System.Windows.Window' threw an exception. ---> System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt. at System.Windows.Window..cctor() --- End of inner exception stack trace --- at System.Windows.Window..ctor() at SimHubWPF.Controls.LoadingSplash..ctor() at 쎪.쎪.<App_Startup>d__15.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.AsyncMethodBuilderCore.<>c.<ThrowAsync>b__6_0(Object state) at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs) at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)"
[2025-02-06 13:41:17,759] INFO - Starting SimHub v9.7.2 (build time : 20/01/2025 14:50:20)
[2025-02-06 13:41:17,760] INFO - Windows Defender Controlled Folder Access : likely to be disabled
[2025-02-06 13:41:17,760] INFO - Administrator privileges : False
[2025-02-06 13:41:17,760] INFO - OS version : Microsoft Windows NT 10.0.22631.0, Windows 10.0.22631
[2025-02-06 13:41:17,765] INFO - License : 85de7c16-0cca-4d68-9462-a632f2d7b0d9, SimHub Licensed edition, Valid
[2025-02-06 13:41:17,765] INFO - Process priority : Normal
[2025-02-06 13:41:17,770] INFO - Sound card changes notification registered
[2025-02-06 13:41:17,785] INFO - Searching for game readers
[2025-02-06 13:41:18,033] INFO - Scanning for additional game readers
[2025-02-06 13:41:18,085] INFO - 100 game readers loaded
[2025-02-06 13:41:18,087] INFO - Scanning for installed steam games
[2025-02-06 13:41:18,274] FATAL - System.Windows.Markup.XamlParseException: Set property 'MahApps.Metro.IconPacks.PackIconFontAwesome.Kind' threw an exception. ---> System.MissingMethodException: Method not found: 'Void System.Collections.Generic.Dictionary2.Add(!0, !1)'. at MahApps.Metro.IconPacks.PackIconFontAwesomeDataFactory.Create() at System.Lazy1.CreateValue()
at System.Lazy1.LazyInitValue() at System.Lazy1.get_Value()
at MahApps.Metro.IconPacks.PackIconFontAwesome.UpdateData()
at MahApps.Metro.IconPacks.PackIconFontAwesome.KindPropertyChangedCallback(DependencyObject dependencyObject, DependencyPropertyChangedEventArgs e)
at System.Windows.DependencyObject.OnPropertyChanged(DependencyPropertyChangedEventArgs e)
at System.Windows.FrameworkElement.OnPropertyChanged(DependencyPropertyChangedEventArgs e)
at System.Windows.DependencyObject.NotifyPropertyChange(DependencyPropertyChangedEventArgs args)
at System.Windows.DependencyObject.UpdateEffectiveValue(EntryIndex entryIndex, DependencyProperty dp, PropertyMetadata metadata, EffectiveValueEntry oldEntry, EffectiveValueEntry& newEntry, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType)
at System.Windows.DependencyObject.SetValueCommon(DependencyProperty dp, Object value, PropertyMetadata metadata, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType, Boolean isInternal)
at System.Windows.DependencyObject.SetValue(DependencyProperty dp, Object value)
at System.Windows.Baml2006.WpfMemberInvoker.SetValue(Object instance, Object value)
at MS.Internal.Xaml.Runtime.ClrObjectRuntime.SetValue(XamlMember member, Object obj, Object value)
at MS.Internal.Xaml.Runtime.ClrObjectRuntime.SetValue(Object inst, XamlMember property, Object value)
--- End of inner exception stack trace ---
at System.Windows.Markup.WpfXamlLoader.Load(XamlReader xamlReader, IXamlObjectWriterFactory writerFactory, Boolean skipJournaledProperties, Object rootObject, XamlObjectWriterSettings settings, Uri baseUri)
at System.Windows.Markup.WpfXamlLoader.LoadBaml(XamlReader xamlReader, Boolean skipJournaledProperties, Object rootObject, XamlAccessLevel accessLevel, Uri baseUri)
at System.Windows.Markup.XamlReader.LoadBaml(Stream stream, ParserContext parserContext, Object parent, Boolean closeStream)
at System.Windows.Application.LoadComponent(Object component, Uri resourceLocator)
at SimHubWPF.MainWindow.InitializeComponent()
at SimHubWPF.MainWindow..ctor()
at 쎪.쎪.<App_Startup>d__15.MoveNext()
[2025-02-06 13:41:18,274] ERROR - Unhandled dispatcher error System.Windows.Markup.XamlParseException: Set property 'MahApps.Metro.IconPacks.PackIconFontAwesome.Kind' threw an exception. ---> System.MissingMethodException: Method not found: 'Void System.Collections.Generic.Dictionary2.Add(!0, !1)'. at MahApps.Metro.IconPacks.PackIconFontAwesomeDataFactory.Create() at System.Lazy1.CreateValue()
at System.Lazy1.LazyInitValue() at System.Lazy1.get_Value()
at MahApps.Metro.IconPacks.PackIconFontAwesome.UpdateData()
at MahApps.Metro.IconPacks.PackIconFontAwesome.KindPropertyChangedCallback(DependencyObject dependencyObject, DependencyPropertyChangedEventArgs e)
at System.Windows.DependencyObject.OnPropertyChanged(DependencyPropertyChangedEventArgs e)
at System.Windows.FrameworkElement.OnPropertyChanged(DependencyPropertyChangedEventArgs e)
at System.Windows.DependencyObject.NotifyPropertyChange(DependencyPropertyChangedEventArgs args)
at System.Windows.DependencyObject.UpdateEffectiveValue(EntryIndex entryIndex, DependencyProperty dp, PropertyMetadata metadata, EffectiveValueEntry oldEntry, EffectiveValueEntry& newEntry, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType)
at System.Windows.DependencyObject.SetValueCommon(DependencyProperty dp, Object value, PropertyMetadata metadata, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType, Boolean isInternal)
at System.Windows.DependencyObject.SetValue(DependencyProperty dp, Object value)
at System.Windows.Baml2006.WpfMemberInvoker.SetValue(Object instance, Object value)
at MS.Internal.Xaml.Runtime.ClrObjectRuntime.SetValue(XamlMember member, Object obj, Object value)
at MS.Internal.Xaml.Runtime.ClrObjectRuntime.SetValue(Object inst, XamlMember property, Object value)
--- End of inner exception stack trace ---
at System.Windows.Markup.WpfXamlLoader.Load(XamlReader xamlReader, IXamlObjectWriterFactory writerFactory, Boolean skipJournaledProperties, Object rootObject, XamlObjectWriterSettings settings, Uri baseUri)
at System.Windows.Markup.WpfXamlLoader.LoadBaml(XamlReader xamlReader, Boolean skipJournaledProperties, Object rootObject, XamlAccessLevel accessLevel, Uri baseUri)
at System.Windows.Markup.XamlReader.LoadBaml(Stream stream, ParserContext parserContext, Object parent, Boolean closeStream)
at System.Windows.Application.LoadComponent(Object component, Uri resourceLocator)
at SimHubWPF.MainWindow.InitializeComponent()
at SimHubWPF.MainWindow..ctor()
at 쎪.쎪.<App_Startup>d__15.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.AsyncMethodBuilderCore.<>c.<ThrowAsync>b__6_0(Object state)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
[2025-02-06 13:40:43,064] FATAL - Unhandled exception :System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt. at MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg) at System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame) at System.Windows.Threading.Dispatcher.PushFrame(DispatcherFrame frame) at System.Windows.Application.RunDispatcher(Object ignore) at System.Windows.Application.RunInternal(Window window) at System.Windows.Application.Run(Window window) at 쎪.쎪.Main()
Additional context It worked for a few, but not anymore... I reinstalled a few times, also reinstalled C++ et .NET stuffs, changed the concerned usb ports and hubs... still not working
Thx for your help
Hi ! Seeing the logs and the traces it looks like your .net installation is corrupted.
Can you try the .net repair tool ? https://go.microsoft.com/fwlink/?linkid=2088631
Make sure to restart once done.
Let me know.
ok, i tried to repair .net with the microsoft tool, doesn't change much, i even reinstalled .net and the problem is still there. Have to lauch it then kill the process and do it again like 20+ times and if i get lucky it finally runs like it should :/ most of the time it stays stucked on the "creating window" state and some times it just crashes and the process is not even moving from background process to app Should i post other logs ? thx btw :)