Hi, so as said in the title, UE4 crashes the moment I try to spawn an actor, which is defined in BP with any components other than a Static Mesh, eg. Point Lights. The error logger doesn’t even come out. When I checked my logs, they end abruptly without any mention of a crash. The last thing in the logs would be a UE_LOG I outputted in C++ just before the spawn.
However, the moment I remove this extra component, leaving it as just an actor with an inherited Static Mesh Component, it works fine with no problems.
I’m hoping that I have just overseen something, like having to use another function for spawning complex actors or something.
Having it crash while attached by VS gives this message: Unhandled exception at 0x000007FEE5C7B159 (UE4Editor-Core.dll) in UE4Editor.exe: 0xC0000005: Access violation reading location 0xFFFFFFFFFFFFFFFF.
Some side notes:
The class that is trying to spawn itself inherits from AStaticMeshActor.
I will try to provide logs and stuff when needed. But I will have to take out some stuff - especially directory names and such.
VS also crashes at this particular block of code:
void* NewPtr = NULL;
if (Alignment != DEFAULT_ALIGNMENT)
{
Alignment = FMath::Max(NewSize >= 16 ? (uint32)16 : (uint32)8, Alignment);
NewPtr = scalable_aligned_realloc(Ptr, NewSize, Alignment);
}
else
{
NewPtr = scalable_realloc(Ptr, NewSize);
}