LavaGang / MelonLoader

The World's First Universal Mod Loader for Unity Games compatible with both Il2Cpp and Mono
https://discord.gg/2Wn3N2P
Apache License 2.0
2.38k stars 472 forks source link

[Bug]: Harmony crash #469

Closed tomot21 closed 3 months ago

tomot21 commented 1 year ago

All of the following criteria must be met

All of the following are optional to answer

Describe the issue.

[15:30:50.372] ------------------------------ [15:30:50.422] MelonLoader v0.6.1 Open-Beta [15:30:50.422] OS: Windows 10 [15:30:50.423] Hash Code: 3FAB1593D3EDAF450F4BDDC6FC28134A9535995F28E9B255983B3D1FE925E35 [15:30:50.423] ------------------------------ [15:30:50.423] Game Type: MonoBleedingEdge [15:30:50.424] Game Arch: x64 [15:30:50.424] ------------------------------ [15:30:50.424] Core::BasePath = F:\SteamLibrary\steamapps\common\Demeo - PC Edition [15:30:50.424] Game::BasePath = F:\SteamLibrary\steamapps\common\Demeo - PC Edition [15:30:50.424] Game::DataPath = F:\SteamLibrary\steamapps\common\Demeo - PC Edition\Demeo_Data [15:30:50.424] Game::ApplicationPath = F:\SteamLibrary\steamapps\common\Demeo - PC Edition\Demeo.exe [15:30:50.425] Runtime Type: net35 [15:30:50.509] ------------------------------ [15:30:50.509] Game Name: Demeo PC Edition [15:30:50.509] Game Developer: Resolution Games [15:30:50.510] Unity Version: 2021.3.16f1 [15:30:50.510] Game Version: 1.30.215558-release [15:30:50.510] ------------------------------

[15:30:50.559] System.TypeInitializationException: The type initializer for 'HarmonyLib.AccessTools' threw an exception. ---> System.MissingMethodException: Method not found: Mono.Collections.Generic.Collection`1 Mono.Cecil.GenericParameter.get_Constraints() at MonoMod.Utils.Cil.ILGeneratorShim.GetProxy () [0x00000] in <9a9fb7d84a4d45d7aca33806e4b4b036>:0 at MonoMod.Utils.DynamicMethodDefinition.GetILGenerator () [0x00015] in <9a9fb7d84a4d45d7aca33806e4b4b036>:0 at HarmonyLib.MethodInvoker.GetHandler (System.Reflection.MethodInfo methodInfo, System.Boolean directBoxValueAccess) [0x00054] in <40a82cc9705b4865b72ee4c45165e7e9>:0 at HarmonyLib.AccessTools..cctor () [0x00055] in <40a82cc9705b4865b72ee4c45165e7e9>:0 --- End of inner exception stack trace --- at HarmonyLib.HarmonyMethod.HarmonyFields () [0x00000] in <40a82cc9705b4865b72ee4c45165e7e9>:0 at HarmonyLib.HarmonyMethodExtensions.CopyTo (HarmonyLib.HarmonyMethod from, HarmonyLib.HarmonyMethod to) [0x00022] in <40a82cc9705b4865b72ee4c45165e7e9>:0 at HarmonyLib.HarmonyMethod.ImportMethod (System.Reflection.MethodInfo theMethod) [0x00047] in <40a82cc9705b4865b72ee4c45165e7e9>:0 at HarmonyLib.HarmonyMethod..ctor (System.Reflection.MethodInfo method) [0x0001b] in <40a82cc9705b4865b72ee4c45165e7e9>:0 at MelonLoader.MelonUtils.ToNewHarmonyMethod (System.Reflection.MethodInfo methodInfo) [0x0000e] in D:\a\MelonLoader\MelonLoader\MelonLoader\MelonUtils.cs:289 at MelonLoader.Fixes.ForcedCultureInfo.Install () [0x00010] in D:\a\MelonLoader\MelonLoader\MelonLoader\Fixes\ForcedCultureInfo.cs:17 at MelonLoader.Core.Initialize () [0x000a5] in D:\a\MelonLoader\MelonLoader\MelonLoader\Core.cs:82

Did you attach your log file?