# \[iOS\] Frequent SystemNotInitializedException

**URL:** <https://qa.fmod.com/t/ios-frequent-systemnotinitializedexception/13458>\
**Category:** Unity\
**Created:** [September 22, 2017, 2:14pm UTC](https://qa.fmod.com/t/ios-frequent-systemnotinitializedexception/13458 "2017-09-22T14:14:30Z")\
**Posts on this page:** 18\
**Page:** 1

<div class="post-metadata">

**Author:** ![ankama-rthery](https://avatars.discourse-cdn.com/v4/letter/a/e19adc/32.png) [@ankama-rthery](https://qa.fmod.com/u/ankama-rthery)\
**Post date:** [September 22, 2017, 2:14pm UTC](https://qa.fmod.com/t/ios-frequent-systemnotinitializedexception/13458/1 "2017-09-22T14:14:30Z")

</div>

I cannot reproduce this exception on our test devices, but we frequently have the following exceptions sent to Unity performance reports service:  
SystemNotInitializedException: FMOD Studio initialization failed : Calling initialize : ERR\_OUTPUT\_INIT : Error initializing output device.

Occurring on all versions of iOS and devices, with FMOD 1.09.06

Any idea why it couldn’t initialize the output device ?

---

<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:** [September 24, 2017, 11:06pm UTC](https://qa.fmod.com/t/ios-frequent-systemnotinitializedexception/13458/2 "2017-09-24T23:06:03Z")

</div>

Normally this is caused by a conflict between Unity’s inbuilt audio and the FMOD integration. This can be avoided by disabling the Unity inbuilt audio, steps can be found here:  
[https://fmod.com/resources/documentation-api?page=content/generated/engine\_new\_unity/troubleshooting.html#/](https://fmod.com/resources/documentation-api?page=content/generated/engine_new_unity/troubleshooting.html#/)

---

<div class="post-metadata">

**Author:** ![ankama-rthery](https://avatars.discourse-cdn.com/v4/letter/a/e19adc/32.png) [@ankama-rthery](https://qa.fmod.com/u/ankama-rthery)\
**Post date:** [September 25, 2017, 9:02am UTC](https://qa.fmod.com/t/ios-frequent-systemnotinitializedexception/13458/3 "2017-09-25T09:02:15Z")

</div>

> [@](#):
>
> Normally this is caused by a conflict between Unity’s inbuilt audio and the FMOD integration. This can be avoided by disabling the Unity inbuilt audio, steps can be found here:  
> [https://fmod.com/resources/documentation-api?page=content/generated/engine\_new\_unity/troubleshooting.html#/](https://fmod.com/resources/documentation-api?page=content/generated/engine_new_unity/troubleshooting.html#/)

Thank you for your reply, unfortunately I already had disabled Unity Audio ticking that option. Any other leads ?

---

<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:** [September 26, 2017, 4:27am UTC](https://qa.fmod.com/t/ios-frequent-systemnotinitializedexception/13458/4 "2017-09-26T04:27:38Z")

</div>

The only other issue I can think of is if the app is suspended/sent to the background while it is starting up (during FMOD’s initialization). To avoid this you can enable the settings for background audio which will allow FMOD to init if suspended, but will still pause the sounds due to Unity and code in the RuntimeManager.cs.

[https://developer.apple.com/library/content/documentation/Audio/Conceptual/AudioSessionProgrammingGuide/AudioSessionBasics/AudioSessionBasics.html](https://developer.apple.com/library/content/documentation/Audio/Conceptual/AudioSessionProgrammingGuide/AudioSessionBasics/AudioSessionBasics.html)

---

<div class="post-metadata">

**Author:** ![shannon.greenwood.fu](https://avatars.discourse-cdn.com/v4/letter/s/e9c0ed/32.png) [@shannon.greenwood.fu](https://qa.fmod.com/u/shannon.greenwood.fu)\
**Post date:** [September 26, 2017, 7:07pm UTC](https://qa.fmod.com/t/ios-frequent-systemnotinitializedexception/13458/5 "2017-09-26T19:07:46Z")

</div>

The error isn’t reproducible, but is fairly common. We’re seeing it during development with a small number of users. Any more feedback on what is going on would be appreciated ( or confirmation of a fix ).

---

<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:** [September 27, 2017, 5:15am UTC](https://qa.fmod.com/t/ios-frequent-systemnotinitializedexception/13458/6 "2017-09-27T05:15:08Z")

</div>

Previously if the system failed to init, every time you tried to access it you would get an exception, making it hard to determine the cause.  
In the latest versions, 1.09.08 & 1.10.00, we changed it to throw the exception once and then set the system to no sound mode. This is not a fix, just nicer.

I’m not sure what the fix would be without seeing more information on the specific error as there could be a number of causes. The couple I mentioned above are just the most common, and are out of our control to ‘fix’.

---

<div class="post-metadata">

**Author:** ![shannon.greenwood.fu](https://avatars.discourse-cdn.com/v4/letter/s/e9c0ed/32.png) [@shannon.greenwood.fu](https://qa.fmod.com/u/shannon.greenwood.fu)\
**Post date:** [September 27, 2017, 5:41pm UTC](https://qa.fmod.com/t/ios-frequent-systemnotinitializedexception/13458/7 "2017-09-27T17:41:03Z")

</div>

Will there be logs in addition to this error that will help diagnose? How can I gather more information about what is happening?

---

<div class="post-metadata">

**Author:** ![shannon.greenwood.fu](https://avatars.discourse-cdn.com/v4/letter/s/e9c0ed/32.png) [@shannon.greenwood.fu](https://qa.fmod.com/u/shannon.greenwood.fu)\
**Post date:** [September 27, 2017, 5:41pm UTC](https://qa.fmod.com/t/ios-frequent-systemnotinitializedexception/13458/8 "2017-09-27T17:41:07Z")

</div>

Will there be logs in addition to this error that will help diagnose? How can I gather more information about what is happening?

---

<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:** [September 28, 2017, 2:17am UTC](https://qa.fmod.com/t/ios-frequent-systemnotinitializedexception/13458/9 "2017-09-28T02:17:11Z")

</div>

You can add extra flags to the FMOD Debug init in the RuntimeManager.cs, to look like this:

FMOD.Debug.Initialize(FMOD.DEBUG\_FLAGS.LOG | FMOD.DEBUG\_FLAGS.TYPE\_TRACE, FMOD.DEBUG\_MODE.FILE, null, RuntimeUtils.LogFileName);

This should provide more information about the errors. If you could provide the log files, either here or to [support@fmod.com](mailto:support@fmod.com), we can take a look for you.

---

<div class="post-metadata">

**Author:** ![shannon.greenwood.fu](https://avatars.discourse-cdn.com/v4/letter/s/e9c0ed/32.png) [@shannon.greenwood.fu](https://qa.fmod.com/u/shannon.greenwood.fu)\
**Post date:** [September 28, 2017, 10:57pm UTC](https://qa.fmod.com/t/ios-frequent-systemnotinitializedexception/13458/10 "2017-09-28T22:57:59Z")

</div>

changed the code by commenting out #define

got this error  
03:47:19 [Exception] SystemNotInitializedException: FMOD Studio initialization failed : Applying debug settings : ERR\_UNSUPPORTED : A command issued was not supported by this object. Possibly a plugin without certain callbacks specified. FMODUnity.RuntimeManager.CheckInitResult (RESULT result, System.String cause)  
FMODUnity.RuntimeManager.Initialiase (Boolean forceNoNetwork)  
FMODUnity.RuntimeManager.get\_Instance ()  
FMODUnity.RuntimeManager.LoadBank (System.String bankName, Boolean loadSamples)  
FMODUnity.StudioBankLoader.Load ()  
FMODUnity.StudioBankLoader.HandleGameEvent (LoaderGameEvent gameEvent)  
FMODUnity.StudioBankLoader.Start ()

Is this supported on IOS at all?  
(since I had to comment out the define)

Do I need to set the DEVELOPMENT\_BUILD #define?

//#if UNITY\_EDITOR || ((UNITY\_STANDALONE\_WIN || UNITY\_STANDALONE\_OSX) && DEVELOPMENT\_BUILD)  
result = FMOD.Debug.Initialize(FMOD.DEBUG\_FLAGS.LOG | FMOD.DEBUG\_FLAGS.TYPE\_TRACE, FMOD.DEBUG\_MODE.FILE, null, RuntimeUtils.LogFileName);  
if (result == FMOD.RESULT.ERR\_FILE\_NOTFOUND)  
{  
#if UNITY\_5\_X  
Debug.LogErrorFormat(“FMOD Studio: Cannot open FMOD debug log file ‘{0}’, logs will be missing for this session.”, System.IO.Path.Combine(Application.dataPath, RuntimeUtils.LogFileName));  
#else  
Debug.LogError(string.Format(“FMOD Studio: Cannot open FMOD debug log file ‘{0}’, logs will be missing for this session.”, System.IO.Path.Combine(Application.dataPath, RuntimeUtils.LogFileName)));  
#endif  
}  
else  
{  
CheckInitResult(result, “Applying debug settings”);  
}  
//#endif

---

<div class="post-metadata">

**Author:** ![JohannesD](https://avatars.discourse-cdn.com/v4/letter/j/5daacb/32.png) [@JohannesD](https://qa.fmod.com/u/JohannesD)\
**Post date:** [January 10, 2018, 2:24pm UTC](https://qa.fmod.com/t/ios-frequent-systemnotinitializedexception/13458/11 "2018-01-10T14:24:39Z")

</div>

Any progress on this so far?  
I’m also getting this error from Unity performance reporting:  
FMOD Studio initialization failed : Calling initialize : ERR\_OUTPUT\_INIT : Error initializing output device.

Disabling unity audio has the problem that all other audio sources are muted. It is not possible (as of my knowledge) to set the audio session yourself before showing the splash screen:  
[https://www.fmod.org/questions/question/mute-audio-sources-option-ignored-when-disabling-unity-audio/#sabai-entity-content-46782](https://www.fmod.org/questions/question/mute-audio-sources-option-ignored-when-disabling-unity-audio/#sabai-entity-content-46782)

---

<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:** [January 12, 2018, 4:48am UTC](https://qa.fmod.com/t/ios-frequent-systemnotinitializedexception/13458/12 "2018-01-12T04:48:25Z")

</div>

> [@](#):
>
> Any progress on this so far?  
> I’m also getting this error from Unity performance reporting:  
> FMOD Studio initialization failed : Calling initialize : ERR\_OUTPUT\_INIT : Error initializing output device.
> 
> Disabling unity audio has the problem that all other audio sources are muted. It is not possible (as of my knowledge) to set the audio session yourself before showing the splash screen:  
> [Mute audio sources option ignored when disabling unity audio - Unity - FMOD Forums](https://www.fmod.org/questions/question/mute-audio-sources-option-ignored-when-disabling-unity-audio/#sabai-entity-content-46782)

We are currently looking into this and will hopefully have a solution soon.

---

<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:** [January 17, 2018, 3:42am UTC](https://qa.fmod.com/t/ios-frequent-systemnotinitializedexception/13458/13 "2018-01-17T03:42:16Z")

</div>

In FMOD Studio version 1.09.07 we limited the number of exceptions thrown from this issue by re-initializing in no sound mode. This is by no means a fix for the cause of the exception but it does stop the error spam.

We currently have a solution planned for a future release, although it does require reworking some of the LowLevel init system for iOS, unfortunately we don’t have a time frame for this at the moment.

---

<div class="post-metadata">

**Author:** ![vorrin](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/vorrin/32/350_2.png) [@vorrin](https://qa.fmod.com/u/vorrin)\
**Post date:** [May 7, 2019, 3:46pm UTC](https://qa.fmod.com/t/ios-frequent-systemnotinitializedexception/13458/14 "2019-05-07T15:46:58Z")

</div>

Hello Cameron! I’m doing a little research, trying to decide whether to use FMOD for an iOS project. Would you happen to have an update on this issue? Thank you!

---

<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 13, 2019, 11:55pm UTC](https://qa.fmod.com/t/ios-frequent-systemnotinitializedexception/13458/15 "2019-05-13T23:55:21Z")

</div>

This task has not been scheduled as of yet and I’m unable to speculate at a time frame at this point.

---

<div class="post-metadata">

**Author:** ![vorrin](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/vorrin/32/350_2.png) [@vorrin](https://qa.fmod.com/u/vorrin)\
**Post date:** [May 14, 2019, 8:13am UTC](https://qa.fmod.com/t/ios-frequent-systemnotinitializedexception/13458/16 "2019-05-14T08:13:09Z")

</div>

Thank you for your answer! And wow, it’s been quite a while since it was reported, I assume few people that use FMOD on iOS encounter it?

---

<div class="post-metadata">

**Author:** ![Eclipsed](https://avatars.discourse-cdn.com/v4/letter/e/bbce88/32.png) [@Eclipsed](https://qa.fmod.com/u/Eclipsed)\
**Post date:** [July 29, 2019, 2:48pm UTC](https://qa.fmod.com/t/ios-frequent-systemnotinitializedexception/13458/17 "2019-07-29T14:48:59Z")

</div>

Hi, any update on this?  
I’m having the exact same problem on iOS, it’s intermittent but seems to be far more common in development builds.

Worth noting that this is with FMOD 2.00.02, never encountered this with the previous version (1.9.something).

Any help appreciated.  
Thanks!

---

<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:** [August 2, 2019, 4:02am UTC](https://qa.fmod.com/t/ios-frequent-systemnotinitializedexception/13458/18 "2019-08-02T04:02:50Z")

</div>

In development build you will see an error from `FMOD.Debug.Initialize` if the logging library has not been selected instead of the release library. I have added a new section to the docs for handling this: [https://fmod.com/resources/documentation-unity?version=2.0&page=platform-specifics.html#fmod-libs-on-static-platforms](https://fmod.com/resources/documentation-unity?version=2.0&page=platform-specifics.html#fmod-libs-on-static-platforms)
