kstenerud / ObjectAL-for-iPhone

Mac and iOS Audio development, minus the headache. ObjectAL is the easy Objective-C interface to OpenAL, AVAudioPlayer, and audio session management.
http://kstenerud.github.com/ObjectAL-for-iPhone
885 stars 171 forks source link

OALTools g_defaultBundle causes EXC_BAD_ACCESS #101

Open nekot opened 7 years ago

nekot commented 7 years ago

I'm using Objective-C, non-ARC environment, iOS10 simulator on OS X El Capitan Xcode 8.2.1, communicating with CoreMIDI MacOS test application. (I mean this is complexed environment and currenly only reproducible on this environment)

g_defaultBundle in +urlForPath: of OALTools causes EXC_BAD_ACCESS when I use OALSimpleAudio.

+ (NSURL*) urlForPath:(NSString*) path
{
    return [self urlForPath:path bundle:g_defaultBundle];
}

IF I change g_defaultBundle to [NSBundle mainbundle] , it works fine. There are too many places to check to debug, so I just wanted to report this to get related bug information.

Thank you,