Error "vector too long" When Writing Large Point Cloud (>100M Points) to Binary PCD in open3d '0.16.0'
- 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
### Steps to reproduce the bug
```python
import open3d as o3d
import numpy as np
points_np = np.random.rand(100000000,3)
intensities_np = np.random.rand(100000000,1)
label_keys = np.random.rand(100000000,1)
class_keys = np.random.rand(100000000,1)
pcdt = o3d.t.geometry.PointCloud()
pcdt.point.positions = o3d.core.Tensor(points_np, dtype=o3d.core.Dtype.Float32)
pcdt.point.intensities = o3d.core.Tensor(intensities_np, dtype=o3d.core.Dtype.Float32)
pcdt.point.instance_key = o3d.core.Tensor(np.array(label_keys).reshape(-1, 1))
pcdt.point.class_key = o3d.core.Tensor(np.array(class_keys).reshape(-1, 1))
local_file_path = "/tmp/temp_point_cloud_3.pcd"
o3d.t.io.write_point_cloud(local_file_path, pcdt, write_ascii=False)
```
### Error message
---------------------------------------------------------------------------
ValueError Traceback (most recent call last)
Cell In[8], line 16
13 pcdt.point.class_key = o3d.core.Tensor(np.array(class_keys).reshape(-1, 1))
15 local_file_path = "/tmp/temp_point_cloud_3.pcd"
---> 16 o3d.t.io.write_point_cloud(local_file_path, pcdt, write_ascii=False)
ValueError: vector too long
### Expected behavior
_No response_
### Open3D, Python and System information
```markdown
- Operating system: Ubuntu 20.04 / macOS 10.15 / Windows 10 64-bit
- Python version: Python 3.8 / output from `import sys; print(sys.version)`
- Open3D version: output from python: `print(open3d.__version__)`
- System architecture: x86 / arm64 / apple-silicon / jetson / rpi
- Is this a remote workstation?: yes or no
- How did you install Open3D?: pip / conda / build from source
- Compiler version (if built from source): gcc 7.5 / clang 7.0
```
### Additional information
_No response_
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.