Search Issue Tracker
Fixed
Fixed in 2021.3.35f1
Votes
1
Found in
2021.3.31f1
Issue ID
UUM-54394
Regression
No
NullReferenceException is thrown when loading multiple scenes consecutively using a script
How to reproduce:
1. Open the “IN-57355_repro“ project
2. Open the “MainScene“
3. Enter Play Mode
4. Observe the Console
Expected result: No error is seen
Actual result: An error is seen
Reproducible with: 2021.3.31f1
Not reproducible with: 2022.3.12f1, 2023.1.18f1, 2023.2.ob15, 2023.3.0a11
Fixed in: 2022.3.1f1
Reproducible on: Windows 10, Windows 11
Not reproducible on: No other environment tested
Error: NullReferenceException: Object reference not set to an instance of an object
UnityEngine.Rendering.VolumeManager.ReplaceData (UnityEngine.Rendering.VolumeStack stack) (at ./Library/PackageCache/com.unity.render-pipelines.core@14.0.7/Runtime/Volume/VolumeManager.cs:334)
UnityEngine.Rendering.VolumeManager.Update (UnityEngine.Rendering.VolumeStack stack, UnityEngine.Transform trigger, UnityEngine.LayerMask layerMask) (at ./Library/PackageCache/com.unity.render-pipelines.core@14.0.7/Runtime/Volume/VolumeManager.cs:438)
UnityEngine.Rendering.VolumeManager.Update (UnityEngine.Transform trigger, UnityEngine.LayerMask layerMask) (at ./Library/PackageCache/com.unity.render-pipelines.core@14.0.7/Runtime/Volume/VolumeManager.cs:415)
camera.CameraController.Show (UnityEngine.Camera camera) (at Assets/Scripts/CameraController.cs:67)
CameraShower.Show () (at Assets/Scripts/CameraShower.cs:12)
CameraShower.Start () (at Assets/Scripts/CameraShower.cs:7)
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- “[Worker0] Could not generate preview image“ error when opening macOS native plugin in the Inspector with Architecture to build for set to ARM 64-bit
- [iOS] Application.absoluteURL is empty on Awake/Start when opening via deep link with Splash Screen disabled
- Crash on MemoryManager::Deallocate when rapidly calling Addressables.LoadAssetAsync
- Crash on physx::shdfnd::atomicIncrement when adjusting values on a character controller component after entering Play mode in Prefab edit mode
- [Rendering Debugger] [NewInputSystem] Debug Overlays in Play mode throws InvalidOperationException when using New Input System
HugeWill
Dec 05, 2023 12:02
Is this going to be fixed in 2021.3.31f? Seems like a pretty game breaking bug that happens both in editor and build...