viro: ViroARImageMarker crashes the app

I followed this to use ARKit 1.5 features https://docs.viromedia.com/docs/enable-arkit-15-beta-features

Everything seems to work until I add ViroARImageMarker and I got this error

ViroARTrackingTargets.createTargets({
  "targetOne" : {
    source : require('./res/targetOne.jpg'),
    orientation : "Up",
    physicalWidth : 0.1 // real world width in meters
  },
});

<ViroARImageMarker target={"targetOne"} >
  <ViroBox position={[0, .25, 0]} scale={[.5, .5, .5] />
</ViroARImageMarker>
screen shot 2018-04-01 at 11 07 35 pm

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Comments: 16

Most upvoted comments

Hi @volkova229 and @vasinl124,

We’ve managed to reproduce the issue and should have a fix coming out in our next release (within the week).

It’s caused by a slower wifi connection and should only occur on debug builds (race condition between the loading of the target image over wifi and the creation of the component in native).

If you want to work around this for now, you can try performing a release build or, if you have disabled the “AR/VR” selection menu, re-enabling it now in order to “delay” the creation of the ARImageMarker target.

Thanks for your help in debugging this issue!