I encountered a problem when reproducing. When running example/tutorials/hello_genesis.py, OpenGL.error.Error: Attempt to retrieve context when no valid context #122
Unanswered
lambooking
asked this question in
Q&A
Replies: 1 comment
-
I am having the same issue! Have you found a solution yet? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I encountered a problem when reproducing. When running example/tutorials/hello_genesis.py, OpenGL.error.Error: Attempt to retrieve context when no valid context:
[Genesis] [11:18:42] [INFO] ╭───────────────────────────────────────────────╮
[Genesis] [11:18:42] [INFO] │┈┉┈┉┈┉┈┉┈┉┈┉┈┉┈┉┈┉┈ Genesis ┈┉┈┉┈┉┈┉┈┉┈┉┈┉┈┉┈┉┈│
[Genesis] [11:18:42] [INFO] ╰───────────────────────────────────────────────╯
[Genesis] [11:18:42] [INFO] Running on [NVIDIA GeForce RTX 4090] with backend gs.cuda. Device memory: 23.52 GB.
[Genesis] [11:18:43] [INFO] 🚀 Genesis initialized. 🔖 version: 0.2.0, 🌱 seed: None, 📏 precision: '32', 🐛 debug: False, 🎨 theme: 'dark'.
[Genesis] [11:18:43] [INFO] Scene created.
[Genesis] [11:18:43] [INFO] Adding <gs.RigidEntity>. idx: 0, uid: , morph: <gs.morphs.Plane>, material: <gs.materials.Rigid>.
[Genesis] [11:18:43] [INFO] Adding <gs.RigidEntity>. idx: 1, uid: , morph: <gs.morphs.MJCF(file='/home/lem5/code/genesis/examples/xml/mujoco_menagerie/franka_emika_panda/panda.xml')>, material: <gs.materials.Rigid>.
[Genesis] [11:18:43] [INFO] Building scene ...
[Genesis] [11:18:46] [INFO] Compiling simulation kernels...
[Genesis] [11:18:50] [INFO] Building visualizer...
Exception in thread Thread-2 (_init_and_start_app):
Traceback (most recent call last):
File "/home/lem5/anaconda3/envs/genesis/lib/python3.10/threading.py", line 1016, in _bootstrap_inner
self.run()
File "/home/lem5/anaconda3/envs/genesis/lib/python3.10/threading.py", line 953, in run
self._target(*self._args, **self._kwargs)
File "/home/lem5/anaconda3/envs/genesis/lib/python3.10/site-packages/genesis/ext/pyrender/viewer.py", line 1149, in _init_and_start_app
pyglet.clock.tick()
File "/home/lem5/anaconda3/envs/genesis/lib/python3.10/site-packages/pyglet/clock.py", line 528, in tick
return _default.tick(poll)
File "/home/lem5/anaconda3/envs/genesis/lib/python3.10/site-packages/pyglet/clock.py", line 270, in tick
self.call_scheduled_functions(delta_t)
File "/home/lem5/anaconda3/envs/genesis/lib/python3.10/site-packages/pyglet/clock.py", line 217, in call_scheduled_functions
item.func(now - item.last_ts, *item.args, **item.kwargs)
File "/home/lem5/anaconda3/envs/genesis/lib/python3.10/site-packages/genesis/ext/pyrender/viewer.py", line 941, in _time_event
self.on_draw()
File "/home/lem5/anaconda3/envs/genesis/lib/python3.10/site-packages/genesis/ext/pyrender/viewer.py", line 640, in on_draw
self._render()
File "/home/lem5/anaconda3/envs/genesis/lib/python3.10/site-packages/genesis/ext/pyrender/viewer.py", line 1086, in _render
retval = renderer.render(self.scene, flags, seg_node_map=seg_node_map)
File "/home/lem5/anaconda3/envs/genesis/lib/python3.10/site-packages/genesis/ext/pyrender/renderer.py", line 141, in render
self._update_context(scene, flags)
File "/home/lem5/anaconda3/envs/genesis/lib/python3.10/site-packages/genesis/ext/pyrender/renderer.py", line 899, in _update_context
p._add_to_context()
File "/home/lem5/anaconda3/envs/genesis/lib/python3.10/site-packages/genesis/ext/pyrender/primitive.py", line 359, in _add_to_context
glVertexAttribPointer(0, 3, GL_FLOAT, GL_FALSE, FLOAT_SZ * 3, ctypes.c_void_p(0))
File "src/latebind.pyx", line 51, in OpenGL_accelerate.latebind.Curry.call
File "/home/lem5/anaconda3/envs/genesis/lib/python3.10/site-packages/OpenGL/GL/VERSION/GL_2_0.py", line 469, in glVertexAttribPointer
contextdata.setValue( key, array )
File "/home/lem5/anaconda3/envs/genesis/lib/python3.10/site-packages/OpenGL/contextdata.py", line 58, in setValue
context = getContext( context )
File "/home/lem5/anaconda3/envs/genesis/lib/python3.10/site-packages/OpenGL/contextdata.py", line 40, in getContext
raise error.Error(
OpenGL.error.Error: Attempt to retrieve context when no valid context
ubuntu20.04,
Beta Was this translation helpful? Give feedback.
All reactions