[Bug]: Crash When initialized
YykGames opened this issue · 3 comments
Are you on the latest version of UnityExplorer?
- Yes, I'm on the latest version of UnityExplorer.
Which release are you using?
MelonLoader IL2CPP
Which game did this occur on?
SonsOfTheForest
Describe the issue.
UnityExplorer 4.9.4 initializing...
[UniverseLib] UniverseLib 1.5.4.1 initializing...
[UniverseLib] Finished UniverseLib initial setup.
Initialized UnityCrashPrevention for: Canvas.get_renderingDisplaySize
[UniverseLib] Loaded Unhollowed modules in 11.318001 seconds.
[UniverseLib] Setup deobfuscation cache in 0.34600002 seconds.
[UniverseLib] Initialized Legacy Input support
[UniverseLib] IL2CPP method has no corresponding pointer, aborting patch of UnityEngine.AssetBundle.UnloadAllAssetBundles
[UniverseLib] Loaded modern bundle for Unity 2022.2.3f1
[UniverseLib] UniverseLib 1.5.4.1 initialized.
Creating UI...
UnityExplorer 4.9.4 (IL2CPP) initialized.
Thats the error i have tried everything i could but it crashes after it is initialized.
Relevant log output
UnityExplorer 4.9.4 initializing...
[UniverseLib] UniverseLib 1.5.4.1 initializing...
[UniverseLib] Finished UniverseLib initial setup.
Initialized UnityCrashPrevention for: Canvas.get_renderingDisplaySize
[UniverseLib] Loaded Unhollowed modules in 11.318001 seconds.
[UniverseLib] Setup deobfuscation cache in 0.34600002 seconds.
[UniverseLib] Initialized Legacy Input support
[UniverseLib] IL2CPP method has no corresponding pointer, aborting patch of UnityEngine.AssetBundle.UnloadAllAssetBundles
[UniverseLib] Loaded modern bundle for Unity 2022.2.3f1
[UniverseLib] UniverseLib 1.5.4.1 initialized.
Creating UI...
UnityExplorer 4.9.4 (IL2CPP) initialized.
I am also experiencing this issue with 4.9.4. Are you using the branched repository from https://github.com/Baydock/UnityExplorer-NewML?
For however much it helps, this is the fatal error that follows the above:
Fatal error. Internal CLR error. (0x80131506)
at MonoMod.RuntimeDetour.Platforms.DetourRuntimeNETCore30Platform.CompileMethodHook(IntPtr, IntPtr, CORINFO_METHOD_INFO ByRef, UInt32, Byte* ByRef, UInt32 ByRef)
The issue is actually in the harmony.dll. You will need to replace the file MelonLoader/net6/0Harmony.dll with the file I will link below.
Patched 0Harmony.dll: https://drive.google.com/file/d/1372wD3U72gotlTJipykV87M-81TSQhMM/view?usp=sharing
Source: MelonLoader Support Discord