我正在运行全新安装的 Ubuntu 18.04。我将我的 NVIDIA 驱动程序降级为 390.129(尽管说明仅提到在安装 Drake 时支持 CUDA,但我没有这样做)。
我已经使用此处的说明安装了 Docker 并构建了 Drake (不支持 NVIDIA)。docker build --file setup/ubuntu/docker/bionic/Dockerfile --tag drake .
工作并docker run --interactive --tty drake bash
开始没有任何问题。
当我尝试使用 GUI 启动 Drake 时xhost +local:root; docker run --env=DISPLAY --env=QT_X11_NO_MITSHM=1 --interactive --ipc=host --privileged --tty --volume=/tmp/.X11-unix:/tmp/.X11-unix:rw drake; xhost -local:root;
,我收到此错误:
non-network local connections being added to access control list
+ [[ 0 -eq 0 ]]
+ bazel build //tools:drake_visualizer //examples/acrobot:run_passive
Extracting Bazel installation...
Starting local Bazel server and connecting to it...
INFO: Analyzed 2 targets (100 packages loaded, 20684 targets configured).
INFO: Found 2 targets...
INFO: Elapsed time: 169.872s, Critical Path: 59.75s
INFO: 536 processes: 536 linux-sandbox.
INFO: Build completed successfully, 799 total actions
+ sleep 2
+ ./bazel-bin/tools/drake_visualizer
QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root'
libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: swrast
Drake Scripts:
Specified: --use_builtin_scripts=all
Available: --use_builtin_scripts=frame,hydroelastic_contact,image,point_pair_contact,time
Hydroelastic Contact Visualizer subscriber added.
DrakeLcmImageViewer: Defer setup until 'DRAKE_RGBD_CAMERA_IMAGES' is received
Contact Visualizer subscriber added.
QOpenGLWindow::beginPaint: Failed to create context
QOpenGLWindow::beginPaint: Failed to make context current
ERROR: In /vtk/Rendering/OpenGL2/vtkOpenGLRenderWindow.cxx, line 741
vtkGenericOpenGLRenderWindow (0x55a0b9a5ac60): GLEW could not be initialized: Missing GL version
QOpenGLFunctions created with non-current context
./setup/ubuntu/docker/entrypoint.sh: line 15: 3175 Segmentation fault (core dumped) ./bazel-bin/tools/drake_visualizer
+ bazel run //examples/acrobot:run_passive
INFO: Analyzed target //examples/acrobot:run_passive (0 packages loaded, 0 targets configured).
INFO: Found 1 target...
Target //examples/acrobot:run_passive up-to-date:
bazel-bin/examples/acrobot/run_passive
INFO: Elapsed time: 0.444s, Critical Path: 0.00s
INFO: 0 processes.
INFO: Build completed successfully, 1 total action
INFO: Build completed successfully, 1 total action
non-network local connections being removed from access control list
知道问题是什么吗?我是否也必须在容器中安装我的 NVIDIA 驱动程序?谢谢。