0
0

i was doing some testing on my win server 2008 machine with no audio drivers installed to test error handeling. The call to FMOD_System_Init did not return an error code, but instead caused a crash.

[code:1rygpeve]
fmodError = FMOD_System_Create(&fmodSystem);
if (fmodError != FMOD_OK)
{
FMOD_Error(fmodError);
//return false;
}

//initialize fmod
crash>>>fmodError = FMOD_System_Init(fmodSystem, 1, FMOD_INIT_NORMAL, NULL);
if (fmodError != FMOD_OK)
{
    FMOD_Error(fmodError);
    //return false;
}

[/code:1rygpeve]
To avoid the crash I simply made fmod test for audio drivers before calling system init. But I thought I would let you know that it crashes instead of returning an error code. FMOD version 4.18.07

Cheers!
-NCI

  • You must to post comments
0
0

FMOD hasn’t been tested on Windows Server 2008, but I don’t see any immediate reason for it to crash. Could you possibly link with the logging version of FMOD and show us the output?

  • You must to post comments
0
0

Here is the log output when run on win server 2008:

FMOD: OutputWASAPI::enumerate : Enumerating…
FMOD: OutputWASAPI::enumerate : CoInitialize.
FMOD: OutputWASAPI::enumerate : Done.
FMOD: SystemI::init : FMOD Ex Version: 00041807
FMOD: SystemI::init : maxchannels = 1, flags = 00000000, extradriverdata = 00000000
FMOD: SystemI::close :
FMOD: SystemI::close : Stop all sounds
FMOD: SystemI::close : Shut down output.
FMOD: OutputWASAPI::close : Closing…
FMOD: OutputWASAPI::close : Done.
FMOD: SystemI::close : Remove miscllaneous DSP stuff.
FMOD: SystemI::close : done.

FMOD: OutputWASAPI::enumerate : Enumerating…
FMOD: OutputWASAPI::enumerate : CoInitialize.
FMOD: OutputWASAPI::enumerate : Done.
FMOD: OutputWASAPI::initEx : Initialising…
FMOD: OutputWASAPI::initEx : No output sound devices found

  • You must to post comments
0
0

Are you calling any FMOD functions after system::init() has failed?

Looking at that log you can see it report "No output sound devices found", directly after the line of code that generates that output, FMOD flows all the way out of system::init() reporting FMOD_ERR_OUTPUT_INIT.

Are you saying FMOD crashes after that log line has been printed but before system::init() has returned?

  • You must to post comments
0
0

yeah, i noticed that too, but givin that I have:

[code:30w2tn4w]
fmodError = FMOD_System_Init(fmodSystem, 1, FMOD_INIT_NORMAL, NULL);
if (fmodError != FMOD_OK)
{
FMOD_Error(fmodError);
//return false;
}
[/code:30w2tn4w]

it is supposed to bring up an error message. When I call GetNumDrivers, i can check to see if it is greater that 0. if it isnt, then i just skip the whole init thing. When I then attempt to play files, i get the normal FMOD errors sayng system init was called, etc…

But for some reason, it will not let me call System_Init when there are no audio drivers.

I just did a test on my windows vista machine. I disabled my sound card and ran the program and it crashed as well.

When in VC++ running in debug mode, it correctly returns the error code and shows the error message, however, when I run the program outside of VC++ it crashes. it crashes for both release and debug versions. Would certain compile settings of my program cause this kind of behavior?

  • You must to post comments
0
0

I’m not sure why you would only be getting this happen outside the debugger.

Have you tried running one of the example applications (for instance play sound) on your 2008 server or Vista machine? Do they exhibit the same problem. I have just tried it here on my Vista machine (with all sound cards disabled) and it returns the error as expected.

  • You must to post comments
0
0

hmm,
I just tried the examples and they seem to return errors as expected (as none of them crashed). So it must be something stupid im doing… but I dunno what it is 😕

it must be some stupid compile setting. So, i’m playing around with those now…

[EDIT]
[quote:j2pi4pd7]So it must be something stupid im doing… [/quote:j2pi4pd7]

Well… I… um… fixed it… and as usual I feel like an idiot. there was some buggy code in the error check function… which was honestly the last place i even dreamed of looking. So, all is good. yeah :roll:
(might have something to do with coding at 3:45 AM)

  • You must to post comments
0
0

I am glad you have the problem resolved.

  • You must to post comments
0
0

[quote="mathew":1tdi1f87]FMOD hasn’t been tested on Windows Server 2008, but I don’t see any immediate reason for it to crash. Could you possibly link with the logging version of FMOD and show us the output?[/quote:1tdi1f87]

Hi Mathew,
which is the logging version of FMOD? How can I get it? For Linux?
Regards

  • You must to post comments
0
0

[quote="nci":16wpzsj1]Here is the log output when run on win server 2008:

FMOD: OutputWASAPI::enumerate : Enumerating…
FMOD: OutputWASAPI::enumerate : CoInitialize.
FMOD: OutputWASAPI::enumerate : Done.
FMOD: SystemI::init : FMOD Ex Version: 00041807
FMOD: SystemI::init : maxchannels = 1, flags = 00000000, extradriverdata = 00000000
FMOD: SystemI::close :
FMOD: SystemI::close : Stop all sounds
FMOD: SystemI::close : Shut down output.
FMOD: OutputWASAPI::close : Closing…
FMOD: OutputWASAPI::close : Done.
FMOD: SystemI::close : Remove miscllaneous DSP stuff.
FMOD: SystemI::close : done.

FMOD: OutputWASAPI::enumerate : Enumerating…
FMOD: OutputWASAPI::enumerate : CoInitialize.
FMOD: OutputWASAPI::enumerate : Done.
FMOD: OutputWASAPI::initEx : Initialising…
FMOD: OutputWASAPI::initEx : No output sound devices found[/quote:16wpzsj1]

Hi,
how did you get this output?
Regards

  • You must to post comments
0
0

We currently don’t have a logging version for Linux but it is on my todo list.

  • You must to post comments
Showing 10 results
Your Answer

Please first to submit.