
[Bug]: Console Cleaner Failed: System.Exception: Unable to Find Constructor of Type Il2CppSystem.IO.StreamWriter!
JamieDavidson opened this issue · 1 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.
Unity 6000.0.37f1
MelonLoader v0.7.1-ci.2190 Open-Beta
Apologies if this is not a MelonLoader issue, this may be an issue better opened in Il2cppInterop.
Running MelonLoader on a test project created with the latest version of Unity leads to the following warning:
[23:56:42.350] Console Cleaner Failed: System.Exception: Unable to Find Constructor of Type Il2CppSystem.IO.StreamWriter!
at MelonLoader.Support.Main.ConsoleCleaner() in D:\a\MelonLoader\MelonLoader\Dependencies\SupportModules\Il2Cpp\Main.cs:line 103
Attached is the log file from a fresh run with debug logs enabled. I've tried uploading a test project, but I think it's too large for Github.
Some games will crash on startup, but I'm unable to reproduce this in a test project, the call ToString
is on a StreamWriter, which evidently is failing to be read.
The target process exited with code -1073741819 (0xC0000005) while evaluating the function 'Il2CppSystem.Object.ToString'.
If the problem happens regularly, consider disabling the Tools->Options setting "Debugging->General->Enable property evaluation and other implicit function calls" or debugging the cause by evaluating the expression from the Immediate window. See help for information on doing this.
Did you attach your log file?
Yes, I attached my log file to the text box above.