Comments (9)
After running this command: "conda install -c conda-forge libstdcxx-ng=12" the example script runs but without the correct simulation, it only shows a xyz axis and nothing else in the sim window.
when it starts it shows this error: "GL error 0x500 detected in glGenBuffers "
How can this be fixed?
from gym-pybullet-drones.
this is really a video driver/OpenGL issue (used by PyBullet, which is turn used by this repo), one thing you can try, if you are using an NVIDIA card is: if you receive a "Failed to create and OpenGL context" message, launch nvidia-settings and under "PRIME Profiles" select "NVIDIA (Performance Mode)", reboot and try again.
from gym-pybullet-drones.
Hi @JacopoPan, Thanks for your reply. I'm not using a NVIDIA card but a multi-core GPU, I dual booted my macbook M1. So i guess there is no fix then for the driver/OpenGL issue.
from gym-pybullet-drones.
I am not sure, I have seen the "Failed to create and OpenGL context" on Ubuntu a few times but it was always related to problems with the graphics (nothing specific to this repo or PyBullet).
I am on MacBook M2 myself: everything in this repo except the betaflight SITL works well on macOS.
from gym-pybullet-drones.
I have now downloaded into Ubuntu, and still got the same error:
(drones) ubuntu@localhost:/Desktop/gym-pybullet-drones/gym_pybullet_drones/examples$ python3 pid.pypre20231121-0asahi1.23.10
pybullet build time: Dec 11 2023 16:27:58
[INFO] BaseAviary.init() loaded parameters from the drone's .urdf:
[INFO] m 0.027000, L 0.039700,
[INFO] ixx 0.000014, iyy 0.000014, izz 0.000022,
[INFO] kf 0.000000, km 0.000000,
[INFO] t2w 2.250000, max_speed_kmh 30.000000,
[INFO] gnd_eff_coeff 11.368590, prop_radius 0.023135,
[INFO] drag_xy_coeff 0.000001, drag_z_coeff 0.000001,
[INFO] dw_coeff_1 2267.180000, dw_coeff_2 0.160000, dw_coeff_3 -0.110000
startThreads creating 1 threads.
starting thread 0
started thread 0
argc=2
argv[0] = --unused
argv[1] = --start_demo_name=Physics Server
ExampleBrowserThreadFunc started
X11 functions dynamically loaded using dlopen/dlsym OK!
X11 functions dynamically loaded using dlopen/dlsym OK!
Creating context
Created GL 3.3 context
Direct GLX rendering context obtained
Making context current
GL_VENDOR=Mesa
GL_RENDERER=Apple M1 (G13G B1)
GL_VERSION=3.3 (Core Profile) Mesa 24.0
GL_SHADING_LANGUAGE_VERSION=3.30
pthread_getconcurrency()=0
Version = 3.3 (Core Profile) Mesa 24.0~pre20231121-0asahi1.23.10
Vendor = Mesa
Renderer = Apple M1 (G13G B1)
GL error 0x500 detected in glGenBuffers
b3Printf: Selected demo: Physics Server
startThreads creating 1 threads.
starting thread 0
started thread 0
MotionThreadFunc thread started
viewMatrix (-0.8660253882408142, -0.2499999850988388, 0.4330126941204071, 0.0, 0.0, 0.8660253882408142, 0.5, 0.0, -0.4999999701976776, 0.4330126941204071, -0.75, 0.0, -5.21540641784668e-08, -7.450580596923828e-09, -3.0, 1.0)
projectionMatrix (1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, -1.0000200271606445, -1.0, 0.0, 0.0, -0.02000020071864128, 0.0)
/home/ubuntu/anaconda3/envs/drones/lib/python3.10/site-packages/gymnasium/spaces/box.py:130: UserWarning: WARN: Box bound precision lowered by casting to float32
gym.logger.warn(f"Box bound precision lowered by casting to {self.dtype}")
ven = Mesa
ven = Mesa
Are there options to adjust the graphics and load the rendering with something else? I tried some suggestions from other issues but nothing worked yet.
from gym-pybullet-drones.
@LucasPeters00 this really looks like an issue with your OpenGL installation but I can assure you that PyBullet (and it's OpenGL renderer GUI) work well on both Ubuntu and Apple Silicon/macOS (because that is what I am using as well) but I never tried with Ubuntu on Apple Silicon.
from gym-pybullet-drones.
@JacopoPan What kind of graphics driver do you use for the simulation? For me creating the openGL context and loading the swrast driver fails maybe it has to do with a different version
from gym-pybullet-drones.
On macOS, PyBullet simply uses
Version = 4.1 Metal - 88
Vendor = Apple
Renderer = Apple M2 Max
On Ubuntu (for me, on Lenovo with Intel CPU, Nvidia GPU), it creates GL 3.3 context
GL_VENDOR=NVIDIA Corporation
GL_RENDERER=NVIDIA RTX ...
GL_VERSION=3.3.0 NVIDIA 535.129.03
...
It really seems that you are having problems running PyBullet https://github.com/bulletphysics/bullet3 (the physics engine and GUI used in this package), not this package per se
from gym-pybullet-drones.
I was getting the same error of the OP on Fedora 39.
Conda was trying to use libstdc++.so.6.0.29
(in ~/.conda/envs/drones/lib
).
My system a the more recent libstdc++.so.6.0.32
in /usr/lib
.
Linking to my system's version solved the issue:
ln -fs /usr/lib64/libstdc++.so.6 ~/.conda/envs/drones/lib/libstdc++.so.6
from gym-pybullet-drones.
Related Issues (20)
- no attribute 'SIM_FREQ' HOT 18
- singleagent.py: user warning. Recommends transition from Open AI gym env to gymnasium env HOT 1
- No TakeOffAviary.py in gym-pybullet-drones/gym_pybullet_drones/envs /single_agent_rl/ HOT 1
- fail in reproducing the result of hover HOT 7
- Multiagent training HOT 1
- mutliagent.py allow 3D flight? HOT 3
- pybullet fails to install on python 3.10 venv HOT 2
- what could be the reason that example with betaflight does not work? HOT 1
- learn.py, expected performance, steps, and hardware? HOT 2
- unable to see logger file output at output_folder for learn.py HOT 3
- ModuleNotFoundError: No module named 'gym_pybullet_drones' HOT 3
- Have you ever comfirm controlling one drone with "rpm" using learn.py ? HOT 14
- PX4 integration HOT 4
- Question about action buffer HOT 2
- Custom training environment HOT 4
- Questions Related to Multiagent Evaluation HOT 8
- How can I use the NVIDIA GPU in Docker to run this project? HOT 2
- self.TIMESTEP not defined in BaseAviary Class HOT 1
- A Drag function mistake HOT 1
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 gym-pybullet-drones.