Download

Project crashes in UE4.9 when i add a SkyLight component

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”

<SOURCE START>
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
<SOURCE END>

<CALLSTACK START>
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 askgraphinterfaces.h:779]
UE4Editor_Core!FTaskThread::ProcessTasks() [d:\buildfarm\buildmachine_++depot+ue4-releases+4.9\engine\source\runtime\core\private\async askgraph.cpp:539]
UE4Editor_Core!FTaskThread::ProcessTasksUntilQuit() [d:\buildfarm\buildmachine_++depot+ue4-releases+4.9\engine\source\runtime\core\private\async askgraph.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]
<CALLSTACK END>

Make sure to report this on answerhub + include all needed information → e.g the detailed steps how to reproduce the crash, the crash log,… :slight_smile:
https://answers.unrealengine.com/

The crash is only in MOBILE preview

Carf, it is better to report crashes & bugs on the AnswerHub, the forums are geared more towards discussions.

Thanks. I reported in AnswerHub, but is hard to get answers there.
Meanwhile i found that the crash occours only when HDR (Project Settings - Engine - Rendering - Mobile) is disabled