My favorites | Sign in
Project Home Wiki Issues Source
READ-ONLY: This project has been archived. For more information see this post.
Search
for
  Advanced search   Search tips   Subscriptions
Issue 249: iOS Exception on Audio Playback EXC_BAD_ACCESS
1 person starred this issue and may be notified of changes. Back to list
Status:  New
Owner:  ----


 
Reported by gaudrea...@gmail.com, Aug 17, 2013
It appears that sometimes sounds are trying to make a finishedPlaying callback to a delegate that's been disposed of. I'm not sure where in NME this is occurring, but the delegate should be set to nil.

This is a very rare, intermittent exception.

P.S. These sounds are being played from another thread, but there is a EVENT_COMPLETE listener registered in the main thread.

Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x43465254
Crashed Thread: 0

Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0 libobjc.A.dylib 0x396885b0 objc_msgSend + 16
1 AVFoundation 0x3094f752 -[AVAudioPlayer(AVAudioPlayerPriv) finishedPlaying:] + 74
2 Foundation 0x321400f0 __NSThreadPerformPerform + 456
3 CoreFoundation 0x317fe680 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 12
4 CoreFoundation 0x317fdee4 __CFRunLoopDoSources0 + 208
5 CoreFoundation 0x317fccb2 __CFRunLoopRun + 642
6 CoreFoundation 0x3176feb8 CFRunLoopRunSpecific + 352
7 CoreFoundation 0x3176fd44 CFRunLoopRunInMode + 100
8 Arcade 0x0012a2c0 -[NMEAppDelegate mainLoop] + 156


iOS 6.3.1
NME 3.5.5
hxcpp 3.0.1

So far this problem has not reoccurred upon switching back to hxcpp 2.10.1

Powered by Google Project Hosting