Search Issue Tracker
Fixed
Fixed in 2022.2.9f1, 2023.1.0b6, 2023.2.0a4
Votes
0
Found in
2022.1.13f1
2023.1.0a5
2023.2.0a1
Issue ID
UUM-13595
Regression
Yes
“NullReferenceException” and “Failed loading overlay “PBR Validation Settings”!” errors are thrown in the Console window when selecting Material Validator modes
How to reproduce:
1. Create a new Unity project
2. In a Scene view select the Draw Mode button
3. In opened submenu select Validate Albedo, Validate Metal Specular, or Show Lightmap Resolution
4. Observe the Console window
Expected result: Errors are thrown in the Console window
Actual result: No errors are thrown in the Console window
Reproducible with: 2022.1.13f1, 2022.1.16f1, 2023.1.0a5, 2023.1.0a10
Not reproducible with: 2020.3.39f1, 2021.3.9f1, 2022.1.12f1, 2022.2.0b7, 2023.1.0a4
Reproduced on: macOS Monterey 12.5.1, macOS Monterey 12.3.1 (Apple M1 Max)
Errors in the Console window:
{code:java}
Failed loading overlay "PBR Validation Settings"!
System.NullReferenceException: Object reference not set to an instance of an object
at UnityEditor.SceneViewLighting.OnCameraModeChanged (UnityEditor.SceneView+CameraMode mode) [0x000fb] in /Users/bokken/buildslave/unity/build/Modules/UIServiceEditor/SceneView/SceneViewLightingOverlays.cs:126
at UnityEditor.SceneViewLighting.CreatePanelContent () [0x00088] in /Users/bokken/buildslave/unity/build/Modules/UIServiceEditor/SceneView/SceneViewLightingOverlays.cs:104
at UnityEditor.Overlays.Overlay.CreateContent (UnityEditor.Overlays.Layout requestedLayout) [0x00071] in /Users/bokken/buildslave/unity/build/Editor/Mono/Overlays/Overlay.cs:395
UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&) (at /Users/bokken/buildslave/unity/build/Modules/IMGUI/GUIUtility.cs:189)
{code}
{code:java}
NullReferenceException: Object reference not set to an instance of an object
UnityEditor.SceneViewLighting.OnCameraModeChanged (UnityEditor.SceneView+CameraMode mode) (at /Users/bokken/buildslave/unity/build/Modules/UIServiceEditor/SceneView/SceneViewLightingOverlays.cs:126)
UnityEditor.SceneViewLighting.CreatePanelContent () (at /Users/bokken/buildslave/unity/build/Modules/UIServiceEditor/SceneView/SceneViewLightingOverlays.cs:104)
UnityEditor.SceneViewLighting.OnCameraModeChanged (UnityEditor.SceneView+CameraMode mode) (at /Users/bokken/buildslave/unity/build/Modules/UIServiceEditor/SceneView/SceneViewLightingOverlays.cs:113)
UnityEditor.SceneView.set_cameraMode (UnityEditor.SceneView+CameraMode value) (at /Users/bokken/buildslave/unity/build/Editor/Mono/SceneView/SceneView.cs:589)
UnityEditor.SceneRenderModeWindow.DoBuiltinMode (UnityEngine.Rect& rect, UnityEditor.SceneView+CameraMode mode) (at /Users/bokken/buildslave/unity/build/Editor/Mono/Annotation/SceneRenderModeWindow.cs:302)
{code}
Comments (2)
-
sewy
Jul 28, 2023 15:24
Will this be backported into 2021.3? Having the same issue.
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
- Some UXML Template Asset foldouts appear enabled when all fields inside are disabled
- URP Terrain Demo crash on burst_signal_handler after Generating lighting
- Project window button icons are poorly visible and their shades differ in Light theme
- Automatic LOD fails and SRP Batcher incompatibility occurs when using spline-based quad-topology meshes
- Editor crashes on D3D12GetInterface when repeatedly enabling and disabling 256 text components
Resolution Note (fix version 2023.2.0a4):
Fixed by unknown PR.
Resolution Note (fix version 2023.1.0b6):
Fixed by unknown PR.
Resolution Note (fix version 2022.2.9f1):
Fixed by unknown PR.