# \[Android\] FMOD error! (28) when trying to initialize system

**URL:** <https://qa.fmod.com/t/android-fmod-error-28-when-trying-to-initialize-system/15482>\
**Category:** FMOD Engine\
**Created:** [February 20, 2020, 11:33pm UTC](https://qa.fmod.com/t/android-fmod-error-28-when-trying-to-initialize-system/15482 "2020-02-20T23:33:26Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![remi79](https://avatars.discourse-cdn.com/v4/letter/r/3ec8ea/32.png) [@remi79](https://qa.fmod.com/u/remi79)\
**Post date:** [February 20, 2020, 11:33pm UTC](https://qa.fmod.com/t/android-fmod-error-28-when-trying-to-initialize-system/15482/1 "2020-02-20T23:33:26Z")

</div>

Hello guys,

During development on our game, we encountered an issue with FMOD library. One of our devies (Samsung Galaxy S9+ to be precise) fails to initialize FMOD engine and throws  
**FMOD error 28 - “An error occurred that wasn’t supposed to. Contact support”** during:

```
ERRCHECK(FMOD::Studio::System::create(&engine));
ERRCHECK(engine->initialize(
        1024,
        FMOD_STUDIO_INIT_NORMAL,
        FMOD_INIT_NORMAL,
        extraDriverData));

```

The same exact build works on our other devices, but this particular one cannot seem to run it. Maybe the issue is related to a specific Android ABIs that CPU use?  
We’ve also tried to run FMOD samples on this device, but unfortunatelly the outcom was the same.

**Testing enviroment:**  
Project: Game written in Kotlin using Android Studio  
Phone: Samsung Galaxy S9+ with Exynos 9810 CPU  
OS: Android 9.0  
FMOD version: Latest

Is there a way to enable deeper logging to learn more what went wrong during engine-\>initialize() method?

---

<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:** [February 26, 2020, 4:57am UTC](https://qa.fmod.com/t/android-fmod-error-28-when-trying-to-initialize-system/15482/2 "2020-02-26T04:57:47Z")

</div>

You can use [Debug\_Initialize](https://fmod.com/resources/documentation-api?version=2.0&page=core-api-common.html#debug_initialize) before initialize to customize the logging output by FMOD. Do you get any system errors from the logcat at all?

---

<div class="post-metadata">

**Author:** ![LemonTree](https://avatars.discourse-cdn.com/v4/letter/l/dbc845/32.png) [@LemonTree](https://qa.fmod.com/u/LemonTree)\
**Post date:** [March 3, 2020, 11:22am UTC](https://qa.fmod.com/t/android-fmod-error-28-when-trying-to-initialize-system/15482/3 "2020-03-03T11:22:36Z")

</div>

Hello Cameron  
During development on our game, we encountered an issue with FMOD library.The main thread initializes Fmod successfully,but fails in the logical thread.the init fails return core is “28”,“FMOD error 28 - “An error occurred that wasn’t supposed to. Contact support”.I went to the API documentation and found that init must be on the main thread. I want to ask you why init failed?

---

<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:** [March 4, 2020, 4:10am UTC](https://qa.fmod.com/t/android-fmod-error-28-when-trying-to-initialize-system/15482/4 "2020-03-04T04:10:55Z")

</div>

Are you using the FMOD logging lib?  
Do you get any system errors from the logcat at all?

---

<div class="post-metadata">

**Author:** ![LemonTree](https://avatars.discourse-cdn.com/v4/letter/l/dbc845/32.png) [@LemonTree](https://qa.fmod.com/u/LemonTree)\
**Post date:** [March 9, 2020, 9:50am UTC](https://qa.fmod.com/t/android-fmod-error-28-when-trying-to-initialize-system/15482/5 "2020-03-09T09:50:40Z")

</div>

Thank you for your reply. I solved this problem by using attachcurrentthread to add my user thread to the Java environment

---

<div class="post-metadata">

**Author:** ![LemonTree](https://avatars.discourse-cdn.com/v4/letter/l/dbc845/32.png) [@LemonTree](https://qa.fmod.com/u/LemonTree)\
**Post date:** [September 2, 2020, 6:05am UTC](https://qa.fmod.com/t/android-fmod-error-28-when-trying-to-initialize-system/15482/6 "2020-09-02T06:05:11Z")

</div>

Hello my friend  
when I use 1 Realy channel to play sound, I see the channel always alone high priority sound although the audibility is 0. how other low priority sounds to race to control the real channel, make high priority sounds to virtual.

---

<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 10, 2020, 6:22am UTC](https://qa.fmod.com/t/android-fmod-error-28-when-trying-to-initialize-system/15482/7 "2020-09-10T06:22:09Z")

</div>

The only way to do this is to have the sounds at equal priority levels. Are you setting the priority of the sounds?

---

<div class="post-metadata">

**Author:** ![LemonTree](https://avatars.discourse-cdn.com/v4/letter/l/dbc845/32.png) [@LemonTree](https://qa.fmod.com/u/LemonTree)\
**Post date:** [October 30, 2020, 6:26am UTC](https://qa.fmod.com/t/android-fmod-error-28-when-trying-to-initialize-system/15482/8 "2020-10-30T06:26:54Z")

</div>

Thank your reply,The problem because my channel priority set ‘0’ ,the priority is special so other low priority sounds unable to race to control the real channel
