Open subhamsahoo-ase opened 1 month ago
Downgrade numpy version to 1.24.4 to solve o3d.utilities.Vector3dVector() segmentation fault
@subhamsahoo-ase Thanks for pointing out the reason is numpy version which saves me a lot of time. I met the same problem when trying to set camera intrinsic and extrinsic matrices. A further test shows the supported version should be numpy<2.0.0
. And in fact, this problem is mentioned before, refer to #6879, though I have no idea when it will be solved for users like me who just install open3d using the most convenient way pip install open3d
. 😂
Checklist
main
branch).Describe the issue
I'm trying to visualize a point cloud from a .laz file. I used laspy to extract the pcd points, then used numpy to convert the points into an array. The problem I'm encountering is a segmentation error whenever I try to replace the empty points in the point cloud object with the numpy array. I commented out the converted array and used a simple 3x3 array to see if the o3d.utility.Vector3dVector(pcd_numpy) is taking into too large of a size. Still got the error. I came across a comment saying try to use open3d==0.17.0 and python3.10. Still got the error. I tried installing open3d via pip in conda and I also tried installing via wheel from both the latest and second latest releases.
Steps to reproduce the bug
Error message
Points from header: 27806620 Point 0: (605353.65, 3334862.61, 255.43) Point 1: (605353.74, 3334862.98, 258.03000000000003) Point 2: (605353.9, 3334862.83, 258.72) Point 3: (605353.63, 3334862.5700000003, 258.71) Point 4: (605353.67, 3334863.14, 251.84) zsh: segmentation fault /Users/subhamsahoo/Documents/SatCNN/.venv/bin/python
Expected behavior
I'm expecting to see a viewer pop up showing the point cloud.
Open3D, Python and System information
Additional information
No response