Giter Club home page Giter Club logo

Comments (9)

ymd-stella avatar ymd-stella commented on July 17, 2024 1

In my environment, I solved the problem by adding --privileged. documentation has been updated.

from stella_vslam.

ajsnyde avatar ajsnyde commented on July 17, 2024

image

from stella_vslam.

ymd-stella avatar ymd-stella commented on July 17, 2024
  • Is a nvidia GPU installed?
  • Does glxgears work properly? (In host, In container)
  • Does the same thing happen if you run docker with --cap-add IPC_OWNER?
  • Does the same thing happen if you run docker with --ipc host?
  • Does the same thing happen if you run docker with --privileged?
  • Does the same thing happen if you run export LIBGL_ALWAYS_SOFTWARE=1 before running stella_vslam?

from stella_vslam.

ajsnyde avatar ajsnyde commented on July 17, 2024
  • Is a nvidia GPU installed?
    
    • yes, a 2080
  • Does glxgears work properly?
    
    • yes, on the host machine it runs fine
      I added those arguments like so, without it fixing the issue:
      sudo docker run -it --rm --cap-add IPC_OWNER --ipc host --privileged -e DISPLAY=$DISPLAY -v /tmp/.X11-unix/:/tmp/.X11-unix:ro stella_vslam-desktop

Finally, I ensured that export LIBGL_ALWAYS_SOFTWARE=1 was run before running the basic tutorial command:
./run_video_slam -v ./orb_vocab.fbow -m ./aist_living_lab_1/video.mp4 -c ../example/aist/equirectangular.yaml --frame-skip 3 --no-sleep --map-db-out map.msg, of course after downloading the vocab and materials listed in the tutorial.

As a workaround, I'm using the server/socket to run and display right now.

from stella_vslam.

ymd-stella avatar ymd-stella commented on July 17, 2024

Do not use sudo to do docker run. See https://docs.docker.com/engine/install/linux-postinstall/

from stella_vslam.

ymd-stella avatar ymd-stella commented on July 17, 2024

yes, on the host machine it runs fine

What about when run inside a container?

from stella_vslam.

Jlim01 avatar Jlim01 commented on July 17, 2024

Can I visualize without gpu? I have just Cpu

from stella_vslam.

ymd-stella avatar ymd-stella commented on July 17, 2024

This is a problem related to OpenGL and docker. The solution depends on the environment. If you are willing to help us, please provide the following information

  • Is a nvidia GPU installed?
  • host OS version
  • container OS version
  • Does glxgears work properly? (In host)
  • Does glxgears work properly? (In container)
  • Does the same thing happen if you run docker with --cap-add IPC_OWNER?
  • Does the same thing happen if you run docker with --ipc host?
  • Does the same thing happen if you run docker with --privileged?
  • Does the same thing happen if you run export LIBGL_ALWAYS_SOFTWARE=1 before running stella_vslam?

from stella_vslam.

ymd-stella avatar ymd-stella commented on July 17, 2024

Can I visualize without gpu? I have just Cpu

It worked without GPU on Ubuntu 18.04. I think it will work on Ubuntu 20.04 or later, but it doesn't seem to work in some environments.

from stella_vslam.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.