Expo app crashes / shuts down when opening a ViroARScene with Viro3DObject (Expo SDK 51)
Requirements:
Please go through this checklist before opening a new issue
- [ *] Review the documentation
- [ *] Search for existing issues in: ViroCommunity/viro
- [* ] Use the latest ViroReact release
Environment
Please provide the following information about your environment:
- Development OS: Mac
- Device OS & Version: iOS 16.7.8
- Version: ViroReact version 2.41.6 & React native 0.73.6 & Expo 51.0.1
- 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>
I noticed the same, looks like it about position props, when I got rid of it, app doesn't crashing
Hi, same for me, the position props is crashing the app
Hi, Same issue, getting rid of position stops crashing the app, anyone got a workaround?
I have same problem, prop "position" crashing the app (without errors and logs).
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
It seems to be a system problem, guys please take a look!
Same here, I don't use Expo, but the latest RN 0.74.5. The position property crashes application.
@doranteseduardo please help)
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
Any progres? I don't want to downgrade RN. Everything works on Android. It is just iOS problem.
@doranteseduardo @robertjcolley can you help please?
Any updates/solutions to this with Expo 51?
@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)`
Expo 50 works just fine, but thereβs lots of great new stuff to take advantage of in the latest version 52. Would love to see this working :)