Unity build failing due to FMOD on CI/CD machine but works on local machines

Hi, I’ve been struggling with this issue for the last month and I can’t figure out what is causing our builds to fail. I’ve made some changed to our unity project repo to move the FMOD studio project out and just build the banks to the unity project.
Me and my coworker can build the project locally on our machines with no problem. When the linux box tries to build the project it gets a fatal error. This was not an issue before so I’m guessing its something to do with the banks?

Here is the part in the logs where it fails

Opening scene 'Assets/Scenes/Init.unity'

Unloading 108 Unused Serialized files (Serialized files now loaded: 0)

Loaded scene 'Assets/Scenes/Init.unity'

Deserialize: 2.962 ms

Integration: 453.491 ms

Integration of assets: 0.039 ms

Thread Wait Time: 0.010 ms

Total Operation Time: 456.502 ms

Unloading 260 unused Assets / (0.7 MB). Loaded Objects now: 10685.

Memory consumption went from 303.4 MB to 302.7 MB.

Total: 40.390190 ms (FindLiveObjects: 0.768960 ms CreateObjectMapping: 0.338180 ms MarkObjects: 38.360760 ms DeleteObjects: 0.920360 ms)

DisplayProgressbar: Calculate Asset Dependency Data

DisplayProgressbar: Add Hash To Bundle Name Task

DisplayProgressbar: Strip Unused Sprite Sources

DisplayProgressbar: Create Built In Bundle

DisplayProgressbar: Create Mono Script Bundle

DisplayProgressbar: Post Dependency Callback

FMOD: Event cache is missing or in an old format; creating a new instance.

UnityEngine.Debug:ExtractStackTraceNoAlloc (byte*,int,string)

UnityEngine.StackTraceUtility:ExtractStackTrace () (at /home/bokken/build/output/unity/unity/Runtime/Export/Scripting/StackTrace.cs:37)

UnityEngine.DebugLogHandler:Internal_Log (UnityEngine.LogType,UnityEngine.LogOption,string,UnityEngine.Object)

UnityEngine.DebugLogHandler:LogFormat (UnityEngine.LogType,UnityEngine.Object,string,object[])

UnityEngine.Logger:Log (UnityEngine.LogType,object)

UnityEngine.Debug:Log (object)

FMODUnity.RuntimeUtils:DebugLog (string) (at Assets/Plugins/FMOD/src/RuntimeUtils.cs:548)

FMODUnity.EventManager:UpdateCache () (at Assets/Plugins/FMOD/src/Editor/EventManager.cs:85)

FMODUnity.EventManager:RefreshBanks () (at Assets/Plugins/FMOD/src/Editor/EventManager.cs:32)

FMODUnity.EventManager:BuildTargetChanged () (at Assets/Plugins/FMOD/src/Editor/EventManager.cs:1053)

FMODUnity.EventManager/<>c:<.cctor>b__15_0 () (at Assets/Plugins/FMOD/src/Editor/EventManager.cs:570)

FMODUnity.BuildStatusWatcher:SetBuildInProgress (bool) (at Assets/Plugins/FMOD/src/Editor/EditorUtils.cs:1710)

FMODUnity.BuildStatusWatcher/<>c:<Startup>b__6_0 (UnityEditor.Build.Pipeline.Interfaces.IBuildParameters,UnityEditor.Build.Pipeline.Interfaces.IDependencyData) (at Assets/Plugins/FMOD/src/Editor/EditorUtils.cs:1751)

UnityEditor.Build.Pipeline.BuildCallbacks:PostDependency (UnityEditor.Build.Pipeline.Interfaces.IBuildParameters,UnityEditor.Build.Pipeline.Interfaces.IDependencyData) (at ./Library/PackageCache/com.unity.scriptablebuildpipeline/Editor/Shared/BuildCallbacks.cs:45)

UnityEditor.Build.Pipeline.Tasks.PostDependencyCallback:Run () (at ./Library/PackageCache/com.unity.scriptablebuildpipeline/Editor/Tasks/PostDependencyCallback.cs:28)

UnityEditor.Build.Pipeline.BuildTasksRunner:Run (System.Collections.Generic.IList`1<UnityEditor.Build.Pipeline.Interfaces.IBuildTask>,UnityEditor.Build.Pipeline.Interfaces.IBuildContext) (at ./Library/PackageCache/com.unity.scriptablebuildpipeline/Editor/Shared/BuildTasksRunner.cs:56)

UnityEditor.Build.Pipeline.ContentPipeline:BuildAssetBundles (UnityEditor.Build.Pipeline.Interfaces.IBundleBuildParameters,UnityEditor.Build.Pipeline.Interfaces.IBundleBuildContent,UnityEditor.Build.Pipeline.Interfaces.IBundleBuildResults&,System.Collections.Generic.IList`1<UnityEditor.Build.Pipeline.Interfaces.IBuildTask>,UnityEditor.Build.Pipeline.Interfaces.IContextObject[]) (at ./Library/PackageCache/com.unity.scriptablebuildpipeline/Editor/ContentPipeline.cs:157)

UnityEditor.AddressableAssets.Build.DataBuilders.BuildScriptPackedMode:DoBuild<UnityEditor.AddressableAssets.Build.AddressablesPlayerBuildResult> (UnityEditor.AddressableAssets.Build.AddressablesDataBuilderInput,UnityEditor.AddressableAssets.Build.DataBuilders.AddressableAssetsBuildContext) (at ./Library/PackageCache/com.unity.addressables/Editor/Build/DataBuilders/BuildScriptPackedMode.cs:343)

UnityEditor.AddressableAssets.Build.DataBuilders.BuildScriptPackedMode:BuildDataImplementation<UnityEditor.AddressableAssets.Build.AddressablesPlayerBuildResult> (UnityEditor.AddressableAssets.Build.AddressablesDataBuilderInput) (at ./Library/PackageCache/com.unity.addressables/Editor/Build/DataBuilders/BuildScriptPackedMode.cs:133)

UnityEditor.AddressableAssets.Build.DataBuilders.BuildScriptBase:BuildData<UnityEditor.AddressableAssets.Build.AddressablesPlayerBuildResult> (UnityEditor.AddressableAssets.Build.AddressablesDataBuilderInput) (at ./Library/PackageCache/com.unity.addressables/Editor/Build/DataBuilders/BuildScriptBase.cs:103)

UnityEditor.AddressableAssets.Settings.AddressableAssetSettings:BuildPlayerContentImpl (UnityEditor.AddressableAssets.Build.AddressablesDataBuilderInput,bool) (at ./Library/PackageCache/com.unity.addressables/Editor/Settings/AddressableAssetSettings.cs:3039)

UnityEditor.AddressableAssets.Settings.AddressableAssetSettings:BuildPlayerContent (UnityEditor.AddressableAssets.Build.AddressablesPlayerBuildResult&,UnityEditor.AddressableAssets.Build.AddressablesDataBuilderInput) (at ./Library/PackageCache/com.unity.addressables/Editor/Settings/AddressableAssetSettings.cs:2948)

UnityEditor.AddressableAssets.GUI.AddressableAssetsSettingsGroupEditor:BuildAddressablesWithResult (UnityEditor.AddressableAssets.GUI.AddressableAssetsSettingsGroupEditor/BuildMenuContext) (at ./Library/PackageCache/com.unity.addressables/Editor/GUI/AddressableAssetsSettingsGroupEditor.cs:571)

AddressablesPlayerBuildProcessor:DefaultBuild (UnityEditor.AddressableAssets.Settings.AddressableAssetSettings) (at ./Library/PackageCache/com.unity.addressables/Editor/Build/AddressablesPlayerBuildProcessor.cs:143)

AddressablesPlayerBuildProcessor:PrepareForPlayerbuild (UnityEditor.AddressableAssets.Settings.AddressableAssetSettings,UnityEditor.Build.BuildPlayerContext,bool) (at ./Library/PackageCache/com.unity.addressables/Editor/Build/AddressablesPlayerBuildProcessor.cs:100)

AddressablesPlayerBuildProcessor:PrepareForBuild (UnityEditor.Build.BuildPlayerContext) (at ./Library/PackageCache/com.unity.addressables/Editor/Build/AddressablesPlayerBuildProcessor.cs:79)

UnityEditor.Build.BuildPipelineInterfaces:PreparePlayerBuild (UnityEditor.Build.BuildPlayerContext) (at /home/bokken/build/output/unity/unity/Editor/Mono/BuildPipeline/BuildPipelineInterfaces.cs:493)

UnityEditor.BuildPipeline:PreparePlayerBuild (UnityEditor.BuildPlayerOptions) (at /home/bokken/build/output/unity/unity/Editor/Mono/BuildPipeline.bindings.cs:313)

UnityEditor.BuildPipeline:BuildPlayerInternalNoCheck (string[],string,string,UnityEditor.BuildTargetGroup,UnityEditor.BuildTarget,int,UnityEditor.BuildOptions,string[],bool)

UnityEditor.BuildPipeline:BuildPlayerInternal (string[],string,string,UnityEditor.BuildTargetGroup,UnityEditor.BuildTarget,int,UnityEditor.BuildOptions,string[]) (at /home/bokken/build/output/unity/unity/Editor/Mono/BuildPipeline.bindings.cs:531)

UnityEditor.BuildPipeline:BuildPlayer (string[],string,string,UnityEditor.BuildTargetGroup,UnityEditor.BuildTarget,int,UnityEditor.BuildOptions,string[]) (at /home/bokken/build/output/unity/unity/Editor/Mono/BuildPipeline.bindings.cs:415)

UnityEditor.BuildPipeline:BuildPlayer (UnityEditor.BuildPlayerOptions) (at /home/bokken/build/output/unity/unity/Editor/Mono/BuildPipeline.bindings.cs:361)

Branch.Editor.BuildScript:Build (UnityEditor.BuildTarget,int,System.Collections.Generic.Dictionary`2<string, string>) (at Assets/Editor/BuildScript.cs:157)

Branch.Editor.BuildScript:Build () (at Assets/Editor/BuildScript.cs:52)

(Filename: Assets/Plugins/FMOD/src/RuntimeUtils.cs Line: 548)

Start importing Assets/Plugins/FMOD/Cache/Editor/FMODStudioCache.asset using Guid(f55ace27470082a8ab67095465a7eacc) (NativeFormatImporter) -> (artifact id: '195c25e6337fb50a671cd31ccd917f99') in 0.00199957 seconds

Refreshing native plugins compatible for Editor in 3.30 ms, found 3 plugins.

Preloading 0 native plugins for Editor in 0.00 ms.

Asset Pipeline Refresh (id=7a2c8836a29a78e25889f1340019f352): Total: 0.089 seconds - Initiated by StopAssetImportingV2(NoUpdateAssetOptions)

Caught fatal signal - signo:11 code:1 errno:0 addr:0x8

Obtained 97 stack frames.

#0 0x0056230b0be74c in burst_signal_handler(int, siginfo_t*, void*)

#1 0x007f5b724b5520 in (Unknown)

#2 0x007f5b77b502eb in (Unknown)

#3 0x007f5b77b4dbae in (Unknown)

#4 0x007f5b725e7a98 in _dl_catch_exception

#5 0x007f5b77b4cf9a in (Unknown)

#6 0x007f5b725e7a98 in _dl_catch_exception

#7 0x007f5b77b4d34e in (Unknown)

#8 0x007f5b7250363c in (Unknown)

#9 0x007f5b725e7a98 in _dl_catch_exception

#10 0x007f5b725e7b63 in _dl_catch_error

#11 0x007f5b7250312e in (Unknown)

#12 0x007f5b725036c8 in dlopen

#13 0x0056230b81dbcc in LoadPluginExecutable(char const*, bool)

#14 0x0056230b107f51 in FindAndLoadUnityPlugin(char const*, void**, bool)

#15 0x007f59eaa2b11c in (Unknown)

#16 0x007f59eaa2ba76 in (Unknown)

#17 0x007f59ea84215b in (Unknown)

#18 0x007f59ea8c05f7 in (Unknown)

#19 0x007f59ea8c0075 in (Unknown)

#20 0x00000041332396 in (Unknown)

#21 0x000000413829db in FMOD.Memory:GetStats (int&,int&,bool)

#22 0x00000041382987 in FMODUnity.RuntimeUtils:EnforceLibraryOrder ()

#23 0x00000041382683 in FMODUnity.EditorUtils:CreateSystem ()

#24 0x0000004138259f in FMODUnity.EditorUtils:get_System ()

#25 0x00000041379c3f in FMODUnity.EventManager:UpdateCache ()

#26 0x00000041378d4b in FMODUnity.EventManager:RefreshBanks ()

#27 0x00000041378d2b in FMODUnity.EventManager:BuildTargetChanged ()

#28 0x00000041378ceb in FMODUnity.EventManager/<>c:<.cctor>b__15_0 ()

#29 0x00000041378bca in FMODUnity.BuildStatusWatcher:SetBuildInProgress (bool)

#30 0x00000041378a6f in FMODUnity.BuildStatusWatcher/<>c:<Startup>b__6_0 (UnityEditor.Build.Pipeline.Interfaces.IBuildParameters,UnityEditor.Build.Pipeline.Interfaces.IDependencyData)

#31 0x00000041378a46 in UnityEditor.Build.Pipeline.BuildCallbacks:PostDependency (UnityEditor.Build.Pipeline.Interfaces.IBuildParameters,UnityEditor.Build.Pipeline.Interfaces.IDependencyData)

#32 0x000000413789f9 in UnityEditor.Build.Pipeline.Tasks.PostDependencyCallback:Run ()

#33 0x000000411f8f5f in UnityEditor.Build.Pipeline.BuildTasksRunner:Run (System.Collections.Generic.IList`1<UnityEditor.Build.Pipeline.Interfaces.IBuildTask>,UnityEditor.Build.Pipeline.Interfaces.IBuildContext)

#34 0x000000411c2753 in UnityEditor.Build.Pipeline.ContentPipeline:BuildAssetBundles (UnityEditor.Build.Pipeline.Interfaces.IBundleBuildParameters,UnityEditor.Build.Pipeline.Interfaces.IBundleBuildContent,UnityEditor.Build.Pipeline.Interfaces.IBundleBuildResults&,System.Collections.Generic.IList`1<UnityEditor.Build.Pipeline.Interfaces.IBuildTask>,UnityEditor.Build.Pipeline.Interfaces.IContextObject[])

#35 0x000000411a5f34 in UnityEditor.AddressableAssets.Settings.AddressableAssetSettings:BuildPlayerContentImpl (UnityEditor.AddressableAssets.Build.AddressablesDataBuilderInput,bool)

#36 0x000000411a5a3b in UnityEditor.AddressableAssets.Settings.AddressableAssetSettings:BuildPlayerContent (UnityEditor.AddressableAssets.Build.AddressablesPlayerBuildResult&,UnityEditor.AddressableAssets.Build.AddressablesDataBuilderInput)

#37 0x000000411a3a5b in UnityEditor.AddressableAssets.GUI.AddressableAssetsSettingsGroupEditor:BuildAddressablesWithResult (UnityEditor.AddressableAssets.GUI.AddressableAssetsSettingsGroupEditor/BuildMenuContext)

#38 0x000000411a2acf in AddressablesPlayerBuildProcessor:DefaultBuild (UnityEditor.AddressableAssets.Settings.AddressableAssetSettings)

#39 0x000000411a2617 in AddressablesPlayerBuildProcessor:PrepareForPlayerbuild (UnityEditor.AddressableAssets.Settings.AddressableAssetSettings,UnityEditor.Build.BuildPlayerContext,bool)

#40 0x000000411a22f3 in AddressablesPlayerBuildProcessor:PrepareForBuild (UnityEditor.Build.BuildPlayerContext)

#41 0x0000004119934a in UnityEditor.Build.BuildPipelineInterfaces:PreparePlayerBuild (UnityEditor.Build.BuildPlayerContext)

#42 0x00000041198fbb in UnityEditor.BuildPipeline:PreparePlayerBuild (UnityEditor.BuildPlayerOptions)

#43 0x000000411990d5 in (wrapper runtime-invoke) <Module>:runtime_invoke_object_BuildPlayerOptions (object,intptr,intptr,intptr)

#44 0x00000041195a53 in (wrapper managed-to-native) UnityEditor.BuildPipeline:BuildPlayerInternalNoCheck_Injected (string[],UnityEngine.Bindings.ManagedSpanWrapper&,UnityEngine.Bindings.ManagedSpanWrapper&,UnityEditor.BuildTargetGroup,UnityEditor.BuildTarget,int,UnityEditor.BuildOptions,string[],bool)

#45 0x00000041195617 in UnityEditor.BuildPipeline:BuildPlayerInternalNoCheck (string[],string,string,UnityEditor.BuildTargetGroup,UnityEditor.BuildTarget,int,UnityEditor.BuildOptions,string[],bool)

#46 0x0000004119443f in UnityEditor.BuildPipeline:BuildPlayerInternal (string[],string,string,UnityEditor.BuildTargetGroup,UnityEditor.BuildTarget,int,UnityEditor.BuildOptions,string[])

#47 0x00000041193cdb in UnityEditor.BuildPipeline:BuildPlayer (string[],string,string,UnityEditor.BuildTargetGroup,UnityEditor.BuildTarget,int,UnityEditor.BuildOptions,string[])

#48 0x000000411939b7 in UnityEditor.BuildPipeline:BuildPlayer (UnityEditor.BuildPlayerOptions)

#49 0x000000411931d3 in Branch.Editor.BuildScript:Build (UnityEditor.BuildTarget,int,System.Collections.Generic.Dictionary`2<string, string>)

#50 0x0000004119177f in Branch.Editor.BuildScript:Build ()

#51 0x00000040abb02e in (wrapper runtime-invoke) object:runtime_invoke_void (object,intptr,intptr,intptr)

#52 0x007f59ea846406 in (Unknown)

#53 0x007f59ea9e3bf9 in (Unknown)

#54 0x007f59ea9e3b5d in mono_runtime_invoke

#55 0x0056230b550913 in scripting_method_invoke(ScriptingMethodPtr, ScriptingObjectPtr, ScriptingArguments&, ScriptingExceptionPtr*, bool)

#56 0x0056230b526b03 in ScriptingInvocation::Invoke(ScriptingExceptionPtr*, bool)

#57 0x0056230b69d26f in Scripting::UnityEditor::BuildPipelineProxy::PreparePlayerBuild(void const*, ScriptingExceptionPtr*)

#58 0x0056230d5ab272 in BuildPlayer(BuildPlayerSetup const&, BuildReporting::BuildReport&)

#59 0x0056230ab1e210 in BuildPipeline_CUSTOM_BuildPlayerInternalNoCheck(ScriptingBackendNativeArrayPtrOpaque*, BindingsManagedSpan*, BindingsManagedSpan*, BuildTargetPlatformGroup, BuildTargetPlatform, int, BuildPlayerOptions, ScriptingBackendNativeArrayPtrOpaque*, unsigned char)

#60 0x007f59ea846406 in (Unknown)

#61 0x007f59ea9e3bf9 in (Unknown)

#62 0x007f59ea9e3b5d in mono_runtime_invoke

#63 0x0056230b550913 in scripting_method_invoke(ScriptingMethodPtr, ScriptingObjectPtr, ScriptingArguments&, ScriptingExceptionPtr*, bool)

#64 0x0056230b526b03 in ScriptingInvocation::Invoke(ScriptingExceptionPtr*, bool)

#65 0x0056230c34da94 in Application::ParseARGVCommands()

#66 0x0056230c34caef in Application::FinishLoadingProject()

#67 0x0056230ca5c120 in InitializeUnity(void*)

#68 0x007f5b72d1a2c8 in (Unknown)

#69 0x007f5b72d19c44 in g_main_context_dispatch

#70 0x007f5b72d6f258 in (Unknown)

#71 0x007f5b72d192b3 in g_main_loop_run

#72 0x007f5b7321fcfd in gtk_main

#73 0x0056230ca5b70c in main

#74 0x007f5b7249cd90 in (Unknown)

#75 0x007f5b7249ce40 in __libc_start_main

#76 0x0056230a919029 in (Unknown)

Segmentation fault (core dumped)

Build failed, with exit code 139

Hi,

What version of Unity and the FMOD integration are you using? There was an issue testing and building on reduced systems like a Github action runner that should have been fixed in FMOD Engine | Detailed Revision Histroy - 2.02.25

How are you running the builds? Is it using a Github action or a self hoster machine?

FMOD studio 2.02.25 for unity 23 and 24, I tried 2.02.25 last night and the issue persisted.
I’m on unity 6 I’ve tried different versions from 6000.0.17f1 to 31f1 and same issue.

I’m running the builds with github actions on a self hosted runner using game-ci/unity-builder@v4