pybullet.GUI gives Segmentation Fault

Official Python bindings with a focus on reinforcement learning and robotics.
Post Reply
utkarshmishra04
Posts: 3
Joined: Wed Oct 14, 2020 11:43 am

pybullet.GUI gives Segmentation Fault

Post by utkarshmishra04 »

Hi, I am trying to make a custom environment in pybullet to test RL algorithms.
I observed that when I do pybullet.connect(pybullet.GUI) inside the __init__() of my environment class I get the segmentation fault while creating context for OpenGL as following:

Code: Select all

pybullet build time: Oct  8 2020 00:10:46
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
Segmentation fault (core dumped)
However, when I test my environment in a single file i.e. with no classes for directly validating the functions, it works. This means my OpenGL is working fine but there are some other issues.

Code: Select all

pybullet build time: Oct  8 2020 00:10:46
Using TensorFlow backend.
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=Intel Open Source Technology Center
GL_RENDERER=Mesa DRI Intel(R) HD Graphics 620 (Kaby Lake GT2) 
GL_VERSION=4.5 (Core Profile) Mesa 18.0.5
GL_SHADING_LANGUAGE_VERSION=4.50
pthread_getconcurrency()=0
Version = 4.5 (Core Profile) Mesa 18.0.5
Vendor = Intel Open Source Technology Center
Renderer = Mesa DRI Intel(R) HD Graphics 620 (Kaby Lake GT2) 
b3Printf: Selected demo: Physics Server
startThreads creating 1 threads.
starting thread 0
started thread 0 
MotionThreadFunc thread started
ven = Intel Open Source Technology Center
Workaround for some crash in the Intel OpenGL driver on Linux/Ubuntu
ven = Intel Open Source Technology Center
Workaround for some crash in the Intel OpenGL driver on Linux/Ubuntu
Post Reply