# Linux Unity Editor Freeze/Crash

**URL:** <https://qa.fmod.com/t/linux-unity-editor-freeze-crash/16305>\
**Category:** Unity\
**Tags:** unity, csharp\
**Created:** [October 15, 2020, 7:54pm UTC](https://qa.fmod.com/t/linux-unity-editor-freeze-crash/16305 "2020-10-15T19:54:30Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![otaviosoato](https://avatars.discourse-cdn.com/v4/letter/o/e19b73/32.png) [@otaviosoato](https://qa.fmod.com/u/otaviosoato)\
**Post date:** [October 15, 2020, 7:54pm UTC](https://qa.fmod.com/t/linux-unity-editor-freeze-crash/16305/1 "2020-10-15T19:54:30Z")

</div>

Hello everybody!

I’m having the following problem when I stop the game in Editor after a few times. Could anyone help me?

Linux Distro: Pop!\_OS 20.04  
Unity Editor: 2019.4.8f1

> [FMOD] OutputPulseAudio::streamUnderflowCallback : Buffer underrun detected in PulseAudio.
> 
> UnityEngine.DebugLogHandler:Internal\_Log(LogType, LogOption, String, Object)  
> UnityEngine.DebugLogHandler:LogFormat(LogType, Object, String, Object)  
> UnityEngine.Logger:Log(LogType, Object)  
> UnityEngine.Debug:LogWarning(Object)  
> FMODUnity.RuntimeManager:DEBUG\_CALLBACK(DEBUG\_FLAGS, StringWrapper, Int32, StringWrapper, StringWrapper) (at Assets/Code/Plugins/FMOD/src/Runtime/RuntimeManager.cs:32)
> 
> (Filename: Assets/Code/Plugins/FMOD/src/Runtime/RuntimeManager.cs Line: 32)
> 
> [FMOD] OutputPulseAudio::streamUnderflowCallback : Buffer underrun detected in PulseAudio.
> 
> UnityEngine.DebugLogHandler:Internal\_Log(LogType, LogOption, String, Object)  
> UnityEngine.DebugLogHandler:LogFormat(LogType, Object, String, Object)  
> UnityEngine.Logger:Log(LogType, Object)  
> UnityEngine.Debug:LogWarning(Object)  
> FMODUnity.RuntimeManager:DEBUG\_CALLBACK(DEBUG\_FLAGS, StringWrapper, Int32, StringWrapper, StringWrapper) (at Assets/Code/Plugins/FMOD/src/Runtime/RuntimeManager.cs:32)
> 
> (Filename: Assets/Code/Plugins/FMOD/src/Runtime/RuntimeManager.cs Line: 32)
> 
> System memory in use after: 0.81 GB.
> 
> Unloading 1656 unused Assets to reduce memory usage. Loaded Objects now: 27406.  
> Total: 471.490548 ms (FindLiveObjects: 4.758916 ms CreateObjectMapping: 2.750689 ms MarkObjects: 446.840974 ms DeleteObjects: 17.138245 ms)
> 
> Fallback handler could not load library /home/otaviosoato/Unity/Hub/Editor/2019.4.8f1/Editor/Data/Mono/lib/libAssets/Code/Plugins/FMOD/lib/linux/x86\_64/libfmodstudioL.so  
> Fallback handler could not load library /home/otaviosoato/Unity/Hub/Editor/2019.4.8f1/Editor/Data/Mono/lib/libAssets/Code/Plugins/FMOD/lib/linux/x86\_64/libfmodstudioL.so

---

<div class="post-metadata">

**Author:** ![ben\_fmod](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/ben_fmod/32/1452_2.png) [@ben\_fmod](https://qa.fmod.com/u/ben_fmod)\
**Post date:** [October 26, 2020, 11:56pm UTC](https://qa.fmod.com/t/linux-unity-editor-freeze-crash/16305/2 "2020-10-26T23:56:51Z")

</div>

Thanks for letting us know about this. Unfortunately I have been unable to reproduce the problem here.  
I suspect the cause has to do with this error message:

> [@otaviosoato](#):
>
> Fallback handler could not load library /home/otaviosoato/Unity/Hub/Editor/2019.4.8f1/Editor/Data/Mono/lib/libAssets/Code/Plugins/FMOD/lib/linux/x86\_64/libfmodstudioL.so

The path in that message looks quite wrong - it’s trying to load the FMOD native library from a location within the Unity installation directory, rather than within the project directory as it should be. Do you know why that might be? Have you moved any FMOD files around?

---

<div class="post-metadata">

**Author:** ![m21-cerutti](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/m21-cerutti/32/2279_2.png) [@m21-cerutti](https://qa.fmod.com/u/m21-cerutti)\
**Post date:** [May 23, 2021, 6:50pm UTC](https://qa.fmod.com/t/linux-unity-editor-freeze-crash/16305/3 "2021-05-23T18:50:25Z")

</div>

I got the same problem with Unity 2020.3.9f1, someone has solved this problem ?

EDIT : I will make an other subject to be more precise about my problem.

---

<div class="post-metadata">

**Author:** ![flortsch\_at\_pentaqui](https://avatars.discourse-cdn.com/v4/letter/f/aca169/32.png) [@flortsch\_at\_pentaqui](https://qa.fmod.com/u/flortsch_at_pentaqui)\
**Post date:** [July 14, 2021, 9:04pm UTC](https://qa.fmod.com/t/linux-unity-editor-freeze-crash/16305/4 "2021-07-14T21:04:23Z")

</div>

Having similar problems with freezes when starting/stopping the game in the editor, which on my side seems to be caused by stack overflows in FMOD due to logging. Try setting the FMOD log level to ERROR or NONE.

---

<div class="post-metadata">

**Author:** ![ben\_fmod](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/ben_fmod/32/1452_2.png) [@ben\_fmod](https://qa.fmod.com/u/ben_fmod)\
**Post date:** [August 6, 2021, 6:29am UTC](https://qa.fmod.com/t/linux-unity-editor-freeze-crash/16305/5 "2021-08-06T06:29:19Z")

</div>

> [@flortsch\_at\_pentaqui](#):
>
> Having similar problems with freezes when starting/stopping the game in the editor, which on my side seems to be caused by stack overflows in FMOD due to logging.

Sorry to hear you’re having issues. Can you provide any more details? What versions of FMOD and Unity are you using?

---

<div class="post-metadata">

**Author:** ![flortsch\_at\_pentaqui](https://avatars.discourse-cdn.com/v4/letter/f/aca169/32.png) [@flortsch\_at\_pentaqui](https://qa.fmod.com/u/flortsch_at_pentaqui)\
**Post date:** [August 23, 2021, 8:13pm UTC](https://qa.fmod.com/t/linux-unity-editor-freeze-crash/16305/6 "2021-08-23T20:13:07Z")

</div>

We are using Unity 2020.3.13f1 and FMOD Studio Unity Integration 2.00.10.

When I start the game in the editor, I see the following message in the Unity console: “Couldn’t extract exception string from exception of type StackOverflowException (another exception of class ‘NullReferenceException’ was thrown while processing the stack trace)”. When I stop it, the editor then freezes.

Here is an excerpt from my Editor.log file:

```auto
Fallback handler could not load library /home/flortsch/Unity/Hub/Editor/2020.3.13f1/Editor/Data/Mono/lib/libAssets/Plugins/FMOD/lib/linux/x86_64/libfmodstudioL.so
Fallback handler could not load library /home/flortsch/Unity/Hub/Editor/2020.3.13f1/Editor/Data/Mono/lib/libAssets/Plugins/FMOD/lib/linux/x86_64/libfmodstudioL.so
Fallback handler could not load library /home/flortsch/Unity/Hub/Editor/2020.3.13f1/Editor/Data/Mono/lib/libAssets/Plugins/FMOD/lib/linux/x86_64/libfmodstudioL.so
Fallback handler could not load library /home/flortsch/Unity/Hub/Editor/2020.3.13f1/Editor/Data/Mono/lib/libAssets/Plugins/FMOD/lib/linux/x86_64/libfmodstudioL.so
Fallback handler could not load library /home/flortsch/Unity/Hub/Editor/2020.3.13f1/Editor/Data/Mono/lib/libAssets/Plugins/FMOD/lib/linux/x86_64/libfmodstudioL.so
Fallback handler could not load library /home/flortsch/Unity/Hub/Editor/2020.3.13f1/Editor/Data/Mono/lib/libAssets/Plugins/FMOD/lib/linux/x86_64/libfmodstudioL.so
Fallback handler could not load library /home/flortsch/Unity/Hub/Editor/2020.3.13f1/Editor/Data/Mono/lib/libAssets/Plugins/FMOD/lib/linux/x86_64/libfmodstudioL.so
Fallback handler could not load library /home/flortsch/Unity/Hub/Editor/2020.3.13f1/Editor/Data/Mono/lib/libAssets/Plugins/FMOD/lib/linux/x86_64/libfmodstudioL.so
[FMOD] FMOD_OS_Thread_Callback : Cannot set real-time thread priorities due to insufficient privileges
UnityEngine.StackTraceUtility:ExtractStackTrace () (at /home/bokken/buildslave/unity/build/Runtime/Export/Scripting/StackTrace.cs:37)
UnityEngine.DebugLogHandler:LogFormat (UnityEngine.LogType,UnityEngine.Object,string,object[])
UnityEngine.Logger:Log (UnityEngine.LogType,object)
UnityEngine.Debug:LogWarning (object)
FMODUnity.RuntimeManager:DEBUG_CALLBACK (FMOD.DEBUG_FLAGS,FMOD.StringWrapper,int,FMOD.StringWrapper,FMOD.StringWrapper) (at Assets/Plugins/FMOD/src/Runtime/RuntimeManager.cs:32)

(Filename: Assets/Plugins/FMOD/src/Runtime/RuntimeManager.cs Line: 32)

Stack overflow in unmanaged: IP: 0x7eff001f5236, fault addr: 0x7eff1d1adfd8
Stack overflow in unmanaged: IP: 0x7eff00240bc3, fault addr: 0x7eff1d1abf38
Stack overflow in unmanaged: IP: 0x7eff00218613, fault addr: 0x7eff1d1abfdc
Stack overflow in unmanaged: IP: 0x7eff00240bc3, fault addr: 0x7eff1d1aa118
Stack overflow in unmanaged: IP: 0x7eff00240bc3, fault addr: 0x7eff1d1a9f78
Stack overflow in unmanaged: IP: 0x7eff00202b1c, fault addr: 0x7eff1d1aafc8
Couldn't extract exception string from exception of type StackOverflowException (another exception of class 'NullReferenceException' was thrown while processing the stack trace)

Stack overflow in unmanaged: IP: 0x558da0c81ff0, fault addr: 0x7eff1d1a9580
Stack overflow in unmanaged: IP: 0x7f002ae1213b, fault addr: 0x7eff1d1a8e40

```

Hope this helps.

---

<div class="post-metadata">

**Author:** ![ben\_fmod](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/ben_fmod/32/1452_2.png) [@ben\_fmod](https://qa.fmod.com/u/ben_fmod)\
**Post date:** [August 31, 2021, 10:57am UTC](https://qa.fmod.com/t/linux-unity-editor-freeze-crash/16305/7 "2021-08-31T10:57:27Z")

</div>

> [@flortsch\_at\_pentaqui](#):
>
> When I start the game in the editor, I see the following message in the Unity console: “Couldn’t extract exception string from exception of type StackOverflowException (another exception of class ‘NullReferenceException’ was thrown while processing the stack trace)”. When I stop it, the editor then freezes.

This looks like a bug that was fixed in release 2.01.11, caused by the stack size of the FMOD file thread being too small. Is it possible for you to test that version and see if it resolves your problem?

---

<div class="post-metadata">

**Author:** ![flortsch\_at\_pentaqui](https://avatars.discourse-cdn.com/v4/letter/f/aca169/32.png) [@flortsch\_at\_pentaqui](https://qa.fmod.com/u/flortsch_at_pentaqui)\
**Post date:** [November 25, 2021, 11:43am UTC](https://qa.fmod.com/t/linux-unity-editor-freeze-crash/16305/8 "2021-11-25T11:43:23Z")

</div>

I tested it with a new plain 2D Unity project (2020.3.21f1) and FMOD integration (2.01.11), but still the same issue. Now, also setting loglevel to NONE or ERROR freezes the editor when starting the play mode. I set the loglevel to LOG and provided a pastebin of the editor log, maybe it helps you to further debug the issue.

> **[Available memory: 31385 MB\[Licensing::Module\] Channel doesn't exist: "L...](https://pastebin.com/7PFDH2Sp)**
>
> Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.

---

<div class="post-metadata">

**Author:** ![jeff\_fmod](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/jeff_fmod/32/1766_2.png) [@jeff\_fmod](https://qa.fmod.com/u/jeff_fmod)\
**Post date:** [December 20, 2021, 1:51am UTC](https://qa.fmod.com/t/linux-unity-editor-freeze-crash/16305/9 "2021-12-20T01:51:16Z")

</div>

Thank you for the additional info, and apologies for the delay in responding.  
I couldn’t reproduce this issue- just to clarify, setting it to WARNING or LOG works fine but NONE or ERROR freezes the Editor?  
Does this issue reproduce in 3D Unity projects as well? What Linux distro are you using?

---

<div class="post-metadata">

**Author:** ![flortsch\_at\_pentaqui](https://avatars.discourse-cdn.com/v4/letter/f/aca169/32.png) [@flortsch\_at\_pentaqui](https://qa.fmod.com/u/flortsch_at_pentaqui)\
**Post date:** [December 30, 2021, 8:51am UTC](https://qa.fmod.com/t/linux-unity-editor-freeze-crash/16305/10 "2021-12-30T08:51:33Z")

</div>

Hey @jeff_fmod. I did some further testing with different system configurations, and it seems that the issue regarding the stack overflows and different log levels is fixed with newer Unity FMOD integrations. Tested with Unity 2020.3.25f1, FMOD Integration 2.02.04, both 2D and 3D project, running on ArchLinux with PulseAudio 15.0.

In my previous posting, I said the Unity editor freezes no matter what log level I set. This seems to be unrelated to the log level or Unity in general, but more a problem when running the FMOD engine on **PipeWire**. E.g., I still have this freezing issue in the Unity editor running on PipeWire 0.3.42. Also, FMODStudio does not start when running on PipeWire, whereas it does when using PulseAudio. Different people on the PipeWire repository also report having audio issues with games based on FMOD. But I should open a new topic for this.

Edit/Addition: I figured out one can provide FMOD\_ALSA\_DEVICE=pulse as environment variable when running the Unity Editor or FMODStudio, and then both also work on PipeWire.

---

<div class="post-metadata">

**Author:** ![jeff\_fmod](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/jeff_fmod/32/1766_2.png) [@jeff\_fmod](https://qa.fmod.com/u/jeff_fmod)\
**Post date:** [January 4, 2022, 4:34am UTC](https://qa.fmod.com/t/linux-unity-editor-freeze-crash/16305/11 "2022-01-04T04:34:51Z")

</div>

Thank you for getting back to us on this issue. We did have some problems with PulseAudio and PipeWire on Fedora that have recently been resolved. To help me reproduce this freezing issue, would you mind telling me what Linux distribution you are using?

---

<div class="post-metadata">

**Author:** ![flortsch\_at\_pentaqui](https://avatars.discourse-cdn.com/v4/letter/f/aca169/32.png) [@flortsch\_at\_pentaqui](https://qa.fmod.com/u/flortsch_at_pentaqui)\
**Post date:** [January 4, 2022, 12:13pm UTC](https://qa.fmod.com/t/linux-unity-editor-freeze-crash/16305/12 "2022-01-04T12:13:41Z")

</div>

I am running on Arch Linux. Tried it with PulseAudio v15.0, and PipeWire v0.3.42.

---

<div class="post-metadata">

**Author:** ![jeff\_fmod](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/jeff_fmod/32/1766_2.png) [@jeff\_fmod](https://qa.fmod.com/u/jeff_fmod)\
**Post date:** [January 5, 2022, 4:16am UTC](https://qa.fmod.com/t/linux-unity-editor-freeze-crash/16305/13 "2022-01-05T04:16:46Z")

</div>

Thank you for confirming- apologies I now see you had mentioned that already.  
Going through the pipewire repo discussions I believe that this issue should be fixed in 2.02.05, can you please try updating and see if that allows Unity to run correctly without needing to manually set the environment variable?

---

<div class="post-metadata">

**Author:** ![flortsch\_at\_pentaqui](https://avatars.discourse-cdn.com/v4/letter/f/aca169/32.png) [@flortsch\_at\_pentaqui](https://qa.fmod.com/u/flortsch_at_pentaqui)\
**Post date:** [January 8, 2022, 5:21pm UTC](https://qa.fmod.com/t/linux-unity-editor-freeze-crash/16305/14 "2022-01-08T17:21:44Z")

</div>

Hey, I will try it. Do you know, when 2.02.05 will be released in the Unity asset store?

---

<div class="post-metadata">

**Author:** ![jeff\_fmod](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/jeff_fmod/32/1766_2.png) [@jeff\_fmod](https://qa.fmod.com/u/jeff_fmod)\
**Post date:** [January 10, 2022, 10:10pm UTC](https://qa.fmod.com/t/linux-unity-editor-freeze-crash/16305/15 "2022-01-10T22:10:11Z")

</div>

2.02.05 will not be Unity verified, we are planning on getting Unity verification on the next release. You can download 2.02.05 from our [download page](https://fmod.com/download#unityintegration)

---

<div class="post-metadata">

**Author:** ![flortsch\_at\_pentaqui](https://avatars.discourse-cdn.com/v4/letter/f/aca169/32.png) [@flortsch\_at\_pentaqui](https://qa.fmod.com/u/flortsch_at_pentaqui)\
**Post date:** [January 11, 2022, 8:34pm UTC](https://qa.fmod.com/t/linux-unity-editor-freeze-crash/16305/16 "2022-01-11T20:34:17Z")

</div>

Ah okay. Jep, can confirm that 2.02.05 works with PipeWire, nice! 🙂 No more freeze after play/stop of the editor.

---

<div class="post-metadata">

**Author:** ![megaleon](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/megaleon/32/5502_2.png) [@megaleon](https://qa.fmod.com/u/megaleon)\
**Post date:** [August 3, 2023, 5:02pm UTC](https://qa.fmod.com/t/linux-unity-editor-freeze-crash/16305/17 "2023-08-03T17:02:07Z")

</div>

I’m having this issue at the moment with Unity3d 2021.3.28f1

[20491](https://qa.fmod.com/t/docker-windows-dllnotfoundexception-fmodstudiol/20491)

---

<div class="post-metadata">

**Author:** ![jeff\_fmod](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/jeff_fmod/32/1766_2.png) [@jeff\_fmod](https://qa.fmod.com/u/jeff_fmod)\
**Post date:** [August 10, 2023, 11:53pm UTC](https://qa.fmod.com/t/linux-unity-editor-freeze-crash/16305/18 "2023-08-10T23:53:10Z")

</div>

I see the thread you shared is resolved- can you please confirm whether you are still getting issues with the Unity Editor freezing on Linux?

---

<div class="post-metadata">

**Author:** ![alexjet1000](https://avatars.discourse-cdn.com/v4/letter/a/eb8c5e/32.png) [@alexjet1000](https://qa.fmod.com/u/alexjet1000)\
**Post date:** [March 3, 2026, 7:31pm UTC](https://qa.fmod.com/t/linux-unity-editor-freeze-crash/16305/19 "2026-03-03T19:31:21Z")

</div>

Im getting this exact same stack overflow due to FMOD aggressive logs in Unity 6.3 exclusivelt when exiting Play Mode. Lowering debug level fixes the issue, but its definetely something to look into.

It seems quite critical and its making the editor unusable on linux. No issues whatsover on Windows 11

---

<div class="post-metadata">

**Author:** ![jeff\_fmod](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/jeff_fmod/32/1766_2.png) [@jeff\_fmod](https://qa.fmod.com/u/jeff_fmod)\
**Post date:** [March 11, 2026, 4:42am UTC](https://qa.fmod.com/t/linux-unity-editor-freeze-crash/16305/20 "2026-03-11T04:42:22Z")

</div>

Can you please tell me what version of the FMOD Unity integration you are using?

[Next page](https://qa.fmod.com/t/linux-unity-editor-freeze-crash/16305.md?page=2)
