Hi I recently upgrade an old IOS app to use IOS 10.x. When I run the app I am able to play songs how ever when I stop the song I get the following crash. My app is written using audio queues, My soundEngine¹ has a AudioQueueBuffer used for playback and my AQConverter¹ has a another AudioQueueBufferRef used to convert the audio to LPCM
ref: https://forums.developer.apple.com/thread/66006 Ref: bug report 28875196 Any suggestions would be greatly appreciated. Thanks Andy //////////////////////////////////////////////////////////////////////////// //// // AQConverter - (void) stop { // http://developer.apple.com/iphone/library/qa/qa2009/qa1562.html <http://developer.apple.com/iphone/library/qa/qa2009/qa1562.html> AudioQueueStop ( self.queueObject, self.audioConverterShouldStopImmediately ); AudioFileClose (self.audioFileID); audioFileIDIsClosed = YES; } //////////////////////////////////////////////////////////////////////////// //// // SoundEngine.mm:332 - (void) stop { userPressedStopButton = YES; AQConverter.audioConverterShouldStopImmediately = self.audioPlayerShouldStopImmediately; [AQConverter stop]; AudioQueueStop (queueObject, self.audioPlayerShouldStopImmediately ); userPressedStopButton = NO; // clear flag } Incident Identifier: D83B258B-1DB7-4B9F-B803-FE63EA722910 CrashReporter Key: 34531acd52fc739c4c031178e5d923de281cfbd8 Hardware Model: iPhone7,1 Process: MusicTrainer [2567] Path: /private/var/containers/Bundle/Application/57FB2B1F-0FD8-49A1-9F8B-BDE3C9568 2E1/MusicTrainer.app/MusicTrainer Identifier: com.santacruzintegration.com.MusicTrainer Version: 3.5.3 (3.5.3) Code Type: ARM-64 (Native) Role: Foreground Parent Process: launchd [1] Coalition: com.santacruzintegration.com.MusicTrainer [1595] Date/Time: 2016-10-19 12:38:07.2604 -0700 Launch Time: 2016-10-19 12:37:59.7596 -0700 OS Version: iPhone OS 10.0.2 (14A456) Report Version: 104 Exception Type: EXC_BREAKPOINT (SIGTRAP) Exception Codes: 0x0000000000000001, 0x000000018d5d9f60 Termination Signal: Trace/BPT trap: 5 Termination Reason: Namespace SIGNAL, Code 0x5 Terminating Process: exc handler [0] Triggered by Thread: 4 Application Specific Information: BUG IN CLIENT OF LIBDISPATCH: dispatch_barrier_sync called on queue already owned by current thread Abort Cause 6175045248 Filtered syslog: None found Thread 0 name: Dispatch queue: com.apple.main-thread Thread 0: 0 libsystem_kernel.dylib 0x000000018d6f016c mach_msg_trap + 8 1 libsystem_kernel.dylib 0x000000018d6effdc mach_msg + 72 2 CoreFoundation 0x000000018e6edcec __CFRunLoopServiceMachPort + 192 3 CoreFoundation 0x000000018e6eb908 __CFRunLoopRun + 1132 4 CoreFoundation 0x000000018e61a048 CFRunLoopRunSpecific + 444 5 AudioToolbox 0x000000019168e4b4 ClientAudioQueue::AwaitAllPendingCallbacks(bool) + 1088 6 AudioToolbox 0x0000000191690098 AudioQueueStop + 548 7 MusicTrainer 0x00000001000984a4 -[SoundEngine stop] (SoundEngine.mm:332) 8 MusicTrainer 0x0000000100088c6c -[SoundEngineWrapper stop] (SoundEngineWrapper.m:199) 9 MusicTrainer 0x0000000100082bac -[MainViewController stopCallback:] (MainViewController.m:899) 10 UIKit 0x00000001945be7b0 -[UIApplication sendAction:to:from:forEvent:] + 96 11 UIKit 0x00000001947325ec -[UIBarButtonItem(UIInternal) _sendAction:withEvent:] + 168 12 UIKit 0x00000001945be7b0 -[UIApplication sendAction:to:from:forEvent:] + 96 13 UIKit 0x00000001945be730 -[UIControl sendAction:to:forEvent:] + 80 14 UIKit 0x00000001945a8be4 -[UIControl _sendActionsForEvents:withEvent:] + 452 15 UIKit 0x00000001945a8d4c -[UIControl _sendActionsForEvents:withEvent:] + 812 16 UIKit 0x00000001945be01c -[UIControl touchesEnded:withEvent:] + 584 17 UIKit 0x00000001945bdb44 -[UIWindow _sendTouchesForEvent:] + 2484 18 UIKit 0x00000001945b8d8c -[UIWindow sendEvent:] + 2988 19 UIKit 0x0000000194589858 -[UIApplication sendEvent:] + 340 20 UIKit 0x0000000194d76cb8 __dispatchPreprocessedEventFromEventQueue + 2736 21 UIKit 0x0000000194d70720 __handleEventQueue + 784 22 CoreFoundation 0x000000018e6ee278 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 24 23 CoreFoundation 0x000000018e6edbc0 __CFRunLoopDoSources0 + 524 24 CoreFoundation 0x000000018e6eb7c0 __CFRunLoopRun + 804 25 CoreFoundation 0x000000018e61a048 CFRunLoopRunSpecific + 444 26 GraphicsServices 0x000000019009d198 GSEventRunModal + 180 27 UIKit 0x00000001945f4628 -[UIApplication _run] + 684 28 UIKit 0x00000001945ef360 UIApplicationMain + 208 29 MusicTrainer 0x000000010006f2a8 main (main.m:20) 30 libdyld.dylib 0x000000018d5fc5b8 start + 4
_______________________________________________ Do not post admin requests to the list. They will be ignored. Coreaudio-api mailing list (Coreaudio-api@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/coreaudio-api/archive%40mail-archive.com This email sent to arch...@mail-archive.com