
[Bug]: System.NullReferenceException when running the Il2cpp game
diskretor opened this issue · 4 comments
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.
The error during startup the game. It is not visible in log, so the image is attached.
Debug mode is enabled for more information.
Error happened with stable release of MelonLoader too.
Environment:
MelonLoader v0.7.2-ci.2291 Open-Beta
OS: Windows 11
Game: KimiMuzi. Download link

Did you attach your log file?
Yes, I attached my log file to the text box above.
running into same issue with another Il2Cpp game, perhaps this log will shine more light
97] [DEBUG] [MelonAssemblyResolver] Failed to find Il2CppSystem.Private.CoreLib in any of the known search directories
[01:17:17.898] [Il2CppInterop] Registered mono type MelonLoader.Support.SM_Component in il2cpp domain
[01:17:17.904] Support Module Loaded: \MelonLoader\Dependencies\SupportModules\Il2Cpp.dll
[01:17:17.911] Failed to start MelonLoader
[01:17:17.913] Il2CppInterop.Runtime.Il2CppException: System.NullReferenceException: Object reference not set to an instance of an object.
--- BEGIN IL2CPP STACK TRACE ---
System.NullReferenceException: Object reference not set to an instance of an object.
at Cysharp.Threading.Tasks.PlayerLoopHelper.AddContinuation (Cysharp.Threading.Tasks.PlayerLoopTiming timing, System.Action continuation) [0x00000] in <00000000000000000000000000000000>:0
at ÍÍÏÏÍÎÎÎÎÍÏÍÏÏÏÍÎÍÍÍÍÏÍ.Awake () [0x00000] in <00000000000000000000000000000000>:0
at VRC.Core.VRCLogger+<>c__DisplayClass52_0.<OnMain>b__0 () [0x00000] in <00000000000000000000000000000000>:0
at VRC.Core.VRCLogger+<>c__DisplayClass52_0.<OnMain>b__0 () [0x00000] in <00000000000000000000000000000000>:0
at VRC.Core.VRCLogger.OnMain (Microsoft.Extensions.Logging.ILogger logger, System.Action`2[T1,T2] action, System.String message) [0x00000] in <00000000000000000000000000000000>:0
at VRC.Core.VRCLogger.Log (Microsoft.Extensions.Logging.ILogger logger, ZLogger.ZLoggerDebugInterpolatedStringHandler& message, UnityEngine.Object context) [0x00000] in <00000000000000000000000000000000>:0
at VRC.Core.ZLoggerHandlerLogger.LogFormat (UnityEngine.LogType logType, UnityEngine.Object context, System.String format, System.Object[] args) [0x00000] in <00000000000000000000000000000000>:0
at UnityEngine.Logger.Log (UnityEngine.LogType logType, System.Object message) [0x00000] in <00000000000000000000000000000000>:0
at UnityEngine.Debug.Log (System.Object message) [0x00000] in <00000000000000000000000000000000>:0
--- END IL2CPP STACK TRACE ---
at Il2CppInterop.Runtime.Il2CppException.RaiseExceptionIfNecessary(IntPtr returnedException) in /home/runner/work/Il2CppInterop/Il2CppInterop/Il2CppInterop.Runtime/Il2CppException.cs:line 36
at UnityEngine.Debug.Log(Object message)
at MelonLoader.Support.SupportModule_To.UnityDebugLog(String msg) in D:\a\MelonLoader\MelonLoader\Dependencies\SupportModules\SupportModule_To.cs:line 28
at MelonLoader.Core.AddUnityDebugLog() in D:\a\MelonLoader\MelonLoader\MelonLoader\Core.cs:line 280
at MelonLoader.Core.Start() in D:\a\MelonLoader\MelonLoader\MelonLoader\Core.cs:line 206
at MelonLoader.InternalUtils.BootstrapInterop.Start() in D:\a\MelonLoader\MelonLoader\MelonLoader\InternalUtils\BootstrapInterop.cs:line 98
[01:17:17.915] System.Exception: Error at start
at MelonLoader.InternalUtils.BootstrapInterop.Start() in D:\a\MelonLoader\MelonLoader\MelonLoader\InternalUtils\BootstrapInterop.cs:line 105
Unhandled exception. System.Exception: Error at start
at MelonLoader.InternalUtils.BootstrapInterop.Start() in D:\a\MelonLoader\MelonLoader\MelonLoader\InternalUtils\BootstrapInterop.cs:line 105
What the heck is that line, "at ÍÍÏÏÍÎÎÎÎÍÏÍÏÏÏÍÎÍÍÍÍÏÍ.Awake ()"? Something weird with how the function name is being extracted?
running into same issue with another Il2Cpp game, perhaps this log will shine more light
That just looks like VRChat blocking ML
Vrchat forbids modding so you will not get support for this
I can add, that this issue is also present in Underspace on Linux. Both stable and nightly releases throw this NullReferenceException and with or without mods as well. Seems to be a problem that occurs across platforms.
How did this not get picked up before release?
Not to flame or anything I'm just genuinely surprised since this seems like a big issue.
Interestingly though it seems to have worked before as the 'Anti-Freeflight' mod on nexus was developed with MelonLoader and has been uploaded in April