viro icon indicating copy to clipboard operation
viro copied to clipboard

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

Open jordyortega opened this issue 1 year ago β€’ 13 comments

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>

jordyortega avatar Jun 17 '24 17:06 jordyortega

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

bastej avatar Jul 18 '24 14:07 bastej

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

etiennemonnet avatar Jul 24 '24 08:07 etiennemonnet

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

varun-raj avatar Jul 28 '24 10:07 varun-raj

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

gnvcor avatar Aug 11 '24 05:08 gnvcor

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 avatar Aug 11 '24 06:08 gnvcor

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

gnvcor avatar Aug 11 '24 06:08 gnvcor

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

rozekfr avatar Aug 12 '24 13:08 rozekfr

@doranteseduardo please help)

gnvcor avatar Aug 14 '24 16:08 gnvcor

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

gnvcor avatar Aug 15 '24 05:08 gnvcor

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

@doranteseduardo @robertjcolley can you help please?

rozekfr avatar Sep 11 '24 15:09 rozekfr

Any updates/solutions to this with Expo 51?

haakonjacobsen avatar Sep 18 '24 16:09 haakonjacobsen

@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)`

gnvcor avatar Oct 04 '24 11:10 gnvcor

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 :)

julian-hecker avatar Dec 03 '24 04:12 julian-hecker