MelonLoader

MelonLoader

554 Downloads

[Bug]: Exception in IL2CPP-to-Managed trampoline; System.NotSupportedException: Method unstripping failed

XeventoHD opened this issue ยท 1 comments

commented

All of the following criteria must be met

  • All Requirements must be installed.
  • Changed the title so that it doesn't just says "[Bug]: "
  • I have searched the GitHub issues for my bug, even in the closed issues.

All of the following are optional to answer

  • Tried reinstalling the Game.
  • Tried reinstalling MelonLoader.
  • Tried restarting PC.
  • Was able to see the Start Screen.

Describe the issue.

I'm working on a UI for my mod using Unity's IMGUI and this problem occured when i tried to click a Button.
The relevant part of code should be:

if(GUI.Button(new Rect(20, 20, 90, 30), "Hello World"))
{
    MelonLogger.Msg("Hello World!");
}

Attached, the lastest.log:
Latest.log

Did you attach your log file?

Yes, I attached my log file to the text box above.

commented

This means that the game has stripping enabled which means some methods are removed when the game gets built.
Il2CppInterop attempts to unstrip those methods but it doesn't always work as it should.