MelonLoader

MelonLoader

554 Downloads

[Bug]: Fatal Exception on clean installation with 0.6.6 and above

Gasterbuzzer opened this issue ยท 9 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.

Hello,

After attempting to install MelonLoader 0.6.6v on the game, Superhot it appears to crash before even being able to start properly. No log files are created, possibly due to it not finding the required assembly.
Even after making sure all requirements are properly installed, it does not seem to make a difference.
However, first installing a working version such as 0.6.4v, launching it once and then upgrading to 0.6.6 or any higher version seem to fix the issue.
This is without any mods/plugins installed.

The crash message:
[ERROR] FATAL UNHANDLED EXCEPTION: System.TypeLoadException: Could not load type of field 'MelonLoader.MelonLogger:DefaultMelonColor' (1) due to: Could not load file or assembly 'System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. assembly:System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a type:<unknown type> member:(null) signature:<none>

Did you attach your log file?

No, I could not find a log file at {Game_Directory}\MelonLoader\Latest.log

commented

Hold on, I think you're using my PR build. Use the latest build from the alpha-development branch

commented

Needs retesting on the latest nightly build

commented

Needs retesting on the latest nightly build

On v0.7.0-ci.2085 (On a clean install) no crash happens (The game opens to the main menu without issues), and the log file is empty.
The console only shows the following:

Setting breakpad minidump AppID = 322500
Steam_SetMinidumpSteamID:  Caching Steam ID:  76561198371048119 [API loaded no]

If needed: No crash happens from v0.7.0-ci.2080 onwards, any previous nightly build crashes.

commented

The log file is empty?
Edit the file at UserData/Loader.cfg, set debug to true and rerun. Send the output

commented

The log file is empty? Edit the file at UserData/Loader.cfg, set debug to true and rerun. Send the output

This is the console output:

[14:16:24.153] [BS DEBUG] Creating log files (Max logs: 10)
[14:16:24.156] [BS DEBUG] Opening stream to latest log
[14:16:24.156] [BS DEBUG] Opening stream to cached log
[14:16:24.157] [BS DEBUG] Starting probe for runtime
[14:16:24.163] [BS DEBUG] Loading Mono exports
[14:16:24.163] [BS DEBUG] Patching mono init
[14:16:24.218] [BS DEBUG] In init detour
[14:16:24.233] [BS DEBUG] Creating Mono Debug Domain
[14:16:24.233] [BS DEBUG] Setting Mono Main Thread
[14:16:24.233] [BS DEBUG] Setting Mono Config
[14:16:24.234] [BS DEBUG] Initializing managed assemblies
[14:16:24.241] [BS DEBUG] Loading ML assembly
[14:16:24.243] [BS DEBUG] Adding internal calls
[14:16:24.244] [BS DEBUG] Invoking managed core init
Setting breakpad minidump AppID = 322500
Steam_SetMinidumpSteamID:  Caching Steam ID:  76561198371048119 [API loaded no]

The log file now contains the following, which is partially the console output:

[14:16:24.156] [BS DEBUG] Opening stream to cached log
[14:16:24.157] [BS DEBUG] Starting probe for runtime
[14:16:24.163] [BS DEBUG] Loading Mono exports
[14:16:24.163] [BS DEBUG] Patching mono init
[14:16:24.218] [BS DEBUG] In init detour
[14:16:24.233] [BS DEBUG] Creating Mono Debug Domain
[14:16:24.233] [BS DEBUG] Setting Mono Main Thread
[14:16:24.233] [BS DEBUG] Setting Mono Config
[14:16:24.234] [BS DEBUG] Initializing managed assemblies
[14:16:24.241] [BS DEBUG] Loading ML assembly
[14:16:24.243] [BS DEBUG] Adding internal calls
[14:16:24.244] [BS DEBUG] Invoking managed core init
commented

I honestly might've messed something up. Can you look through the last 4 nightly builds and see if you notice any different behavior?

commented

While testing the different nightly builds, I noticed that scene loading does not seem to work at all. The game attempts to load a new scene after the main menu and fails, being stuck in the loading screen.

Version v0.7.0-ci.2087 results in the same behavior as v0.7.0-ci.2085.
This is also the same for v0.7.0-ci.2082 and v0.7.0-ci.2080.

On v0.7.0-ci.2077, which I assume is not functional, just crashes with:
* Assertion at ..\mono\metadata\class.c:4988, condition 'klass' not met

I assume this is the latest available nightly build?
https://nightly.link/LavaGang/MelonLoader/workflows/build/alpha-development