Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
6 of 7 tasks
Gasterbuzzer opened this issue Dec 29, 2024 · 7 comments
Open
6 of 7 tasks
Labels
Bug / Issue Something isn't working Crash Work-in-Progress This issue or pull request is being worked on currently

Comments

@Gasterbuzzer
Copy link

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

@HerpDerpinstine HerpDerpinstine added Bug / Issue Something isn't working Work-in-Progress This issue or pull request is being worked on currently Crash labels Jan 22, 2025
@slxdy
Copy link
Contributor

slxdy commented Jan 22, 2025

Needs retesting on the latest nightly build

@Gasterbuzzer
Copy link
Author

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.

@slxdy
Copy link
Contributor

slxdy commented Jan 22, 2025

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

@Gasterbuzzer
Copy link
Author

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

@slxdy
Copy link
Contributor

slxdy commented Jan 22, 2025

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

@slxdy
Copy link
Contributor

slxdy commented Jan 22, 2025

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

@Gasterbuzzer
Copy link
Author

Gasterbuzzer commented Jan 23, 2025

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug / Issue Something isn't working Crash Work-in-Progress This issue or pull request is being worked on currently
Projects
None yet
Development

No branches or pull requests

3 participants