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

Segmentation fault when play animation with o3d.visualization.draw_geometries_with_custom_animation #6589

Closed
3 tasks done
fkaufm opened this issue Jan 10, 2024 · 0 comments · Fixed by #6804
Closed
3 tasks done
Labels
bug Not a build issue, this is likely a bug.

Comments

@fkaufm
Copy link

fkaufm commented Jan 10, 2024

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 fkaufm added the bug Not a build issue, this is likely a bug. label Jan 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Not a build issue, this is likely a bug.
Projects
None yet
1 participant