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)
Comments (1)
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
- “Remove Unused Overrides” available on not loaded Scene and throws “ArgumentException: The scene is not loaded” warning
- Adaptive Probe Volume occlusion edge is calculated incorrectly when viewing probes near geometry edges
- Sampling a texture using an HLSL file throws shader errors and the code does not compile
- "Graphics.CopyTexture called with null source texture" error when Base Camera of an Overlay Camera is removed with DX11 Graphics API and Compatibility Mode enabled
- WebGL sends wrong value with large numbers when SendMessage function is used
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...