Segmentation fault (core dumped) when using create_from_point_cloud_poisson
- Dominant language
- C++
- Stars
- 14k
- Forks
- 2.6k
- Avg merge
- 5d 18h
- Merged PRs (30d)
- 6
Description
### Checklist
- [x] I have searched for [similar issues](https://github.com/isl-org/Open3D/issues).
- [x] For Python issues, I have tested with the [latest development wheel](https://www.open3d.org/docs/latest/getting_started.html#development-version-pip).
- [x] I have checked the [release documentation](https://www.open3d.org/docs/release/) and the [latest documentation](https://www.open3d.org/docs/latest/) (for `main` branch).
### Describe the issue
I wrote a loop for reading a point cloud with about 30_000_000 points.
Regularly it crashes sometimes after 50-70 runs and other times after 500.
`triangle_mesh, densities = o3d.geometry.TriangleMesh.create_from_point_cloud_poisson(point_cloud, depth=7)`
### Steps to reproduce the bug
```python
import open3d as o3d
from numpy import full, argmax
import numpy as np
def main():
print(o3d.__version__)
print(np.__version__)
PATH = "/../../../../tester.pcd"
#o3d.utility.set_verbosity_level(verbosity_level=o3d.utility.VerbosityLevel.Debug)
point_cloud = o3d.io.read_point_cloud(PATH)
for i in range(10000):
try:
triangle_mesh, densities = o3d.geometry.TriangleMesh.create_from_point_cloud_poisson(point_cloud, depth=7)
except Exception as e:
print(f"Error in convert_point_cloud_to_mesh: {e}")
raise
print("~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Finished loop ", i, " ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~")
if __name__ == "__main__":
main()
```
### Error message
Segmentation fault (core dumped)
### Expected behavior
_No response_
### Open3D, Python and System information
```markdown
- Operating system: Windows 10 64-bit
- Python version: Python 3.12.8
- Open3D version: 0.19.0
- System architecture: x86
- Is this a remote workstation?: no
- How did you install Open3D?: pip
```
### Additional information
Ran it first with numpy 1.26.4 now i updated to 2.2.5 in the hopes of it maybe not crashing but didn't help.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.