# URigHierarchy::Save | crash almost each hot recompile UE (5.1)

**URL:** <https://forums.unrealengine.com/t/urighierarchy-save-crash-almost-each-hot-recompile-ue-5-1/794673>\
**Category:** Blueprint\
**Tags:** bug, recompile, unreal-engine, bug-report, Blueprint, metahuman\
**Created:** [March 20, 2023, 9:34am UTC](https://forums.unrealengine.com/t/urighierarchy-save-crash-almost-each-hot-recompile-ue-5-1/794673 "2023-03-20T09:34:42Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Manking-1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Manking-1](https://forums.unrealengine.com/u/Manking-1)\
**Post date:** [March 20, 2023, 9:34am UTC](https://forums.unrealengine.com/t/urighierarchy-save-crash-almost-each-hot-recompile-ue-5-1/794673/1 "2023-03-20T09:34:42Z")

</div>

Hello!

in 50% of cases of hot recompilation, a crash occurs.  
mac m1 max, UE 5.1.

I have nothing in the project except two metahuman. But it is unclear why this is and how to fix it.

```auto
Assertion failed: (Index >= 0) & (Index < ArrayNum) [File:Runtime/Core/Public/Containers/Array.h] [Line: 763] Array index out of bounds: 999 from an array of size 0

URigHierarchy::Save(FArchive&) Address = 0x1d69ba9d7 (filename not found) [in UnrealEditor-ControlRig.dylib]
URigHierarchy::Serialize(FArchive&) Address = 0x1d69ba81a (filename not found) [in UnrealEditor-ControlRig.dylib]
FAsyncTask<FReload::ReplaceReferencesToReconstructedCDOs()::FFindRefTask>::DoTaskWork() Address = 0x13001fb4f (filename not found) [in UnrealEditor-UnrealEd.dylib]
FAsyncTaskBase::DoWork() Address = 0x1300155a4 (filename not found) [in UnrealEditor-UnrealEd.dylib]
FAsyncTaskBase::DoThreadedWork() Address = 0x13001f9de (filename not found) [in UnrealEditor-UnrealEd.dylib]
FQueuedThread::Run() Address = 0x10ef5f588 (filename not found) [in UnrealEditor-Core.dylib]
FRunnableThreadPThread::Run() Address = 0x10ef582c2 (filename not found) [in UnrealEditor-Core.dylib]
FRunnableThreadPThread::_ThreadProc(void*) Address = 0x10eebfd30 (filename not found) [in UnrealEditor-Core.dylib]
_pthread_start Address = 0x7ff8048e5259 (filename not found) [in libsystem_pthread.dylib]
thread_start Address = 0x7ff8048e0c7b (filename not found) [in libsystem_pthread.dylib]

```

---

<div class="post-metadata">

**Author:** ![ziocleto](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ziocleto](https://forums.unrealengine.com/u/ziocleto)\
**Post date:** [May 20, 2023, 5:04pm UTC](https://forums.unrealengine.com/t/urighierarchy-save-crash-almost-each-hot-recompile-ue-5-1/794673/2 "2023-05-20T17:04:08Z")

</div>

Occuring to me as well, started from 5.1 I think.  
Very sus.

Under Windows.
