Skip to content
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

Return None when calling vis.get_render_option() #972

Closed
HaiyongJiang opened this issue May 18, 2019 · 3 comments
Closed

Return None when calling vis.get_render_option() #972

HaiyongJiang opened this issue May 18, 2019 · 3 comments
Assignees
Labels

Comments

@HaiyongJiang
Copy link

Dear authors,

I encountered some errors when running "headless_rendering.py". The following is the log information. I am not sure what is the potential problem. Can you kindly help me figure it out? Thank you.

Reading PLY: [========================================] 100%
Customized visualization playing a camera trajectory. Ctrl+z to terminate
GLFW Error: X11: Failed to open display localhost:13.0
Failed to initialize GLFW
Traceback (most recent call last):
File "headless_rendering.py", line 61, in
custom_draw_geometry_with_camera_trajectory(pcd)
File "headless_rendering.py", line 52, in custom_draw_geometry_with_camera_trajectory
vis.get_render_option().load_from_json("../../TestData/renderoption.json")
AttributeError: 'NoneType' object has no attribute 'load_from_json'

@HTLife
Copy link

HTLife commented Aug 29, 2019

Any progress on this issue?

@mightypirate1
Copy link

I am also encountering this error trying to run the second code snippet from the documentation

Any ideas on how to troubleshoot?

@pvarvak
Copy link
Contributor

pvarvak commented Apr 28, 2020

This should be resolved if following updated instructions from master (after #1695 was merged). When using OSMesa there should not be any errors like "Failed to open display localhost:*", that would indicate OSMesa is not being used and display is being used. If there are still issues please compile master and post output of bin/GLInfo and your environment.

@pvarvak pvarvak closed this as completed Apr 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants