Viewing this model in AR mode on Android causes Scene Viewer to crash
- Dominant language
- TypeScript
- Stars
- 8.2k
- Forks
- 947
- PR merge metrics
- No merged PRs in 30d
Description
I have pinpointed the issue to the fact that this model has no vertices above the Y=0 ground plane. If I create another version of the file with all the vertices shifted a tiny amount above the Y=0 plane, or a version with the transform itself shifted up a tiny amount, then it no longer crashes. I think it's because it's using only the mesh data found above the Y=0 plane to calculate the near and far plane values for the camera, but since there isn't any, it uses near=0 and far=0 and then Filament crashes.
```
04-21 13:46:24.330 E Filament: reason: Camera preconditions not met in setCustomProjection(): near = far = 0
04-21 13:46:24.485 F libc : Fatal signal 6 (SIGABRT), code -6 (SI_TKILL)
```
[Light.zip](https://github.com/user-attachments/files/26943904/Light.zip)
Contributor guide
Assessment
This issue has not been assessed yet.