nitrog0d / palworld-arm64

Palworld Arm64 Dedicated server with Docker and FEX
100 stars 5 forks source link

Getting many errors "SIGSEGV: invalid attempt to write memory at address" #20

Closed Stingrrr closed 6 months ago

Stingrrr commented 6 months ago

Hi,

The server seems to be running, and I am able to connect, but I lose connection after just a couple of minutes.

There are several folders in the Crashes folder now, and they look like this:

Generating report for minidump

Application version 5.1.1.0
 ... built from changelist 0

OS version Linux 5.15.0 (network name: 1f5771073543)
Running 4 x86_64 processors (4 logical cores)
Exception was "SIGSEGV: invalid attempt to write memory at address 0x0000000000000003"

<SOURCE START>
<SOURCE END>

<CALLSTACK START>
PalServer-Linux-Test!UPalSaveGameManager::OnFinishedWorldAsyncSaveGameInternal(FString const&, int, bool, FString, FString) [D:/works/repos/Pal_SVN/Pal-UE-App/Source/Pal/PalSaveGameManager.cpp:359]
PalServer-Linux-Test!decltype(auto) UE::Core::Private::Tuple::TTupleBase<TIntegerSequence<unsigned int, 0u, 1u>, FString, FString>::ApplyAfter<void (UPalSaveGameManager::* const&)(FString const&, int, bool, FString, FString), UPalSaveGameManager*&, FString const&, int&, bool&>(void (UPalSaveGameManager::* const&&&)(FString const&, int, bool, FString, FString), UPalSaveGameManager*&&&, FString const&&&, int&&&, bool&&&) const & [C:/works/Pal-UE-EngineBinary/Engine/Source/Runtime/Core/Public/Templates/Tuple.h:327]
PalServer-Linux-Test!TBaseUObjectMethodDelegateInstance<false, UPalSaveGameManager, void (FString const&, int, bool), FDefaultDelegateUserPolicy, FString, FString>::ExecuteIfSafe(FString const&, int, bool) const [C:/works/Pal-UE-EngineBinary/Engine/Source/Runtime/Core/Public/Delegates/DelegateInstancesImpl.h:616]
PalServer-Linux-Test!TBaseFunctorDelegateInstance<bool (float), FDefaultDelegateUserPolicy, UPalSaveGameManager::PalAsyncSaveGameToSlot(USaveGame*, FString const&, int, TDelegate<void (FString const&, int, bool), FDefaultDelegateUserPolicy>)::FZipAsyncSave::DoWork()::'lambda'(float)>::Execute(float) const [C:/works/Pal-UE-EngineBinary/Engine/Source/Runtime/Core/Public/Delegates/DelegateInstancesImpl.h:839]
PalServer-Linux-Test!FTSTicker::Tick(float) [C:/works/Pal-UE-EngineSource/Engine/Source/./Runtime/Core/Private/Containers/Ticker.cpp:110]
PalServer-Linux-Test!FEngineLoop::Tick() [C:/works/Pal-UE-EngineSource/Engine/Source/./Runtime/Launch/Private/LaunchEngineLoop.cpp:5606]
PalServer-Linux-Test!GuardedMain(char16_t const*) [C:/works/Pal-UE-EngineSource/Engine/Source/./Runtime/Launch/Private/Launch.cpp:204]
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(0x29d8f)
libc.so.6!__libc_start_main(+0x7f)
PalServer-Linux-Test!_start()

<CALLSTACK END>

0 loaded modules

Report end!

I guess this is the reason I'm losing connection, can't find anything in the logs about client logins/crashes.. Any idea what the problem is?

Stingrrr commented 6 months ago

Do I do anything with the Dockerfile that's in the repo by the way?

noamyoyo commented 6 months ago

seems like u don't have enough memory, how much is allocated?

Stingrrr commented 6 months ago

I don't know 😅 How do I check that? The server has 24 GB ram.

Stingrrr commented 6 months ago

Is allocating memory something I have to do on the Palworld server or in docker? When I do docker container stats I get this:

image

noamyoyo commented 6 months ago

Oh you're on oracle free tier too?

noamyoyo commented 6 months ago

Memory looks fine, can u share your docker compose?

Stingrrr commented 6 months ago

Yeah it's free tier. I use the same docker compose as on the front page on this repo (Getting started section)

version: '3.9'
services:
  palworld-server:
    image: 'nitrog0d/palworld-arm64:latest'
    container_name: 'palworld-server'
    ports:
      - '8211:8211/udp'
    environment:
      - ALWAYS_UPDATE_ON_START=true
      - MULTITHREAD_ENABLED=true
      - COMMUNITY_SERVER=false
    restart: 'unless-stopped'
    volumes:
      - './palworld:/palworld'
jwxxzc commented 6 months ago

i am getting the same error

jwxxzc commented 6 months ago

might possibly be an issue that was solved previously. I will attempt this later, hopefully you can try it out and see if that's the problem. https://github.com/nitrog0d/palworld-arm64/issues/16

jwxxzc commented 6 months ago

Fixed for me

noamyoyo commented 6 months ago

@Stingrrr yeah make sure u have the right permissions, especially if u try to use older saves that u imported into the game files

jwxxzc commented 6 months ago

@Stingrrr try sudo chown -R 1000:1000

like below in that directory

image
Stingrrr commented 6 months ago

@jwxxzc That fixed it for me too! Thank you all for the help!

And thanks @nitrog0d for the image! 😃