viro icon indicating copy to clipboard operation
viro copied to clipboard

Application breaks when opening specific glb file

Open Wildanzr opened this issue 5 months ago • 1 comments

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 }}
      />
  </>

Wildanzr avatar Mar 05 '24 03:03 Wildanzr