flutter / flutter/flutter

`-[UIDictationConnection cancelSpeech]` objc_msgSend EXC_BAD_ACCESS (KERN_INVALID_ADDRESS) (iOS)

Open
#140,286 6 comments 1 reaction 0 assignees View on GitHub
a: production c: crash engine needs repro info P2 platform-ios team-ios triaged-ios
Dominant language
Dart
Stars
179k
Forks
31.1k
PR merge metrics
PR metrics pending

Description

### Steps to reproduce

No way to reproduce it unfortunately it happened in production in my released app on iOS

### Expected results

The app should not crash on iOS

### Actual results

The app crashes on iOS

### Code sample

Code sample

```dart
[Paste your code here]
```

### Screenshots or Video

Screenshots / Video demonstration

Capture d’écran 2023-12-17 à 09 18 52

### Logs

Logs

```console
# Crashlytics - Stack trace
# Application: com.myapp.ios
# Platform: apple
# Version: 2.3.6 (28)
# Issue: 3ceba855a8ad2d1af83655803dc13f70
# Session: edd71315331b44b7be6656c31af0793f_DNE_1_v2
# Date: Sun Dec 17 2023 09:10:12 GMT+0100 (heure normale d’Europe centrale)

com.apple.main-thread
0 libsystem_kernel.dylib 0xb48 mach_msg2_trap + 8
1 libsystem_kernel.dylib 0x13008 mach_msg2_internal + 80
2 libsystem_kernel.dylib 0x13248 mach_msg_overwrite + 388
3 libsystem_kernel.dylib 0x108c mach_msg + 24
4 CoreFoundation 0x7ae00 __CFRunLoopServiceMachPort + 160
5 CoreFoundation 0x7c044 __CFRunLoopRun + 1232
6 CoreFoundation 0x811e4 CFRunLoopRunSpecific + 612
7 GraphicsServices 0x1368 GSEventRunModal + 164
8 UIKitCore 0x3a2d88 -[UIApplication _run] + 888
9 UIKitCore 0x3a29ec UIApplicationMain + 340
10 Runner 0x4c6c main + 5 (AppDelegate.swift:5)
11 ??? 0x1c649d948 (Missing)

com.apple.uikit.eventfetch-thread
0 libsystem_kernel.dylib 0xb48 mach_msg2_trap + 8
1 libsystem_kernel.dylib 0x13008 mach_msg2_internal + 80
2 libsystem_kernel.dylib 0x13248 mach_msg_overwrite + 388
3 libsystem_kernel.dylib 0x108c mach_msg + 24
4 CoreFoundation 0x7ae00 __CFRunLoopServiceMachPort + 160
5 CoreFoundation 0x7c044 __CFRunLoopRun + 1232
6 CoreFoundation 0x811e4 CFRunLoopRunSpecific + 612
7 Foundation 0x41818 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 212
8 Foundation 0x41700 -[NSRunLoop(NSRunLoop) runUntilDate:] + 64
9 UIKitCore 0x4d788c -[UIEventFetcher threadMain] + 436
10 Foundation 0x5ace8 __NSThread__start__ + 716
11 libsystem_pthread.dylib 0x16cc _pthread_start + 148
12 libsystem_pthread.dylib 0xba4 thread_start + 8

io.flutter.1.ui
0 libsystem_kernel.dylib 0xb48 mach_msg2_trap + 8
1 libsystem_kernel.dylib 0x13008 mach_msg2_internal + 80
2 libsystem_kernel.dylib 0x13248 mach_msg_overwrite + 388
3 libsystem_kernel.dylib 0x108c mach_msg + 24
4 CoreFoundation 0x7ae00 __CFRunLoopServiceMachPort + 160
5 CoreFoundation 0x7c044 __CFRunLoopRun + 1232
6 CoreFoundation 0x811e4 CFRunLoopRunSpecific + 612
7 Flutter 0x2e941c (Missing UUID 4c4c443455553144a10d5cd9d5848871)
8 Flutter 0x2e8a90 (Missing UUID 4c4c443455553144a10d5cd9d5848871)
9 libsystem_pthread.dylib 0x16cc _pthread_start + 148
10 libsystem_pthread.dylib 0xba4 thread_start + 8

io.flutter.1.raster
0 libsystem_kernel.dylib 0xb48 mach_msg2_trap + 8
1 libsystem_kernel.dylib 0x13008 mach_msg2_internal + 80
2 libsystem_kernel.dylib 0x13248 mach_msg_overwrite + 388
3 libsystem_kernel.dylib 0x108c mach_msg + 24
4 CoreFoundation 0x7ae00 __CFRunLoopServiceMachPort + 160
5 CoreFoundation 0x7c044 __CFRunLoopRun + 1232
6 CoreFoundation 0x811e4 CFRunLoopRunSpecific + 612
7 Flutter 0x2e941c (Missing UUID 4c4c443455553144a10d5cd9d5848871)
8 Flutter 0x2e8a90 (Missing UUID 4c4c443455553144a10d5cd9d5848871)
9 libsystem_pthread.dylib 0x16cc _pthread_start + 148
10 libsystem_pthread.dylib 0xba4 thread_start + 8

io.flutter.1.io
0 libsystem_kernel.dylib 0xb48 mach_msg2_trap + 8
1 libsystem_kernel.dylib 0x13008 mach_msg2_internal + 80
2 libsystem_kernel.dylib 0x13248 mach_msg_overwrite + 388
3 libsystem_kernel.dylib 0x108c mach_msg + 24
4 CoreFoundation 0x7ae00 __CFRunLoopServiceMachPort + 160
5 CoreFoundation 0x7c044 __CFRunLoopRun + 1232
6 CoreFoundation 0x811e4 CFRunLoopRunSpecific + 612
7 Flutter 0x2e941c (Missing UUID 4c4c443455553144a10d5cd9d5848871)
8 Flutter 0x2e8a90 (Missing UUID 4c4c443455553144a10d5cd9d5848871)
9 libsystem_pthread.dylib 0x16cc _pthread_start + 148
10 libsystem_pthread.dylib 0xba4 thread_start + 8

io.worker.1
0 libsystem_kernel.dylib 0x141c __psynch_cvwait + 8
1 libsystem_pthread.dylib 0x806c _pthread_cond_wait + 1232
2 Flutter 0x56f40 (Missing UUID 4c4c443455553144a10d5cd9d5848871)
3 Flutter 0x2e26e4 (Missing UUID 4c4c443455553144a10d5cd9d5848871)
4 libsystem_pthread.dylib 0x16cc _pthread_start + 148
5 libsystem_pthread.dylib 0xba4 thread_start + 8

io.worker.2
0 libsystem_kernel.dylib 0x141c __psynch_cvwait + 8
1 libsystem_pthread.dylib 0x806c _pthread_cond_wait + 1232
2 Flutter 0x56f40 (Missing UUID 4c4c443455553144a10d5cd9d5848871)
3 Flutter 0x2e26e4 (Missing UUID 4c4c443455553144a10d5cd9d5848871)
4 libsystem_pthread.dylib 0x16cc _pthread_start + 148
5 libsystem_pthread.dylib 0xba4 thread_start + 8

io.worker.3
0 libsystem_kernel.dylib 0x141c __psynch_cvwait + 8
1 libsystem_pthread.dylib 0x806c _pthread_cond_wait + 1232
2 Flutter 0x56f40 (Missing UUID 4c4c443455553144a10d5cd9d5848871)
3 Flutter 0x2e26e4 (Missing UUID 4c4c443455553144a10d5cd9d5848871)
4 libsystem_pthread.dylib 0x16cc _pthread_start + 148
5 libsystem_pthread.dylib 0xba4 thread_start + 8

io.worker.4
0 libsystem_kernel.dylib 0x141c __psynch_cvwait + 8
1 libsystem_pthread.dylib 0x806c _pthread_cond_wait + 1232
2 Flutter 0x56f40 (Missing UUID 4c4c443455553144a10d5cd9d5848871)
3 Flutter 0x2e26e4 (Missing UUID 4c4c443455553144a10d5cd9d5848871)
4 libsystem_pthread.dylib 0x16cc _pthread_start + 148
5 libsystem_pthread.dylib 0xba4 thread_start + 8

io.worker.5
0 libsystem_kernel.dylib 0x141c __psynch_cvwait + 8
1 libsystem_pthread.dylib 0x806c _pthread_cond_wait + 1232
2 Flutter 0x56f40 (Missing UUID 4c4c443455553144a10d5cd9d5848871)
3 Flutter 0x2e26e4 (Missing UUID 4c4c443455553144a10d5cd9d5848871)
4 libsystem_pthread.dylib 0x16cc _pthread_start + 148
5 libsystem_pthread.dylib 0xba4 thread_start + 8

io.worker.6
0 libsystem_kernel.dylib 0x141c __psynch_cvwait + 8
1 libsystem_pthread.dylib 0x806c _pthread_cond_wait + 1232
2 Flutter 0x56f40 (Missing UUID 4c4c443455553144a10d5cd9d5848871)
3 Flutter 0x2e26e4 (Missing UUID 4c4c443455553144a10d5cd9d5848871)
4 libsystem_pthread.dylib 0x16cc _pthread_start + 148
5 libsystem_pthread.dylib 0xba4 thread_start + 8

dart:io EventHandler
0 libsystem_kernel.dylib 0x2480 kevent + 8
1 Flutter 0x5a1c18 (Missing UUID 4c4c443455553144a10d5cd9d5848871)
2 Flutter 0x5cf70c (Missing UUID 4c4c443455553144a10d5cd9d5848871)
3 libsystem_pthread.dylib 0x16cc _pthread_start + 148
4 libsystem_pthread.dylib 0xba4 thread_start + 8

io.worker.1
0 libsystem_kernel.dylib 0x141c __psynch_cvwait + 8
1 libsystem_pthread.dylib 0x806c _pthread_cond_wait + 1232
2 Flutter 0x56f40 (Missing UUID 4c4c443455553144a10d5cd9d5848871)
3 Flutter 0x2e26e4 (Missing UUID 4c4c443455553144a10d5cd9d5848871)
4 libsystem_pthread.dylib 0x16cc _pthread_start + 148
5 libsystem_pthread.dylib 0xba4 thread_start + 8

io.worker.2
0 libsystem_kernel.dylib 0x141c __psynch_cvwait + 8
1 libsystem_pthread.dylib 0x806c _pthread_cond_wait + 1232
2 Flutter 0x56f40 (Missing UUID 4c4c443455553144a10d5cd9d5848871)
3 Flutter 0x2e26e4 (Missing UUID 4c4c443455553144a10d5cd9d5848871)
4 libsystem_pthread.dylib 0x16cc _pthread_start + 148
5 libsystem_pthread.dylib 0xba4 thread_start + 8

io.worker.3
0 libsystem_kernel.dylib 0x141c __psynch_cvwait + 8
1 libsystem_pthread.dylib 0x806c _pthread_cond_wait + 1232
2 Flutter 0x56f40 (Missing UUID 4c4c443455553144a10d5cd9d5848871)
3 Flutter 0x2e26e4 (Missing UUID 4c4c443455553144a10d5cd9d5848871)
4 libsystem_pthread.dylib 0x16cc _pthread_start + 148
5 libsystem_pthread.dylib 0xba4 thread_start + 8

io.worker.4
0 libsystem_kernel.dylib 0x141c __psynch_cvwait + 8
1 libsystem_pthread.dylib 0x806c _pthread_cond_wait + 1232
2 Flutter 0x56f40 (Missing UUID 4c4c443455553144a10d5cd9d5848871)
3 Flutter 0x2e26e4 (Missing UUID 4c4c443455553144a10d5cd9d5848871)
4 libsystem_pthread.dylib 0x16cc _pthread_start + 148
5 libsystem_pthread.dylib 0xba4 thread_start + 8

com.google.firebase.crashlytics.MachExceptionServer
0 FirebaseCrashlytics 0x21794 FIRCLSProcessRecordAllThreads + 393 (FIRCLSProcess.c:393)
1 FirebaseCrashlytics 0x21b74 FIRCLSProcessRecordAllThreads + 424 (FIRCLSProcess.c:424)
2 FirebaseCrashlytics 0x18c24 FIRCLSHandler + 34 (FIRCLSHandler.m:34)
3 FirebaseCrashlytics 0x1b4a8 FIRCLSMachExceptionServer + 521 (FIRCLSMachException.c:521)
4 libsystem_pthread.dylib 0x16cc _pthread_start + 148
5 libsystem_pthread.dylib 0xba4 thread_start + 8

com.apple.NSURLConnectionLoader
0 libsystem_kernel.dylib 0xb48 mach_msg2_trap + 8
1 libsystem_kernel.dylib 0x13008 mach_msg2_internal + 80
2 libsystem_kernel.dylib 0x13248 mach_msg_overwrite + 388
3 libsystem_kernel.dylib 0x108c mach_msg + 24
4 CoreFoundation 0x7ae00 __CFRunLoopServiceMachPort + 160
5 CoreFoundation 0x7c044 __CFRunLoopRun + 1232
6 CoreFoundation 0x811e4 CFRunLoopRunSpecific + 612
7 CFNetwork 0x254bac _CFURLStorageSessionDisableCache + 61076
8 Foundation 0x5ace8 __NSThread__start__ + 716
9 libsystem_pthread.dylib 0x16cc _pthread_start + 148
10 libsystem_pthread.dylib 0xba4 thread_start + 8

Crashed: com.apple.root.background-qos
0 libobjc.A.dylib 0x1c20 objc_msgSend + 32
1 UIKitCore 0xb09064 __37-[UIDictationConnection cancelSpeech]_block_invoke + 152
2 libdispatch.dylib 0x24b4 _dispatch_call_block_and_release + 32
3 libdispatch.dylib 0x3fdc _dispatch_client_callout + 20
4 libdispatch.dylib 0x15b8c _dispatch_root_queue_drain + 684
5 libdispatch.dylib 0x16284 _dispatch_worker_thread2 + 164
6 libsystem_pthread.dylib 0xdbc _pthread_wqthread + 228
7 libsystem_pthread.dylib 0xb98 start_wqthread + 8

Thread
0 libsystem_kernel.dylib 0x1050 __workq_kernreturn + 8
1 libsystem_pthread.dylib 0xe44 _pthread_wqthread + 364
2 libsystem_pthread.dylib 0xb98 start_wqthread + 8

Thread
0 libsystem_pthread.dylib 0xb90 start_wqthread + 254

Thread
0 libsystem_kernel.dylib 0x1050 __workq_kernreturn + 8
1 libsystem_pthread.dylib 0xe44 _pthread_wqthread + 364
2 libsystem_pthread.dylib 0xb98 start_wqthread + 8

Thread
0 libsystem_pthread.dylib 0xb90 start_wqthread + 254

Thread
0 libsystem_pthread.dylib 0xb90 start_wqthread + 254

DartWorker
0 libsystem_kernel.dylib 0x141c __psynch_cvwait + 8
1 libsystem_pthread.dylib 0x8098 _pthread_cond_wait + 1276
2 Flutter 0x69729c InternalFlutterGpuTestClass_Method + 750164
3 Flutter 0x6d1dac InternalFlutterGpuTestClass_Method + 990564
4 Flutter 0x696c68 InternalFlutterGpuTestClass_Method + 748576
5 libsystem_pthread.dylib 0x16cc _pthread_start + 148
6 libsystem_pthread.dylib 0xba4 thread_start + 8
```

### Flutter Doctor output

Doctor output

```console
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.16.4, on macOS 14.2 23C64 darwin-x64, locale
fr-FR)
[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
[✓] Xcode - develop for iOS and macOS (Xcode 15.1)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2023.1)
[✓] VS Code (version 1.85.1)
[✓] Connected device (4 available)
! Error: Browsing on the local area network for Apple Watch de Tommy. Ensure
the device is unlocked and discoverable via Bluetooth. (code -27)
[✓] Network resources

• No issues found!
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.