Closed KPicherit closed 1 year ago
Found out that adding -e SDL_VIDEODRIVER=x11
to the docker run
arguments solved the error XDG_RUNTIME_DIR not set
.
However it appeared not to be what caused the Carla server not to start (some lib where missing both in adamrehn/ue4-runtime:latest and ghcr.io/epicgames/unreal-engine:runtime).
Hey, I am facing the same issue, how did you fix it? I did add "-e SDL_VIDEODRIVER=x11" to the docker command but the other error still stays and carla didn't start
Hello @itserror404, It appears the XDG_RUNTIME_DIR "error" wasn't what caused the server crash at startup. Installing the following libraries fixed the server for me:
mesa-vulkan-drivers \
libxcursor1 \
libxft2 \
libxi6 \
libxinerama1 \
libxkbcommon0 \
libxrandr2 \
libxml2
Hope this helps
Hello,
I'm having trouble integrating a packaged unreal (carla more precisely) in a docker image using... basically any UE4 docker base image I found. (ghcr.io/epicgames/unreal-engine:runtime and adamrehn/ue4-runtime:latest)
I can rebuild a functional image from a base Ubuntu release and install nvidia drivers and so on but then the docker image won't work on a machine that don't have the exact same driver version. Plus I know the "good practice" should be to provide the access to host nvidia-driver, but I dont know how to do so.
Basically I'm building my docker image as so:
Then launching the docker through a shell script:
This returns me
I've tried with/without several options to the docker run (remove the --privileged, the mounting of /tmp/.X11-unix...) but nothing changes the error I get. Has someone encountered this error ? Any help would be much appreciated !
Note: It might be Carla-specific (not encountered on UE-only projects), since other Carla users have exeprienced the same issue but I guess it is related to one's config
Note: CarlaUE4.sh script just launches the binary from the UnrealProject root: