Skip to content
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

Crash in Drake Visualizer in a docker #13639

Closed
cjds opened this issue Jul 4, 2020 · 4 comments
Closed

Crash in Drake Visualizer in a docker #13639

cjds opened this issue Jul 4, 2020 · 4 comments
Assignees
Labels
component: distribution Nightly binaries, monthly releases, docker, installation configuration: docker unused team: kitware

Comments

@cjds
Copy link

cjds commented Jul 4, 2020

I'm getting a segmentation fault while trying to run the Drake Visualizer from a Dockerfile. This is a relevant dockerfile that replicates the issue

FROM robotlocomotion/drake
RUN apt update \
    && apt install -y curl gnupg software-properties-common \
    && curl https://bazel.build/bazel-release.pub.gpg | apt-key add - \
    && echo "deb [arch=amd64] https://storage.googleapis.com/bazel-apt stable jdk1.8" | tee /etc/apt/sources.list.d/bazel.list \
    && apt update \
    && apt install -y bazel
RUN add-apt-repository ppa:neovim-ppa/stable \
    && apt-get update \
    && apt-get install -y neovim
RUN apt-get install -y coinor-libipopt-dev \
                       libsuitesparse-dev \
                       libtinyxml-dev \
                       libblas-dev \
                       liblapack-dev \
                       libnlopt-dev \
                       gfortran

This is the run command

xhost +
docker run -itd --privileged \
           --env DISPLAY \
           --net=host \
           -v $PWD:/root/doublependulum \
           -v ~/.vim:/root/.vim \
           -v ${HOME}/.Xauthority:/home/user/.Xauthority \
           --device /dev/dri \
           --name drake drake bash

This is a Core dump
https://filebin.net/95fkjojxarojcfbe

@jamiesnape
Copy link
Contributor

jamiesnape commented Jul 7, 2020

Thank you for the report.

Unfortunately, this is not a configuration that we test, and we have had discussions about whether we can even support drake-visualizer running in a Docker container on a wide enough variety of platforms. I will certainly take a look at the core dump, but the resolution may be an update to our documentation (in #13539) clarifying that this configuration is not supported.

What is your host operating system and what graphics card and driver are you using?

@cjds
Copy link
Author

cjds commented Jul 7, 2020

Fair enough. I can appreciate supporting the myriad of graphics drivers on the host is complex enough.

I'm on Ubuntu 18.04 with a nvidia-440 driver. Graphics card is Quadro P2000 Mobile

@jamiesnape
Copy link
Contributor

@cjds When you have a spare moment, can you try robotlocomotion/drake:focal as the base image on the same host system and let me know if the result is different?

BetsyMcPhail added a commit to BetsyMcPhail/drake that referenced this issue Jul 29, 2020
On prebuilt Docker images, rename `drake-visualizer` to
`drake-visualizer.image`. Create a `drake-visualizer` script that prints a
warning message with a pointer to the renamed file.

Resolves RobotLocomotion#12483 and RobotLocomotion#13639
BetsyMcPhail added a commit that referenced this issue Aug 10, 2020
#13764)

* Replace drake-visualizer with warning script on prebuilt Docker images

On prebuilt Docker images, rename `drake-visualizer` to
`drake-visualizer.image`. Create a `drake-visualizer` script that prints a
warning message with a pointer to the renamed file.

Resolves #12483 and #13639
@jamiesnape
Copy link
Contributor

Closed by #13764.

@jamiesnape jamiesnape removed their assignment Jun 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: distribution Nightly binaries, monthly releases, docker, installation configuration: docker unused team: kitware
Projects
None yet
Development

No branches or pull requests

3 participants