Null at Unity.PolySpatial.Internals.MeshRendererTrackerBase

In editor everything works but on simulator im getting those errors:

NullReferenceException: Object reference not set to an instance of an object.
at Unity.PolySpatial.Internals.MeshRendererTrackerBase3[TObject,TEngineData,TTrackingData].FetchTransformCallback (Unity.PolySpatial.Internals.ObjectDispatcherProxy+TransformDispatchData data) [0x00000] in <00000000000000000000000000000000>:0 at Unity.PolySpatial.Internals.ObjectDispatcherProxy.<.ctor>b__12_1 (UnityEngine.TransformDispatchData real) [0x00000] in <00000000000000000000000000000000>:0 at UnityEngine.ObjectDispatcher+<>c.<.cctor>b__54_1 (System.IntPtr transformed, System.IntPtr parents, System.IntPtr localToWorldMatrices, System.IntPtr positions, System.IntPtr rotations, System.IntPtr scales, System.Int32 count, System.Action1[T] callback) [0x00000] in <00000000000000000000000000000000>:0
at Unity.PolySpatial.Internals.ObjectDispatcherProxy.DispatchTransformChangesAndClear (System.Type type, Unity.PolySpatial.Internals.ObjectDispatcherProxy+TransformTrackingType trackingType, System.Action1[T] fetchProxyTransformCallback) [0x00000] in <00000000000000000000000000000000>:0 at Unity.PolySpatial.Internals.MeshRendererTrackerBase3[TObject,TEngineData,TTrackingData].TrackObjectChanges (UnityEngine.LayerMask cullingMask) [0x00000] in <00000000000000000000000000000000>:0
at Unity.PolySpatial.Internals.PolySpatialUnityTracker.TrackObjectChanges (UnityEngine.LayerMask cullingMask) [0x00000] in <00000000000000000000000000000000>:0
at Unity.PolySpatial.Internals.PolySpatialUnitySimulation.Update () [0x00000] in <00000000000000000000000000000000>:0
at Unity.PolySpatial.Internals.PolySpatialCore.PolySpatialAfterLateUpdate () [0x00000] in <00000000000000000000000000000000>:0
Unity.PolySpatial.Internals.ObjectDispatcherProxy:DispatchTransformChangesAndClear(Type, TransformTrackingType, Action1) Unity.PolySpatial.Internals.MeshRendererTrackerBase3:TrackObjectChanges(LayerMask)
Unity.PolySpatial.Internals.PolySpatialUnityTracker:TrackObjectChanges(LayerMask)
Unity.PolySpatial.Internals.PolySpatialUnitySimulation:Update()
Unity.PolySpatial.Internals.PolySpatialCore:PolySpatialAfterLateUpdate()

Have you idea why it’s happening? and how to fix it?

Best!
Marcin

Hello! The basic cause of this is that we are attempting to fetch the Renderer (MeshRenderer or SkinnedMeshRenderer) associated with an instance ID, and it either doesn’t exist (perhaps because it was deleted?) or isn’t a Renderer instance (less likely). I’m not sure what would cause this in your particular case, however. If it’s possible for you to submit a bug report that reproduces the issue and let us know the instance number (IN-#####), that would help us investigate.

Hey, a couple of our levels are reseting the device when we load into them, and we see this error when loading in editor (not sure if its the cause of the crash yet but there are a lot of renderer == null errors in PolySpatial code, did you find out the cause of this error? We are on PolySpatial 1.2.3.
Thanks
Chris

No; we need more information. If you can submit a repro case as a bug report and let us know the incident number (IN-#####), we can investigate.