-
Notifications
You must be signed in to change notification settings - Fork 68
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Failed to initialize Pyglet window with an OpenGL >= 3+ context. #63
Comments
Are you running on a server without display? |
thanks @wenbowen123 I'm running it locally. How can I add the display please. |
I added this line at the beginning of the predict.py script: |
can you check if YCBVideo sequence works for you? #53 |
Hi @wenbowen123 thanks for your replay, I tried with YCBVideo sequence but I'm still struggling with the same error. Any other suggestions please. |
From the error it seems like the init pose was not successfully loaded. Can you check if this is empty? https://github.com/wenbowen123/iros20-6d-pose-tracking/blob/9bc636808aa4091fa7b3ffed43215c349c49258c/predict.py#L446C12-L446C12 |
Hi @wenbowen123 tank you so much for your help. I solved the problem of loading the position but the function of Tracker can't seem to function because the display couldn't connect with my laptop as I could understood. So I'm still stuck with this error: |
Hi @wenbowen123 thanks for sharing this awesome project, I'm struggling with this error:
`Using pyrenderer
model_path benchmarks/YCBInEOAT/bleach_cleanser/textured_simple.obj
Traceback (most recent call last):
File "/usr/local/lib/python3.6/dist-packages/pyrender/platforms/pyglet_platform.py", line 39, in init_context
width=1, height=1)
File "/usr/local/lib/python3.6/dist-packages/pyglet/window/xlib/init.py", line 171, in init
super(XlibWindow, self).init(*args, **kwargs)
File "/usr/local/lib/python3.6/dist-packages/pyglet/window/init.py", line 591, in init
display = pyglet.canvas.get_display()
File "/usr/local/lib/python3.6/dist-packages/pyglet/canvas/init.py", line 94, in get_display
return Display()
File "/usr/local/lib/python3.6/dist-packages/pyglet/canvas/xlib.py", line 123, in init
raise NoSuchDisplayException('Cannot connect to "%s"' % name)
pyglet.canvas.xlib.NoSuchDisplayException: Cannot connect to "None"
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "iros20-6d-pose-tracking/predict.py", line 641, in
predictSequenceMyData()
File "iros20-6d-pose-tracking/predict.py", line 567, in predictSequenceMyData
tracker = Tracker(dataset_info, images_mean, images_std,ckpt_dir, trans_normalizer=0.03, rot_normalizer=30*np.pi/180)
File "iros20-6d-pose-tracking/predict.py", line 161, in init
self.renderer = Renderer([dataset_info['models'][0]['obj_path']],self.K,cam_cfg['height'],cam_cfg['width'])
File "/home/iros20-6d-pose-tracking/offscreen_renderer.py", line 69, in init
self.r = pyrender.OffscreenRenderer(self.W, self.H)
File "/usr/local/lib/python3.6/dist-packages/pyrender/offscreen.py", line 31, in init
self._create()
File "/usr/local/lib/python3.6/dist-packages/pyrender/offscreen.py", line 149, in _create
self._platform.init_context()
File "/usr/local/lib/python3.6/dist-packages/pyrender/platforms/pyglet_platform.py", line 45, in init_context
'internal error message was "{}"'.format(e)
ValueError: Failed to initialize Pyglet window with an OpenGL >= 3+ context. If you're logged in via SSH, ensure that you're running your script with vglrun (i.e. VirtualGL). The internal error message was "Cannot connect to "None""
`
How can I solve this error please.
Thanks in advance.
The text was updated successfully, but these errors were encountered: