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
- Constant console errors when using Min/Max Slider in PlayMode
- The global scene list is overridden in a project built with command line when the Override Global Scene List setting is disabled in the build profile
- [Linux] AutoLocale log is logged when opening a project
- Global Scenes are not included in the Build when building multiple Build Profiles at the same time
- [iOS] WebCamDevice.availableResolutions returns a single resolution with width and height both 0 on some iOS devices
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...