Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

GLError for xyz_crop generation #28

Closed
JiayuLL opened this issue Sep 8, 2021 · 1 comment
Closed

GLError for xyz_crop generation #28

JiayuLL opened this issue Sep 8, 2021 · 1 comment
Labels
help wanted Extra attention is needed need-more-info

Comments

@JiayuLL
Copy link

JiayuLL commented Sep 8, 2021

Thank you for releasing the code for xyz_crop generation. There is a problem at run time. What should I do?

$ python tools/lm/lm_pbr_1_gen_xyz_crop.py
using egl
split: train selected scene ids: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49]
0%| | 0/50 [00:00<?, ?it/s, train_all]split: train scene: 0

libEGL warning: DRI3: Screen seems not DRI3 capable | 0/1000 [00:00<?, ?it/s, 0]
libEGL warning: DRI2: failed to authenticate
0%| | 0/1000 [00:00<?, ?it/s, 0]
0%| | 0/50 [00:00<?, ?it/s, train_all]
Traceback (most recent call last):
File "tools/lm/lm_pbr_1_gen_xyz_crop.py", line 230, in
xyz_gen.main()
File "tools/lm/lm_pbr_1_gen_xyz_crop.py", line 139, in main
bgr_gl, depth_gl = self.get_renderer().render(render_obj_id, IM_W, IM_H, K, R, t, near, far)
File "tools/lm/lm_pbr_1_gen_xyz_crop.py", line 100, in get_renderer
self.renderer = Renderer(
File "/home/jiayu/GDR-Net-main/tools/lm/../../lib/meshrenderer/meshrenderer_phong.py", line 19, in init
self._context = gu.OffscreenContext()
File "/home/jiayu/GDR-Net-main/tools/lm/../../lib/meshrenderer/gl_utils/egl_offscreen_context.py", line 98, in init
self._egl_context = eglCreateContext(self._egl_display, configs[0], EGL_NO_CONTEXT, context_attributes)
File "/home/lili/anaconda3/lib/python3.8/site-packages/OpenGL/platform/baseplatform.py", line 402, in call
return self( *args, **named )
File "/home/lili/anaconda3/lib/python3.8/site-packages/OpenGL/error.py", line 228, in glCheckError
raise GLError(
OpenGL.error.GLError: GLError(
err = 12297,
baseOperation = eglCreateContext,
cArguments = (
<OpenGL._opaque.EGLDisplay_pointer object at 0x7f3bb4710240>,
<OpenGL._opaque.EGLConfig_pointer object at 0x7f3bb47101c0>,
<OpenGL._opaque.EGLContext_pointer object at 0x7f3bd3d67d40>,
<OpenGL.arrays.lists.c_int_Array_7 object at 0x7f3bb4710340>,
),
result = <OpenGL._opaque.EGLContext_pointer object at 0x7f3bb4710940>
)

@wangg12
Copy link
Member

wangg12 commented Sep 9, 2021

Check this thread DLR-RM/AugmentedAutoencoder#42. Maybe it helps.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
help wanted Extra attention is needed need-more-info
Projects
None yet
Development

No branches or pull requests

2 participants