Open3D icon indicating copy to clipboard operation
Open3D copied to clipboard

Return None when calling vis.get_render_option()

Open HaiyongJiang opened this issue 7 years ago • 3 comments

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'

HaiyongJiang avatar May 18 '19 12:05 HaiyongJiang

Any progress on this issue?

HTLife avatar Aug 29 '19 07:08 HTLife

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

Any ideas on how to troubleshoot?

mightypirate1 avatar Oct 31 '19 03:10 mightypirate1

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 avatar Apr 28 '20 17:04 pvarvak