LavaGang / MelonLoader

The World's First Universal Mod Loader for Unity Games compatible with both Il2Cpp and Mono
https://discord.gg/2Wn3N2P
Apache License 2.0
2.51k stars 480 forks source link

[Bug]: SceneManager.sceneUnloaded override failed: System.InvalidOperationException: Sequence contains no elements #688

Open iestyn129 opened 5 months ago

iestyn129 commented 5 months ago

All of the following criteria must be met

All of the following are optional to answer

Describe the issue.

This issue occurs when booting the game "My Singing Monsters Playground". The error itself changes, being System.InvalidOperationException: Sequence contains no elements or System.InvalidOperationException: Sequence contains more than one element. From what I can tell, the error occurs when converting an Action to a UnityAction. The game loads, but MelonLoader doesn't. The issue appears on versions 0.6.1, 0.6.2, and 0.6.4. Versions 0.5.5, 0.5.7, and 0.6.3 do not load the game at all. Latest.log

Did you attach your log file?

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

iestyn129 commented 5 months ago

Small update: this issue seems to be a problem with some games using Unity 2022.3.22f1, and sometimes only occurs when using certain mods

HerpDerpinstine commented 4 months ago

Have you tried using the latest alpha-development nightly build for MelonLoader v0.6.5? Should be able to use the Manual ZIP tab in the installer to install it.

iceynano commented 3 months ago

Im working on GF2 Exilium, got the same error in alpha dev release, for the v0.6.5, here is the log: Latest.log for v0.5.7, there is a probability of successfully loading the DLL, but most of the time it will fail: Success-debug.log Failed.log

I'm new to unity, so I don't know the specific reason for the problem