Crash in 4.9 in mobile preview when adding a SkyLight component

Hi, i am having this crash when after import a project from 4.8.3 to 4.9, i add a SkyLight component,
the crash only occours in MOBILE preview, but if i start a new project in 4.9 there is no problem, so i think the problem should be in some project settings

OS version 6.3.0.9600
Running 4 x64 processors
Exception was “Access violation - code c0000005 (first/second chance not available)”

Source context from “engine/source/runtime/rhi/public/rhiresources.h”

398 uint32 Stencil;
399 ClearValue.GetDepthStencil(Depth, Stencil);
400 return Depth;
401 }
402
403 uint32 GetStencilClearValue() const
404 {
405 float Depth;
406 uint32 Stencil;
407 ClearValue.GetDepthStencil(Depth, Stencil);
408 return Stencil;
409 }
410
411 const FClearValueBinding GetClearBinding() const
412 ***** {
413 return ClearValue;
414 }
415
416 private:
417 FClearValueBinding ClearValue;
418 uint32 NumMips;
419 uint32 NumSamples;
420 EPixelFormat Format;
421 uint32 Flags;
422 FLastRenderTimeContainer& LastRenderTime;
423 FLastRenderTimeContainer DefaultLastRenderTime;
424 FName TextureName;
425 };
426
427 class RHI_API FRHITexture2D : public FRHITexture

UE4Editor_RHI!FRHITexture::GetClearBinding() [d:\buildfarm\buildmachine_++depot+ue4-releases+4.9\engine\source\runtime\rhi\public\rhiresources.h:413]
UE4Editor_D3D11RHI!FD3D11DynamicRHI::RHISetRenderTargetsAndClear() [d:\buildfarm\buildmachine_++depot+ue4-releases+4.9\engine\source\runtime\windows\d3d11rhi\private\d3d11commands.cpp:978]
UE4Editor_Renderer!SetRenderTarget() [d:\buildfarm\buildmachine_++depot+ue4-releases+4.9\engine\source\runtime\rhi\public\rhiutilities.h:192]
UE4Editor_Renderer!FForwardShadingSceneRenderer::Render() [d:\buildfarm\buildmachine_++depot+ue4-releases+4.9\engine\source\runtime\renderer\private\forwardshadingrenderer.cpp:127]
UE4Editor_Renderer!CaptureSceneToScratchCubemap() [d:\buildfarm\buildmachine_++depot+ue4-releases+4.9\engine\source\runtime\renderer\private\reflectionenvironmentcapture.cpp:712]
UE4Editor_Renderer!TGraphTask<CaptureSceneIntoScratchCubemap'::26’::EURCMacro_CaptureCommand>::ExecuteTask() [d:\buildfarm\buildmachine_++depot+ue4-releases+4.9\engine\source\runtime\core\public\async\taskgraphinterfaces.h:779]
UE4Editor_Core!FTaskThread::ProcessTasks() [d:\buildfarm\buildmachine_++depot+ue4-releases+4.9\engine\source\runtime\core\private\async\taskgraph.cpp:539]
UE4Editor_Core!FTaskThread::ProcessTasksUntilQuit() [d:\buildfarm\buildmachine_++depot+ue4-releases+4.9\engine\source\runtime\core\private\async\taskgraph.cpp:340]
UE4Editor_RenderCore!RenderingThreadMain() [d:\buildfarm\buildmachine_++depot+ue4-releases+4.9\engine\source\runtime\rendercore\private\renderingthread.cpp:310]
UE4Editor_RenderCore!FRenderingThread::Run() [d:\buildfarm\buildmachine_++depot+ue4-releases+4.9\engine\source\runtime\rendercore\private\renderingthread.cpp:411]
UE4Editor_Core!FRunnableThreadWin::Run() [d:\buildfarm\buildmachine_++depot+ue4-releases+4.9\engine\source\runtime\core\private\windows\windowsrunnablethread.cpp:74]

found that the crash occours when HDR (Project Settings - Engine - Rendering - Mobile) is disabled

Same issue here.

Hi carf -

This is a known issue, UE-20639, and has been fixed internally. It should be fixed in an upcoming release, but if you would like to integrate the fix now, it is available via Github here:

https://github.com/EpicGames/UnrealEngine/commit/e99d6caf62734e3e39bb470d829de3eb200882ad

Thank You

Eric Ketchum

Thank you.