Search Issue Tracker
Won't Fix
Votes
0
Found in
2022.2.0b16
Issue ID
UUM-21729
Regression
No
Depth Texture - Scene goes black and throws error
To reproduce:
- Open URP Asset;
- Enable, then disable Depth Texture
Note: can’t reproduce the second time, but leaving the error here, maybe devs will know what the problem is.
Result: Scene view goes black and NullReferenceException is thrown:
{code:java}
NullReferenceException: Object reference not set to an instance of an objectUnityEngine.Rendering.Universal.ScreenSpaceAmbientOcclusion.AddRenderPasses (UnityEngine.Rendering.Universal.ScriptableRenderer renderer, UnityEngine.Rendering.Universal.RenderingData& renderingData) (at Library/PackageCache/com.unity.render-pipelines.universal@14.0.3/Runtime/RendererFeatures/ScreenSpaceAmbientOcclusion.cs:140)UnityEngine.Rendering.Universal.ScriptableRenderer.AddRenderPasses (UnityEngine.Rendering.Universal.RenderingData& renderingData) (at Library/PackageCache/com.unity.render-pipelines.universal@14.0.3/Runtime/ScriptableRenderer.cs:1292)UnityEngine.Rendering.Universal.UniversalRenderPipeline.RenderSingleCamera (UnityEngine.Rendering.ScriptableRenderContext context, UnityEngine.Rendering.Universal.CameraData& cameraData, System.Boolean anyPostProcessingEnabled) (at Library/PackageCache/com.unity.render-pipelines.universal@14.0.3/Runtime/UniversalRenderPipeline.cs:572)UnityEngine.Rendering.Universal.UniversalRenderPipeline.RenderCameraStack (UnityEngine.Rendering.ScriptableRenderContext context, UnityEngine.Camera baseCamera) (at Library/PackageCache/com.unity.render-pipelines.universal@14.0.3/Runtime/UniversalRenderPipeline.cs:747)UnityEngine.Rendering.Universal.UniversalRenderPipeline.Render (UnityEngine.Rendering.ScriptableRenderContext renderContext, System.Collections.Generic.List`1[T] cameras) (at Library/PackageCache/com.unity.render-pipelines.universal@14.0.3/Runtime/UniversalRenderPipeline.cs:328)UnityEngine.Rendering.RenderPipeline.InternalRender (UnityEngine.Rendering.ScriptableRenderContext context, System.Collections.Generic.List`1[T] cameras) (at /Users/bokken/build/output/unity/unity/Runtime/Export/RenderPipeline/RenderPipeline.cs:52)UnityEngine.Rendering.RenderPipelineManager.DoRenderLoop_Internal (UnityEngine.Rendering.RenderPipelineAsset pipe, System.IntPtr loopPtr, UnityEngine.Object renderRequest, Unity.Collections.LowLevel.Unsafe.AtomicSafetyHandle safety) (at /Users/bokken/build/output/unity/unity/Runtime/Export/RenderPipeline/RenderPipelineManager.cs:126)UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr, Boolean&) (at /Users/bokken/build/output/unity/unity/Modules/IMGUI/GUIUtility.cs:189) {code}
Comments (1)
-
Mop_ADU
May 07, 2025 07:29
Dispose Stack trace: at System.Environment.get_StackTrace () [0x00000] in <13c0c460649d4ce49f991e2c222fa635>:0
at UnityEngine.Rendering.Universal.ScreenSpaceAmbientOcclusion.Dispose (System.Boolean disposing) [0x00001] in .\Library\PackageCache\com.unity.render-pipelines.universal@506b3deb0041\Runtime\RendererFeatures\ScreenSpaceAmbientOcclusion.cs:150
at UnityEngine.Rendering.Universal.ScriptableRendererFeature.Dispose () [0x00001] in .\Library\PackageCache\com.unity.render-pipelines.universal@506b3deb0041\Runtime\ScriptableRendererFeature.cs:101
at UnityEngine.Rendering.Universal.ScriptableRenderer.Dispose () [0x0001e] in .\Library\PackageCache\com.unity.render-pipelines.universal@506b3deb0041\Runtime\ScriptableRenderer.cs:719
at UnityEditor.Rendering.Universal.ShaderBuildPreprocessor.GetSupportedShaderFeaturesFromRenderers (UnityEngine.Rendering.Universal.UniversalRenderPipelineAsset& urpAsset, System.Collections.Generic.List`1[UnityEditor.Rendering.Universal.ShaderFeatures]& rendererFeaturesList, UnityEditor.Rendering.Universal.ShaderFeatures urpAssetShaderFeatures, System.Collections.Generic.List`1[UnityEngine.Rendering.Universal.ScreenSpaceAmbientOcclusionSettings]& ssaoRendererFeatures, System.Boolean stripUnusedVariants, System.Boolean& containsForwardRenderer, System.Boolean& everyRendererHasSSAO) [0x000a2] in .\Library\PackageCache\com.unity.render-pipelines.universal@506b3deb0041\Editor\ShaderBuildPreprocessor.cs:609
at UnityEditor.Rendering.Universal.ShaderBuildPreprocessor.GetSupportedShaderFeaturesFromAsset (UnityEngine.Rendering.Universal.UniversalRenderPipelineAsset& urpAsset, System.Collections.Generic.List`1[UnityEditor.Rendering.Universal.ShaderFeatures]& rendererFeaturesList, System.Collections.Generic.List`1[UnityEngine.Rendering.Universal.ScreenSpaceAmbientOcclusionSettings]& ssaoRendererFeatures, System.Boolean stripUnusedVariants, System.Boolean& containsForwardRenderer, System.Boolean& everyRendererHasSSAO) [0x001ba] in .\Library\PackageCache\com.unity.render-pipelines.universal@506b3deb0041\Editor\ShaderBuildPreprocessor.cs:550
at UnityEditor.Rendering.Universal.ShaderBuildPreprocessor.GetSupportedShaderFeaturesFromAssets (System.Collections.Generic.List`1[UnityEngine.Rendering.Universal.UniversalRenderPipelineAsset]& urpAssets, System.Collections.Generic.List`1[UnityEditor.Rendering.Universal.ShaderFeatures]& rendererFeaturesList, System.Boolean stripUnusedVariants) [0x00026] in .\Library\PackageCache\com.unity.render-pipelines.universal@506b3deb0041\Editor\ShaderBuildPreprocessor.cs:437
at UnityEditor.Rendering.Universal.ShaderBuildPreprocessor.HandleEnabledShaderStripping () [0x00022] in .\Library\PackageCache\com.unity.render-pipelines.universal@506b3deb0041\Editor\ShaderBuildPreprocessor.cs:420
at UnityEditor.Rendering.Universal.ShaderBuildPreprocessor.GatherShaderFeatures (System.Boolean isDevelopmentBuild) [0x0003d] in .\Library\PackageCache\com.unity.render-pipelines.universal@506b3deb0041\Editor\ShaderBuildPreprocessor.cs:260
at UnityEditor.Rendering.Universal.UpdateShaderPrefilteringDataBeforeBuild..ctor () [0x00008] in .\Library\PackageCache\com.unity.render-pipelines.universal@506b3deb0041\Editor\ShaderBuildPreprocessor.cs:108
at System.Reflection.RuntimeConstructorInfo.InternalInvoke (System.Reflection.RuntimeConstructorInfo , System.Object , System.Object[] , System.Exception& ) [0x00000] in <13c0c460649d4ce49f991e2c222fa635>:0
at System.Reflection.RuntimeConstructorInfo.InternalInvoke (System.Object obj, System.Object[] parameters, System.Boolean wrapExceptions) [0x00000] in <13c0c460649d4ce49f991e2c222fa635>:0
at System.RuntimeType.CreateInstanceMono (System.Boolean nonPublic, System.Boolean wrapExceptions) [0x00000] in <13c0c460649d4ce49f991e2c222fa635>:0
at System.RuntimeType.CreateInstanceSlow (System.Boolean publicOnly, System.Boolean wrapExceptions, System.Boolean skipCheckThis, System.Boolean fillCache) [0x00000] in <13c0c460649d4ce49f991e2c222fa635>:0
at System.RuntimeType.CreateInstanceDefaultCtor (System.Boolean publicOnly, System.Boolean skipCheckThis, System.Boolean fillCache, System.Boolean wrapExceptions, System.Threading.StackCrawlMark& stackMark) [0x00000] in <13c0c460649d4ce49f991e2c222fa635>:0
at System.Activator.CreateInstance (System.Type type, System.Boolean nonPublic, System.Boolean wrapExceptions) [0x00000] in <13c0c460649d4ce49f991e2c222fa635>:0
at System.Activator.CreateInstance (System.Type type, System.Boolean nonPublic) [0x00000] in <13c0c460649d4ce49f991e2c222fa635>:0
at System.Activator.CreateInstance (System.Type type) [0x00000] in <13c0c460649d4ce49f991e2c222fa635>:0
at UnityEditor.Build.BuildPipelineInterfaces.AddToListIfTypeImplementsInterface[T] (System.Type t, System.Object& o, System.Collections.Generic.List`1[T]& list) [0x00000] in <95707308f6f3498991e9df8902fe97ba>:0
at UnityEditor.Build.BuildPipelineInterfaces.InitializeBuildCallbacks (UnityEditor.Build.BuildPipelineInterfaces+BuildCallbacks findFlags) [0x00000] in <95707308f6f3498991e9df8902fe97ba>:0
at UnityEditor.BuildPipeline.BuildAssetBundlesInternal_Injected (UnityEditor.BuildAssetBundlesParameters& ) [0x00000] in <95707308f6f3498991e9df8902fe97ba>:0
at UnityEditor.BuildPipeline.BuildAssetBundlesInternal (UnityEditor.BuildAssetBundlesParameters buildParameters) [0x00000] in <95707308f6f3498991e9df8902fe97ba>:0
at UnityEditor.BuildPipeline.BuildAssetBundles (UnityEditor.BuildAssetBundlesParameters buildParameters) [0x00000] in <95707308f6f3498991e9df8902fe97ba>:0
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
- Unity CIL Linker fails on Player build when persistent listeners have "<" and ">" in their XML attribute names
- ”Lighting data asset ‘LightingData’ is incompatible with the current Unity version…” warnings are thrown when saving Indoors (URP) and Outdoors (URP) Scenes as Scene Templates
- [iOS] The screen blinks when transitioning from custom to Unity splash screen
- [macOS] ”Ignoring depth surface load action as it is memoryless” warnings are thrown when taking Game View Snapshot
- UI Builder Inspector scrolls back up when changes on an expanded but not fully displayed Inspector tab are saved
Resolution Note:
Unable to reproduce the issue after several attempts.
There will be a check added but without a clear reproduction step it's impossible to verify that the bug has been fixed.