isl-org / Open3D

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

Segmentation Fault when creating alpha shape from point cloud #6908

Open shteren1 opened 3 months ago

shteren1 commented 3 months ago

Checklist

Describe the issue

When trying to create alpha share from this specific point cloud (ply attached) segfault_example.ply.tar.gz the process dies on segfault

Steps to reproduce the bug

import open3d as o3d
pcd = o3d.io.read_point_cloud('segfault_example.ply')
alpha_shape = o3d.geometry.TriangleMesh.create_from_point_cloud_alpha_shape(pcd, 0.6)

Error message

No response

Expected behavior

the code will produce a valid alpha shape

Open3D, Python and System information

- Operating system: Ubuntu 18.04
- Python version: Python 3.10.14
- Open3D version: 0.18.0
- System architecture: x86
- Is this a remote workstation?: no
- How did you install Open3D?: conda-forge build py310h01ad8e9_4

Additional information

No response

James-JLC commented 3 months ago

pls uninstall numpy and reinstall numpy < 2.0 such as numpy==1.24.3

Clarivy commented 3 months ago

It would be great if you can add numpy<2.0 into dependency

shteren1 commented 3 months ago

@James-JLC i am using number 1.26.4 in the python environment that had the segfualt