Comments (4)
This might be because you are running on a cluster machine without a display (monitor) connected to it.
You can either set headless=True
in the line below or run the code on a machine that has a display.
from igibson.
Hi Chengshu, thank you very much for your suggestion. I tried setting headless=True in the line as you suggested, and it worked perfectly fine when running the code in headless mode.
However, I also tried to run the code on my laptop without headless mode and faced another error in the following:
INFO:igibson.render.mesh_renderer.get_available_devices:Device 0 is available for rendering
INFO:igibson.render.mesh_renderer.get_available_devices:Command '['/home/wan325/miniconda3/envs/igibson/lib/python3.8/site-packages/igibson/render/mesh_renderer/build/test_device', '1']' returned non-zero exit status 1.
INFO:igibson.render.mesh_renderer.get_available_devices:Device 1 is not available for rendering
INFO:igibson.render.mesh_renderer.get_available_devices:Device 2 is available for rendering
ERROR: Failed to EGL with glad.
That is why I unset the $DISPLAY variable. Could you please advise me on how to solve this issue if I want to run the code not in headless mode?
Thank you for your time and support.
from igibson.
Same here. I ran the docker command docker run --env="DISPLAY" --volume="/tmp/.X11-unix:/tmp/.X11-unix:rw" --env="QT_X11_NO_MITSHM=1" --gpus all -ti --rm igibson/igibson
on a local Ubuntu 20.04 workstation, but running python -m igibson.examples.environments.env_nonint_example
inside the container gave me the following error:
qt.qpa.xcb: could not connect to display :0
qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "/miniconda/envs/igibson/lib/python3.8/site-packages/cv2/qt/plugins" even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
Available platform plugins are: xcb.
Aborted (core dumped)
I can confirm that the DISPLAY
environment variable is indeed set to :0
, which seems to be the source of the problem, but running GUI applications outside the container is completely normal (e.g. glxgears
), so I'm not sure how to fix this.
Thanks for any help!
from igibson.
(for running on a local machine with a monitor attached)
running this on the host machine
xhost +local:docker
before starting the docker container and running the example script worked for me.
@linkct
from igibson.
Related Issues (20)
- update pybind11 for newer Python compatibility
- How to know the roomtype in iGibson dataset? HOT 1
- iGibson 1.0: Instance Segmentation (ins_seg) HOT 1
- citation in BEHAVIOR DATA BUNDLE END USER LICENSE AGREEMENT HOT 1
- Unable to pass tests with official docker containers(igibson/igibson:lates,igibson/igibson-vnc:v2.0.6) HOT 3
- How to train RL with non-physics?
- Error when loading scenes
- Missing URDFs for MoMart
- DRL training with vectorized environment and asynchronous time-steps HOT 2
- ImportError: cannot import name 'tinyobjloader' from 'igibson.render.mesh_renderer' HOT 1
- there is no metadata in the h5 file of the Raw virtual reality demonstration dataset (VR_demos_raw) HOT 1
- iGibsonRayEnv and ParallelEnv difference
- Building wheel for igibson (pyproject.toml) ... error HOT 13
- ERROR: Failed to EGL with glad. HOT 1
- ig_assets version 2.2.2 incompatible. Needs to be in range [2.0.6, 2.2.1) HOT 6
- ModuleNotFoundError: No module named 'bddl.activity_base'
- How to customize scenarios and task instances?
- 3D FRONT to igibson
- igibson for navigation
- StreamTransformationFilter: invalid PKCS #7 block padding found
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from igibson.