TQuadTree assertion Ln: 250

Hi,

The TQuadTree is crashing after a while in Ln: 250. The variable bInternal is true.

template <typename ElementType, int32 NodeCapacity>
void TQuadTree<ElementType, NodeCapacity>::InsertElementRecursive(const ElementType& Element, const FBox2D& Box)
{
	TreeType* Quads[4];
	const int32 NumQuads = GetQuads(Box, Quads);
	if (NumQuads == 0)
	{
		// This should only happen for leaves
		// Ln: 250
		check(!bInternal);

I’m adding element number 337 with a FBox2(FVector2D(-42.7, 3.8), FVector2D(-43.9,9.5)). The quad tree is created with the limits min(-2700, -2700) max(2700, 2700) min quad size is 8.

LogFile:

[2018.02.07-06.10.25:617][552]LogWindows: Windows GetLastError: The operation completed successfully. (0)
[2018.02.07-06.10.25:618][552]LogWindows: Error: === Critical error: ===
[2018.02.07-06.10.25:618][552]LogWindows: Error: 
[2018.02.07-06.10.25:618][552]LogWindows: Error: Assertion failed: !bInternal [File:C:\Unreal\Engine\UE_4.18\Engine\Source\Runtime\Engine\Public\GenericQuadTree.h] [Line: 250] 

Thanks

Problem solved.

I had to set a higher MaxNodeCount in the template arguments.