Open3D
Open3D copied to clipboard
Segmenttaion fault when setting material record.
Checklist
- [X] I have searched for similar issues.
- [X] For Python issues, I have tested with the latest development wheel.
- [X] I have checked the release documentation and the latest documentation (for
main
branch).
Describe the issue
I get a segmentation fault when I make the following call:
material = rendering.MaterialRecord()
material.base_color = np.array([1., 1., 1., 1.], dtype=np.float32)
No error message, just a seg fault. I have no checked and this does not happen in 0.17.0. It also appears there are some issues with numpy v2 in some cases. Particularly in my CI I still got Seg Faults with 0.17.0 until I set numpy < 2.0.0.
Steps to reproduce the bug
You can do this:
material = rendering.MaterialRecord()
material.base_color = np.array([1., 1., 1., 1.], dtype=np.float32)
But it doesn't really matter what I pass to the class it will Seg Fault unless the type is wrong in which case we get an exception.
Error message
Segmentation fault (core dumped)
Expected behavior
Does not seg fault.
Open3D, Python and System information
- Operating system: Ubuntu 20.04
- Python version: Python 3.10
- Open3D version:0.18.0
- System architecture: x86
- Is this a remote workstation?: no
- How did you install Open3D?: pip