Closed sruap1214 closed 1 year ago
Hi Santiag, Do you use your own Machine with a GPU or something like an AWS instance ? If the composer runs fine from bash, then maybe the DISPLAY environment variable is not defined in VS Code terminal. Do you have error details?
I am using my own machine with a RTX 3080 GPU. I put in the runArgs the -e and the display. From the /root/.nvidia-omniverse/logs/Kit/composer-standalone/2.0/kit_20230202_225727.log, these are the errors.
2023-02-02 22:57:27 [74ms] [Error] [carb.windowing-glfw.plugin] GLFW initialization failed. 2023-02-02 22:57:27 [74ms] [Error] [carb] Failed to startup plugin carb.windowing-glfw.plugin (interfaces: [carb::windowing::IGLContext v1.0],[carb::windowing::IWindowing v1.3]) (impl: carb.windowing-glfw.plugin) 2023-02-02 22:57:27 [104ms] [Error] [carb.windowing-glfw.plugin] GLFW initialization failed. 2023-02-02 22:57:27 [104ms] [Error] [carb] Failed to startup plugin carb.windowing-glfw.plugin (interfaces: [carb::windowing::IGLContext v1.0],[carb::windowing::IWindowing v1.3]) (impl: carb.windowing-glfw.plugin) 2023-02-02 22:57:27 [178ms] [Error] [gpu.foundation.plugin] Failed opening shader cache version file: /root/.cache/ov/Kit/103.1/66b6689c/shadercache/release/version 2023-02-02 22:57:27 [178ms] [Error] [gpu.foundation.plugin] Failed to process shader cache version file 2023-02-02 22:57:28 [306ms] [Error] [carb.windowing-glfw.plugin] GLFW initialization failed. 2023-02-02 22:57:28 [306ms] [Error] [carb] Failed to startup plugin carb.windowing-glfw.plugin (interfaces: [carb::windowing::IGLContext v1.0],[carb::windowing::IWindowing v1.3]) (impl: carb.windowing-glfw.plugin) 2023-02-02 22:57:28 [306ms] [Error] [carb.windowing-glfw.plugin] GLFW initialization failed. 2023-02-02 22:57:28 [306ms] [Error] [carb] Failed to startup plugin carb.windowing-glfw.plugin (interfaces: [carb::windowing::IGLContext v1.0],[carb::windowing::IWindowing v1.3]) (impl: carb.windowing-glfw.plugin) 2023-02-02 22:57:28 [306ms] [Error] [omni.appwindow.plugin] Failed to acquire IWindowing interface 2023-02-02 22:57:28 [347ms] [Error] [carb.windowing-glfw.plugin] GLFW initialization failed. 2023-02-02 22:57:28 [347ms] [Error] [carb] Failed to startup plugin carb.windowing-glfw.plugin (interfaces: [carb::windowing::IGLContext v1.0],[carb::windowing::IWindowing v1.3]) (impl: carb.windowing-glfw.plugin) 2023-02-02 22:57:28 [347ms] [Error] [carb.windowing-glfw.plugin] GLFW initialization failed. 2023-02-02 22:57:28 [347ms] [Error] [carb] Failed to startup plugin carb.windowing-glfw.plugin (interfaces: [carb::windowing::IGLContext v1.0],[carb::windowing::IWindowing v1.3]) (impl: carb.windowing-glfw.plugin) 2023-02-02 22:57:28 [451ms] [Error] [carb.crashreporter-breakpad.plugin] crash detected 2023-02-02 22:57:31 [3,377ms] [Error] [carb.crashreporter-breakpad.plugin] Wrote dump file '/root/.local/share/ov/data/Kit/composer-standalone/2.0/7fdbe1eb-df19-4388-27ca9089-f2c8627e.dmp' 2023-02-02 22:57:31 [3,377ms] [Error] [carb.crashreporter-breakpad.plugin] dump file size is -1 bytes, file is not readable.
I also test running with the devcontainer.env in which i put the same as you
DISPLAY=:10.0
Look, I did my whole experiment using an AWS EC2 VM with a GPU because I have a Mac. Hence I was actually SSHing into the VM from my Mac and the display variable I got was 10. 10 is probably not a valid value for someone doing that setup on their local machine.
In your case, try to echo $DISPLAY
in bash and in VS Code and see what you get. Also make sure to xhost +
in both just in case.
You were right. In my case the DISPLAY variable was different. Thanks. Now it runs
Great news!
Hi.
I would like to run the different project as you mentioned using vscode. When I run from my linux terminal de container using the following
docker run --gpus all -it --rm --net=host --privileged -v /tmp/.X11-unix:/tmp/.X11-unix -e DISPLAY=$DISPLAY -w /opt/nvidia/deepstream/deepstream-6.1 deepstream-6.1.1-devel:v1
The container run properly and I can launch the composer. Nevertheless, when I lanuch from vscode de container, it works except that is not possible to launch the composer. My devcontainer.json is as follows
{ "name": "UbuntuGraphComposer", "image": "deepstream-6.1.1-devel:v1", "runArgs": [ "--gpus=all", "--name=elvis-demo", "--net=host", "--rm", // "--add-host=host.docker.internal:host-gateway", / To allow container to access host / "--privileged=true", "-it",
"-v","/tmp/.X11-unix:/tmp/.X11-unix", "-v", "/home/sruap/Documents/Applaudo/Repositories/elvistechgo/elvistech:/home/", "-v", "/var/run/docker.sock:/var/run/docker.sock", / Needed for Container Builder in Graph Composer / "-e","DISPLAY=$DISPLAY" ] }
Additionally, since I have docker engine and docker desktop, I have to put the context of vscode to
in order to launch docker using engine. Do you have any clue of what can be this issue?