Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expo app crashes / shuts down when opening a ViroARScene with Viro3DObject (Expo SDK 51) #298

Open
jordyortega opened this issue Jun 17, 2024 · 12 comments

Comments

@jordyortega
Copy link

Requirements:

Please go through this checklist before opening a new issue

Environment

Please provide the following information about your environment:

  1. Development OS: Mac
  2. Device OS & Version: iOS 16.7.8
  3. Version: ViroReact version 2.41.6 & React native 0.73.6 & Expo 51.0.1
  4. Device(s): All devices

Description

I recently updated to Expo SDK 51 and now when opening a ViroARScene with a Viro3DObject in it, it just crashes without an error message. When I remove the Viro3DObject, it just works. So it might have something to do with Viro3DObject :)

Reproducible Demo

<ViroARScene onTrackingUpdated={(state, reason) => this.onInitialized(state, reason)}> <ViroAmbientLight color="#FFFF00" /> <Viro3DObject source={coinobj} resources={[ coinmtl ]} type="OBJ" position={[0.0, -1.0, -3]} scale={[1, 1, 1]} hitSlop={{ top: 40, bottom: 40, left: 40, right: 40 }} /> </ViroARScene>

@bastej
Copy link

bastej commented Jul 18, 2024

I noticed the same, looks like it about position props, when I got rid of it, app doesn't crashing

@etiennemonnet
Copy link

Hi, same for me, the position props is crashing the app

@varun-raj
Copy link

Hi, Same issue, getting rid of position stops crashing the app, anyone got a workaround?

@gnvcor
Copy link

gnvcor commented Aug 11, 2024

I have same problem, prop "position" crashing the app (without errors and logs).

@gnvcor
Copy link

gnvcor commented Aug 11, 2024

I tried all the available versions in npm (2.41.3, 2.41.4, 2.41.5, 2.41.6), every version has this error with position

@gnvcor
Copy link

gnvcor commented Aug 11, 2024

It seems to be a system problem, guys please take a look!

@rozekfr
Copy link

rozekfr commented Aug 12, 2024

Same here, I don't use Expo, but the latest RN 0.74.5. The position property crashes application.

@gnvcor
Copy link

gnvcor commented Aug 14, 2024

@doranteseduardo please help)

@gnvcor
Copy link

gnvcor commented Aug 15, 2024

Guys, i figured it out, the problem is in expo 51.

I downgraded expo to 50 and the position property works now.

how to downgrade expo: https://docs.expo.dev/workflow/upgrading-expo-sdk-walkthrough/#follow-the-release-notes-for-any-other-instructions

@rozekfr
Copy link

rozekfr commented Sep 11, 2024

Any progres? I don't want to downgrade RN. Everything works on Android. It is just iOS problem.

@doranteseduardo @robertjcolley can you help please?

@haakonjacobsen
Copy link

haakonjacobsen commented Sep 18, 2024

Any updates/solutions to this with Expo 51?

@gnvcor
Copy link

gnvcor commented Oct 4, 2024

@jordyortega how your used file .obj for Viro3DObject?

I catch error:
`None of these files exist:

  • app/(tabs)/assets/3d/stylized_coin.obj(.ios.ts|.native.ts|.ts|.ios.tsx|.native.tsx|.tsx|.ios.mjs|.native.mjs|.mjs|.ios.js|.native.js|.js|.ios.jsx|.native.jsx|.jsx|.ios.json|.native.json|.json|.ios.cjs|.native.cjs|.cjs|.ios.scss|.native.scss|.scss|.ios.sass|.native.sass|.sass|.ios.css|.native.css|.css)`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants