Unity-Technologies / arfoundation-samples

Example content for Unity projects based on AR Foundation
Other
2.99k stars 1.11k forks source link

[Bug] [IN-17625] AREnvironmentProbeManager.OnDestroy triggers application crash #1003

Closed Phantomxm2021 closed 9 months ago

Phantomxm2021 commented 1 year ago

Describe the bug

Instantiate a game object with an AREnvironment prob component and destroys it. Then loading other scenes (without AR)...

Bump, crash.

NullReferenceException: Object reference not set to an instance of an object.
  at UnityEngine.XR.ARFoundation.AREnvironmentProbeManager.OnDestroy () [0x00000] in <00000000000000000000000000000000>:0 

Smartphone (please complete the following information):

DavidMohrhardt commented 1 year ago

Please file an official bug and link the number so we can get it. https://unity3d.com/unity/qa/bug-reporting

Phantomxm2021 commented 1 year ago

Please file an official bug and link the number so we can get it. https://unity3d.com/unity/qa/bug-reporting

bug case id: IN-17625

DavidMohrhardt commented 1 year ago

Thank you!

andyb-unity commented 9 months ago

Fixed in 5.0.7: https://docs.unity3d.com/Packages/com.unity.xr.arfoundation@5.0/changelog/CHANGELOG.html