Skip to content

Gate 0 smoke: CARLA RenderThread timeout / SIGSEGV — need working Dockerfile (Vulkan + shm 2g) #2

Description

@karmugilen

Summary

Follow-up to #1. Repo commit fa8d091 is fine. Gate 0 smoke still fails on the A4000 Docker box because CARLA/Unreal cannot render.

Please send a Dockerfile + exact docker run that you have already used to pass:

[job] Smoke test passed; no training requested.

Do not keep patching Python. This is a container GPU/Vulkan/shm problem.

What already works (fa8d091)

Host: rajkumar_12497@10.30.161.69docker exec -it mywork bash
Container: originally 70dac519e9f3, RTX A4000 16 GiB
Project: /home/rajkumar_12497/student1/Auto_Thinker_Engine

git pull --ff-only origin main          # a98431e -> fa8d091  OK
git submodule status
  160132436aeda1de54956f9910e56f3970a565aa third_party/CarDreamer
  6ef8646d807cd10ce0c88e10a7e943211e7fc44c third_party/dreamerv3_torch
uv sync --frozen --extra dev --extra carla   OK
bash scripts/setup_cardreamer.sh "$CARLA_ROOT"
  SETUP_RC=0
  Unit tests: 80 passed, 8 warnings in 4.82s
python run.py doctor --require-cuda --require-carla
  DOCTOR_RC=0
  CUDA: available (1 device(s))  NVIDIA RTX A4000  torch 2.4.1+cu121
  CARLA Python API: importable

Root refusal is gone with CARLA_RUN_USER=carla.

Command that still fails

CARLA_ROOT=/home/rajkumar_12497/student1/software \
CARLA_RUN_USER=carla \
RUN_MODE=smoke \
bash jobs/slurm_run.sh
# SMOKE_RC=1

Log: outputs/carla_2000.log

ALSA lib confmisc.c:855:(parse_card) cannot find card '0'
ALSA lib conf.c:5182:(_snd_config_evaluate) function snd_func_card_inum returned error: No such file or directory
ALSA lib confmisc.c:422:(snd_func_concat) error evaluating strings
ALSA lib conf.c:5182:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory
ALSA lib confmisc.c:1334:(snd_func_refer) error evaluating name
ALSA lib conf.c:5182:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5705:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2664:(snd_pcm_open_noupdate) Unknown PCM default
LowLevelFatalError [File:Unknown] [Line: 1214]
GameThread timed out waiting for RenderThread after 60.00 secs
Signal 11 caught.
Malloc Size=65538 LargeMemoryPoolOffset=65554 
4.26.2-0+++UE4+Release-4.26 522 0
Disabling core dumps.
CommonUnixCrashHandler: Signal=11
Engine crash handling finished; re-raising signal 11 for the default handler. Good bye.
Segmentation fault (core dumped)

Console:

SMOKE TEST FAILED: time-out of 30000ms while waiting for the simulator, make sure the simulator is ready and connected to localhost:2000
⚠️  Smoke test FAILED. Do NOT proceed to Phase 1.
ERROR: CARLA exited before becoming ready. Log: .../outputs/carla_2000.log
SMOKE_RC=1

Docker facts (docker inspect mywork)

Image=mywork:with-tools
NVIDIA_VISIBLE_DEVICES=all
NVIDIA_DRIVER_CAPABILITIES=compute,utility    # CUDA only — no graphics/Vulkan
ShmSize=67108864                              # 64 MiB  (CARLA wants ~2g)
Binds=["/home/rajkumar_12497:/home/rajkumar_12497"]

Inside the original container:

$ ls -l /etc/vulkan/icd.d/nvidia_icd.json
-rw-r--r-- 1 root root 0 Jul 29 08:51 /etc/vulkan/icd.d/nvidia_icd.json

$ ls -l /usr/lib/x86_64-linux-gnu/libGLX_nvidia.so.580.173.02
-rw-r--r-- 1 root root 0 Jul 29 08:51 .../libGLX_nvidia.so.580.173.02

$ ls /usr/share/vulkan/icd.d
intel_hasvk_icd.x86_64.json  intel_icd.x86_64.json
lvp_icd.x86_64.json          radeon_icd.x86_64.json
virtio_icd.x86_64.json

Vulkan:

Cannot create Vulkan instance.
ERROR at ./vulkaninfo/vulkaninfo.h:649:vkCreateInstance failed with ERROR_INCOMPATIBLE_DRIVER
loader_scanned_icd_add: Could not get 'vkCreateInstance' via 'vk_icdGetInstanceProcAddr' for ICD libGLX_nvidia.so.0

Host has the real driver files (1.2M libGLX_nvidia, 36M libnvidia-glcore, valid nvidia_icd.json). The container only got CUDA (compute,utility), so Unreal has nothing to render with.

What we need

A Dockerfile (or compose) plus the exact docker run you used when smoke passed. Minimum:

docker run -d --name auto-thinker \
  --gpus all \
  -e NVIDIA_DRIVER_CAPABILITIES=all \
  -e NVIDIA_VISIBLE_DEVICES=all \
  --shm-size=2g \
  --user <non-root-uid> \
  -v "$PWD":/work -w /work \
  <your-image>

Must succeed inside that image:

python run.py doctor --require-cuda --require-carla
CARLA_ROOT=... RUN_MODE=smoke bash jobs/slurm_run.sh

Also document CARLA 0.9.15 path, non-root user, VK_ICD_FILENAMES to a non-empty NVIDIA ICD, and SDL_AUDIODRIVER=dummy / -nosound.

CNN 10k is blocked until smoke passes.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions