MelonLoader

MelonLoader

554 Downloads

[Bug]: UE View material crashes the game

Elmishhh opened this issue ยท 3 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.

Pressing on View Material in UE crashes the game, this issue started happening at ml 0.6.x and higher but wasnt there with 0.5.7
the game is RUMBLE (VR) and it's Il2Cpp, the crash issue also happened on both unity 2022.3 and now unity 6
the only error is Fatal error. System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
here's a small clip of it, it's a bit old but everything is the exact same since then
https://imgur.com/MVvEbqp

i was told to report it here in yukieiji/UnityExplorer#46

Did you attach your log file?

Select an option below

commented

This seems to be an issue with how UniverseLib calls Sprite.CreateSprite_Injected
When I replaced the icall with a direct reference to the generated method it started working again without issue

Image
commented

should i bug report this in the universelib github or open the original bug report in UE again?

commented

should i bug report this in the universelib github or open the original bug report in UE again?

I would reopen the UE one you posted to make them aware of the issue.
I am not certain if they use their own fork of UniverseLib or not.

I will move this to milestone 0.7.3 for now and leave this issue open until it can be addressed further.