Patching remaining relocations crash, TArray Size error

Hi. I’ve recently encountered an issue I’ve never seen before, and there is no mention of it online.

For some reason all of a sudden when trying to compile, it will successfully compile everything but then started to “patch remaining relocations” which would then crash after about 15 seconds, giving this report:

Fatal error: [File:D:\build++UE5\Sync\Engine\Source\Runtime\Core\Private\Containers\Array.cpp] [Line: 8] Trying to resize TArray to an invalid size of 1

UnrealEditor_Core
UnrealEditor_CoreUObject
UnrealEditor_CoreUObject
UnrealEditor_CoreUObject
UnrealEditor_UnrealEd
UnrealEditor_UnrealEd
UnrealEditor_UnrealEd
UnrealEditor_Core
UnrealEditor_Core
UnrealEditor_Core
kernel32
ntdll

I did recently enable the online subsystem in private dependancies, but have recommented it as I saw in one obscure post that it may be related to this. Additionally I recently installed rider, but I’m not sure if it is related to this.

I’m using UE5.1 on Windows 11 using C++.

Any help would be really appreciated!

Hi. After trying many things all day it seemed that deleting my “derived data cache” (from enabling runtime virtual textures) as well as deleting binaries, saved and intermediate and then regenerating and rebuilding fixed the problem.

Very curious, if anyone knows why this was happening I’d love to hear how I can prevent this as I do plan to have RVTs in my project.

Thanks

1 Like