isl-org / isl-org/Open3D

M1 Macs fail reading GLB mesh

Open
#5,729 4 comments 0 reactions 1 assignee Claimed by @errissa View on GitHub
bug
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](http://www.open3d.org/docs/latest/getting_started.html#development-version-pip).
- [X] I have checked the [release documentation](http://www.open3d.org/docs/release/) and the [latest documentation](http://www.open3d.org/docs/latest/) (for `master` branch).

### Describe the issue

On M1 (arm64) Macs open3D fail to load a GLB file.

Here I am using the KnotMesh from open3d.data, but I was having the same error with other meshes.

### Steps to reproduce the bug

```python
import open3d as o3d
import tempfile

from pathlib import Path

# Read example mesh
knot_mesh = o3d.data.KnotMesh()
mesh = o3d.io.read_triangle_mesh(knot_mesh.path)

with tempfile.TemporaryDirectory() as temp_dir:

# Here I am converting writing the triangle mesh as a GLB file
glb_mesh_path = Path(temp_dir) / "mesh.glb"
o3d.io.write_triangle_mesh(str(glb_mesh_path), mesh)

# I try to load now the generated GLB file
glb_mesh = o3d.io.read_triangle_mesh(str(glb_mesh_path))
```

### Error message

libc++abi: terminating with uncaught exception of type DeadlyImportError: GLTF: Unsupported binary glTF version
zsh: abort pipenv run python bug.py

### Expected behavior

The mesh should be loaded without crashing

### Open3D, Python and System information

```markdown
- Operating system: macOS 12.5.1
- Python version: Python 3.10.6
- Open3D version: 0.16.1
- System architecture: arm64
- Is this a remote workstation?: no
- How did you install Open3D?: pip install open3d
- Compiler version (if built from source):
```

### Additional information

_No response_

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.