Search Issue Tracker

Fixed in 2018.3.X

Votes

0

Found in

2018.1.0b11

Issue ID

1014631

Regression

No

[HDRP][Template] Exceptions are thrown while switching platform to WebGL and assets are unlit, in High End SRP template project

Graphics - General

-

Exceptions are thrown while switching platform to WebGL and assets are unlit.

Steps to repro:
1. Open the Unity editor > Create a new project.
2. Select High-End SRP option from the Template drop-down menu > Create project.
3. Go to Build Settings > Select WebGL > Switch platform.

Observe the exceptions in the console window and unlit assets in the scene view.

Expected Result :
Assets in the scene should be lit.

Reproducible on :
2018.2.0a5, 2018.1.0b11, 2018.1.0b10, 2018.1.0b6.

Environment :
Occurring on Windows10, Windows 7, Mac 10.12

NOTE: For MAC 10.13, please refer this bug: https://fogbugz.unity3d.com/f/cases/1010262/

Stack trace:
UnityException: Failed to create 2D array texture because of invalid parameters.
UnityEngine.Texture2DArray.Internal_Create (UnityEngine.Texture2DArray mono, Int32 w, Int32 h, Int32 d, TextureFormat format, Boolean mipmap, Boolean linear) (at C:/buildslave/unity/build/Runtime/Export/Texture.bindings.cs:140)
UnityEngine.Texture2DArray..ctor (Int32 width, Int32 height, Int32 depth, TextureFormat format, Boolean mipmap, Boolean linear) (at C:/buildslave/unity/build/Runtime/Export/Texture.cs:434)
UnityEngine.Experimental.Rendering.HDPipeline.Lit.Build (UnityEngine.Experimental.Rendering.HDPipeline.HDRenderPipelineAsset hdAsset) (at C:/ProgramData/Unity/cache/packages/packages.unity.com/com.unity.render-pipelines.high-definition@1.1.1-preview/HDRP/Material/Lit/Lit.cs:276)
UnityEngine.Experimental.Rendering.HDPipeline.HDRenderPipeline+<HDRenderPipeline>c__AnonStorey0.<>m__0 (UnityEngine.Experimental.Rendering.HDPipeline.RenderPipelineMaterial material) (at C:/ProgramData/Unity/cache/packages/packages.unity.com/com.unity.render-pipelines.high-definition@1.1.1-preview/HDRP/HDRenderPipeline.cs:222)
System.Collections.Generic.List`1[UnityEngine.Experimental.Rendering.HDPipeline.RenderPipelineMaterial].ForEach (System.Action`1 action) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Collections.Generic/List.cs:361)
UnityEngine.Experimental.Rendering.HDPipeline.HDRenderPipeline..ctor (UnityEngine.Experimental.Rendering.HDPipeline.HDRenderPipelineAsset asset) (at C:/ProgramData/Unity/cache/packages/packages.unity.com/com.unity.render-pipelines.high-definition@1.1.1-preview/HDRP/HDRenderPipeline.cs:222)
UnityEngine.Experimental.Rendering.HDPipeline.HDRenderPipelineAsset.InternalCreatePipeline () (at C:/ProgramData/Unity/cache/packages/packages.unity.com/com.unity.render-pipelines.high-definition@1.1.1-preview/HDRP/HDRenderPipelineAsset.cs:14)
UnityEngine.Experimental.Rendering.RenderPipelineAsset.CreatePipeline () (at C:/buildslave/unity/build/Runtime/Export/RenderPipeline/RenderPipelineAsset.cs:19)
UnityEngine.Experimental.Rendering.RenderPipelineManager.PrepareRenderPipeline (IRenderPipelineAsset pipe) (at C:/buildslave/unity/build/Runtime/Export/RenderPipeline/RenderPipelineManager.cs:51)
UnityEngine.Experimental.Rendering.RenderPipelineManager.DoRenderLoop_Internal (IRenderPipelineAsset pipe, UnityEngine.Camera[] cameras, IntPtr loopPtr) (at C:/buildslave/unity/build/Runtime/Export/RenderPipeline/RenderPipelineManager.cs:24)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.