# Vertex Declaration Crash in 4.17.2

**URL:** <https://forums.unrealengine.com/t/vertex-declaration-crash-in-4-17-2/405450>\
**Category:** Asset Creation\
**Tags:** UE4-17, unreal-engine, Instanced-Mesh, bug-report, question\
**Created:** [September 26, 2017, 8:10pm UTC](https://forums.unrealengine.com/t/vertex-declaration-crash-in-4-17-2/405450 "2017-09-26T20:10:03Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![lucasncv](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@lucasncv](https://forums.unrealengine.com/u/lucasncv)\
**Post date:** [September 26, 2017, 8:10pm UTC](https://forums.unrealengine.com/t/vertex-declaration-crash-in-4-17-2/405450/1 "2017-09-26T20:10:03Z")

</div>

Hello! Just updated to 4.17.2 hoping that InstancedStaticMesh related bugs were fixed, but I’m now experiencing a crash.

The output is:

```
Fatal error: [File:D:\Build\++UE4+Release-4.17+Compile\Sync\Engine\Source\Runtime\Windows\D3D11RHI\Private\D3D11VertexDeclaration.cpp] [Line: 49] 
Unknown RHI vertex element type 0

```

The call stack:

```
>	FD3D11VertexDeclarationKey::FD3D11VertexDeclarationKey Line 49	C++
 	FD3D11DynamicRHI::RHICreateVertexDeclaration Line 97	C++
 	FDynamicRHI::CreateVertexDeclaration_RenderThread Line 1972	C++
 	FRHICommandListImmediate::CreateVertexDeclaration Line 2626	C++
 	RHICreateVertexDeclaration Line 3503	C++
 	FVertexFactory::InitDeclaration Line 301	C++
 	FInstancedStaticMeshVertexFactory::InitRHI Line 465	C++
 	FRenderResource::InitResource Line 33	C++
 	TGraphTask<`BeginInitResource'::`2'::EURCMacro_InitCommand>::ExecuteTask Line 784	C++
 	FNamedTaskThread::ProcessTasksNamedThread Line 650	C++
 	FNamedTaskThread::ProcessTasksUntilQuit Line 559	C++
 	RenderingThreadMain Line 325	C++
 	FRenderingThread::Run Line 476	C++
 	FRunnableThreadWin::Run Line 76	C++
 	FRunnableThreadWin::GuardedRun Line 25	C++
 	[External Code]

```

The FVertexDeclarationElementList contains 14 elements, the last 5 have VET\_None type. Those seem to be added in InstancedStaticMesh.cpp at line 455, and all 5 vertex buffers seem to be NULL.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_d33fe9f7](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_d33fe9f7](https://forums.unrealengine.com/u/anonymous_user_d33fe9f7)\
**Post date:** [September 27, 2017, 12:49pm UTC](https://forums.unrealengine.com/t/vertex-declaration-crash-in-4-17-2/405450/2 "2017-09-27T12:49:44Z")

</div>

Could be related to: [Unreal Engine Issues and Bug Tracker (UE-50348)](https://issues.unrealengine.com/issue/UE-50348) ?

---

<div class="post-metadata">

**Author:** ![lucasncv](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@lucasncv](https://forums.unrealengine.com/u/lucasncv)\
**Post date:** [September 27, 2017, 1:17pm UTC](https://forums.unrealengine.com/t/vertex-declaration-crash-in-4-17-2/405450/3 "2017-09-27T13:17:29Z")

</div>

For sure. It took two days for this question to go live for some reason. If anyone sees this, I’ve posted a workaround [here](https://answers.unrealengine.com/questions/709850/crash-in-4172-with-instanced-static-meshes-unknown.html).
