# Unity infinite hold on enter Play Mode (using Timeline)

**URL:** <https://qa.fmod.com/t/unity-infinite-hold-on-enter-play-mode-using-timeline/17592>\
**Category:** Unity\
**Tags:** csharp\
**Created:** [August 19, 2021, 11:19am UTC](https://qa.fmod.com/t/unity-infinite-hold-on-enter-play-mode-using-timeline/17592 "2021-08-19T11:19:40Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vadim](https://avatars.discourse-cdn.com/v4/letter/v/50afbb/32.png) [@Vadim](https://qa.fmod.com/u/Vadim)\
**Post date:** [August 19, 2021, 11:19am UTC](https://qa.fmod.com/t/unity-infinite-hold-on-enter-play-mode-using-timeline/17592/1 "2021-08-19T11:19:40Z")

</div>

Hi!

We use Fmod track in Timeline and it freeze Unity Editor when entering play mode.  
Let me explain with more details:

Unity version 2020.1.17f1  
Fmod version 2.01.07  
Timeline 1.2.17

1. Open Timeline window with FMOD track and FMOD clip on it
2. Enforce creating new RuntimeManager (I move preview line to do this) in Editor Mode
3. Enter Play mode
4. Exit Play mode
5. Go to Timeline window again and enforce creating new RuntimeManager
6. Enter Play Mode
7. Infite hold is reached

I made some investigation and added some logs which lead me to the method  
FMOD.Memory.GetStats(out temp1, out temp2);

```auto
FMODUnity.RuntimeUtils:EnforceLibraryOrder() (at Assets/Plugins/FMOD/src/Runtime/RuntimeUtils.cs:365)
FMODUnity.RuntimeManager:get_Instance() (at Assets/Plugins/FMOD/src/Runtime/RuntimeManager.cs:100)
FMODUnity.RuntimeManager:PathToGUID(String) (at Assets/Plugins/FMOD/src/Runtime/RuntimeManager.cs:1041)
FMODUnity.RuntimeManager:CreateInstance(String) (at Assets/Plugins/FMOD/src/Runtime/RuntimeManager.cs:1054)
AudioSourceContainerFMOD:.ctor(String, Transform, Rigidbody2D) (at Assets/Scripts/Core/Audio/FMOD/AuduioSourceContainerFMOD.cs:44)
AudioFMOD:Create(String, Boolean, Transform, Rigidbody2D) (at Assets/Scripts/Core/Audio/FMOD/AudioFMOD.cs:103)
AudioController:CreateInternal(String, Boolean, Transform, Rigidbody2D) (at Assets/Scripts/Core/Audio/AudioController.cs:144)
AudioController:Create(String, Boolean, Transform, Rigidbody2D) (at Assets/Scripts/Core/Audio/AudioController.cs:98)
ThrowableItem:Awake() (at Assets/Scripts/World/PhysicalObject/ThrowableItem.cs:55)

```

Looks like main thread is blocked by this method.  
I also found that this method has parameter = blocking, which is always true.  
I tried to make it false, and infinite loop has gone.

But such solution doesn’t look reliable.  
Could yu provide more reliable solution?

---

<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 25, 2021, 1:40am UTC](https://qa.fmod.com/t/unity-infinite-hold-on-enter-play-mode-using-timeline/17592/2 "2021-08-25T01:40:13Z")

</div>

Hello!  
I was not able to reproduce your issue, but I did skip steps 2 and 6 because I’m not sure what you mean here:

> [@Vadim](#):
>
> Enforce creating new RuntimeManager (I move preview line to do this) in Editor Mode

Can you please clarify what you mean by “Enforce creating new RuntimeManager”?
