Search Issue Tracker
Fixed in 4.2.2, 5.0.0-pre.4
Votes
0
Found in [Package]
4.1.7
Issue ID
1360784
Regression
No
ARF Mesh Manager trying to access subsystem after shutdown
I'm implementing a mesh subsystem provider to run in the editor. On exiting play mode I get these errors:
ArgumentNullException: Value cannot be null.
Parameter name: _unity_self
UnityEngine.XR.XRMeshSubsystem.TryGetMeshInfos (System.Collections.Generic.List`1[T] meshInfosOut) (at /Users/bokken/buildslave/unity/build/Modules/XR/Subsystems/Meshing/XRMeshSubsystem.bindings.cs:204)
UnityEngine.XR.ARFoundation.ARMeshManager.UpdateMeshInfos () (at Library/PackageCache/com.unity.xr.arfoundation@4.1.7/Runtime/AR/ARMeshManager.cs:343)
UnityEngine.XR.ARFoundation.ARMeshManager.Update () (at Library/PackageCache/com.unity.xr.arfoundation@4.1.7/Runtime/AR/ARMeshManager.cs:251)
ArgumentNullException: Value cannot be null.
Parameter name: _unity_self
UnityEngine.XR.ARFoundation.ARMeshManager.OnDisable () (at Library/PackageCache/com.unity.xr.arfoundation@4.1.7/Runtime/AR/ARMeshManager.cs:380)
My subsystem has already been shutdown but the mesh manager is still trying to access it.
Reproduced in both 2019.4.29f1 and 2021.1.17f1 with ARF 4.1.7
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Render Graph Viewer Resource list becomes shrunk after using a filter that yields no results
- [Android] [Vulkan] "VK_IMAGE_USAGE_TRANSIENT_ATTACHMENT_BIT" not added on some Android devices in "com.unity3d.player.UnityPlayerActivity/2D Colour Attachement"
- ResolveUsePasses now extracts passes from all subshaders including fallbacks, in contrast to documented behaviour
- [UIBuilder] Changes aren't detected on types implementing IList
- [HDRP] Text is rendered with artefacts when using STP and resolution scale is set a float value
Add comment