# An error occurred that wasn't supposed to.  Contact support.

**URL:** https://qa.fmod.com/t/an-error-occurred-that-wasnt-supposed-to-contact-support/11974
**Category:** FMOD Engine
**Created:** [July 2, 2015, 2:56am UTC](https://qa.fmod.com/t/an-error-occurred-that-wasnt-supposed-to-contact-support/11974 "2015-07-02T02:56:39Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![xqqq](https://avatars.discourse-cdn.com/v4/letter/x/5daacb/32.png) [@xqqq](https://qa.fmod.com/u/xqqq)
#### Post date: [July 2, 2015, 2:56am UTC](https://qa.fmod.com/t/an-error-occurred-that-wasnt-supposed-to-contact-support/11974/1 "2015-07-02T02:56:39Z")

</div>

when i use fmod::studio system-\>initialize(256, FMOD\_STUDIO\_INIT\_NORMAL, FMOD\_INIT\_NORMAL, 0) i got an error 28 it say : An error occurred that wasn’t supposed to. Contact support. how can i to solve this problem, help

```
[LOG] System::create : Header version = 1.5.14. Current version = 1.5.14.
[LOG] SystemI::init : FMOD Studio Version: 00010514 (62598)
[LOG] SystemI::init : maxchannels = 128, flags = 00000000, extradriverdata = 00000000
[LOG] SystemI::close : 
[LOG] SystemI::close : Stop all sounds
[LOG] SystemI::close : Remove miscllaneous DSP stuff.
[LOG] SystemI::close : done.

[LOG] SystemI::init : Set up software engine
[LOG] OutputDSound::registerDLL : Register DLL
[LOG] OutputDSound::registerDLL : Detected DIRECTX 9
[LOG] OutputDSound::init : Enumerate Drivers
[LOG] FMOD_Output_DSound_EnumProc : Enumerating "Realtek HD Audio output"
[LOG] OutputDSound::init : DirectSoundCreate8 : mSelectedDriver = 0
[LOG] OutputDSound::init : SetCooperativeLevel
[LOG] OutputDSound::init : GetCaps
[LOG] OutputDSound::init : Create Primary Buffer
[LOG] OutputDSound::init : Set Primary Buffer Format
[LOG] OutputDSound::init : Done
[ERR] assert : assertion: '(speakermode > FMOD_SPEAKERMODE_DEFAULT) && (speakermode < FMOD_SPEAKERMODE_MAX)' failed
[LOG] Global::decRef : Shut down streamer and FMOD_NONBLOCKING and FileSystem thread.
[LOG] Global::decRef : Shut down file system.
[LOG] SystemI::close : 
[LOG] SystemI::close : Stop all sounds
[LOG] SystemI::close : Shut down output.
[LOG] OutputDSound::close : 
[LOG] OutputDSound::close : FreeLibrary on dsound.dll
[LOG] OutputDSound::close : Free driver list
[LOG] OutputDSound::close : done
[LOG] SystemI::close : Free software output.
[LOG] SystemI::close : Remove miscllaneous DSP stuff.
[LOG] SystemI::close : done.

[LOG] OutputDSound::close : 
[LOG] OutputDSound::close : FreeLibrary on dsound.dll
[LOG] OutputDSound::close : Free driver list
[LOG] OutputDSound::close : done
```

---

<div class="post-metadata">

### Author: ![xqqq](https://avatars.discourse-cdn.com/v4/letter/x/5daacb/32.png) [@xqqq](https://qa.fmod.com/u/xqqq)
#### Post date: [July 2, 2015, 3:01am UTC](https://qa.fmod.com/t/an-error-occurred-that-wasnt-supposed-to-contact-support/11974/2 "2015-07-02T03:01:40Z")

</div>

> [@](#):
>
> when i use fmod::studio system-\>initialize(256, FMOD\_STUDIO\_INIT\_NORMAL, FMOD\_INIT\_NORMAL, 0) i got an error 28 it say : An error occurred that wasn’t supposed to. Contact support. how can i to solve this problem, help
> 
> ```
> [LOG] System::create : Header version = 1.5.14. Current version = 1.5.14.
> [LOG] SystemI::init : FMOD Studio Version: 00010514 (62598)
> [LOG] SystemI::init : maxchannels = 128, flags = 00000000, extradriverdata = 00000000
> [LOG] SystemI::close : 
> [LOG] SystemI::close : Stop all sounds
> [LOG] SystemI::close : Remove miscllaneous DSP stuff.
> [LOG] SystemI::close : done.
> 
> [LOG] SystemI::init : Set up software engine
> [LOG] OutputDSound::registerDLL : Register DLL
> [LOG] OutputDSound::registerDLL : Detected DIRECTX 9
> [LOG] OutputDSound::init : Enumerate Drivers
> [LOG] FMOD_Output_DSound_EnumProc : Enumerating "Realtek HD Audio output"
> [LOG] OutputDSound::init : DirectSoundCreate8 : mSelectedDriver = 0
> [LOG] OutputDSound::init : SetCooperativeLevel
> [LOG] OutputDSound::init : GetCaps
> [LOG] OutputDSound::init : Create Primary Buffer
> [LOG] OutputDSound::init : Set Primary Buffer Format
> [LOG] OutputDSound::init : Done
> [ERR] assert : assertion: '(speakermode > FMOD_SPEAKERMODE_DEFAULT) && (speakermode < FMOD_SPEAKERMODE_MAX)' failed
> [LOG] Global::decRef : Shut down streamer and FMOD_NONBLOCKING and FileSystem thread.
> [LOG] Global::decRef : Shut down file system.
> [LOG] SystemI::close : 
> [LOG] SystemI::close : Stop all sounds
> [LOG] SystemI::close : Shut down output.
> [LOG] OutputDSound::close : 
> [LOG] OutputDSound::close : FreeLibrary on dsound.dll
> [LOG] OutputDSound::close : Free driver list
> [LOG] OutputDSound::close : done
> [LOG] SystemI::close : Free software output.
> [LOG] SystemI::close : Remove miscllaneous DSP stuff.
> [LOG] SystemI::close : done.
> 
> [LOG] OutputDSound::close : 
> [LOG] OutputDSound::close : FreeLibrary on dsound.dll
> [LOG] OutputDSound::close : Free driver list
> [LOG] OutputDSound::close : done
> 
> ```

in some machine it appear but in other not.

---

<div class="post-metadata">

### Author: ![mathew](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/mathew/32/431_2.png) [@mathew](https://qa.fmod.com/u/mathew)
#### Post date: [July 2, 2015, 5:21am UTC](https://qa.fmod.com/t/an-error-occurred-that-wasnt-supposed-to-contact-support/11974/3 "2015-07-02T05:21:42Z")

</div>

Could you include the output of the logging version of FMOD in your question please?

---

<div class="post-metadata">

### Author: ![xqqq](https://avatars.discourse-cdn.com/v4/letter/x/5daacb/32.png) [@xqqq](https://qa.fmod.com/u/xqqq)
#### Post date: [July 2, 2015, 6:51am UTC](https://qa.fmod.com/t/an-error-occurred-that-wasnt-supposed-to-contact-support/11974/4 "2015-07-02T06:51:18Z")

</div>

i have include the output of the logging version, but i can’t find log file, where to find the log file?

---

<div class="post-metadata">

### Author: ![xqqq](https://avatars.discourse-cdn.com/v4/letter/x/5daacb/32.png) [@xqqq](https://qa.fmod.com/u/xqqq)
#### Post date: [July 2, 2015, 7:14am UTC](https://qa.fmod.com/t/an-error-occurred-that-wasnt-supposed-to-contact-support/11974/5 "2015-07-02T07:14:48Z")

</div>

there is no editor in this machine that has problem, so i can’t see the logging. could it create a log file for me to see?

---

<div class="post-metadata">

### Author: ![mathew](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/mathew/32/431_2.png) [@mathew](https://qa.fmod.com/u/mathew)
#### Post date: [July 7, 2015, 1:29am UTC](https://qa.fmod.com/t/an-error-occurred-that-wasnt-supposed-to-contact-support/11974/6 "2015-07-07T01:29:19Z")

</div>

The provided log information is what I was looking for. Are you on Windows XP? If so could you try calling System::setSoftwareFormat(48000, FMOD\_SPEAKERMODE\_STEREO, 0) before System::init. If not could you try removing the call to System::setOutput. Please post your update output if it fails with my suggested changes.

---

<div class="post-metadata">

### Author: ![xqqq](https://avatars.discourse-cdn.com/v4/letter/x/5daacb/32.png) [@xqqq](https://qa.fmod.com/u/xqqq)
#### Post date: [July 7, 2015, 4:08am UTC](https://qa.fmod.com/t/an-error-occurred-that-wasnt-supposed-to-contact-support/11974/7 "2015-07-07T04:08:59Z")

</div>

yes, i am on windows xq, thank you, by calling System::setSoftwareFormat,i have solve the problem,thank you!

---

<div class="post-metadata">

### Author: ![xqqq](https://avatars.discourse-cdn.com/v4/letter/x/5daacb/32.png) [@xqqq](https://qa.fmod.com/u/xqqq)
#### Post date: [July 7, 2015, 4:09am UTC](https://qa.fmod.com/t/an-error-occurred-that-wasnt-supposed-to-contact-support/11974/8 "2015-07-07T04:09:56Z")

</div>

the problem has been solved.
