-
-
Notifications
You must be signed in to change notification settings - Fork 3.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
carla docker runs wrong #3431
Comments
When I try the dockerfile, it goes wrong too. Step 8/9 : RUN ./GenerateProjectFiles.sh && make Setting up Unreal Engine 4 project files... Fixing inconsistent case in filenames. |
I had the same issue. docker run \
-e SDL_VIDEODRIVER=x11 \
-e DISPLAY=$DISPLAY\
-v /tmp/.X11-unix:/tmp/.X11-unix \
-p 2000-2002:2000-2002 \
-it \
--gpus all \
carlasim/carla:0.9.10.1 ./CarlaUE4.sh -opengl btw you don't have to pass |
I'm using Ubuntu16.04, execute the pasted command but got error:
@gismo07 |
Ok maybee we should check if your docker setup is working properly. sudo docker run --rm --gpus all nvidia/cuda:11.0-base nvidia-smi now you should see something like this:
|
@gismo07 Yes, I can correct run and get result for command |
On my ubuntu16.04, it is also nvidia 450 driver which support cuda 11.0 |
On my ubuntu16.04, first run this: xhost local:root then run this: sudo docker run \
-e SDL_VIDEODRIVER=x11 \
-e DISPLAY=$DISPLAY\
-v /tmp/.X11-unix:/tmp/.X11-unix \
-p 2000-2002:2000-2002 \
-it \
--gpus all \
carlasim/carla:0.9.10 ./CarlaUE4.sh -opengl Then the CARLA window appears. |
(base) [root@localhost ~]# sudo docker run --runtime=nvidia -e NVIDIA_VISIBLE_DEVICES=1 -e SDL_VIDEODRIVER=x11 -e DISPLAY=$DISPLAY -v /tmp/.X11-unix:/tmp/.X11-unix -p 2000-2002:2000-2002 -it --gpus all carlasim/carla:0.9.10 ./CarlaUE4.sh -opengl Thank you, but it's not work for me. I got the same error. I guess that maybe path has some problems. |
@lz1159435992 I am not using |
@lz1159435992 Btw, I'm using a ubuntu desktop, instead of a SSH connected terminal. |
Maybe this is why I have so many problems. I have faced uncountable errors since I began to configure Carla on the server without display. |
Well I think SSH to a remote linux server, which is with NVIDIA GPU, is a common required stuff. I'm on windows10, and with Xming and putty, I can get a DISPLAY. With this, commands like However I still don't know how to let CARLA window display in Windows. |
Hmm I think, that running carla requires a display. I was also struggling at that point. Have you tried this: #225 |
OK,I will try this, if you fix this please let me know how. |
Above works for me. |
There are little tutorials for doing this. I have spend two weeks but still can‘t fix it. |
carla@bed76db766e3:~$ SDL_VIDEODRIVER=offscreen ./CarlaUE4.sh -opengl I got this error. It's new for me. |
I think opengl's indirect rendering caused the failure of CARLA while To be precise, I'm using VcXsrv software (Xlaunch) for X11 Service, which means I cannot start a program that using opengl4.6 Related links: I've tried adding my linux user to update Indirect rendering can't show opengl4's stuff, and indirect rendering may bring more latency:
https://superuser.com/a/984901/1194649 Thus I would not consider X11Forward+NVidia Docker solution any more. |
|
I can't fix this. I have tried all the methods mentioned above. I try to install carla on windows10 with screen. |
@lz1159435992 Yes, I think install and run CARLA on Windows 10 with screen is the best choice. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
@lz1159435992 |
I thought whole point of using Docker is not to need a display, if you are running on a remote server for instance:
|
Doing:
and then:
I get the same results as @lz1159435992:
But maybe this is normal? When checking
|
docker run -p 2000-2002:2000-2002 --runtime=nvidia --gpus all carlasim/carla:0.9.10.1
sh: 1: xdg-user-dir: not found
The text was updated successfully, but these errors were encountered: