MelonLoader

MelonLoader

554 Downloads

[Bug]: Z.O.N.A: Origin crashes after a while of gameplay without logs

Kirottu opened this issue ยท 1 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.

With v0.6.6 open beta the game would not even get to a start screen, but with the latest alpha-development nightly build (as of 24.2.2025) I can get into the game but after some amount of gameplay the game will crash without a log entry.

Similar to other issues, the crash is caused by an access violation:
Unhandled exception: page fault on read access to 0x000000000000004c in 64-bit code (0x006ffff5e2e5e9).

Attached is also the full proton log generated by the game (the file is very large, any information relevant to the crash is likely at the end of the file).

The singular mod loaded is a very simple testing mod with a single Harmony hook and a startup method.

Latest.log
Proton.log

Did you attach your log file?

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

commented

I managed to gather some more info about the issue with some debugger & testing.

  • It seems like the crash is not random, it seems like it happens consistently after around 5-ish minutes.
  • The address that page faults and the address that it tries to read are consistent.
  • The thread that crashes is titled "GC Finalizer" according to the debugger.
  • The backtrace is as follows:
#0  0x00006ffff5e6e5e9 in il2cpp_field_set_value ()
   from /home/kirottu/.local/share/Steam/steamapps/common/ZONAORIGIN/GameAssembly.dll
#1  0x00006ffff5ea8c8b in il2cpp_alloc ()
   from /home/kirottu/.local/share/Steam/steamapps/common/ZONAORIGIN/GameAssembly.dll
#2  0x00006ffff5ee6a58 in mono_class_has_parent ()
   from /home/kirottu/.local/share/Steam/steamapps/common/ZONAORIGIN/GameAssembly.dll
#3  0x00006ffff5ea8bd3 in il2cpp_alloc ()
   from /home/kirottu/.local/share/Steam/steamapps/common/ZONAORIGIN/GameAssembly.dll
#4  0x00006ffff5ece18d in il2cpp_class_has_parent ()
   from /home/kirottu/.local/share/Steam/steamapps/common/ZONAORIGIN/GameAssembly.dll
#5  0x00006ffff5ea5bb3 in il2cpp_alloc ()
   from /home/kirottu/.local/share/Steam/steamapps/common/ZONAORIGIN/GameAssembly.dll
#6  0x00006fffffed482d in BaseThreadInitThunk ()
   from /home/kirottu/.local/share/Steam/steamapps/common/Proton - Experimental/files/lib64/wine/x86_64-windows/kernel32.dll
#7  0x00006ffffff4f49f in RtlUserThreadStart ()
   from /home/kirottu/.local/share/Steam/steamapps/common/Proton - Experimental/files/lib64/wine/x86_64-windows/ntdll.dll
#8  0x0000000000000000 in ?? ()

So in my limited knowledge/deduction it would seem like somehow MelonLoader injecting itself into ZONA causes a garbage collection routine to read 0x000000000000004c which really doesn't look like an address it should be reading.

If anyone has ideas for obtaining more information about the crash, I can try them out.