Skip to content

iOS crashes with geospatialAnchorProvider="arcore" (version 2.52.0) #436

@matyasproch

Description

@matyasproch

I have a setup that is using worldAlignment="GravityAndHeading" for iOS so with the new ARCore support I just updated the library to 2.52.0 (from 2.44.2) and switched the prop for geospatialAnchorProvider='arcore' but right away it crashes with the following error:

"=== VROARScene::setAnchorDetectionTypes called ==="

"  Detection types count: 1"

"    Type: 0"

"  ARSession is NULL - detection types stored but not applied!"

[ViroMemory] VRTFabricCrashFix - ENABLED (needed to prevent crashes)

Error setting property 'geospatialAnchorProvider' of VRTARSceneNavigator with tag #712: [ViroAR] Setting geospatial anchor provider: arcore

Error setting property 'geospatialAnchorProvider' of VRTARSceneNavigator with tag #712: [ViroAR] VROView not ready yet, geospatial provider will be set later

This is a device which is not listed in this category. Please visit https://github.com/InderKumarRathore/DeviceUtil and add a comment there.

Your device hardware string is: iPhone16,1

DOF6 tracking configuration

(Fig) signalled err=-12710 at <>:601

(Fig) signalled err=-12710 at <>:601

(Fig) signalled err=-12710 at <>:601

[ViroAR] Setting geospatial anchor provider: arcore

"[ViroAR] ARCore SDK is available (runtime check passed)"

"[ViroAR] ARCore SDK is available (runtime check passed)"

"[ViroAR] Initializing ARCore Cloud Anchors provider..."

"[ViroAR] GARAPIKey found (length: 39)"

{"msg":"#Warning Error reading file", "file":"\/\/private\/var\/Managed Preferences\/mobile\/com.apple.CoreMotion.plist", "error":"Error Domain=NSCocoaErrorDomain Code=257 \"The file “com.apple.CoreMotion.plist” couldn’t be opened because you don’t have permission to view it.\" UserInfo={NSFilePath=\/\/private\/var\/Managed Preferences\/mobile\/com.apple.CoreMotion.plist, NSURL=file:\/\/\/\/private\/var\/Managed%20Preferences\/mobile\/com.apple.CoreMotion.plist, NSUnderlyingError=0x13967f120 {Error Domain=NSPOSIXErrorDomain Code=1 \"Operation not permitted\"}}"}

This is what I have in app.config.ts:

[
      '@reactvision/react-viro',
      {
        googleCloudApiKey: config.ar.googleCloudApiKey,
        geospatialAnchorProvider: 'arcore',
        android: {
          xRMode: ['AR'],
        },
      },
    ],

I use expo-build-properties:

[
      'expo-build-properties',
      {
        android: {
          kotlinVersion: '2.2.0',
        },
        ios: {
          useFrameworks: 'static',
          buildReactNativeFromSource: true,
        },
      },
    ],

Even if I have the scene completely empty and clean build, it still crashes.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions