RE-UE4SS icon indicating copy to clipboard operation
RE-UE4SS copied to clipboard

Dedicated PalWorld Server keeps crashing every now and then

Open Montaris1972 opened this issue 1 year ago • 15 comments

Branch or Release 3.0.1

Game and Engine Version PalWorld Dedicated Server V0.1.4.1

Mods.zip

Describe the bug Unhandled Exception: EXCEPTION_ACCESS_VIOLATION reading address 0x00000000ffff0003

Mods directory Mods.zip

This zip contains the Mods Folder from \Binaries\Win64\ and \Contents\Paks\

To Reproduce Steps to reproduce the behavior:

  1. Launch Server
  2. Random event, crashes out Server with Unhandled Exception and Memory Address

Expected behavior The Server not to crash

Screenshots and UE4SS Log I am attaching the US4SS.log and also the crash dump that occurs UE4SS.zip

Desktop (please complete the following information): Windows 11 Pro

Montaris1972 avatar Feb 18 '24 00:02 Montaris1972

Does the server crash when you remove all the mods you installed, but with UE4SS itself installed? I.e. removing all pak files inside of Content/Paks except for the server pak, and remove TehStuckPalRescuerMod from inside of Binaries/Win64/Mods folder.

Also, you say you are using UE4SS version 3.0.1, but the log file says you are using 3.0.0.

Side note: I'm slightly confused why BPML_GenericFunctions inside of Mods folder has been disabled inside of your mods.txt. This handles printing logs from logic mods into the UE4SS.log file, so by having this switched off, you're not seeing any (potentially erroneous) output from your three mods inside of Content/Paks/LogicMods.

Buckminsterfullerene02 avatar Feb 18 '24 23:02 Buckminsterfullerene02

I am using TechStuckPalRescureMod as well. I am going to try an older version as I think this started occurring on the latest update.

znbaboy avatar Feb 19 '24 03:02 znbaboy

Does the server crash when you remove all the mods you installed, but with UE4SS itself installed? I.e. removing all pak files inside of Content/Paks except for the server pak, and remove TehStuckPalRescuerMod from inside of Binaries/Win64/Mods folder.

Also, you say you are using UE4SS version 3.0.1, but the log file says you are using 3.0.0.

Side note: I'm slightly confused why BPML_GenericFunctions inside of Mods folder has been disabled inside of your mods.txt. This handles printing logs from logic mods into the UE4SS.log file, so by having this switched off, you're not seeing any (potentially erroneous) output from your three mods inside of Content/Paks/LogicMods.

I have actually removed everything to do with UE4SS and left the Mods on that don't rely on it to run and the server has run fine for the whole day, where it was crashing every 90 minutes to 4 hours, so I am putting it down to UE4SS.

Montaris1972 avatar Feb 19 '24 07:02 Montaris1972

Does the server crash when you remove all the mods you installed, but with UE4SS itself installed? I.e. removing all pak files inside of Content/Paks except for the server pak, and remove TehStuckPalRescuerMod from inside of Binaries/Win64/Mods folder. Also, you say you are using UE4SS version 3.0.1, but the log file says you are using 3.0.0. Side note: I'm slightly confused why BPML_GenericFunctions inside of Mods folder has been disabled inside of your mods.txt. This handles printing logs from logic mods into the UE4SS.log file, so by having this switched off, you're not seeing any (potentially erroneous) output from your three mods inside of Content/Paks/LogicMods.

I have actually removed everything to do with UE4SS and left the Mods on that don't rely on it to run and the server has run fine for the whole day, where it was crashing every 90 minutes to 4 hours, so I am putting it down to UE4SS.

That doesn't mean it's UE4SS that's causing the problem. It could be a UE4SS mod that's causing the problem. To figure out if that's the case, you need to install UE4SS without any mods and if the problem still persists then it's probably a UE4SS problem.

UE4SS avatar Feb 19 '24 09:02 UE4SS

I have actually removed everything to do with UE4SS and left the Mods on that don't rely on it to run and the server has run fine for the whole day, where it was crashing every 90 minutes to 4 hours, so I am putting it down to UE4SS.

I heard that Palworld/Palserver crashes frequently unmodded anyway? For example my friend's server he hosts for a few friends has to reboot every 3 hours to prevent a crash. And his server doesn't use any mods.

Buckminsterfullerene02 avatar Feb 19 '24 11:02 Buckminsterfullerene02

I have actually removed everything to do with UE4SS and left the Mods on that don't rely on it to run and the server has run fine for the whole day, where it was crashing every 90 minutes to 4 hours, so I am putting it down to UE4SS.

I heard that Palworld/Palserver crashes frequently unmodded anyway? For example my friend's server he hosts for a few friends has to reboot every 3 hours to prevent a crash. And his server doesn't use any mods.

That is due to a memory leak. My new server I put in place has never had a chance to reach that memory leak before it fatally crashes. If that was the issue, I would be able to see that in the Windows logging but this crashes at 50-60% use.

Montaris1972 avatar Feb 19 '24 14:02 Montaris1972

Does the server crash when you remove all the mods you installed, but with UE4SS itself installed? I.e. removing all pak files inside of Content/Paks except for the server pak, and remove TehStuckPalRescuerMod from inside of Binaries/Win64/Mods folder. Also, you say you are using UE4SS version 3.0.1, but the log file says you are using 3.0.0. Side note: I'm slightly confused why BPML_GenericFunctions inside of Mods folder has been disabled inside of your mods.txt. This handles printing logs from logic mods into the UE4SS.log file, so by having this switched off, you're not seeing any (potentially erroneous) output from your three mods inside of Content/Paks/LogicMods.

I have actually removed everything to do with UE4SS and left the Mods on that don't rely on it to run and the server has run fine for the whole day, where it was crashing every 90 minutes to 4 hours, so I am putting it down to UE4SS.

That doesn't mean it's UE4SS that's causing the problem. It could be a UE4SS mod that's causing the problem. To figure out if that's the case, you need to install UE4SS without any mods and if the problem still persists then it's probably a UE4SS problem.

A lot of modders on Nexus are referencing UE4SS V3.0.0 or even V2.5.2 but saying update to V3.0.0. Was there any changes in V3.0.1 that may have causing a lot of these mods to break, say specific code changes that unless the Modder recompiles in V3.0.1, their mods may cause these kinds of issues, because V3.0.0 wasn't giving me nearly as much grief as the latest patch.

Montaris1972 avatar Feb 19 '24 14:02 Montaris1972

Does a .dmp file get generated when the server crashes ? If so, could you upload it ?

UE4SS avatar Feb 19 '24 14:02 UE4SS

Does a .dmp file get generated when the server crashes ? If so, could you upload it ?

It was attached with the UE4SS.zip file

Montaris1972 avatar Feb 20 '24 16:02 Montaris1972

Does a .dmp file get generated when the server crashes ? If so, could you upload it ?

It was attached with the UE4SS.zip file

Sorry, I didn't notice that earlier.

This .dmp file appears to be generated by the game and not UE4SS. There may still be useful information in it, I don't know, and I can't look at it because it requires all the files in the same directory that has PalServer-Win64-Test-Cmd.exe because the .dmp file won't load properly without them, and I don't have this game so I don't have these files.

UE4SS avatar Feb 20 '24 16:02 UE4SS

I'm going to try download the server via SteamCMD, maybe that's possible without owning the game.

UE4SS avatar Feb 20 '24 16:02 UE4SS

SteamCMD worked, the executable matches and I can see the callstack.

UE4SS avatar Feb 20 '24 16:02 UE4SS

The .dmp file hasn't been very useful. The only things in the callstack from within UE4SS are four instances of HookedProcessEvent, the rest of the callstack is within PalServer-Win64-Test-Cmd.exe which I obviously don't have any debug symbols for. This .dmp file also doesn't have any memory information so I can't inspect memory for corruption.

Here are some steps you can try:

  1. Deactivate every single mod, including the ones that come with UE4SS by default, including any BP mods installed in the Content/Paks/LogicMods directory.
  2. If no crash:
    • Reactivate one mod at a time until it crashes and let us know which mod that caused the crash.
  3. Otherwise:
    • Tell us that it still crashes with just UE4SS installed without any mods at all, at which point we'll be at a bit of a dead end unfortunately.

UE4SS avatar Feb 20 '24 17:02 UE4SS

are you using a server manager of any sort by chance?

znbaboy avatar Feb 21 '24 00:02 znbaboy

Checked the TehStuckPalRescuerMod discussion[1], many confirmed that this mod leads to the server crash.

  1. https://www.nexusmods.com/palworld/mods/585?tab=posts&BH=1

acelan avatar Feb 22 '24 05:02 acelan