com.apple.TextToSpeech.SpeechThread crash after iOS 16

Hi, I face an issue with AVSpeechSynthesizer after iOS 16.

Crashed: com.apple.TextToSpeech.SpeechThread
0  libobjc.A.dylib                0x3518 objc_release + 16
1  libobjc.A.dylib                0x3518 objc_release_x0 + 16
2  libobjc.A.dylib                0x15d8 AutoreleasePoolPage::releaseUntil(objc_object**) + 196
3  libobjc.A.dylib                0x4f40 objc_autoreleasePoolPop + 256
4  libobjc.A.dylib                0x329dc objc_tls_direct_base<AutoreleasePoolPage*, (tls_key)3, AutoreleasePoolPage::HotPageDealloc>::dtor_(void*) + 168
5  libsystem_pthread.dylib        0x1bd8 _pthread_tsd_cleanup + 620
6  libsystem_pthread.dylib        0x4674 _pthread_exit + 84
7  libsystem_pthread.dylib        0x16d8 _pthread_start + 160
8  libsystem_pthread.dylib        0xba4 thread_start + 8

I got many crash reports from my clients, but unfortunately, I can't reproduce this on my test devices. Does anybody face this also?

same issue from firebase crashlytics iOS 16.0.0 iPhone 11 pro Max

Crashed: com.apple.TextToSpeech.SpeechThread
0  libobjc.A.dylib                0x3518 objc_release + 16
1  libobjc.A.dylib                0x3518 objc_release_x0 + 16
2  libobjc.A.dylib                0x15d8 AutoreleasePoolPage::releaseUntil(objc_object**) + 196
3  libobjc.A.dylib                0x4f40 objc_autoreleasePoolPop + 256
4  libobjc.A.dylib                0x329dc objc_tls_direct_base<AutoreleasePoolPage*, (tls_key)3, AutoreleasePoolPage::HotPageDealloc>::dtor_(void*) + 168
5  libsystem_pthread.dylib        0x1bd8 _pthread_tsd_cleanup + 620
6  libsystem_pthread.dylib        0x4674 _pthread_exit + 84
7  libsystem_pthread.dylib        0x16d8 _pthread_start + 160
8  libsystem_pthread.dylib        0xba4 thread_start + 8

Same issue, com.apple.TextToSpeech.SpeechThread (82): EXC_BAD_ACCESS (code=1, address=0x20) objc_release, iOS 16.0

Got the same crash on following devices:

  • Device Model:iPhone 12 Orientation: Portrait RAM free: 46.75 MB Disk free: 24.9 GB Operating System Version:16.0.0 Jailbroken:No
  • Device Model:iPhone 8 Orientation: Portrait RAM free: 48.48 MB Disk free: 40.28 GB Operating System Version:16.0.2 Jailbroken:No
Crashed: com.apple.TextToSpeech.SpeechThread
0  libobjc.A.dylib                0x328c objc_release + 16
1  libobjc.A.dylib                0x328c objc_release_x0 + 16
2  libobjc.A.dylib                0x15a4 AutoreleasePoolPage::releaseUntil(objc_object**) + 192
3  libobjc.A.dylib                0x49ac objc_autoreleasePoolPop + 252
4  libobjc.A.dylib                0x29eec objc_tls_direct_base<AutoreleasePoolPage*, (tls_key)3, AutoreleasePoolPage::HotPageDealloc>::dtor_(void*) + 164
5  libsystem_pthread.dylib        0x3b18 _pthread_tsd_cleanup + 616
6  libsystem_pthread.dylib        0x69c8 _pthread_exit + 80
7  libsystem_pthread.dylib        0x306c _pthread_start + 128
8  libsystem_pthread.dylib        0x1688 thread_start + 8

I also have the exact same issue, happening only on iOS 16 devices

0  libobjc.A.dylib                0x3518 objc_release + 16
1  libobjc.A.dylib                0x3518 objc_release_x0 + 16
2  libobjc.A.dylib                0x15d8 AutoreleasePoolPage::releaseUntil(objc_object**) + 196
3  libobjc.A.dylib                0x4f40 objc_autoreleasePoolPop + 256
4  libobjc.A.dylib                0x329dc objc_tls_direct_base<AutoreleasePoolPage*, (tls_key)3, AutoreleasePoolPage::HotPageDealloc>::dtor_(void*) + 168
5  libsystem_pthread.dylib        0x1bd8 _pthread_tsd_cleanup + 620
6  libsystem_pthread.dylib        0x4674 _pthread_exit + 84
7  libsystem_pthread.dylib        0x16d8 _pthread_start + 160
8  libsystem_pthread.dylib        0xba4 thread_start + 8

Exact same issue only on iOS 16 devices

Crashed: com.apple.TextToSpeech.SpeechThread
0  libobjc.A.dylib                0x3518 objc_release + 16
1  libobjc.A.dylib                0x3518 objc_release_x0 + 16
2  libobjc.A.dylib                0x15d8 AutoreleasePoolPage::releaseUntil(objc_object**) + 196
3  libobjc.A.dylib                0x4f40 objc_autoreleasePoolPop + 256
4  libobjc.A.dylib                0x329dc objc_tls_direct_base<AutoreleasePoolPage*, (tls_key)3, AutoreleasePoolPage::HotPageDealloc>::dtor_(void*) + 168
5  libsystem_pthread.dylib        0x1bd8 _pthread_tsd_cleanup + 620
6  libsystem_pthread.dylib        0x4674 _pthread_exit + 84
7  libsystem_pthread.dylib        0x16d8 _pthread_start + 160
8  libsystem_pthread.dylib        0xba4 thread_start + 8

Same issue. It only happens on iOS 16.0.x.

Crashed: com.apple.TextToSpeech.SpeechThread
0  libobjc.A.dylib                0x3518 objc_release + 16
1  libobjc.A.dylib                0x3518 objc_release_x0 + 16
2  libobjc.A.dylib                0x15d8 AutoreleasePoolPage::releaseUntil(objc_object**) + 196
3  libobjc.A.dylib                0x4f40 objc_autoreleasePoolPop + 256
4  libobjc.A.dylib                0x329dc objc_tls_direct_base<AutoreleasePoolPage*, (tls_key)3, AutoreleasePoolPage::HotPageDealloc>::dtor_(void*) + 168
5  libsystem_pthread.dylib        0x1bd8 _pthread_tsd_cleanup + 620
6  libsystem_pthread.dylib        0x4674 _pthread_exit + 84
7  libsystem_pthread.dylib        0x16d8 _pthread_start + 160
8  libsystem_pthread.dylib        0xba4 thread_start + 8

I am having the same issue on my App on iOS 16.0.3 with mutiple user crashes. I am not able to replicate the error.

Crashed: com.apple.TextToSpeech.SpeechThread
EXC_BAD_ACCESS KERN_PROTECTION_FAILURE 0x0000000ffd6be900

0 libobjc.A.dylib  objc_release + 16
1 libobjc.A.dylib  objc_release_x0 + 16
2 libobjc.A.dylib  AutoreleasePoolPage::releaseUntil(objc_object**) + 196
3 libobjc.A.dylib  objc_autoreleasePoolPop + 256
4 libobjc.A.dylib  objc_tls_direct_base<AutoreleasePoolPage*, (tls_key)3, AutoreleasePoolPage::HotPageDealloc>::dtor_(void*) + 168
5 libsystem_pthread.dylib  _pthread_tsd_cleanup + 620
6 libsystem_pthread.dylib  _pthread_exit + 84
7 libsystem_pthread.dylib  _pthread_start + 160
8 libsystem_pthread.dylib  thread_start + 8

I think the AVSpeechSynthesizer has a big memory problem, I see the same crashes -> See following thread https://developer.apple.com/forums/thread/713848. Please add tickets in http://feedbackassistant.apple.com and refer to my ticket number FB11401700 to let Apple know that many Apps have this problem. I reported it long ago, but still no fix in an IOS update.

the same crash.

It happens on all iOS 16 devices. It happens easily if you play and stop it repeatedly. When playing, it seems that the error does not occur if AVSpeechSynthesizer is finely separated by spaces and played back. Errors do occur, but they may occur less frequently. I tested it with an app that plays TTS in that way, but the app didn't die.

There are several symptoms when an error occurs. It can't stop playback, loses control, and continues to play until the end of a sentence. If an alarm or call comes in while TTS is playing, the phenomenon of listening through the earphones and playing back through the speaker also occurs.

I temporarily took measures to prevent the above problem from happening without the app dying. A quick iOS update should fix this problem.

Unfortunately it hasn't been fixed for the iOS 16.1 release, now I'm seeing a lot of crashes due to this problem.

I’m having the exact same issue. Very frustrating Apple has not fixed this yet.

Very, very frustrating. Bug there since iOS 16 release and nothing happens. A lot of crashes everyday.

Any workaround for this? Got the same crash:

Crashed: com.apple.TextToSpeech.SpeechThread
0  libobjc.A.dylib                0x3518 objc_release + 16
1  libobjc.A.dylib                0x3518 objc_release_x0 + 16
2  libobjc.A.dylib                0x15d8 AutoreleasePoolPage::releaseUntil(objc_object**) + 196
3  libobjc.A.dylib                0x4f40 objc_autoreleasePoolPop + 256
4  libobjc.A.dylib                0x329dc objc_tls_direct_base<AutoreleasePoolPage*, (tls_key)3, AutoreleasePoolPage::HotPageDealloc>::dtor_(void*) + 168
5  libsystem_pthread.dylib        0x1bd8 _pthread_tsd_cleanup + 620
6  libsystem_pthread.dylib        0x4674 _pthread_exit + 84
7  libsystem_pthread.dylib        0x16d8 _pthread_start + 160
8  libsystem_pthread.dylib        0xba4 thread_start + 8

Very, very frustrating.  in 16.1.2 still exist.

com.apple.TextToSpeech.SpeechThread crash after iOS 16
 
 
Q