OpenAL crash: PCMConverter::ConvertBufferList

Member
Posts: 320
Joined: 2003.06
Post: #1
I am having a maddening problem with OpenAL. It will crash with EXC_BAD_ACCESS after a few minutes of playing many sounds, always in PCMConverter::ConvertBufferList usually in NativeInt16ToFloat32_X86. Sometimes instead of crashing it will corrupt memory elsewhere and set a bunch of my object pointers to 0x0, but when that happens the audio thread is always in the above function.

I found this thread: http://www.idevgames.com/forum/archive/i...10919.html which seems to have similar bug reports and as far as I can see the sollution was 'Upgraded OpenAL framework, so OpenAL crashes should no longer happen'

Now I'm on 10.5.2. This is the system OpenAL I am using. I've spent two full days now checking and double checking that my buffer sizes are all correct, running with guardmalloc, making sure all my audio code is as sounds as can be etc... has anyone had or seen similar problems? I'm running out of ideas here. Perhaps OpenAL on 10.5.2 is broken?

Chopper, iSight Screensavers, DuckDuckDuck: http://majicjungle.com
Quote this message in a reply
Member
Posts: 320
Joined: 2003.06
Post: #2
Well that was the second most difficult to track down bug I have ever come across.

Sollution: Don't try to set a source's pitch to nan.

It would be nice if OpenAL didn't decide that such an operation warranted trashing memory - including causing complete system hangs - but there ya go. Now I think I need some sleep.

Chopper, iSight Screensavers, DuckDuckDuck: http://majicjungle.com
Quote this message in a reply
Member
Posts: 81
Joined: 2007.05
Post: #3
Hmm, OpenAL has been working for me on 10.5.2 . Though, in my application's Contents directory, I make a folder called Frameworks and my app searchers there first for OpenAL. Maybe, I have an older version. Should read this before the system version. I put the expat framework I built there too. I ported over ALUT too. Seems to work well with 16 bit audio clips attained from soundsnap.com .
Quote this message in a reply
Post Reply