thijsvanloef / palworld-server-docker

A Docker Container to easily run a Palworld dedicated server.
https://hub.docker.com/r/thijsvanloef/palworld-server-docker
MIT License
2.43k stars 296 forks source link

SIGSEGV: invalid attempt to write memory at address #506

Closed taiwan-king closed 7 months ago

taiwan-king commented 7 months ago

Describe the bug

The server randomly crashes upon restart.

To Reproduce

Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior

Actual behavior

Screenshots

OS information (IMPORTANT)

Hardware information (IMPORTANT)

docker-compose.yml contents (IMPORTANT)

docker-compose.yml ```yaml # docker-compose.yml contents here ```

Container/Host Logs (IMPORTANT)

Logs ```log Generating report for minidump Application version 5.1.1.0 ... built from changelist 0 OS version Linux 4.4.302+ (network name: palworld-server) Running 4 x86_64 processors (8 logical cores) Exception was "SIGSEGV: invalid attempt to write memory at address 0x0000000000000003" PalServer-Linux-Test!UPalDynamicItemWorldSubsystem::Create_ServerInternal(FPalDynamicItemId const&, FName, FPalItemCreateParameter const&) [D:/works/repos/Pal_SVN/Pal-UE-App/Source/Pal/PalDynamicItemWorldSubsystem.cpp:139] PalServer-Linux-Test!UPalDynamicItemWorldSubsystem::ApplyWorldSaveData(UPalWorldSaveGame const*) [D:/works/repos/Pal_SVN/Pal-UE-App/Source/Pal/PalDynamicItemWorldSubsystem.cpp:289] PalServer-Linux-Test!non-virtual thunk to UPalDynamicItemWorldSubsystem::ApplyWorldSaveData(UPalWorldSaveGame const*) [D:/works/repos/Pal_SVN/Pal-UE-App/Source/Pal/PalDynamicItemWorldSubsystem.cpp:0] PalServer-Linux-Test!UPalSaveGameManager::ApplyWorldSaveData(UPalWorldSaveGame const*, TArray >&) [D:/works/repos/Pal_SVN/Pal-UE-App/Source/Pal/PalSaveGameManager.cpp:1795] PalServer-Linux-Test!UPalGameSystemInitSequence_ApplyWorldSaveData::ProcessImpl() [D:/works/repos/Pal_SVN/Pal-UE-App/Source/Pal/PalGameSystemInitSequences.cpp:218] PalServer-Linux-Test!UPalGameSystemInitManagerComponent::StartNextSequence() [D:/works/repos/Pal_SVN/Pal-UE-App/Source/Pal/PalGameSystemInitManagerComponent.cpp:101] PalServer-Linux-Test!UPalGameSystemInitManagerComponent::StartNextSequence() [D:/works/repos/Pal_SVN/Pal-UE-App/Source/Pal/PalGameSystemInitManagerComponent.cpp:115] PalServer-Linux-Test!UPalGameSystemInitManagerComponent::StartNextSequence() [D:/works/repos/Pal_SVN/Pal-UE-App/Source/Pal/PalGameSystemInitManagerComponent.cpp:115] PalServer-Linux-Test!UPalGameSystemInitManagerComponent::OnChangeProcessState(UPalGameSystemInitProcessHandle*) [D:/works/repos/Pal_SVN/Pal-UE-App/Source/Pal/PalGameSystemInitManagerComponent.cpp:167] PalServer-Linux-Test!TBaseUObjectMethodDelegateInstance::ExecuteIfSafe(UPalGameSystemInitProcessHandle*) const [C:/works/Pal-UE-EngineBinary/Engine/Source/Runtime/Core/Public/Delegates/DelegateInstancesImpl.h:616] PalServer-Linux-Test!UPalWorldSubsystem::OnWorldBeginPlay(UWorld&) [D:/works/repos/Pal_SVN/Pal-UE-App/Source/Pal/PalWorldSubsystem.cpp:57] PalServer-Linux-Test!UWorld::BeginPlay() [C:/works/Pal-UE-EngineSource/Engine/Source/./Runtime/Engine/Private/World.cpp:4875] PalServer-Linux-Test!UEngine::LoadMap(FWorldContext&, FURL, UPendingNetGame*, FString&) [C:/works/Pal-UE-EngineSource/Engine/Source/./Runtime/Engine/Private/UnrealEngine.cpp:14880] PalServer-Linux-Test!UEngine::Browse(FWorldContext&, FURL, FString&) [C:/works/Pal-UE-EngineSource/Engine/Source/./Runtime/Engine/Private/UnrealEngine.cpp:14037] PalServer-Linux-Test!UGameInstance::StartGameInstance() [C:/works/Pal-UE-EngineSource/Engine/Source/./Runtime/Engine/Private/GameInstance.cpp:634] PalServer-Linux-Test!FEngineLoop::Init() [C:/works/Pal-UE-EngineSource/Engine/Source/./Runtime/Launch/Private/LaunchEngineLoop.cpp:4372] PalServer-Linux-Test!GuardedMain(char16_t const*) [C:/works/Pal-UE-EngineSource/Engine/Source/./Runtime/Launch/Private/Launch.cpp:180] PalServer-Linux-Test!CommonUnixMain(int, char**, int (*)(char16_t const*), void (*)()) [C:/works/Pal-UE-EngineSource/Engine/Source/Runtime/Unix/UnixCommonStartup/Private/UnixCommonStartup.cpp:269] libc.so.6!UnknownFunction(0x27249) libc.so.6!__libc_start_main(+0x84) PalServer-Linux-Test!_start() 0 loaded modules Report end! ```

Additional context

Bug Report Checklist

thijsvanloef commented 7 months ago

Hi @taiwan-king I'm unsure if this is something I can fix. This seems like palworld crashing itself and not the container. What you can try however is the workaround in this reddit thread: https://www.reddit.com/r/Palworld/comments/1aie705/palworld_server_crashing_on_boot/