Open3D icon indicating copy to clipboard operation
Open3D copied to clipboard

Segmentation fault when play animation with o3d.visualization.draw_geometries_with_custom_animation

Open fkaufm opened this issue 1 year ago • 0 comments

sample_view_trajectory.json

Checklist

Describe the issue

I have been trying to use draw_geometries_with_custom_animation() to create an animation of a point cloud. The visualization window opens fine, all GUI commands can be used to create the set of key frames. Whenever I try to play the animation using CTRL+P, the execution stops with a segmentation fault. If I try to render the image using CTRL+R or depth using CTRL+G, the execution stops but the first frame is rendered and stored in the respective directory.

Steps to reproduce the bug

import open3d as o3d

with o3d.utility.VerbosityContextManager(o3d.utility.VerbosityLevel.Debug):
    sample_data = o3d.data.DemoCustomVisualization()
    pcd_flipped = o3d.io.read_point_cloud(sample_data.point_cloud_path)
    # Flip it, otherwise the pointcloud will be upside down
    pcd_flipped.transform([[1, 0, 0, 0], [0, -1, 0, 0], [0, 0, -1, 0], [0, 0, 0, 1]])

    o3d.visualization.draw_geometries_with_custom_animation(
        [pcd_flipped],
        optional_view_trajectory_json_file="/home/kaufmann/Desktop/sample_view_trajectory.json",
    )

Error message

[Open3D DEBUG] Format auto File /home/kaufmann/open3d_data/extract/DemoCustomVisualization/fragment.ply [Open3D DEBUG] Read geometry::PointCloud: 196133 vertices. [Open3D DEBUG] [Visualizer] Creating window. [Open3D DEBUG] GLFW init. [Open3D DEBUG] Add geometry and update bounding box to [(0.5586, -2.4275, -2.5586) - (3.9661, -0.8320, -0.5666)] [Open3D DEBUG] Global colormap init. Segmentation fault (core dumped)

Expected behavior

Animation plays when CTRL+P

Open3D, Python and System information

- Operating system: Ubuntu 22.04 
- Python version: Python 3.10 
- Open3D version: 0.18.0
- System architecture: amd64
- Is this a remote workstation?: no
- How did you install Open3D?: pip

Additional information

Sample view trajectory attached. Also tested Open3D 0.17.0, same behaviour

fkaufm avatar Jan 10 '24 13:01 fkaufm