0
0

Hi,

I’m getting a crash after calling EventSystem_Create. At first I called EventSystem::init right after, the call stack was FMOD::EventProjectI::release then FMOD::EventReverbI::release. Then I added getSystemObject and getVersion both crashed with the callstack on FMOD::EventProjectI::release.

I’m using a Mac OS X 10.6.7, Xcode 3.2.6

Here is my init code:
[code:3cfxym36]
FMOD::Debug_SetLevel(FMOD_DEBUG_LEVEL_ALL);

if(FMOD::EventSystem_Create(&m_fmod) != FMOD_OK)
{
    //Error
}

FMOD_RESULT fmodResult = FMOD_OK;

unsigned int version;
m_fmod->getVersion(&version);

FMOD::System* fmodSystem = NULL;
m_fmod->getSystemObject(&fmodSystem);

fmodResult = fmodSystem->setDSPBufferSize(1024, 10);
if(fmodResult != FMOD_OK)
{
    //Error
}

fmodResult = m_fmod->init(256, FMOD_INIT_NORMAL, 0);
if(fmodResult != FMOD_OK)
{
    //Error
}

[/code:3cfxym36]

Any thoughts?

Thanks

  • You must to post comments
0
0

Can you reproduce this with the examples?

  • You must to post comments
0
0

No, I got the simple_event and realtime_tweaking examples to work without crashing.

  • You must to post comments
0
0

Is it possible to modify one of the examples to demonstrate the crash?
It sounds like something has gone wrong with linking perhaps, creating a system object is a pretty basic function call.

  • You must to post comments
0
0

I haven’t been able to. I figure if I knew how to break it, I would know the fix too.

  • You must to post comments
0
0

Did you just upgrade your FMOD Ex API files with the new release by chance?

I’m not using the Event system, but today I tried dropping in the new FMOD Ex 4.38.00. Both that and 4.36.06 crash my app right at the first FMOD::System_Create() call on my iOS 4.3.5 device. I don’t even get an FMOD_RESULT from the function.

Neither of the new ones crash in the iPhone Simulator. And FMOD Ex 4.36.05 still works great on my device.

I suspect with 4.38.00 being built for iOS 5, that could be the source of the trouble. But I don’t have a device running iOS 5.0 yet to test. And that wouldn’t seem to explain why 4.36.06 would crash when 4.36.05 does not.

(While I’m here, any hints on how to load the new API for iOS 5 users while keeping the old one around for 4.3 users at runtime?)

  • You must to post comments
0
0

Yes it’s true that the newly released versions of FMOD for iPhone are built using Xcode 4 and iOS 5. However I have just tried building the playsound example against the 4.3 SDK and run on a iPhone 3G with 4.2.1 and all works fine. Do you have any troubles with the playsound example?

Also regarding the Mac (which is build using Xcode3 and SDK 10.5, targeting OS 10.4), are you building with Xcode4? Are you using GCC or LLVM? Does it make a difference?

  • You must to post comments
0
0

The playsound example works for me. I’ve tried building using LLVM, it doesn’t make a difference and crashes in the same place. I’m using Xcode 3.2.6

I’ve tried using these Fmod versions: 4.34.05, 4.38.00, and 4.38.03.

  • You must to post comments
0
0

You might need to compare the example projects with your project to find what is different about them and hence discover the reason for the crash.

  • You must to post comments
0
0

Turns out it wasn’t using the header files from the mac install, but the originals that were committed. Thanks for the help.

  • You must to post comments
Showing 9 results
Your Answer

Please first to submit.