AXSpeech Thread Crash SEGV_ACCERR

Hi everyone,

I've encountered a rare and strange crash in my app that I can't consistently reproduce. The crash seems to occur deep within Apple's internal frameworks, and I can't pinpoint which line of my own code is causing it. Here's the crash stack trace:

#44 AXSpeech

SIGSEGV  
SEGV_ACCERR

0   CoreFoundation  ___CFCheckCFInfoPACSignature + 4  
1   CoreFoundation  _CFRunLoopSourceSignal + 28  
2   Foundation      _performQueueDequeue + 492  
3   Foundation      ___NSThreadPerformPerform + 88  
4   CoreFoundation  ___CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 28  
5   CoreFoundation  ___CFRunLoopDoSource0 + 176  
6   CoreFoundation  ___CFRunLoopDoSources0 + 340  
7   CoreFoundation  ___CFRunLoopRun + 828  
8   CoreFoundation  _CFRunLoopRunSpecific + 608  
9   Foundation      -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 212  
10  TextToSpeech    _TTSCFAttributedStringCreateStringByBracketingAttributeWithString + 776  
11  Foundation      ___NSThread__start__ + 732  
12  libsystem_pthread.dylib __pthread_start + 136  

Sometimes, instead of line 10 referencing _TTSCFAttributedStringCreateStringByBracketingAttributeWithString, it shows:

10  TextToSpeech    LogWarning(char const*, ...) + 7288

Has anyone experienced a similar issue or know what might be triggering this crash? Any guidance on how to investigate or resolve this would be greatly appreciated. Thank you!

Do you have a full Apple crash report for this problem? If so, please post it here, using the process described in Posting a Crash Report.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

I encountered the same issue. Have you resolved it?

Speaking for myself only, I need a proper crash report before I can offer any insight into this. If you can post one here, using the instructions I linked to above, I’d be happy to take a look.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

Thank you very much. This issue has been troubling me for months. My app frequently uses TTS, and the crash report has been attached. If you need more detailed information, please contact me. Additionally, I suspect it is a thread safety issue. I have tried making some calls on the main thread, but it hasn’t worked. I have also attached the code separately as an attachment.

AXSpeech Thread Crash SEGV_ACCERR
 
 
Q