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.

 private var synthesizer: AVSpeechSynthesizer?

deinit {

        self.synthesizer?.delegate = nil

        //this is comment  for ios 16+ if not app crashed

       //synthesizer = nil

    }

when synthesizer = nil my app is crashed when comment this line all work ok

same crashes for only iOS 16 devices, including 16.2

Same issue. iPad14,2 and iPadOS 16.1.1 (20B101)

Exception Type:  SIGBUS
Exception Codes: BUS_ADRERR at 0x24ce3cc94
Crashed Thread:  20

Thread 20 Crashed:
0   libobjc.A.dylib                      0x00000001c228c654 dataSegmentsContain(objc_class*) + 120
1   libobjc.A.dylib                      0x00000001c227bc74 lookUpImpOrForward + 856
2   libobjc.A.dylib                      0x00000001c22760c4 _objc_msgSend_uncached + 64
3   libobjc.A.dylib                      0x00000001c22755d8 AutoreleasePoolPage::releaseUntil(objc_object**) + 192
4   libobjc.A.dylib                      0x00000001c2278f80 objc_autoreleasePoolPop + 252
5   libobjc.A.dylib                      0x00000001c22a6bbc objc_tls_direct_base<AutoreleasePoolPage*, (tls_key)3, AutoreleasePoolPage::HotPageDealloc>::dtor_(void*) + 164
6   libsystem_pthread.dylib              0x00000002155bbbd8 _pthread_tsd_cleanup + 616
7   libsystem_pthread.dylib              0x00000002155be674 _pthread_exit + 80
8   libsystem_pthread.dylib              0x00000002155bb6d8 _pthread_start + 156
9   libsystem_pthread.dylib              0x00000002155baba4 thread_start + 4

Is this crash resolved in iOS 16.3? 

Is this crash fixed in iOS 16.3.1

As a result of checking, an error occurs when playing TTS for more than 1 hour. My app repeats long sentences infinitely.

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