ReactVision / viro

ViroReact: The AR and VR library for React Native 📳💙💛🤍💚
MIT License
1.3k stars 150 forks source link

Application breaks when opening specific glb file #274

Open Wildanzr opened 4 months ago

Wildanzr commented 4 months ago

Requirements:

Please go through this checklist before opening a new issue

Environment

Please provide the following information about your environment:

  1. Development OS: Windows
  2. Device OS & Version: Android 14
  3. Version: ViroReact 2.40.1, React Native 0.72.6, and Expo ~49.0.18
  4. 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 }}
      />
  </>
linear[bot] commented 4 months ago

XR-186 Application breaks when opening specific glb file