Skip to content

[Bug]: Melonloader doesn't work with Unity version 6000.2.2f1 #1006

@JamieDavidson

Description

@JamieDavidson

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.

Having an issue where a few games I mod have updated to 6000.2.2f1 recently, and melonloader no longer works. I've reproduced this with a minimum build from the engine. I've tried attaching the project but Github won't let me ☹️

Here's the full log. I get the same issue with the latest CI build.

[14:02:26.647] ------------------------------
[14:02:26.649] MelonLoader v0.7.1 Open-Beta
[14:02:26.650] OS: Windows 11
[14:02:26.650] Hash Code: E02D6B4281E511A9F1EA88CD1737B993A6B9C7C5566EFBE68300B1FCF1479C14
[14:02:26.650] ------------------------------
[14:02:26.651] Game Type: Il2cpp
[14:02:26.651] Game Arch: x64
[14:02:26.651] ------------------------------
[14:02:26.651] Command-Line: 
[14:02:26.651] ------------------------------
[14:02:26.652] Core::BasePath = C:\GameDev\TestProject
[14:02:26.652] Game::BasePath = C:\GameDev\TestProject
[14:02:26.652] Game::DataPath = C:\GameDev\TestProject\TestProject_Data
[14:02:26.652] Game::ApplicationPath = C:\GameDev\TestProject\TestProject.exe
[14:02:26.653] Runtime Type: net6
[14:02:26.846] ------------------------------
[14:02:26.847] Game Name: TestProject
[14:02:26.848] Game Developer: DefaultCompany
[14:02:26.850] Unity Version: 6000.2.2f1
[14:02:26.850] Game Version: UNKNOWN
[14:02:26.850] ------------------------------

[14:02:27.544] Preferences Loaded!

[14:02:27.599] Loading UserLibs...
[14:02:27.601] 0 UserLibs loaded.

[14:02:27.601] Loading Plugins...
[14:02:27.605] 0 Plugins loaded.

Unhandled exception. System.NullReferenceException: Object reference not set to an instance of an object.
   at System.SpanHelpers.IndexOfNullByte(Byte*) + 0x2c
   at System.Runtime.InteropServices.MemoryMarshal.CreateReadOnlySpanFromNullTerminated(Byte*) + 0x19
   at System.Runtime.InteropServices.PInvokeMarshal.AnsiStringToString(Byte*) + 0x40
   at VERSION!<BaseAddress>+0x4beec4

Did you attach your log file?

Yes, I attached my log file to the text box above.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions