4-26 Custom Instanced Static Mesh crashes - IsInRenderingThread() assertion failed

Hi everybody.
I am attempting to create a custom Instanced Static Mesh Component, in order to have an exposed buffer to which I’m going to inject data.
I have merely copy-pasted the source code for the ISM and changed the names of the classes, and disabled some functions that are not critical (Or so I have thought) to the functionality of what I’m trying to acheive.
Everything compiles just fine, but the editor won’t start up.
At 75%, it crashes, giving the following message:
Error reentered: Assertion failed: IsInRenderingThread() [File:D:/Build/++UE4/Sync/Engine/Source/Runtime/Windows/D3D11RHI/Private/D3D11UniformBuffer.cpp] [Line: 355]

The code is divided into three files that I have uploaded here.
The weird thing is that I have barely changed anything from the source code. The only thing that I changed that I figure could cause this is related to the InstancedStaticMeshVertexFactoryShaderParameters. It now inherits from FVertexFactoryShaderParameters, instead of FLocalVertexFactoryShaderParameters (Because the latter gave me repeated linker errors).
If anyone has any idea what this is, please let me know. I’m at a complete loss.
IndirectISM.cpp (123.4 KB)
IndirectISM.h (24.9 KB)
IndirectISMComponent.h (22.9 KB)

If you still haven’t solved this my thoughts are that

IMPLEMENT_GLOBAL_SHADER_PARAMETER_STRUCT(FIndirectInstancedStaticMeshVertexFactoryUniformShaderParameters, "InstanceVF");

In IndirectISM.cpp line 63 is the problem. I believe you cannot use “InstanceVF” because it is used in InstancedStaticMesh and if it is not unique it sends a error.