Hello,
I am trying to localize the game window title using ProjectDisplayedTitle and am failing the same way this post did Game crashes at launch in GPackageResourceManager after updating to Unreal 5.1 - #3 by byg_ben few years ago on 5.1, we are on 5.4 and crashing the same way.
The issue is that when accessing the string from a string table , the IPackageResourceManager::Initialize() was not called yet and IPackageResourceManager is therefore not ready yet.
GConfig->GetText(TEXT("/Script/EngineSettings.GeneralProjectSettings"), TEXT("ProjectDisplayedTitle"), WindowTitleOverride, GGameIni);
Before I start to mess with the initialization order, is this something that has been fixed in a future version maybe please?
We are using 5.4.
Thank you
Kind regards
Tom
Steps to Reproduce
This has been reproduced on PC Cooked Game build with 5.4
1) Open project settings -> Description
2) Set the “Project Displayed Title” to a value from string table
3) Cook and run the game to observe IPackageResourceManager is not yet initialized
Hi,
I didn’t see any internal reports of this crash, but I was able to reproduce it and logged bug report UE-295406 to investigate. I’ll pass along the fix once it’s available, perhaps FStringTableEngineBridge::GetAssetReference should initialize IPackageResourceManager before trying to access the string table asset but changing initialization order of modules based on the window title seems a bit risky.
Best,
Cody
Hi,
That seems like a good, safe workaround. I’ll reach out if we have a fix available that you can backport.
Best,
Cody
Hi Cody,
thank you! Glad to hear you were able to repro this. Indeed at this stage changing init order can be tricky, as a workaround currently we are posponing the window title update to a later stage of the boot, effectively causing a wrong value to be present for couple of seconds there, but it is a safer change.
Would definitely be interested in having a proper fix for this though.
Thank you
Kind regards
Tom