# Linux + unity + fmod

**URL:** https://qa.fmod.com/t/linux-unity-fmod/22301
**Category:** Unity
**Created:** [November 14, 2024, 6:56pm UTC](https://qa.fmod.com/t/linux-unity-fmod/22301 "2024-11-14T18:56:49Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![vladimirkornev](https://avatars.discourse-cdn.com/v4/letter/v/59ef9b/32.png) [@vladimirkornev](https://qa.fmod.com/u/vladimirkornev)
#### Post date: [November 14, 2024, 6:56pm UTC](https://qa.fmod.com/t/linux-unity-fmod/22301/1 "2024-11-14T18:56:49Z")

</div>

Hello. Something weird happened to my working setup. After I made a clean install of Xubuntu 24.04 and installed Unity Hub with Unity Engine and opened my working project I got errors from FMod plugin basically claiming it couldn’t initialize audio (ERR\_OUTPUT\_INIT Error initializing audio device). Tried refreshing banks, rebuilding fmod project, reinstalling (with purge) alsa and pulseaudio packages, tried even installing another linux distro (Manjaro), but the error persists. The audio is actually seems to be working fine - I can listen to music or watching videos or playing games without any problem. The problem is only in this unity project. Unity version is 2022.3.52 (LTS). Any suggestions on where to dig?  
P.S. On windows the project opens and works fine.

---

<div class="post-metadata">

### Author: ![joseph](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/joseph/32/264_2.png) [@joseph](https://qa.fmod.com/u/joseph)
#### Post date: [November 15, 2024, 5:00am UTC](https://qa.fmod.com/t/linux-unity-fmod/22301/2 "2024-11-15T05:00:58Z")

</div>

Have you tried opening a non-FMOD Unity project in the Unity editor? If so, did its sound effects play correctly when playing in editor?

Are there any additional error messages appearing in Unity’s logs when you attempt to play the FMOD-integrated Unity project in editor?

---

<div class="post-metadata">

### Author: ![vladimirkornev](https://avatars.discourse-cdn.com/v4/letter/v/59ef9b/32.png) [@vladimirkornev](https://qa.fmod.com/u/vladimirkornev)
#### Post date: [November 15, 2024, 8:11am UTC](https://qa.fmod.com/t/linux-unity-fmod/22301/3 "2024-11-15T08:11:13Z")

</div>

Hello. Normal sounds behave as intended - they import correctly and play correctly in playmode in editor.  
Here are all the errors I get when project opens:

FMOD Studio: Encountered Error: ERR\_OUTPUT\_INIT Error initializing output device.  
UnityEngine.Debug:LogError (object)  
FMODUnity.RuntimeUtils:DebugLogError (string) (at Assets/Plugins/FMOD/src/RuntimeUtils.cs:585)  
FMODUnity.EditorUtils:CheckResult (FMOD.RESULT) (at Assets/Plugins/FMOD/src/Editor/EditorUtils.cs:44)  
FMODUnity.EditorUtils:CreateSystem () (at Assets/Plugins/FMOD/src/Editor/EditorUtils.cs:553)  
FMODUnity.EditorUtils:get\_System () (at Assets/Plugins/FMOD/src/Editor/EditorUtils.cs:616)  
FMODUnity.EventManager:UpdateCache () (at Assets/Plugins/FMOD/src/Editor/EventManager.cs:179)  
FMODUnity.EventManager:RefreshBanks () (at Assets/Plugins/FMOD/src/Editor/EventManager.cs:33)  
FMODUnity.EventManager:Startup () (at Assets/Plugins/FMOD/src/Editor/EventManager.cs:590)  
FMODUnity.EditorUtils:CallStartupMethodsWhenReady () (at Assets/Plugins/FMOD/src/Editor/EditorUtils.cs:504)  
UnityEditor.EditorApplication:Internal\_CallUpdateFunctions () (at /home/bokken/build/output/unity/unity/Editor/Mono/EditorApplication.cs:381)

FMOD Studio: Encountered Error: ERR\_INVALID\_HANDLE An invalid object handle was used.  
UnityEngine.Debug:LogError (object)  
FMODUnity.RuntimeUtils:DebugLogError (string) (at Assets/Plugins/FMOD/src/RuntimeUtils.cs:585)  
FMODUnity.EditorUtils:CheckResult (FMOD.RESULT) (at Assets/Plugins/FMOD/src/Editor/EditorUtils.cs:44)  
FMODUnity.EditorUtils:CreateSystem () (at Assets/Plugins/FMOD/src/Editor/EditorUtils.cs:556)  
FMODUnity.EditorUtils:get\_System () (at Assets/Plugins/FMOD/src/Editor/EditorUtils.cs:616)  
FMODUnity.EventManager:UpdateCache () (at Assets/Plugins/FMOD/src/Editor/EventManager.cs:179)  
FMODUnity.EventManager:RefreshBanks () (at Assets/Plugins/FMOD/src/Editor/EventManager.cs:33)  
FMODUnity.EventManager:Startup () (at Assets/Plugins/FMOD/src/Editor/EventManager.cs:590)  
FMODUnity.EditorUtils:CallStartupMethodsWhenReady () (at Assets/Plugins/FMOD/src/Editor/EditorUtils.cs:504)  
UnityEditor.EditorApplication:Internal\_CallUpdateFunctions () (at /home/bokken/build/output/unity/unity/Editor/Mono/EditorApplication.cs:381)

FMOD Studio: Encountered Error: ERR\_INVALID\_PARAM An invalid parameter was passed to this function.  
UnityEngine.Debug:LogError (object)  
FMODUnity.RuntimeUtils:DebugLogError (string) (at Assets/Plugins/FMOD/src/RuntimeUtils.cs:585)  
FMODUnity.EditorUtils:CheckResult (FMOD.RESULT) (at Assets/Plugins/FMOD/src/Editor/EditorUtils.cs:44)  
FMODUnity.EditorUtils:CreateSystem () (at Assets/Plugins/FMOD/src/Editor/EditorUtils.cs:558)  
FMODUnity.EditorUtils:get\_System () (at Assets/Plugins/FMOD/src/Editor/EditorUtils.cs:616)  
FMODUnity.EventManager:UpdateCache () (at Assets/Plugins/FMOD/src/Editor/EventManager.cs:179)  
FMODUnity.EventManager:RefreshBanks () (at Assets/Plugins/FMOD/src/Editor/EventManager.cs:33)  
FMODUnity.EventManager:Startup () (at Assets/Plugins/FMOD/src/Editor/EventManager.cs:590)  
FMODUnity.EditorUtils:CallStartupMethodsWhenReady () (at Assets/Plugins/FMOD/src/Editor/EditorUtils.cs:504)  
UnityEditor.EditorApplication:Internal\_CallUpdateFunctions () (at /home/bokken/build/output/unity/unity/Editor/Mono/EditorApplication.cs:381)

FMOD Studio: Encountered Error: ERR\_INVALID\_HANDLE An invalid object handle was used.  
UnityEngine.Debug:LogError (object)  
FMODUnity.RuntimeUtils:DebugLogError (string) (at Assets/Plugins/FMOD/src/RuntimeUtils.cs:585)  
FMODUnity.EditorUtils:CheckResult (FMOD.RESULT) (at Assets/Plugins/FMOD/src/Editor/EditorUtils.cs:44)  
FMODUnity.EventManager:UpdateCache () (at Assets/Plugins/FMOD/src/Editor/EventManager.cs:179)  
FMODUnity.EventManager:RefreshBanks () (at Assets/Plugins/FMOD/src/Editor/EventManager.cs:33)  
FMODUnity.EventManager:Startup () (at Assets/Plugins/FMOD/src/Editor/EventManager.cs:590)  
FMODUnity.EditorUtils:CallStartupMethodsWhenReady () (at Assets/Plugins/FMOD/src/Editor/EditorUtils.cs:504)  
UnityEditor.EditorApplication:Internal\_CallUpdateFunctions () (at /home/bokken/build/output/unity/unity/Editor/Mono/EditorApplication.cs:381)

FMOD: Bank refresh failed: Assets/Content/Fmod/FmodSpaceship/Build/Desktop/Master.strings.bank is not a valid bank.  
UnityEngine.Debug:LogErrorFormat (string,object)  
FMODUnity.RuntimeUtils:DebugLogErrorFormat (string,object) (at Assets/Plugins/FMOD/src/RuntimeUtils.cs:593)  
FMODUnity.BankRefreshWindow:HandleBankRefresh (string) (at Assets/Plugins/FMOD/src/Editor/BankRefreshWindow.cs:81)  
FMODUnity.BankRefresher:HandleBankRefresh (string) (at Assets/Plugins/FMOD/src/Editor/BankRefresher.cs:129)  
FMODUnity.EventManager:RefreshBanks () (at Assets/Plugins/FMOD/src/Editor/EventManager.cs:44)  
FMODUnity.EventManager:Startup () (at Assets/Plugins/FMOD/src/Editor/EventManager.cs:590)  
FMODUnity.EditorUtils:CallStartupMethodsWhenReady () (at Assets/Plugins/FMOD/src/Editor/EditorUtils.cs:504)  
UnityEditor.EditorApplication:Internal\_CallUpdateFunctions () (at /home/bokken/build/output/unity/unity/Editor/Mono/EditorApplication.cs:381)

And here is what gives trying to play:

[FMOD] PulseAudio\_Init : pa\_stream\_new returned NULL, errno 3 = Invalid argument.

UnityEngine.Debug:LogError (object)  
FMODUnity.RuntimeUtils:DebugLogError (string) (at Assets/Plugins/FMOD/src/RuntimeUtils.cs:585)  
FMODUnity.RuntimeManager:DEBUG\_CALLBACK (FMOD.DEBUG\_FLAGS,intptr,int,intptr,intptr) (at Assets/Plugins/FMOD/src/RuntimeManager.cs:77)  
FMOD.Studio.System:initialize (int,FMOD.Studio.INITFLAGS,FMOD.INITFLAGS,intptr) (at Assets/Plugins/FMOD/src/fmod\_studio.cs:419)  
FMODUnity.RuntimeManager:Initialize () (at Assets/Plugins/FMOD/src/RuntimeManager.cs:347)  
FMODUnity.RuntimeManager:get\_Instance () (at Assets/Plugins/FMOD/src/RuntimeManager.cs:173)  
FMODUnity.RuntimeManager:get\_StudioSystem () (at Assets/Plugins/FMOD/src/RuntimeManager.cs:196)  
FMODUnity.StudioListener:AddListener (FMODUnity.StudioListener) (at Assets/Plugins/FMOD/src/StudioListener.cs:72)  
FMODUnity.StudioListener:OnEnable () (at Assets/Plugins/FMOD/src/StudioListener.cs:90)

[FMOD] Studio::System::initialize returned ERR\_OUTPUT\_INIT, defaulting to no-sound mode.  
UnityEngine.Debug:LogErrorFormat (string,object)  
FMODUnity.RuntimeUtils:DebugLogErrorFormat (string,object) (at Assets/Plugins/FMOD/src/RuntimeUtils.cs:593)  
FMODUnity.RuntimeManager:Initialize () (at Assets/Plugins/FMOD/src/RuntimeManager.cs:352)  
FMODUnity.RuntimeManager:get\_Instance () (at Assets/Plugins/FMOD/src/RuntimeManager.cs:173)  
FMODUnity.RuntimeManager:get\_StudioSystem () (at Assets/Plugins/FMOD/src/RuntimeManager.cs:196)  
FMODUnity.StudioListener:AddListener (FMODUnity.StudioListener) (at Assets/Plugins/FMOD/src/StudioListener.cs:72)  
FMODUnity.StudioListener:OnEnable () (at Assets/Plugins/FMOD/src/StudioListener.cs:90)

SystemNotInitializedException: [FMOD] Initialization failed : Output forced to NO SOUND mode : ERR\_OUTPUT\_INIT : Error initializing output device.  
FMODUnity.RuntimeManager.get\_Instance () (at Assets/Plugins/FMOD/src/RuntimeManager.cs:190)  
FMODUnity.RuntimeManager.get\_StudioSystem () (at Assets/Plugins/FMOD/src/RuntimeManager.cs:196)  
FMODUnity.StudioListener.AddListener (FMODUnity.StudioListener listener) (at Assets/Plugins/FMOD/src/StudioListener.cs:72)  
FMODUnity.StudioListener.OnEnable () (at Assets/Plugins/FMOD/src/StudioListener.cs:90)

---

<div class="post-metadata">

### Author: ![vladimirkornev](https://avatars.discourse-cdn.com/v4/letter/v/59ef9b/32.png) [@vladimirkornev](https://qa.fmod.com/u/vladimirkornev)
#### Post date: [November 16, 2024, 8:25am UTC](https://qa.fmod.com/t/linux-unity-fmod/22301/4 "2024-11-16T08:25:01Z")

</div>

Maybe this will help. The fmod\_editor.log contains the following:

[LOG] System::create : Header version = 2.02.15. Current version = 2.02.15.  
[LOG] Manager::init : maxchannels = 256 studioflags = 00000006 flags 00000000 extradriverdata (nil).  
[LOG] SystemI::init : Initialize version=20215 (134211), maxchannels=256, flags=0x00020000  
[LOG] SystemI::setOutputInternal : Setting output to ‘FMOD PulseAudio Output’  
[LOG] OutputPulseAudio::registerLib : Loaded PulseAudio version 16.1.0.  
[LOG] PulseAudio\_EnumOutputCallback : Found output device NAME:alsa\_output.pci-0000\_07\_00.6.analog-stereo DESC:Family 17h/19h HD Audio Controller Analog Stereo CHANNELS:2 RATE:48000.  
[LOG] PulseAudio\_EnumInputCallback : Found input device NAME:alsa\_output.pci-0000\_07\_00.6.analog-stereo.monitor DESC:Monitor of Family 17h/19h HD Audio Controller Analog Stereo CHANNELS:2 RATE:48000.  
[LOG] PulseAudio\_EnumInputCallback : Found input device NAME:alsa\_input.pci-0000\_07\_00.6.analog-stereo DESC:Family 17h/19h HD Audio Controller Analog Stereo CHANNELS:2 RATE:48000.  
[ERR] PulseAudio\_Init : pa\_stream\_new returned NULL, errno 3 = Invalid argument.  
[LOG] SystemI::close : Closed.  
[LOG] LiveUpdate::release :  
[LOG] LiveUpdate::reset : Reset connection (reason Disconnected)

It looks like something wrong wen when it tried to init pulseaudio. And the ALSA seems to be fine…

---

<div class="post-metadata">

### Author: ![vladimirkornev](https://avatars.discourse-cdn.com/v4/letter/v/59ef9b/32.png) [@vladimirkornev](https://qa.fmod.com/u/vladimirkornev)
#### Post date: [November 17, 2024, 4:04pm UTC](https://qa.fmod.com/t/linux-unity-fmod/22301/5 "2024-11-17T16:04:53Z")

</div>

I finally managed to make it work. For some reason it failed to initialize audio and banks ON LINUX without Windows Build Support (Mono) module installed. As soon as I installed it and I refreshed banks - it worked.

---

<div class="post-metadata">

### Author: ![joseph](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/joseph/32/264_2.png) [@joseph](https://qa.fmod.com/u/joseph)
#### Post date: [November 18, 2024, 11:08am UTC](https://qa.fmod.com/t/linux-unity-fmod/22301/6 "2024-11-18T11:08:54Z")

</div>

I’m glad to hear you were able to find a solution to your issue. Thanks for posting so much information from the logs; we’ll look into the cause of the issue here.
