viro icon indicating copy to clipboard operation
viro copied to clipboard

App crash on android when I use ViroARCamera

Open saeedtkh opened this issue 2 years ago • 1 comments

@doranteseduardo : Thanks for your effort to make thins nice component. However, I have the following problem.

Environment

Please provide the following information about your environment:

  1. Development OS: Mac

  2. Device OS & Version: What Android OS 10, android

  3. Version: ViroReact version: "@viro-community/react-viro": "^2.20.2", and React Native version: "react-native": "0.65.1"

  4. Device(s): Samsung

Description

When I use any ViroARCamera in the scene the app crashes on android!

my code>

<ViroARScene onTrackingUpdated={onInitialized}>
     <ViroAmbientLight color={"#aaaaaa"} />

     <ViroSpotLight innerAngle={5} outerAngle={90} direction={[0,-1,-.2]}
         position={[0, 3, 1]} color="#ffffff" castsShadow={true} />

     <ViroARCamera>
               <Viro3DObject
           source={require('./models/rodeh.obj')}
            resources={[require('./models/rodeh_material.mtl')]}
             scale={[0.02, 0.02, 0.02]}
           //position={[-1, -2, -1]}
           position={[0, 0, 0]} // <- try changing these values

           type="OBJ" />
        </ViroARCamera>

   </ViroARScene>

saeedtkh avatar Dec 09 '21 12:12 saeedtkh

Can you please attach a screenshot of the error message?

doranteseduardo avatar Dec 09 '21 22:12 doranteseduardo