[Bug]: Game crashes to desktop right after log step Support Module Loaded: [...]\Il2Cpp.dll
sunyudai opened this issue ยท 2 comments
All of the following criteria must be met
- All Requirements must be installed.
- Full
Latest.log
file included. If no file exists then leave this unchecked and state so.
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.
Hello,
I'm trying to get MelonLoader to launch with the game "Take Me To The Dungeon!!", currently it is failing with no mods or plugins installed.
Upon launch:
- MelonLoader console displays.
- MelonLoader start screen displays (when configured to do so)
- Game begins to launch and displays "Made with Unity"
- Game, MelonLoader console, and MelonLoader start screen all crash to desktop together
Last line from Latest.log reads:
[08:00:18.284] Support Module Loaded: C:\Program Files (x86)\Steam\steamapps\common\Take Me To The Dungeon!!\MelonLoader\Dependencies\SupportModules\Il2Cpp.dll
Windows Event Viewer shows two possible entries that may be helpful:
Application: Take Me To The Dungeon!!.exe
CoreCLR Version: 6.0.2023.32017
.NET Version: 6.0.20
Description: The process was terminated due to an internal error in the .NET Runtime at IP 00007FFC6AF626A1 (00007FFC6AD90000) with exit code c0000005.
and
Faulting application name: Take Me To The Dungeon!!.exe, version: 2020.3.48.1457, time stamp: 0x6459a05f
Faulting module name: coreclr.dll, version: 6.0.2023.32017, time stamp: 0x6491fccb
Exception code: 0xc0000005
Fault offset: 0x00000000001d26a1
Faulting process id: 0x0x51F4
Faulting application start time: 0x0x1D9B4C0CD235CD8
Faulting application path: C:\Program Files (x86)\Steam\steamapps\common\Take Me To The Dungeon!!\Take Me To The Dungeon!!.exe
Faulting module path: C:\Program Files\dotnet\shared\Microsoft.NETCore.App\6.0.20\coreclr.dll
Report Id: 4fe162d1-f20b-4628-995f-e6d3489f9d6f
Faulting package full name:
Faulting package-relative application ID:
Latest Log here: Latest.log (same link as above)
side note: attached log was from a launch with title screen turned off, to rule out an issue there. Title screen does display when configured to do so.
I do have MelonLoader working with another game, Bloons TD6, without issue, so I beleive this is not a dependency issue.
Things tried:
- Different versions of MelonLoader: v0.6.1 and v0.5.7. Both fail in the same place.
- Reinstalling .Net framework SDKs listed in below locations:
- Launched in Debug mode. None of the additional information seemed relevant, log ends on same line. But I can rerun and attach that log if needed.
- Launched with No Mods mode. When doing this, game launches without issue, but MelonLoader does not generate a new log.
Did you attach your log file?
- Yes, I attached my log file to the text box above.
- No, I could not find a log file at
{Game_Directory}\MelonLoader\Latest.log
CoreCLR Error c0000005 appears to indicate a memory access violation: either a buffer overflow, array index out of bounds, or (more likely I think in this case) an issue with the way MelonLoader is trying to hook into the application, possibly getting blocked by windows security controls or resulting in a stack overflow.
In light of this, new things tried:
- Run game as Administrator (no change in behavior)
- Added exceptions for game to Windows Security Exploit Protection (no change in behavior)
I'm not sure where to go from here in terms of troubleshooting this.
Through the magic of grabbing the source code and spamming log messages, I can determine that MelonLoader.NativeHost.NativeEntryPoint.Start() runs and completes without error - but at that point we get into unmanaged code, and I haven't been able to trace the flow from there.
So it doesn't look like it's an issue with Il2Cpp, at least.