isl-org / Open3D

Open3D: A Modern Library for 3D Data Processing
http://www.open3d.org
Other
11.21k stars 2.27k forks source link

running o3d OffscreenRenderer from jupyter notebook (kernel crash) #5307

Open Woking-34 opened 2 years ago

Woking-34 commented 2 years ago

Checklist

Describe the issue

I am trying to use OffscreenRenderer with the render_to_image function to create snapshots from geometry.PointCloud objects. My code is running OK from python, but crashes the kernel when running from a jupyter environment.

It seems the error comes from the filament layer (SIGSEGV)

Thanks for your help!

Steps to reproduce the bug

import open3d as o3d

width, height = 512, 512
o3d.visualization.rendering.OffscreenRenderer(width, height)

Error message

Kernel crash.

Expected behavior

Running without any errors.

Open3D, Python and System information

- Operating system: Ubuntu 18.04
- Python version: Python 3.8
- Open3D version: 0.15.2+3e8cfb6
- System architecture: x86
- Is this a remote workstation?: no
- How did you install Open3D?: pip

Additional information

No response

orhna commented 1 year ago

Having this issue as well. I'm using a docker container with all gpu capabilities enabled and using x11 forwarding for the visualizations and they work fine. However, when I create OffscreenRenderer(), the notebook kernel dies. I also tried to execute it directy with python but then it gives "segmentation fault" by saying : eglcreatecontext failed with egl_bad_match.

albertopasqualetto commented 3 months ago

In colab I managed this by using %env EGL_PLATFORM=surfaceless, but in Sagemaker I am not able to fix this in the same way.