# FMODSettings has uninitialized properties. Accessed too early?

**URL:** <https://qa.fmod.com/t/fmodsettings-has-uninitialized-properties-accessed-too-early/14690>\
**Category:** Unreal Engine\
**Created:** [May 17, 2019, 4:42pm UTC](https://qa.fmod.com/t/fmodsettings-has-uninitialized-properties-accessed-too-early/14690 "2019-05-17T16:42:30Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![h2o](https://avatars.discourse-cdn.com/v4/letter/h/35a633/32.png) [@h2o](https://qa.fmod.com/u/h2o)\
**Post date:** [May 17, 2019, 4:42pm UTC](https://qa.fmod.com/t/fmodsettings-has-uninitialized-properties-accessed-too-early/14690/1 "2019-05-17T16:42:30Z")

</div>

Hello. We have get a crash in packaged game. Package config is Development. FMOD plugin is integrated and turned on, all setup is made using documentation. When we starts dedicated server it starts fine. But client crashes. The thing is that we did not included map where FMOD assets is used, so in this package FMOD is just included and turned on. In Editor everything works fine.  
UE 4.21. FMOD 2.0 for UE 4.21

**What is the reason or how could we fix that?**

![image](https://canada1.discourse-cdn.com/flex036/uploads/fmod/original/1X/8379be3bd6c9a61ae8f2fae638379027a7fcd6b1.png)

> [@h2o](#):
>
> - [2019.05.17-14.07.35:723][0]LogWindows: Error: === Critical error: ===
> - [2019.05.17-14.07.35:723][0]LogWindows: Error:
> - [2019.05.17-14.07.35:724][0]LogWindows: Error: Assertion failed: ConfigClass-\>PropertyLink != nullptr || (ConfigClass-\>GetSuperStruct() && ConfigClass-\>PropertiesSize == ConfigClass-\>GetSuperStruct()-\>PropertiesSize) || ConfigClass-\>PropertiesSize == 0 || GIsRequestingExit [File:C:\Builds\Engine\UnrealEngine-release-4.21\Engine\Source\Runtime\CoreUObject\Private\UObject\Obj.cpp] [Line: 1952]
> - [2019.05.17-14.07.35:724][0]LogWindows: Error: class FMODSettings has uninitialized properties. Accessed too early?
> - [2019.05.17-14.07.35:724][0]LogWindows: Error:
> - [2019.05.17-14.07.35:725][0]LogWindows: Error:
> - [2019.05.17-14.07.35:725][0]LogWindows: Error: [Callstack] 0x00007ffe1c8da388 KERNELBASE.dll!UnknownFunction 
> - [2019.05.17-14.07.35:726][0]LogWindows: Error: [Callstack] 0x00007ff6f581e536 CityZ.exe!FWindowsErrorOutputDevice::Serialize() [c:\builds\engine\unrealengine-release-4.21\engine\source\runtime\core\private\windows\windowserroroutputdevice.cpp:63]
> - [2019.05.17-14.07.35:726][0]LogWindows: Error: [Callstack] 0x00007ff6f55ea517 CityZ.exe!FOutputDevice::LogfImpl() [c:\builds\engine\unrealengine-release-4.21\engine\source\runtime\core\private\misc\outputdevice.cpp:71]
> - [2019.05.17-14.07.35:726][0]LogWindows: Error: [Callstack] 0x00007ff6f5572f89 CityZ.exe!FDebug::AssertFailed() [c:\builds\engine\unrealengine-release-4.21\engine\source\runtime\core\private\misc\assertionmacros.cpp:417]
> - [2019.05.17-14.07.35:727][0]LogWindows: Error: [Callstack] 0x00007ff6f5acd26e CityZ.exe!UObject::LoadConfig() [c:\builds\engine\unrealengine-release-4.21\engine\source\runtime\coreuobject\private\uobject\obj.cpp:1948]
> - [2019.05.17-14.07.35:729][0]LogWindows: Error: [Callstack] 0x00007ff6f5b7c61f CityZ.exe!FObjectInitializer::PostConstructInit() [c:\builds\engine\unrealengine-release-4.21\engine\source\runtime\coreuobject\private\uobject\uobjectglobals.cpp:2822]
> - [2019.05.17-14.07.35:730][0]LogWindows: Error: [Callstack] 0x00007ff6f5b46b12 CityZ.exe!FObjectInitializer::~FObjectInitializer() [c:\builds\engine\unrealengine-release-4.21\engine\source\runtime\coreuobject\private\uobject\uobjectglobals.cpp:2701]
> - [2019.05.17-14.07.35:730][0]LogWindows: Error: [Callstack] 0x00007ff6f592412c CityZ.exe!UClass::CreateDefaultObject() [c:\builds\engine\unrealengine-release-4.21\engine\source\runtime\coreuobject\private\uobject\class.cpp:3020]
> - [2019.05.17-14.07.35:730][0]LogWindows: Error: [Callstack] 0x00007ff6f4d706a2 CityZ.exe!FFMODStudioModule::StartupModule() [c:\builds\perforce\survivors\plugins\fmodstudio\source\fmodstudio\private\fmodstudiomodule.cpp:471]
> - [2019.05.17-14.07.35:731][0]LogWindows: Error: [Callstack] 0x00007ff6f5645f0e CityZ.exe!FModuleManager::LoadModuleWithFailureReason() [c:\builds\engine\unrealengine-release-4.21\engine\source\runtime\core\private\modules\modulemanager.cpp:429]
> - [2019.05.17-14.07.35:731][0]LogWindows: Error: [Callstack] 0x00007ff6f585127f CityZ.exe!FModuleDescriptor::LoadModulesForPhase() [c:\builds\engine\unrealengine-release-4.21\engine\source\runtime\projects\private\moduledescriptor.cpp:593]
> - [2019.05.17-14.07.35:731][0]LogWindows: Error: [Callstack] 0x00007ff6f5860e21 CityZ.exe!TryLoadModulesForPlugin() [c:\builds\engine\unrealengine-release-4.21\engine\source\runtime\projects\private\pluginmanager.cpp:922]
> - [2019.05.17-14.07.35:732][0]LogWindows: Error: [Callstack] 0x00007ff6f5850f28 CityZ.exe!FPluginManager::LoadModulesForEnabledPlugins() [c:\builds\engine\unrealengine-release-4.21\engine\source\runtime\projects\private\pluginmanager.cpp:987]
> - [2019.05.17-14.07.35:732][0]LogWindows: Error: [Callstack] 0x00007ff6f4ad327c CityZ.exe!FEngineLoop::PreInit() [c:\builds\engine\unrealengine-release-4.21\engine\source\runtime\launch\private\launchengineloop.cpp:2015]
> - [2019.05.17-14.07.35:733][0]LogWindows: Error: [Callstack] 0x00007ff6f4acbd43 CityZ.exe!GuardedMain() [c:\builds\engine\unrealengine-release-4.21\engine\source\runtime\launch\private\launch.cpp:135]
> - [2019.05.17-14.07.35:733][0]LogWindows: Error: [Callstack] 0x00007ff6f4acbfca CityZ.exe!GuardedMainWrapper() [c:\builds\engine\unrealengine-release-4.21\engine\source\runtime\launch\private\windows\launchwindows.cpp:145]
> - [2019.05.17-14.07.35:733][0]LogWindows: Error: [Callstack] 0x00007ff6f4adafc1 CityZ.exe!WinMain() [c:\builds\engine\unrealengine-release-4.21\engine\source\runtime\launch\private\windows\launchwindows.cpp:276]
> - [2019.05.17-14.07.35:734][0]LogWindows: Error: [Callstack] 0x00007ff6f92af1a2 CityZ.exe!\_\_scrt\_common\_main\_seh() [d:\agent\_work\1\s\src\vctools\crt\vcstartup\src\startup\exe\_common.inl:288]
> - [2019.05.17-14.07.35:735][0]LogWindows: Error: [Callstack] 0x00007ffe1df33034 KERNEL32.DLL!UnknownFunction 
> - [2019.05.17-14.07.35:735][0]LogWindows: Error: [Callstack] 0x00007ffe1fd71431 ntdll.dll!UnknownFunction 
> - [2019.05.17-14.07.35:736][0]LogWindows: Error:
> - [2019.05.17-14.07.35:753][0]LogExit: Executing StaticShutdownAfterError
> - [2019.05.17-14.07.35:754][0]LogWindows: FPlatformMisc::RequestExit(1)
> - [2019.05.17-14.07.35:764][0]Log file closed, 05/17/19 17:07:35

---

<div class="post-metadata">

**Author:** ![cameron-fmod](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/cameron-fmod/32/261_2.png) [@cameron-fmod](https://qa.fmod.com/u/cameron-fmod)\
**Post date:** [May 23, 2019, 5:01am UTC](https://qa.fmod.com/t/fmodsettings-has-uninitialized-properties-accessed-too-early/14690/2 "2019-05-23T05:01:32Z")

</div>

I’m looking into this at the moment and should have a solution in the next couple of days.

---

<div class="post-metadata">

**Author:** ![h2o](https://avatars.discourse-cdn.com/v4/letter/h/35a633/32.png) [@h2o](https://qa.fmod.com/u/h2o)\
**Post date:** [May 23, 2019, 5:17am UTC](https://qa.fmod.com/t/fmodsettings-has-uninitialized-properties-accessed-too-early/14690/3 "2019-05-23T05:17:40Z")

</div>

hi. changing the loading phase solved this crash and music in packaged build seems to works now

```
> "Name": "FMODStudio",

```

> ```
> "Type": "CookedOnly",
> "LoadingPhase": "PreDefault"
> 
> ```

---

<div class="post-metadata">

**Author:** ![cameron-fmod](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/cameron-fmod/32/261_2.png) [@cameron-fmod](https://qa.fmod.com/u/cameron-fmod)\
**Post date:** [May 24, 2019, 3:38am UTC](https://qa.fmod.com/t/fmodsettings-has-uninitialized-properties-accessed-too-early/14690/4 "2019-05-24T03:38:58Z")

</div>

It looks like that is the cause of the issue, it was changed recently in an attempt to fix another issue.

I am currently investigating a solution that will fix this and the previous issue.

---

<div class="post-metadata">

**Author:** ![savagebeatscj](https://avatars.discourse-cdn.com/v4/letter/s/b5a626/32.png) [@savagebeatscj](https://qa.fmod.com/u/savagebeatscj)\
**Post date:** [June 1, 2019, 12:23pm UTC](https://qa.fmod.com/t/fmodsettings-has-uninitialized-properties-accessed-too-early/14690/5 "2019-06-01T12:23:07Z")

</div>

i have same issue i dont know where to find the loading phase im not a programmer can u talk me step by step through this error , my visual studio wont generate if its on there

---

<div class="post-metadata">

**Author:** ![cameron-fmod](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/cameron-fmod/32/261_2.png) [@cameron-fmod](https://qa.fmod.com/u/cameron-fmod)\
**Post date:** [June 4, 2019, 3:23am UTC](https://qa.fmod.com/t/fmodsettings-has-uninitialized-properties-accessed-too-early/14690/6 "2019-06-04T03:23:47Z")

</div>

It should just be a matter of opening the `{ProjectDirectory}\Plugins\FMODStudio\FMODStudio.uplugin` and changing:

```auto
"Name" : "FMODStudio",
"Type" : "Runtime",
"LoadingPhase" : "PreEarlyLoadingScreen"

```

to:

```auto
"Name" : "FMODStudio",
"Type" : "Runtime",
"LoadingPhase" : "PreLoadingScreen"

```
