Post

Replies

Boosts

Views

Activity

Reply to AVSpeechSynthesizer CRASH with certain voices under iOS 14.2+
I'm seeing a crash on AVSpeechSynthesizer as well - it *just* started yesterday, on January 20th. I didn't put out an app update recently and there haven't been any recent iOS updates, either, so it's unclear why this class would just randomly start crashing all of a sudden. I've filed my bug report as FB8977390. I'm attaching the relevant stack trace below. OP, is this the same crash you are seeing? Exception Type: EXCBADACCESS (SIGSEGV) Exception Subtype: KERNINVALIDADDRESS at 0x0000000143794089 VM Region Info: 0x143794089 is not in any region. Bytes after previous region: 295050 Bytes before following region: 442231 REGION TYPE START - END [ VSIZE] PRT/MAX SHRMOD REGION DETAIL MALLOCLARGE 143700000-14374c000 [ 304K] rw-/rwx SM=PRV --> GAP OF 0xb4000 BYTES MALLOCSMALL 143800000-144000000 [ 8192K] rw-/rwx SM=PRV Termination Signal: Segmentation fault: 11 Termination Reason: Namespace SIGNAL, Code 0xb Terminating Process: exc handler [21347] Triggered by Thread: 13 Thread 13 name: com.apple.TextToSpeech.SpeechThread Thread 13 Crashed: 0 TextToSpeech 0x00000001a7ca6e4c TTSCreateDecryptedDataFromEncryptedData + 168 1 TextToSpeech 0x00000001a7ca6e6c TTSCreateDecryptedDataFromEncryptedData + 200 2 TextToSpeechBundleSupport 0x00000001b0b5d674 -[TTSVocalizer loadResource:mimeType:resourceURL:supportsAccurateWordCallbacks:] + 424 3 TextToSpeechBundleSupport 0x00000001b0b5aa34 -[TTSSpeechServerInstance loadVoiceResource:voiceResource:] + 484 4 TextToSpeechBundleSupport 0x00000001b0b5a510 -[TTSSpeechServerInstance initializeSpeechEngine:] + 1852 5 TextToSpeechBundleSupport 0x00000001b0b5a794 -[TTSSpeechServerInstance initializeSpeech:] + 56 6 TextToSpeechBundleSupport 0x00000001b0b57c10 -[TTSSpeechServerInstance processCurrentRequest:] + 64 7 TextToSpeechBundleSupport 0x00000001b0b58e44 -[TTSSpeechServerInstance handleSpeechThread] + 1552 8 TextToSpeechBundleSupport 0x00000001b0b57bc0 SpeechThread + 48 9 libsystempthread.dylib 0x00000001d30e5b40 pthreadstart + 320 10 libsystempthread.dylib 0x00000001d30ee768 thread_start + 8
Topic: Programming Languages SubTopic: Swift Tags:
Jan ’21
Reply to AVSpeechSynthesizer CRASH with certain voices under iOS 14.2+
After removing the speech synthesizer's delegate, I haven't been able to reproduce. So that seems to be the workaround for now, if your app doesn't rely on the functionality in the delegate. (It breaks an animation for me, but I'd rather lose that than have the app crash all the time.) I agree that it must be something with a certificate expiring (or at least something along those lines) - that would explain why it randomly cropped up out of nowhere.
Topic: Programming Languages SubTopic: Swift Tags:
Jan ’21
Reply to WeatherKit returning blank response
It seems to always be the same users, but I even tried having them go through a proxy server and they are still getting the error. Whenever I try the same request for the same location, though, it loads just fine. So I'm not really sure what's going on. Here's one of their requests in case it helps: /v1/weather/en-US/42.047/-96.163?dataSets=currentWeather,forecastNextHour,forecastHourly,forecastDaily And I submitted this as FB11577100 in case you need the ticket for internal tracking purposes.
Topic: App & System Services SubTopic: General Tags:
Sep ’22