UE4 crash when building

I get this error when trying to build.

MachineId:0E56E0A8479ED71CC3ED55941719F033
EpicAccountId:c9e367bf5b824f2bb6629657f359835a

Access violation - code c0000005 (first/second chance not available)

“”

UE4Editor_Renderer!FHitProxyDrawingPolicyFactory::AddStaticMesh() [d:\buildfarm\buildmachine_++depot+ue4-releases+4.9\engine\source\runtime\renderer\private\scenehitproxyrendering.cpp:254]
UE4Editor_Renderer!FStaticMesh::AddToDrawLists() [d:\buildfarm\buildmachine_++depot+ue4-releases+4.9\engine\source\runtime\renderer\private\scenecore.cpp:308]
UE4Editor_Renderer!FPrimitiveSceneInfo::UpdateStaticMeshes() [d:\buildfarm\buildmachine_++depot+ue4-releases+4.9\engine\source\runtime\renderer\private\primitivesceneinfo.cpp:319]
UE4Editor_Renderer!FProjectedShadowInfo::AddSubjectPrimitive() [d:\buildfarm\buildmachine_++depot+ue4-releases+4.9\engine\source\runtime\renderer\private\shadowsetup.cpp:732]
UE4Editor_Renderer!FSceneRenderer::GatherShadowsForPrimitiveInner() [d:\buildfarm\buildmachine_++depot+ue4-releases+4.9\engine\source\runtime\renderer\private\shadowsetup.cpp:2000]
UE4Editor_Renderer!FSceneRenderer::GatherShadowPrimitives() [d:\buildfarm\buildmachine_++depot+ue4-releases+4.9\engine\source\runtime\renderer\private\shadowsetup.cpp:2177]
UE4Editor_Renderer!FDeferredShadingSceneRenderer::InitDynamicShadows() [d:\buildfarm\buildmachine_++depot+ue4-releases+4.9\engine\source\runtime\renderer\private\shadowsetup.cpp:2553]
UE4Editor_Renderer!FDeferredShadingSceneRenderer::InitViews() [d:\buildfarm\buildmachine_++depot+ue4-releases+4.9\engine\source\runtime\renderer\private\scenevisibility.cpp:2186]
UE4Editor_Renderer!FDeferredShadingSceneRenderer::Render() [d:\buildfarm\buildmachine_++depot+ue4-releases+4.9\engine\source\runtime\renderer\private\deferredshadingrenderer.cpp:800]
UE4Editor_Renderer!UpdateSceneCaptureContent_RenderThread() [d:\buildfarm\buildmachine_++depot+ue4-releases+4.9\engine\source\runtime\renderer\private\scenecapturerendering.cpp:132]
UE4Editor_Renderer!TGraphTask<FScene::UpdateSceneCaptureContents'::15’::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]

I am not sure what’s causing this and what I did to make it happen.

If I just build the lighting only it works fine.

Hi Robbie222 -

I see your crash occurred with KiteDemo. Can you be as specific as possible about what map (level) you were building lights (I am assuming, correct me if I am incorrect) in?

Thank You

Eric Ketchum

Hey Erick,

Thanks for looking into this.

I don’t know how you got to that conclusion but this is happening in my archviz project not the kite demo. If I remember correctly …that day I played around in the kite demo also. And that same day It started crashing .

The Machine ID above takes me to logs which reference a game called UE4-KiteDemo which I assumed meant it was the Epic Kite Demo. If you did open KiteDemo, can you make sure that it is closed and open you ArchViz project and attempt to crash it again and see if the callstack is the same as listed above and make sure to submit it.

Thank You

Eric Ketchum

Erick,

Tried it again with only archviz project opened. Here it is :

http://puu.sh/kfA9Q/c335025518.png

And the log files : http://puu.sh/kfAf8/623f49fd5b.rar

Hi Robbie222 -

I have been trying to reproduce this crash internally and so far have been unsuccessful. Can you possibly share a sample project that exhibits this crash? If you would like to keep it private you can link it to me via Private Message on the Forums.

Thank You

Eric Ketchum

Hey Eric,

Thanks for your interest.

Somehow I’ve managed to fix it. Not sure, but saving a different copy of the level and trying to fix some errors in the log during play seems to have removed the crash.