Start a new topic

Can't create runtime tracked image libraries

Getting the following runtime exception when attempting to call ARTrackedImageManager.CreateRuntimeLibrary:

  

06-09 19:34:17.045 19865 19975 E Unity   : NullReferenceException: Object reference not set to an instance of an object.
06-09 19:34:17.045 19865 19975 E Unity   :   at Qualcomm.Snapdragon.Spaces.SpacesRuntimeReferenceImageLibrary..ctor (UnityEngine.XR.ARSubsystems.XRReferenceImageLibrary serializedLibrary) [0x00000] in <00000000000000000000000000000000>:0 
06-09 19:34:17.045 19865 19975 E Unity   :   at Qualcomm.Snapdragon.Spaces.ImageTrackingSubsystem+ImageTrackingProvider.CreateRuntimeLibrary (UnityEngine.XR.ARSubsystems.XRReferenceImageLibrary serializedLibrary) [0x00000] in <00000000000000000000000000000000>:0 
06-09 19:34:17.045 19865 19975 E Unity   :   at UnityEngine.XR.ARSubsystems.XRImageTrackingSubsystem.CreateRuntimeLibrary (UnityEngine.XR.ARSubsystems.XRReferenceImageLibrary serializedLibrary) [0x00000] in <00000000000000000000000000000000>:0 

  


1 person has this question

Looking into it


2 people like this

As far as this goes:

https://docs.unity3d.com/Packages/com.unity.xr.arfoundation@4.0/manual/tracked-image-manager.html

 

DoesSupportMutableImageLibraries() currently returns false, so we don’t support a mutable library at this time. Which would explain why you can’t create a new one. (It shouldn’t be a null pointer exception, but there is no use for an empty image library if it is immutable). I’ll add a feature request to the product board.

Login or Signup to post a comment