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
- Assets are created in the Package folders when creating assets via custom buttons in the Inspector window or other windows
- “Select” windows are named differently on Windows and macOS
- [Windows] No minimum “Select” window size
- Enabling “Editor Extension Authoring” in UI Builder doesn’t dirty the document and saving with shortcut doesn’t persist the state
- WebRequest.Create() function fails with "URI prefix is not recognized" errors when the project is built for Linux Standalone or Windows Dedicated Server
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.