TextToSpeech crash on iOS 14.2+

Hello everyone,
I face issue with TextToSpeech in my App after iOS 14.2. When I start a player I see crash: com.apple.TextToSpeech.SpeechThread (114): EXCBADACCESS (code=1, address=0x7ffdfe300000)
This I see in Xcode:




There is report from Crashlytics:




com.apple.TextToSpeech.SpeechThread
EXCBADACCESS KERNINVALIDADDRESS 0x0000000137600000
0 TextToSpeech
TTSCreateDecryptedDataFromEncryptedData
1 TextToSpeech
TTSCreateDecryptedDataFromEncryptedData
2 TextToSpeechBundleSupport
  • [TTSVocalizer loadResource:mimeType:resourceURL:supportsAccurateWordCallbacks:]

3 TextToSpeechBundleSupport
  • [TTSSpeechServerInstance loadVoiceResource:voiceResource:]

4 TextToSpeechBundleSupport
  • [TTSSpeechServerInstance

initializeSpeechEngine:]5 TextToSpeechBundleSupport
  • [TTSSpeechServerInstance initializeSpeech:]

6 TextToSpeechBundleSupport
  • [TTSSpeechServerInstance

processCurrentRequest:]7 TextToSpeechBundleSupport
  • [TTSSpeechServerInstance handleSpeechThread]

8 TextToSpeechBundleSupport
SpeechThread
9 libsystempthread.dylib
pthreadstart + 320
10 libsystem
pthread.dylib
thread_start + 8


I tried to find issues in my code, but nothing was found. I used Address Sanitiser, Thread Sanitiser, Zombie objects.

Maybe, something was changed in this API and I missed it?

I'd really appreciate it, If somebody could help me find solution.




Answered by Engineer in 658513022
You're hitting the same issue being discussed here: https://developer.apple.com/forums/thread/671863
Accepted Answer
You're hitting the same issue being discussed here: https://developer.apple.com/forums/thread/671863
Hi
I think this is an iOS bug. I have this on production, 1k crashes every day.  I last updated my app in August so it can't be my fault. Unfortunately, I can't reproduce it on my device.  Can you please tell me how to reproduce this? I am desperately looking for some workaround to this problem.
TextToSpeech crash on iOS 14.2+
 
 
Q