sinai-dev / UnityExplorer

An in-game UI for exploring, debugging and modifying IL2CPP and Mono Unity games.
GNU General Public License v3.0
2.36k stars 364 forks source link

[Bug]: Crash When initialized #210

Open YykGames opened 1 year ago

YykGames commented 1 year ago

Are you 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.
Joshtt23 commented 1 year ago

I am also experiencing this issue with 4.9.4. Are you using the branched repository from https://github.com/Baydock/UnityExplorer-NewML?

rootCBR commented 1 year ago

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)
Joshtt23 commented 1 year ago

@YykGames @rootCBR

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