Bug Ticket IN-77436
I use “ARSession”, “ARMeshManager”, “ARPlaneManager” and ARSubsystem for detection handgesture.
When I change to another scene, KeyNotFoundException raised from PolySpatialCore.PolySpatialAfterLateUpdate().
I don’t have any idea how to prevent from this error.
Please let me know how to dispose/finish polyspatial components?
ErrorMessage
KeyNotFoundException: The given key '-1543286' was not present in the dictionary.
System.Collections.Generic.Dictionary`2[TKey,TValue].get_Item (TKey key) (at <c816f303bdad4e9a8d8dabcc4fd172eb>:0)
Unity.PolySpatial.Internals.DictionaryList`2[TKey,TValue].get_Item (TKey key) (at /Users/bokken/build/output/unity/quantum/Packages/com.unity.polyspatial/Runtime/Utilities/DictionaryList.cs:29)
Unity.PolySpatial.Internals.UnitySceneGraph.GetEntity (Unity.PolySpatial.Internals.PolySpatialInstanceID entityId) (at /Users/bokken/build/output/unity/quantum/Packages/com.unity.polyspatial/Runtime/Platforms/Unity/UnitySceneGraph.cs:293)
Unity.PolySpatial.Internals.UnitySceneGraph.DestroyEntityComponent (Unity.PolySpatial.Internals.PolySpatialInstanceID id, Unity.PolySpatial.Internals.UnitySceneGraphComponent componentType) (at /Users/bokken/build/output/unity/quantum/Packages/com.unity.polyspatial/Runtime/Platforms/Unity/UnitySceneGraph.cs:340)
Unity.PolySpatial.Internals.PolySpatialUnityBackend.OnSendClientCommand (Unity.PolySpatial.Internals.PolySpatialCommand command, System.Int32 argCount, System.Void** args, System.Int32* argSizes) (at /Users/bokken/build/output/unity/quantum/Packages/com.unity.polyspatial/Runtime/Platforms/Unity/PolySpatialUnityBackend.cs:585)
Unity.PolySpatial.Internals.PolySpatialUnityBackend.HandleCommand (Unity.PolySpatial.Internals.PolySpatialCommand cmd, System.Int32 argCount, System.Void** argValues, System.Int32* argSizes) (at /Users/bokken/build/output/unity/quantum/Packages/com.unity.polyspatial/Runtime/Platforms/Unity/PolySpatialUnityBackend.cs:155)
Unity.PolySpatial.Internals.PolySpatialNativeExtensions.Command[T1] (Unity.PolySpatial.Internals.IPolySpatialCommandHandler handler, Unity.PolySpatial.Internals.PolySpatialCommand command, System.ReadOnlySpan`1[T] arg1) (at /Users/bokken/build/output/unity/quantum/Packages/com.unity.polyspatial/Runtime/Platforms/PolySpatialNativeExtensions.cs:127)
Unity.PolySpatial.Internals.PolySpatialNativeExtensions.SerializedChangeListCommand[T] (Unity.PolySpatial.Internals.IPolySpatialCommandHandler handler, Unity.PolySpatial.Internals.PolySpatialCommand command, Unity.PolySpatial.Internals.IChangeList`1[TEngineData] changes) (at /Users/bokken/build/output/unity/quantum/Packages/com.unity.polyspatial/Runtime/Platforms/PolySpatialNativeExtensions.cs:299)
Unity.PolySpatial.Internals.PolySpatialUnitySimulation.OnParticleSystemsDestroyed (Unity.PolySpatial.Internals.IChangeList`1[TEngineData] changeList) (at /Users/bokken/build/output/unity/quantum/Packages/com.unity.polyspatial/Runtime/Trackers/PolySpatialUnitySimulation.cs:834)
Unity.PolySpatial.Internals.ParticleSystemTracker.ProcessDestroyed (Unity.PolySpatial.Internals.PolySpatialUnitySimulation unitySimulation, Unity.PolySpatial.Internals.ChangeList`1[TEngineData] data) (at /Users/bokken/build/output/unity/quantum/Packages/com.unity.polyspatial/Runtime/Trackers/ParticleSystemTracker.cs:283)
Unity.PolySpatial.Internals.UnityObjectTrackerWithTableDataAndEmptyRemovedData`3[TObject,TEngineData,TTrackingData].ProcessDestroyedInternal (Unity.PolySpatial.Internals.PolySpatialUnitySimulation unitySimulation, Unity.PolySpatial.Internals.IChangeList`1[TEngineData] data) (at /Users/bokken/build/output/unity/quantum/Packages/com.unity.polyspatial/Runtime/Trackers/UnityObjectTracker.cs:110)
Unity.PolySpatial.Internals.UnityObjectTracker`4[TObject,TEngineData,TRemovedData,TTrackingData].ProcessAllDestroyedObjects () (at /Users/bokken/build/output/unity/quantum/Packages/com.unity.polyspatial/Runtime/Trackers/UnityObjectTracker.cs:428)
Unity.PolySpatial.Internals.UnityObjectTracker`4[TObject,TEngineData,TRemovedData,TTrackingData].ProcessDestroyedObjects () (at /Users/bokken/build/output/unity/quantum/Packages/com.unity.polyspatial/Runtime/Trackers/UnityObjectTracker.cs:389)
Unity.PolySpatial.Internals.PolySpatialUnityTracker.ProcessDestroyedObjects () (at /Users/bokken/build/output/unity/quantum/Packages/com.unity.polyspatial/Runtime/Trackers/PolySpatialUnityTracker.cs:244)
Unity.PolySpatial.Internals.PolySpatialUnityTracker.Process () (at /Users/bokken/build/output/unity/quantum/Packages/com.unity.polyspatial/Runtime/Trackers/PolySpatialUnityTracker.cs:231)
Unity.PolySpatial.Internals.PolySpatialUnitySimulation.UpdateInternal () (at /Users/bokken/build/output/unity/quantum/Packages/com.unity.polyspatial/Runtime/Trackers/PolySpatialUnitySimulation.cs:216)
Unity.PolySpatial.Internals.PolySpatialUnitySimulation.Update () (at /Users/bokken/build/output/unity/quantum/Packages/com.unity.polyspatial/Runtime/Trackers/PolySpatialUnitySimulation.cs:143)
Unity.PolySpatial.Internals.PolySpatialCore.PolySpatialAfterLateUpdate () (at /Users/bokken/build/output/unity/quantum/Packages/com.unity.polyspatial/Runtime/PolySpatialCore.cs:669)
UnityEngine.Debug:LogException(Exception)
Unity.PolySpatial.Internals.PolySpatialCore:PolySpatialAfterLateUpdate() (at /Users/bokken/build/output/unity/quantum/Packages/com.unity.polyspatial/Runtime/PolySpatialCore.cs:676)