Read pointcloud from bytes unknown format error
- 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
Reading a pointcloud from bytes gives an error, reading the exact same pointcloud from file produces a valid pointcloud.
### Steps to reproduce the bug
```python
import io
import open3d as o3d
file_path = "./test.ply"
# Read ply from disk
pcd = o3d.io.read_point_cloud(file_path)
print(pcd.has_points())
# Read ply from disk and store in file_bytes
with open(file_path, "rb") as f:
file_bytes = f.read()
pcd_from_memory = o3d.io.read_point_cloud_from_bytes(file_bytes)
print(len(file_bytes))
print(pcd_from_memory.has_points())
```
The output of the code for any of my valid PLY files is always the same:
>>> True
>>> [Open3D WARNING] Read geometry::PointCloud failed: unknown format for (format: auto).
>>> 88073771
False
```
### Error message
[Open3D WARNING] Read geometry::PointCloud failed: unknown format for (format: auto).
### Expected behavior
I would expect a valid pointcloud to be loaded in from memory as well, but for now I am stuck writing a temporary .ply file and read it from disk.
### Open3D, Python and System information
```markdown
- Operating system: Ubuntu 22.04
- Python version: 3.11.9 | packaged by conda-forge | (main, Apr 19 2024, 18:36:13) [GCC 12.3.0]
- Open3D version: 0.18.0+e86fcb3
- System architecture: x86
- Is this a remote workstation?: no
- How did you install Open3D?: pip
```
### Additional information
_No response_
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.