thesupersonic16 / HedgeModManager

A mod manager for Sonic Generations, Sonic Lost World, Sonic Forces, Sonic Colours Ultimate and other PC Hedgehog Engine games.
MIT License
246 stars 60 forks source link

Hedgemod manager crashes every time I open it! Here's the crash log, can someone please help? #903

Closed LyraHorrorz closed 3 weeks ago

LyraHorrorz commented 2 months ago

HMM Info:

    Version: 7.12-8
    Args: 
    StartDir: C:\Program Files (x86)\Steam\steamapps\common\SonicFrontiers
    Process Level: User
    Game: Sonic Frontiers
    GameInstall: Sonic Frontiers
    Update Status: Up To Date

Exception:

    Type: TypeInitializationException
    Message: The type initializer for 'HedgeModManager.CLI.CommandLine' threw an exception.
    Source: HedgeModManager
    Function: System.Collections.Generic.List`1[HedgeModManager.CLI.CommandLine+Command] ParseArguments(System.String[])
    StackTrace: 
       at HedgeModManager.CLI.CommandLine.ParseArguments(String[] args)
       at HedgeModManager.HedgeApp.OnStartup(StartupEventArgs e) in D:\GitHub\HedgeModManager\HedgeModManager\HedgeApp.xaml.cs:line 268
       at System.Windows.Application.<.ctor>b__1_0(Object unused)
       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)
       at System.Windows.Threading.DispatcherOperation.InvokeImpl()
       at MS.Internal.CulturePreservingExecutionContext.CallbackWrapper(Object obj)
       at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
       at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
       at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
       at MS.Internal.CulturePreservingExecutionContext.Run(CulturePreservingExecutionContext executionContext, ContextCallback callback, Object state)
       at System.Windows.Threading.DispatcherOperation.Invoke()
       at System.Windows.Threading.Dispatcher.ProcessQueue()
       at System.Windows.Threading.Dispatcher.WndProcHook(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
       at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
       at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
       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)
       at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)
       at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
       at MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg)
       at System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame)
       at System.Windows.Application.RunDispatcher(Object ignore)
       at System.Windows.Application.RunInternal(Window window)
       at HedgeModManager.HedgeApp.Main(String[] args) in D:\GitHub\HedgeModManager\HedgeModManager\HedgeApp.xaml.cs:line 252
    InnerException: System.Reflection.ReflectionTypeLoadException: Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.
   at System.Reflection.RuntimeModule.GetTypes(RuntimeModule module)
   at System.Reflection.RuntimeModule.GetTypes()
   at System.Reflection.Assembly.GetTypes()
   at HedgeModManager.CLI.CommandLine.RegisterCommands(Assembly assembly) in D:\GitHub\HedgeModManager\HedgeModManager\CLI\CommandLine.cs:line 22
   at HedgeModManager.CLI.CommandLine..cctor() in D:\GitHub\HedgeModManager\HedgeModManager\CLI\CommandLine.cs:line 18
thesupersonic16 commented 2 months ago

Can you try installing .NET Framework 4.8?

LyraHorrorz commented 2 months ago

Just tried that, it said ".NET Framework 4.8 or a later update is already installed on this computer."

thesupersonic16 commented 2 months ago

Can you try the dev build? These are built on a different system.

LyraHorrorz commented 2 months ago

This worked, thank you so much!!!

github-actions[bot] commented 1 month ago

This issue is stale because it has been open for 30 days with no activity. Please comment on this issue if you don't want it to automatically close in 14 days.

github-actions[bot] commented 3 weeks ago

This issue was closed because it has been inactive for 14 days since being marked as stale.