viro
viro copied to clipboard
Application breaks when opening specific glb file
Requirements:
Please go through this checklist before opening a new issue
- [x] Review the documentation
- [x] Search for existing issues in: ViroCommunity/viro
- [x] Use the latest ViroReact release
Environment
Please provide the following information about your environment:
- Development OS: Windows
- Device OS & Version: Android 14
- Version: ViroReact 2.40.1, React Native 0.72.6, and Expo ~49.0.18
- Device(s): Samsung Galaxy S22 Ultra
Description
Tried to test load a 3D object with format of GLB. The first file Duck.glb
was success, however the second file Rpm.glb
was failed and app crashed. These two files was found in internet, specifically Rpm.glb
was generated by ReadyPlayerMe. What makes the app crashed?
Assets:
Reproducible Demo
Let us know how to reproduce the issue. Include a code sample, screen capture, video recording. The more information you provide, the better we can support you.
<>
<ViroAmbientLight color="#FFF" />
<Viro3DObject
type="GLB"
// source={require("@assets/models/test/RPM.glb")}
source={require("@assets/models/test/DUCK.glb")}
highAccuracyEvents
position={[0, 0, -1.15]}
scale={[0.2, 0.2, 0.2]}
rotation={[0, 0, 0]}
onLoadStart={(_e) => {
console.log("Start");
console.log(_e);
}}
onLoadEnd={(_e) => {
console.log("End");
console.log(_e);
}}
style={{ flex: 1 }}
/>
</>