needle-tools / ar-simulation

AR Simulation for Unity • Right in the Editor • Minimally Invasive
109 stars 10 forks source link

[Bug] InvalidOperationException when disabling ARPlaneManager #48

Closed marwie closed 3 years ago

marwie commented 3 years ago

Reported by user via email:

Whenever I disable and later on enable the ARPlaneManager I get the following exception:

InvalidOperationException: Trackable C79FE40000000000-1B8DA44000000000 being updated this frame has at least one other action associated with it.
UnityEngine.XR.ARSubsystems.ValidationUtility`1[T].AddToSetAndThrowIfDuplicate (UnityEngine.XR.ARSubsystems.TrackableId trackableId, System.Boolean shouldBeInDictionary, System.String action) (at Library/PackageCache/com.unity.xr.arsubsystems@4.1.3/Runtime/TrackingSubsystem/ValidationUtility.cs:65)
UnityEngine.XR.ARSubsystems.ValidationUtility`1[T].ValidateAndThrow (UnityEngine.XR.ARSubsystems.TrackableChanges`1[T] changes) (at Library/PackageCache/com.unity.xr.arsubsystems@4.1.3/Runtime/TrackingSubsystem/ValidationUtility.cs:32)
UnityEngine.XR.ARSubsystems.ValidationUtility`1[T].ValidateAndDisposeIfThrown (UnityEngine.XR.ARSubsystems.TrackableChanges`1[T] changes) (at Library/PackageCache/com.unity.xr.arsubsystems@4.1.3/Runtime/TrackingSubsystem/ValidationUtility.cs:55)
UnityEngine.XR.ARSubsystems.XRPlaneSubsystem.GetChanges (Unity.Collections.Allocator allocator) (at Library/PackageCache/com.unity.xr.arsubsystems@4.1.3/Runtime/PlaneTracking/XRPlaneSubsystem.cs:81)
UnityEngine.XR.ARFoundation.ARTrackableManager`4[TSubsystem,TSubsystemDescriptor,TSessionRelativeData,TTrackable].Update () (at Library/PackageCache/com.unity.xr.arfoundation@4.1.3/Runtime/AR/ARTrackableManager.cs:187)

Unity version: 2019.4.19f1 ARFoundation version: 4.1.3 ARKit XR plugin: 4.1.3 Operating system: Windows 10

marwie commented 3 years ago

Fixed in 2a11a8b432e9651d68438421760cebb1ccc45bd6 Will be available in the next update