Search Issue Tracker
Fixed in 2022.2.9f1
Fixed in 2022.2.X, 2023.1.X, 2023.2.X, 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
- After converting a Built-in project to URP render texture related errors are spammed that can lead to Game view being rendered on top of Scene view
- UI Builder slider value lags and stutters when sliding/modifying certain property values
- "Reset UI Builder Layout" functionality inconsistently changes Canva Size when "Match Game View" is enabled/disabled
- Texture Import Warnings are obscured by other Terrain Layer options in the Inspector
- Burst Inspector middle divider is jittering when resized with the Burst Inspector window docked
Resolution Note (fix version 2023.2):
Fixed by unknown PR.
Resolution Note (fix version 2023.1):
Fixed by unknown PR.
Resolution Note (fix version 2022.2):
Fixed by unknown PR.