Search Issue Tracker
Fixed in 2022.1.0a2
Votes
5
Found in [Package]
12.0.0
Issue ID
1341459
Regression
No
[HDRP] Material and prefab thumbnails break on SRP projects with HDRenderPipelineGlobalSettings errors
Steps to reproduce:
1. Create a new template project
2. After the project is created immediately navigate to SampleSceneAssets/Materials/General
3. Observe that thumbnails break after a while of default material/prefab icons shown
4. Observe the following error in the console:
[Worker0] NullReferenceException: Object reference not set to an instance of an object
UnityEngine.Rendering.HighDefinition.HDRenderPipelineGlobalSettings.EnsureShadersCompiled () (at Library/PackageCache/com.unity.render-pipelines.high-definition@12.0.0/Runtime/RenderPipeline/HDRenderPipelineGlobalSettings.cs:563)
UnityEngine.Rendering.HighDefinition.HDRenderPipeline.Render (UnityEngine.Rendering.ScriptableRenderContext renderContext, System.Collections.Generic.List`1[T] cameras) (at Library/PackageCache/com.unity.render-pipelines.high-definition@12.0.0/Runtime/RenderPipeline/HDRenderPipeline.cs:1017)
UnityEngine.Rendering.RenderPipeline.InternalRender (UnityEngine.Rendering.ScriptableRenderContext context, System.Collections.Generic.List`1[T] cameras) (at <546c054bece8453b98a8822cb5defeb1>:0)
UnityEngine.Rendering.RenderPipelineManager.DoRenderLoop_Internal (UnityEngine.Rendering.RenderPipelineAsset pipe, System.IntPtr loopPtr, System.Collections.Generic.List`1[T] renderRequests, Unity.Collections.LowLevel.Unsafe.AtomicSafetyHandle safety) (at <546c054bece8453b98a8822cb5defeb1>:0)
UnityEditor.AssetPreviewUpdater:CreatePreviewForAsset(Object, Object[], String)
Expected result: Material and prefab thumbnails should not break on new created project with HDRenderPipelineGlobalSettings.EnsureShadersCompiled
Reproduced in: 2021.2.0a20, 2021.2.0a17
Reproduces in Mac and Windows
Apparently happens on URP too (https://forum.unity.com/threads/prefab-meshes-material-thumbnails-in-project-view-are-shown-as-empty-grey-box.1139461/)
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
- Animation Clip with Legacy enabled does not play when Time.timeScale is set to 0 despite Update mode set to "Unscaled time"
- Rename is enabled on subfolder empty space - "Can't rename to empty name" warning
- SamplerState Property Missing Anisotropic Filtering
- Visual glitches when using Handles API
- The RGBA color values are inconsistent when comparing two identical colors set in the Inspector
gasppol
Jul 13, 2021 18:30
It happens with both Refresh Import Mode methods (Project Settings > Editor > Refresh): In process, and out of process. (on the former, no [Worker 0] errors appear)
As the issue tracker says, it won't happen with Built-In Render.