# Crash in UniversalObjectLocatorFragment in 5.4.2, only in windows build

**URL:** <https://forums.unrealengine.com/t/crash-in-universalobjectlocatorfragment-in-5-4-2-only-in-windows-build/1892775>\
**Category:** Platform & Builds\
**Tags:** unreal-engine, question\
**Created:** [June 6, 2024, 6:51pm UTC](https://forums.unrealengine.com/t/crash-in-universalobjectlocatorfragment-in-5-4-2-only-in-windows-build/1892775 "2024-06-06T18:51:50Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![McShovel](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@McShovel](https://forums.unrealengine.com/u/McShovel)\
**Post date:** [June 6, 2024, 6:51pm UTC](https://forums.unrealengine.com/t/crash-in-universalobjectlocatorfragment-in-5-4-2-only-in-windows-build/1892775/1 "2024-06-06T18:51:50Z")

</div>

Hi, I’ve got a project that’s been built in 5.3.2, and it’s been working just fine. Today I decided to try porting it forward to 5.4.2 to compare performance differences.

I was able to get the project up and running, and it works fine in the editor. However, when I make a packaged build for windows (which succeeds) attempting to run the game results in an instant crash with the following:

```auto
Assertion failed: false [File:D:\build\++UE5\Sync\Engine\Source\Runtime\UniversalObjectLocator\Private\UniversalObjectLocatorFragment.cpp] [Line: 569] 
WARNING: POTENTIAL DATA LOSS! Universal Object Reference FragmentType Actor! This reference will be lost if re-saved.

```

Any suggestions?

---

<div class="post-metadata">

**Author:** ![Adrien\_Lucas](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Adrien\_Lucas](https://forums.unrealengine.com/u/Adrien_Lucas)\
**Post date:** [June 28, 2024, 4:05pm UTC](https://forums.unrealengine.com/t/crash-in-universalobjectlocatorfragment-in-5-4-2-only-in-windows-build/1892775/2 "2024-06-28T16:05:17Z")

</div>

Hi! Same problem here!  
I investigated quite a lot and it looks like it comes from the Level Sequences in my project.

After investigation, I noticed that the crash is caused by the Fragment Types not being registered yet. However UObjects are loaded in the PreInit phase of Unreal just before the fragment types. So when loading the LevelSequences, fragment types are not registered yet. This seems to be the cause of the crash.

Even though I don’t have any idea for a fix. There is no commit fixing this on the main branch, no pull request related to that.

If anyone has a fix I’ll be glad.  
And if I find one I’ll keep this thread updated!

Thanks,  
Adrien

---

<div class="post-metadata">

**Author:** ![Adrien\_Lucas](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Adrien\_Lucas](https://forums.unrealengine.com/u/Adrien_Lucas)\
**Post date:** [June 28, 2024, 5:50pm UTC](https://forums.unrealengine.com/t/crash-in-universalobjectlocatorfragment-in-5-4-2-only-in-windows-build/1892775/3 "2024-06-28T17:50:14Z")

</div>

I’ve got a fix, but it’s **ugly** and needs a source build of Unreal and some C++ skills.

**If you are as desperate** as I was here are the steps to follow.

1. Create a custom delegate, do it the way you prefer
2. Change these bindings to be bound to your delegate (only if not with editor)

```auto
Engine\Source\Runtime\UniversalObjectLocator\Private\UniversalObjectLocatorModule.cpp [27]
#if WITH_EDITOR
FDelayedAutoRegisterHelper(EDelayedRegisterRunPhase::ObjectSystemReady
#else
//Your delegate
#endif

```

```auto
Engine\Source\Runtime\Engine\Private\UnrealEngine.cpp [321]
#if WITH_EDITOR
FDelayedAutoRegisterHelper(EDelayedRegisterRunPhase::RequestFragmentTypes,
#else
//Your delegate
#endif

```

1. In `UniversalObjectLocatorFragment.cpp` execute your delegate the first time the function `bool FUniversalObjectLocatorFragment::Serialize(FArchive& Ar)` is called. Personnally I have put a simple `bool bHasRequestedFragmentTypesRegistering`

It should look like

```auto
if (FragmentTypeID == NAME_None)
{
	Reset();
}
else
{
   // ==== CHANGE ====
   if(!bHasRequestedFragmentTypesRegistering)
   {
        // Broadcast your delegate
        bHasRequestedFragmentTypesRegistering = true;
   }
   // ==== END CHANGE ====

   // Find the FragmentType
   const FFragmentType* SerializedFragmentType = FRegistry::Get().FindFragmentType(FragmentTypeID);

```

Compile, run and enjoy!

I hope Unreal comes with a better fix.

---

<div class="post-metadata">

**Author:** ![JenniferAndBob](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@JenniferAndBob](https://forums.unrealengine.com/u/JenniferAndBob)\
**Post date:** [January 16, 2025, 2:59pm UTC](https://forums.unrealengine.com/t/crash-in-universalobjectlocatorfragment-in-5-4-2-only-in-windows-build/1892775/4 "2025-01-16T14:59:08Z")

</div>

some c++ change，fix that bug

UniversalObjectLocatorFragment.cpp

static bool bReisgerObjectSystemReady = false;

bool FUniversalObjectLocatorFragment::Serialize(FArchive& Ar)  
{  
using namespace UE::UniversalObjectLocator;

```
if (Ar.IsLoading())
{
	FName FragmentTypeID;
	Ar << FragmentTypeID;

	if (FragmentTypeID == NAME_None)
	{
		Reset();
	}
	else
	{
		if (bReisgerObjectSystemReady == false)
		{
			bReisgerObjectSystemReady = true;
			FDelayedAutoRegisterHelper::RunAndClearDelayedAutoRegisterDelegates(EDelayedRegisterRunPhase::ObjectSystemReady);
		}

```

DelayedAutoRegister.cpp

void FDelayedAutoRegisterHelper::RunAndClearDelayedAutoRegisterDelegates(EDelayedRegisterRunPhase Phase)  
{  
UE\_LOG(LogTemp,Log,TEXT(“RunAndClearDelayedAutoRegisterDelegates EDelayedRegisterRunPhase:%d”), Phase);  
//checkf(!GPhasesAlreadyRun.Contains(Phase), TEXT(“Delayed Startup phase %d has already run - it is not expected to be run again!”), (int32)Phase);

```
if (!GPhasesAlreadyRun.Contains(Phase)) 
{
	// run all the delayed functions!
	GetDelayedAutoRegisterDelegate(Phase).Broadcast();
	GetDelayedAutoRegisterDelegate(Phase).Clear();

	GPhasesAlreadyRun.Add(Phase);
}

```

}

---

<div class="post-metadata">

**Author:** ![Democore](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Democore](https://forums.unrealengine.com/u/Democore)\
**Post date:** [August 15, 2025, 7:29am UTC](https://forums.unrealengine.com/t/crash-in-universalobjectlocatorfragment-in-5-4-2-only-in-windows-build/1892775/5 "2025-08-15T07:29:06Z")

</div>

Hi, I’m getting this exact issue in a 5.5.4 build. I am not familiar with compiling the engine, so I was wondering if this could have another fix?

I upgraded from 5.3.2 to 5.5.4. Already tried to build using an empty scene, which didn’t seem to help.

Edit:  
I made some progress. After making a Debug build, I opened the game with these commands:

.\MyGame.exe -log -Verbose -LogCmds=“UniversalObjectLocator VeryVerbose, LogStreaming Verbose, AssetRegistry Verbose”

Then in the logfile in the folder \MyGame\Saved\Logs I got the offending sequence printed out, with it’s entire asset path.

Removing the reference to this sequence in my GameInstance blueprint made the game not crash anymore.

---

<div class="post-metadata">

**Author:** ![Madix-3](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Madix-3](https://forums.unrealengine.com/u/Madix-3)\
**Post date:** [August 15, 2026, 5:45pm UTC](https://forums.unrealengine.com/t/crash-in-universalobjectlocatorfragment-in-5-4-2-only-in-windows-build/1892775/6 "2026-08-15T17:45:46Z")

</div>

We’re also on 5.5.4, and have the same issue, except it’s the build that fails.

Does anyone know if upgrading to 5.8 solves this?
