MelonLoader

MelonLoader

242 Downloads

[Bug]: Inconsistent crashing - "SIGSEGV" error

Xrayxout opened this issue ยท 8 comments

commented

All of the following criteria must be met

  • All Requirements must be installed.
  • Full Latest.log file included. If no file exists then leave this unchecked and state so.

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.

Been making a mod and sometimes, would randomly see the game crash and going to check the logs that Melon generates, it would show no details of a crash. just my mod completing it's function and that's it. but i managed to copy and paste the entire CMD window before it crashed and discovered a "Got a SIGSEGV while executing native code" error. i sent this issue in the MelonLoader discord and was told to try running the game with the "--melonloader.disablestartscreen" launch command and the issue did not go away. if anymore info is needed lemme know

Copied from window.log

Did you attach your log file?

  • Yes, I attached my log file to the text box above.
  • No, I could not find a log file at {Game_Directory}\MelonLoader\Latest.log
commented

Can you verify game files? There looks to be some weirdness with one of the game files, or a MelonLoader bug. It's most likely some weirdness though.

commented

After trying with a universal mod, the same type of error appears as well but it describes different reason for it. the game would continue but it would eventually bug out and crash or become unplayable. how do we even diagnose these with mod creators? how do we go about fixing it if it's our fault?

here is the log with just Unity Explorer
Unity Explorer same type of error.txt

commented

It doesn't make sense for the game to crash after your mod manages to finish some init stuff after a fatal error. If the fatal error is what is actually causing the crash then the game would likely crash before your mod initializes. It also doesn't make sense for Synth Riders to be crashing, for, as far as I know, it is supported by MelonLoader just fine.

Does your game still crash without your mod in the Mods folder? If it doesn't try to get help debugging it in the MelonLoader Discord.

commented

it doesn't crash with no mods. will try debugging with the discord

commented

I debugged it using DNSpy and got this. does this help?

Output-Debug.txt

commented

it doesn't crash with no mods. will try debugging with the discord

If it doesn't crash without mods but crashes with mods, the problem is most likely the mods.

commented

I am not on Steam i am on Oculus. but i reinstalled it and still same issue

commented

I have found and fixed the issue. turns out a Timer() function was causing inconsistent results and causing the game to crash. thanks for the help :)