Skip to content

[google_maps_flutter] [ios] NSInternalInconsistencyException - Sending a message before the FlutterEngine has been run. #125299

Open

Description

@elitree

Is there an existing issue for this?

Steps to reproduce

Users in production have been experiencing an intermittent and hard to reproduce crash in the google maps flutter code when our app is in the background. The crash occurs during the code called to retrieve our custom map tile overlay.

The exception generated is: "NSInternalInconsistencyException - Sending a message before the FlutterEngine has been run." This crash has been reported elsewhere in the Flutter repo for other packages (#117523, #96901), but this use case involves Google Maps Flutter, so I want to report it here.

Unfortunately, we are unable to reproduce this issue, and cannot provide any steps here.

Expected results

No crash should occur.

Actual results

Some users encounter this crash - see the stack trace below.

Code sample

Unfortunately, since we can't reproduce the crash, we can't give a sample showing the problem.

Screenshots or Video

Screenshots / Video demonstration

Crashlytics summary page of a crash:

SCR-20230420-psyf

Logs

Logs
Fatal Exception: NSInternalInconsistencyException
0  CoreFoundation                 0x9e38 __exceptionPreprocess
1  libobjc.A.dylib                0x178d8 objc_exception_throw
2  Foundation                     0x5458ec _userInfoForFileAndLine
3  Flutter                        0x12bac (Missing UUID 4aeaca1fde2f3daeb5830cf99fcf86e3)
4  Flutter                        0x577b90 (Missing UUID 4aeaca1fde2f3daeb5830cf99fcf86e3)
5  LandGlide                      0x4f975c -[FLTTileProviderController requestTileForX:y:zoom:receiver:] + 125 (FLTGoogleMapTileOverlayController.m:125)
6  LandGlide                      0xc4390 -[GMSCustomTileService sendRequest:]
7  LandGlide                      0xc4874 -[GMSCustomTileService internalRequestTile:target:selector:allowNetworkFetch:]
8  libdispatch.dylib              0x2460 _dispatch_call_block_and_release
9  libdispatch.dylib              0x3f88 _dispatch_client_callout
10 libdispatch.dylib              0x74b0 _dispatch_continuation_pop
11 libdispatch.dylib              0x6a80 _dispatch_async_redirect_invoke
12 libdispatch.dylib              0x15a6c _dispatch_root_queue_drain
13 libdispatch.dylib              0x16284 _dispatch_worker_thread2
14 libsystem_pthread.dylib        0xdbc _pthread_wqthread
15 libsystem_pthread.dylib        0xb98 start_wqthread

com.apple.main-thread
0  libsystem_kernel.dylib         0x167c __psynch_cvwait + 8
1  libsystem_pthread.dylib        0x806c _pthread_cond_wait + 1232
2  libc++.1.dylib                 0xcacc std::__1::condition_variable::wait(std::__1::unique_lock<std::__1::mutex>&) + 28
3  Flutter                        0x2f7768 (Missing UUID 4aeaca1fde2f3daeb5830cf99fcf86e3)
4  Flutter                        0x3da298 (Missing UUID 4aeaca1fde2f3daeb5830cf99fcf86e3)
5  Flutter                        0x14424 (Missing UUID 4aeaca1fde2f3daeb5830cf99fcf86e3)
6  Flutter                        0xff90 (Missing UUID 4aeaca1fde2f3daeb5830cf99fcf86e3)
7  CoreFoundation                 0x373b4 __CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER__ + 148
8  CoreFoundation                 0xde444 ___CFXRegistrationPost_block_invoke + 88
9  CoreFoundation                 0xc16f4 _CFXRegistrationPost + 440
10 CoreFoundation                 0x4b9b8 _CFXNotificationPost + 704
11 Foundation                     0x5cd0c -[NSNotificationCenter postNotificationName:object:userInfo:] + 92
12 UIKitCore                      0xd40b7c -[UIApplication _terminateWithStatus:] + 232
13 UIKitCore                      0x290708 -[_UISceneLifecycleMultiplexer _evalTransitionToSettings:fromSettings:forceExit:withTransitionStore:] + 112
14 UIKitCore                      0x6a7dec -[_UISceneLifecycleMultiplexer forceExitWithTransitionContext:scene:] + 164
15 UIKitCore                      0xd3cf74 -[UIApplication workspaceShouldExit:withTransitionContext:] + 176
16 FrontBoardServices             0x41e74 __63-[FBSWorkspaceScenesClient willTerminateWithTransitionContext:]_block_invoke_2 + 72
17 FrontBoardServices             0x6c24 -[FBSWorkspace _calloutQueue_executeCalloutFromSource:withBlock:] + 168
18 FrontBoardServices             0x41e14 __63-[FBSWorkspaceScenesClient willTerminateWithTransitionContext:]_block_invoke + 128
19 libdispatch.dylib              0x3f88 _dispatch_client_callout + 20
20 libdispatch.dylib              0x7a08 _dispatch_block_invoke_direct + 264
21 FrontBoardServices             0x10d40 __FBSSERIALQUEUE_IS_CALLING_OUT_TO_A_BLOCK__ + 52
22 FrontBoardServices             0x108dc -[FBSSerialQueue _targetQueue_performNextIfPossible] + 220
23 FrontBoardServices             0x13184 -[FBSSerialQueue _performNextFromRunLoopSource] + 28
24 CoreFoundation                 0xd5f24 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 28
25 CoreFoundation                 0xe22fc __CFRunLoopDoSource0 + 176
26 CoreFoundation                 0x661c0 __CFRunLoopDoSources0 + 244
27 CoreFoundation                 0x7bb7c __CFRunLoopRun + 836
28 CoreFoundation                 0x80eb0 CFRunLoopRunSpecific + 612
29 GraphicsServices               0x1368 GSEventRunModal + 164
30 UIKitCore                      0x3a1668 -[UIApplication _run] + 888
31 UIKitCore                      0x3a12cc UIApplicationMain + 340
32 LandGlide                      0x7d08 main + 8 (AppDelegate.swift:8)
33 ???                            0x1f5990960 (Missing)

Crashed: com.google.firebase.crashlytics.ios.exception
0  FirebaseCrashlytics            0x1eea8 FIRCLSProcessRecordAllThreads + 184
1  FirebaseCrashlytics            0x1f288 FIRCLSProcessRecordAllThreads + 1176
2  FirebaseCrashlytics            0x164d4 FIRCLSHandler + 48
3  FirebaseCrashlytics            0x111a8 __FIRCLSExceptionRecord_block_invoke + 92
4  libdispatch.dylib              0x3f88 _dispatch_client_callout + 20
5  libdispatch.dylib              0x13574 _dispatch_lane_barrier_sync_invoke_and_complete + 56
6  FirebaseCrashlytics            0x101b4 FIRCLSExceptionRecord + 204
7  FirebaseCrashlytics            0x10cc8 FIRCLSExceptionRecordNSException + 452
8  FirebaseCrashlytics            0xfe0c FIRCLSTerminateHandler() + 404
9  libc++abi.dylib                0x10f28 std::__terminate(void (*)()) + 20
10 libc++abi.dylib                0x10ec4 std::terminate() + 56
11 libobjc.A.dylib                0x33bec objc_terminate + 16
12 libdispatch.dylib              0x3f9c _dispatch_client_callout + 40
13 libdispatch.dylib              0x74b0 _dispatch_continuation_pop + 656
14 libdispatch.dylib              0x6a80 _dispatch_async_redirect_invoke + 584
15 libdispatch.dylib              0x15a6c _dispatch_root_queue_drain + 396
16 libdispatch.dylib              0x16284 _dispatch_worker_thread2 + 164
17 libsystem_pthread.dylib        0xdbc _pthread_wqthread + 228
18 libsystem_pthread.dylib        0xb98 start_wqthread + 8

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

com.apple.dnssd.client
0  libxpc.dylib                   0x105a8 _xpc_serializer_reply_queue_from_msg_context + 118
1  libdispatch.dylib              0x232f0 _dispatch_mach_msg_send + 1076
2  libdispatch.dylib              0x22a10 _dispatch_mach_send_drain + 348
3  libdispatch.dylib              0x1efac _dispatch_mach_send_msg + 364
4  libdispatch.dylib              0x1f7dc dispatch_mach_send_with_result_and_async_reply_4libxpc + 116
5  libxpc.dylib                   0xee00 _xpc_connection_enqueue + 140
6  libxpc.dylib                   0xfd64 xpc_connection_send_message_with_reply + 256
7  libdns_services.dylib          0x2044 __dnssd_getaddrinfo_invalidate_block_invoke + 248
8  libdispatch.dylib              0x2460 _dispatch_call_block_and_release + 32
9  libdispatch.dylib              0x3f88 _dispatch_client_callout + 20
10 libdispatch.dylib              0xb640 _dispatch_lane_serial_drain + 672
11 libdispatch.dylib              0xc18c _dispatch_lane_invoke + 384
12 libdispatch.dylib              0x16e10 _dispatch_workloop_worker_thread + 652
13 libsystem_pthread.dylib        0xdf8 _pthread_wqthread + 288
14 libsystem_pthread.dylib        0xb98 start_wqthread + 8

com.apple.uikit.eventfetch-thread
0  libsystem_kernel.dylib         0xda8 mach_msg2_trap + 8
1  libsystem_kernel.dylib         0x13a1c mach_msg2_internal + 80
2  libsystem_kernel.dylib         0x13c5c mach_msg_overwrite + 388
3  libsystem_kernel.dylib         0x12ec mach_msg + 24
4  CoreFoundation                 0x7aac4 __CFRunLoopServiceMachPort + 160
5  CoreFoundation                 0x7bd08 __CFRunLoopRun + 1232
6  CoreFoundation                 0x80eb0 CFRunLoopRunSpecific + 612
7  Foundation                     0x42054 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 212
8  Foundation                     0x41f3c -[NSRunLoop(NSRunLoop) runUntilDate:] + 64
9  UIKitCore                      0x4d66a4 -[UIEventFetcher threadMain] + 436
10 Foundation                     0x5b518 __NSThread__start__ + 716
11 libsystem_pthread.dylib        0x16cc _pthread_start + 148
12 libsystem_pthread.dylib        0xba4 thread_start + 8

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

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

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

io.flutter.1.ui
0  libsystem_kernel.dylib         0xda8 mach_msg2_trap + 8
1  libsystem_kernel.dylib         0x13a1c mach_msg2_internal + 80
2  libsystem_kernel.dylib         0x13c5c mach_msg_overwrite + 388
3  libsystem_kernel.dylib         0x12ec mach_msg + 24
4  CoreFoundation                 0x7aac4 __CFRunLoopServiceMachPort + 160
5  CoreFoundation                 0x7bd08 __CFRunLoopRun + 1232
6  CoreFoundation                 0x80eb0 CFRunLoopRunSpecific + 612
7  Flutter                        0x2f90cc (Missing UUID 4aeaca1fde2f3daeb5830cf99fcf86e3)
8  Flutter                        0x2f8acc (Missing UUID 4aeaca1fde2f3daeb5830cf99fcf86e3)
9  libsystem_pthread.dylib        0x16cc _pthread_start + 148
10 libsystem_pthread.dylib        0xba4 thread_start + 8

io.flutter.1.raster
0  libsystem_kernel.dylib         0xda8 mach_msg2_trap + 8
1  libsystem_kernel.dylib         0x13a1c mach_msg2_internal + 80
2  libsystem_kernel.dylib         0x13c5c mach_msg_overwrite + 388
3  libsystem_kernel.dylib         0x12ec mach_msg + 24
4  CoreFoundation                 0x7aac4 __CFRunLoopServiceMachPort + 160
5  CoreFoundation                 0x7bd08 __CFRunLoopRun + 1232
6  CoreFoundation                 0x80eb0 CFRunLoopRunSpecific + 612
7  Flutter                        0x2f90cc (Missing UUID 4aeaca1fde2f3daeb5830cf99fcf86e3)
8  Flutter                        0x2f8acc (Missing UUID 4aeaca1fde2f3daeb5830cf99fcf86e3)
9  libsystem_pthread.dylib        0x16cc _pthread_start + 148
10 libsystem_pthread.dylib        0xba4 thread_start + 8

io.flutter.1.io
0  libsystem_kernel.dylib         0x24d8 __psynch_mutexdrop + 8
1  libsystem_pthread.dylib        0x25a8 _pthread_mutex_firstfit_wake + 28
2  libsystem_pthread.dylib        0x9200 _pthread_mutex_firstfit_unlock_slow + 252
3  libc++.1.dylib                 0xea3c std::__1::mutex::unlock() + 16
4  Flutter                        0x3e0d68 (Missing UUID 4aeaca1fde2f3daeb5830cf99fcf86e3)
5  Flutter                        0x2f5ec4 (Missing UUID 4aeaca1fde2f3daeb5830cf99fcf86e3)
6  Flutter                        0x2f91fc (Missing UUID 4aeaca1fde2f3daeb5830cf99fcf86e3)
7  CoreFoundation                 0xce32c __CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__ + 32
8  CoreFoundation                 0x8a9a8 __CFRunLoopDoTimer + 940
9  CoreFoundation                 0x2e548 __CFRunLoopDoTimers + 288
10 CoreFoundation                 0x7bfa0 __CFRunLoopRun + 1896
11 CoreFoundation                 0x80eb0 CFRunLoopRunSpecific + 612
12 Flutter                        0x2f90cc (Missing UUID 4aeaca1fde2f3daeb5830cf99fcf86e3)
13 Flutter                        0x2f8acc (Missing UUID 4aeaca1fde2f3daeb5830cf99fcf86e3)
14 libsystem_pthread.dylib        0x16cc _pthread_start + 148
15 libsystem_pthread.dylib        0xba4 thread_start + 8

io.worker.1
0  libsystem_kernel.dylib         0x167c __psynch_cvwait + 8
1  libsystem_pthread.dylib        0x806c _pthread_cond_wait + 1232
2  libc++.1.dylib                 0xcacc std::__1::condition_variable::wait(std::__1::unique_lock<std::__1::mutex>&) + 28
3  Flutter                        0x2f3840 (Missing UUID 4aeaca1fde2f3daeb5830cf99fcf86e3)
4  libsystem_pthread.dylib        0x16cc _pthread_start + 148
5  libsystem_pthread.dylib        0xba4 thread_start + 8

io.worker.2
0  libsystem_kernel.dylib         0x167c __psynch_cvwait + 8
1  libsystem_pthread.dylib        0x806c _pthread_cond_wait + 1232
2  libc++.1.dylib                 0xcacc std::__1::condition_variable::wait(std::__1::unique_lock<std::__1::mutex>&) + 28
3  Flutter                        0x2f3840 (Missing UUID 4aeaca1fde2f3daeb5830cf99fcf86e3)
4  libsystem_pthread.dylib        0x16cc _pthread_start + 148
5  libsystem_pthread.dylib        0xba4 thread_start + 8

io.worker.3
0  libsystem_kernel.dylib         0x167c __psynch_cvwait + 8
1  libsystem_pthread.dylib        0x806c _pthread_cond_wait + 1232
2  libc++.1.dylib                 0xcacc std::__1::condition_variable::wait(std::__1::unique_lock<std::__1::mutex>&) + 28
3  Flutter                        0x2f3840 (Missing UUID 4aeaca1fde2f3daeb5830cf99fcf86e3)
4  libsystem_pthread.dylib        0x16cc _pthread_start + 148
5  libsystem_pthread.dylib        0xba4 thread_start + 8

io.worker.4
0  libsystem_kernel.dylib         0x167c __psynch_cvwait + 8
1  libsystem_pthread.dylib        0x806c _pthread_cond_wait + 1232
2  libc++.1.dylib                 0xcacc std::__1::condition_variable::wait(std::__1::unique_lock<std::__1::mutex>&) + 28
3  Flutter                        0x2f3840 (Missing UUID 4aeaca1fde2f3daeb5830cf99fcf86e3)
4  libsystem_pthread.dylib        0x16cc _pthread_start + 148
5  libsystem_pthread.dylib        0xba4 thread_start + 8

io.worker.5
0  libsystem_kernel.dylib         0x167c __psynch_cvwait + 8
1  libsystem_pthread.dylib        0x806c _pthread_cond_wait + 1232
2  libc++.1.dylib                 0xcacc std::__1::condition_variable::wait(std::__1::unique_lock<std::__1::mutex>&) + 28
3  Flutter                        0x2f3840 (Missing UUID 4aeaca1fde2f3daeb5830cf99fcf86e3)
4  libsystem_pthread.dylib        0x16cc _pthread_start + 148
5  libsystem_pthread.dylib        0xba4 thread_start + 8

io.worker.6
0  libsystem_kernel.dylib         0x167c __psynch_cvwait + 8
1  libsystem_pthread.dylib        0x806c _pthread_cond_wait + 1232
2  libc++.1.dylib                 0xcacc std::__1::condition_variable::wait(std::__1::unique_lock<std::__1::mutex>&) + 28
3  Flutter                        0x2f3840 (Missing UUID 4aeaca1fde2f3daeb5830cf99fcf86e3)
4  libsystem_pthread.dylib        0x16cc _pthread_start + 148
5  libsystem_pthread.dylib        0xba4 thread_start + 8

dart:io EventHandler
0  libsystem_kernel.dylib         0x26e0 kevent + 8
1  Flutter                        0x4e432c (Missing UUID 4aeaca1fde2f3daeb5830cf99fcf86e3)
2  Flutter                        0x513414 (Missing UUID 4aeaca1fde2f3daeb5830cf99fcf86e3)
3  libsystem_pthread.dylib        0x16cc _pthread_start + 148
4  libsystem_pthread.dylib        0xba4 thread_start + 8

com.apple.network.connections
0  CoreFoundation                 0x7f9b8 __CFCopyFormattingDescription + 236
1  CoreFoundation                 0x51490 __CFStringAppendFormatCore + 11152
2  CoreFoundation                 0x85c04 _CFStringCreateWithFormatAndArgumentsReturningMetadata + 184
3  CoreFoundation                 0x975e8 CFStringCreateWithFormatAndArguments + 312
4  CoreFoundation                 0x85dcc CFStringCreateWithFormat + 48
5  Network                        0xa8dbdc nw_utilities_copy_sanitized_url + 2312
6  Network                        0x6f549c -[NWOSURLEndpoint initWithURL:] + 408
7  Network                        0x1759d0 nw_endpoint_copy + 72
8  Network                        0x32a354 -[NWConcrete_nw_parameters initWithParameters:stripConnected:shallowCopy:] + 800
9  Network                        0x4798b0 nw_endpoint_resolver_create_child_parameters + 116
10 Network                        0x47845c nw_endpoint_resolver_update + 5920
11 Network                        0x481edc __52-[NWConcrete_nw_endpoint_resolver startWithHandler:]_block_invoke_2 + 84
12 Network                        0x144d6c __nw_resolver_update_client_block_invoke + 88
13 libdispatch.dylib              0x2460 _dispatch_call_block_and_release + 32
14 libdispatch.dylib              0x3f88 _dispatch_client_callout + 20
15 libdispatch.dylib              0xd5cc _dispatch_workloop_invoke + 2076
16 libdispatch.dylib              0x16e10 _dispatch_workloop_worker_thread + 652
17 libsystem_pthread.dylib        0xdf8 _pthread_wqthread + 288
18 libsystem_pthread.dylib        0xb98 start_wqthread + 8

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

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

com.google.firebase.crashlytics.MachExceptionServer
0  libsystem_kernel.dylib         0xda8 mach_msg2_trap + 8
1  libsystem_kernel.dylib         0x13a1c mach_msg2_internal + 80
2  libsystem_kernel.dylib         0x13c5c mach_msg_overwrite + 388
3  libsystem_kernel.dylib         0x12ec mach_msg + 24
4  FirebaseCrashlytics            0x18a50 FIRCLSMachExceptionServer + 108
5  libsystem_pthread.dylib        0x16cc _pthread_start + 148
6  libsystem_pthread.dylib        0xba4 thread_start + 8

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

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

com.apple.CoreMotion.MotionThread
0  libsystem_kernel.dylib         0xda8 mach_msg2_trap + 8
1  libsystem_kernel.dylib         0x13a1c mach_msg2_internal + 80
2  libsystem_kernel.dylib         0x13c5c mach_msg_overwrite + 388
3  libsystem_kernel.dylib         0x12ec mach_msg + 24
4  CoreFoundation                 0x7aac4 __CFRunLoopServiceMachPort + 160
5  CoreFoundation                 0x7bd08 __CFRunLoopRun + 1232
6  CoreFoundation                 0x80eb0 CFRunLoopRunSpecific + 612
7  CoreFoundation                 0xc4cd4 CFRunLoopRun + 64
8  CoreMotion                     0x13ef8 CLMotionActivity::isTypeInVehicle(CLMotionActivity::Type) + 22908
9  libsystem_pthread.dylib        0x16cc _pthread_start + 148
10 libsystem_pthread.dylib        0xba4 thread_start + 8

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

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

PHTFlatFilePhenotype
0  libobjc.A.dylib                0xa4a4 getMethodNoSuper_nolock(objc_class*, objc_selector*) + 220
1  libobjc.A.dylib                0x7ad0 lookUpImpOrForward + 440
2  libobjc.A.dylib                0x20c4 _objc_msgSend_uncached + 68
3  LandGlide                      0x1a0d04 -[GMSx_PHTInternalHeterodyneSyncer createClientProperties:] + 878676
4  LandGlide                      0x19f468 -[GMSx_PHTInternalHeterodyneSyncer syncHoldingLockWithSyncedScopes:fetchReason:callback:] + 872376
5  LandGlide                      0x19eaa0 -[GMSx_PHTInternalHeterodyneSyncer syncWithCallback:] + 869872
6  LandGlide                      0x18e370 -[GMSx_PHTFlatFilePhenotype syncNextSyncTask] + 802496
7  libdispatch.dylib              0x2460 _dispatch_call_block_and_release + 32
8  libdispatch.dylib              0x3f88 _dispatch_client_callout + 20
9  libdispatch.dylib              0xb640 _dispatch_lane_serial_drain + 672
10 libdispatch.dylib              0xc18c _dispatch_lane_invoke + 384
11 libdispatch.dylib              0x16e10 _dispatch_workloop_worker_thread + 652
12 libsystem_pthread.dylib        0xdf8 _pthread_wqthread + 288
13 libsystem_pthread.dylib        0xb98 start_wqthread + 8

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

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

DartWorker
0  libsystem_kernel.dylib         0x167c __psynch_cvwait + 8
1  libsystem_pthread.dylib        0x8098 _pthread_cond_wait + 1276
2  Flutter                        0x62a8fc (Missing UUID 4aeaca1fde2f3daeb5830cf99fcf86e3)
3  Flutter                        0x66b9a0 (Missing UUID 4aeaca1fde2f3daeb5830cf99fcf86e3)
4  Flutter                        0x62a224 (Missing UUID 4aeaca1fde2f3daeb5830cf99fcf86e3)
5  libsystem_pthread.dylib        0x16cc _pthread_start + 148
6  libsystem_pthread.dylib        0xba4 thread_start + 8

DartWorker
0  libsystem_kernel.dylib         0x167c __psynch_cvwait + 8
1  libsystem_pthread.dylib        0x8098 _pthread_cond_wait + 1276
2  Flutter                        0x62a8fc (Missing UUID 4aeaca1fde2f3daeb5830cf99fcf86e3)
3  Flutter                        0x66b9a0 (Missing UUID 4aeaca1fde2f3daeb5830cf99fcf86e3)
4  Flutter                        0x62a224 (Missing UUID 4aeaca1fde2f3daeb5830cf99fcf86e3)
5  libsystem_pthread.dylib        0x16cc _pthread_start + 148
6  libsystem_pthread.dylib        0xba4 thread_start + 8

DartWorker
0  libsystem_kernel.dylib         0x167c __psynch_cvwait + 8
1  libsystem_pthread.dylib        0x8098 _pthread_cond_wait + 1276
2  Flutter                        0x62a8fc (Missing UUID 4aeaca1fde2f3daeb5830cf99fcf86e3)
3  Flutter                        0x66b9a0 (Missing UUID 4aeaca1fde2f3daeb5830cf99fcf86e3)
4  Flutter                        0x62a224 (Missing UUID 4aeaca1fde2f3daeb5830cf99fcf86e3)
5  libsystem_pthread.dylib        0x16cc _pthread_start + 148
6  libsystem_pthread.dylib        0xba4 thread_start + 8

DartWorker
0  libsystem_kernel.dylib         0x167c __psynch_cvwait + 8
1  libsystem_pthread.dylib        0x8098 _pthread_cond_wait + 1276
2  Flutter                        0x62a8fc (Missing UUID 4aeaca1fde2f3daeb5830cf99fcf86e3)
3  Flutter                        0x66b9a0 (Missing UUID 4aeaca1fde2f3daeb5830cf99fcf86e3)
4  Flutter                        0x62a224 (Missing UUID 4aeaca1fde2f3daeb5830cf99fcf86e3)
5  libsystem_pthread.dylib        0x16cc _pthread_start + 148
6  libsystem_pthread.dylib        0xba4 thread_start + 8

JavaScriptCore libpas scavenger
0  libsystem_kernel.dylib         0x167c __psynch_cvwait + 8
1  libsystem_pthread.dylib        0x806c _pthread_cond_wait + 1232
2  JavaScriptCore                 0xf703c scavenger_thread_main + 1164
3  libsystem_pthread.dylib        0x16cc _pthread_start + 148
4  libsystem_pthread.dylib        0xba4 thread_start + 8

com.apple.NSURLConnectionLoader
0  libsystem_kernel.dylib         0xda8 mach_msg2_trap + 8
1  libsystem_kernel.dylib         0x13a1c mach_msg2_internal + 80
2  libsystem_kernel.dylib         0x13c5c mach_msg_overwrite + 388
3  libsystem_kernel.dylib         0x12ec mach_msg + 24
4  CoreFoundation                 0x7aac4 __CFRunLoopServiceMachPort + 160
5  CoreFoundation                 0x7bd08 __CFRunLoopRun + 1232
6  CoreFoundation                 0x80eb0 CFRunLoopRunSpecific + 612
7  CFNetwork                      0x257ff0 _CFURLStorageSessionDisableCache + 61088
8  Foundation                     0x5b518 __NSThread__start__ + 716
9  libsystem_pthread.dylib        0x16cc _pthread_start + 148
10 libsystem_pthread.dylib        0xba4 thread_start + 8

DartWorker
0  libsystem_kernel.dylib         0x167c __psynch_cvwait + 8
1  libsystem_pthread.dylib        0x8098 _pthread_cond_wait + 1276
2  Flutter                        0x62a8fc (Missing UUID 4aeaca1fde2f3daeb5830cf99fcf86e3)
3  Flutter                        0x66b9a0 (Missing UUID 4aeaca1fde2f3daeb5830cf99fcf86e3)
4  Flutter                        0x62a224 (Missing UUID 4aeaca1fde2f3daeb5830cf99fcf86e3)
5  libsystem_pthread.dylib        0x16cc _pthread_start + 148
6  libsystem_pthread.dylib        0xba4 thread_start + 8

com.google.Maps.LabelingBehavior
0  libsystem_kernel.dylib         0xda8 mach_msg2_trap + 8
1  libsystem_kernel.dylib         0x13a1c mach_msg2_internal + 80
2  libsystem_kernel.dylib         0x13c5c mach_msg_overwrite + 388
3  libsystem_kernel.dylib         0x12ec mach_msg + 24
4  CoreFoundation                 0x7aac4 __CFRunLoopServiceMachPort + 160
5  CoreFoundation                 0x7bd08 __CFRunLoopRun + 1232
6  CoreFoundation                 0x80eb0 CFRunLoopRunSpecific + 612
7  Foundation                     0x42054 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 212
8  LandGlide                      0x45b834 -[GMSx_GTMSimpleWorkerThread main] + 723160
9  Foundation                     0x5b518 __NSThread__start__ + 716
10 libsystem_pthread.dylib        0x16cc _pthread_start + 148
11 libsystem_pthread.dylib        0xba4 thread_start + 8

DartWorker
0  libsystem_kernel.dylib         0x167c __psynch_cvwait + 8
1  libsystem_pthread.dylib        0x8098 _pthread_cond_wait + 1276
2  Flutter                        0x62a8fc (Missing UUID 4aeaca1fde2f3daeb5830cf99fcf86e3)
3  Flutter                        0x66b9a0 (Missing UUID 4aeaca1fde2f3daeb5830cf99fcf86e3)
4  Flutter                        0x62a224 (Missing UUID 4aeaca1fde2f3daeb5830cf99fcf86e3)
5  libsystem_pthread.dylib        0x16cc _pthread_start + 148
6  libsystem_pthread.dylib        0xba4 thread_start + 8

DartWorker
0  libsystem_kernel.dylib         0x167c __psynch_cvwait + 8
1  libsystem_pthread.dylib        0x8098 _pthread_cond_wait + 1276
2  Flutter                        0x62a8fc (Missing UUID 4aeaca1fde2f3daeb5830cf99fcf86e3)
3  Flutter                        0x66b9a0 (Missing UUID 4aeaca1fde2f3daeb5830cf99fcf86e3)
4  Flutter                        0x62a224 (Missing UUID 4aeaca1fde2f3daeb5830cf99fcf86e3)
5  libsystem_pthread.dylib        0x16cc _pthread_start + 148
6  libsystem_pthread.dylib        0xba4 thread_start + 8

DartWorker
0  libsystem_kernel.dylib         0x167c __psynch_cvwait + 8
1  libsystem_pthread.dylib        0x8098 _pthread_cond_wait + 1276
2  Flutter                        0x62a8fc (Missing UUID 4aeaca1fde2f3daeb5830cf99fcf86e3)
3  Flutter                        0x66b9a0 (Missing UUID 4aeaca1fde2f3daeb5830cf99fcf86e3)
4  Flutter                        0x62a224 (Missing UUID 4aeaca1fde2f3daeb5830cf99fcf86e3)
5  libsystem_pthread.dylib        0x16cc _pthread_start + 148
6  libsystem_pthread.dylib        0xba4 thread_start + 8

DartWorker
0  libsystem_kernel.dylib         0x167c __psynch_cvwait + 8
1  libsystem_pthread.dylib        0x8098 _pthread_cond_wait + 1276
2  Flutter                        0x62a8fc (Missing UUID 4aeaca1fde2f3daeb5830cf99fcf86e3)
3  Flutter                        0x66b9a0 (Missing UUID 4aeaca1fde2f3daeb5830cf99fcf86e3)
4  Flutter                        0x62a224 (Missing UUID 4aeaca1fde2f3daeb5830cf99fcf86e3)
5  libsystem_pthread.dylib        0x16cc _pthread_start + 148
6  libsystem_pthread.dylib        0xba4 thread_start + 8

DartWorker
0  libsystem_kernel.dylib         0x167c __psynch_cvwait + 8
1  libsystem_pthread.dylib        0x8098 _pthread_cond_wait + 1276
2  Flutter                        0x62a8fc (Missing UUID 4aeaca1fde2f3daeb5830cf99fcf86e3)
3  Flutter                        0x66b9a0 (Missing UUID 4aeaca1fde2f3daeb5830cf99fcf86e3)
4  Flutter                        0x62a224 (Missing UUID 4aeaca1fde2f3daeb5830cf99fcf86e3)
5  libsystem_pthread.dylib        0x16cc _pthread_start + 148
6  libsystem_pthread.dylib        0xba4 thread_start + 8

DartWorker
0  libsystem_kernel.dylib         0x167c __psynch_cvwait + 8
1  libsystem_pthread.dylib        0x8098 _pthread_cond_wait + 1276
2  Flutter                        0x62a8fc (Missing UUID 4aeaca1fde2f3daeb5830cf99fcf86e3)
3  Flutter                        0x66b9a0 (Missing UUID 4aeaca1fde2f3daeb5830cf99fcf86e3)
4  Flutter                        0x62a224 (Missing UUID 4aeaca1fde2f3daeb5830cf99fcf86e3)
5  libsystem_pthread.dylib        0x16cc _pthread_start + 148
6  libsystem_pthread.dylib        0xba4 thread_start + 8

Flutter Doctor output

Doctor output Here's the doctor output relevant to the version in production (which produced the crash log above):
❯ fvm flutter doctor -v
[✓] Flutter (Channel stable, 3.3.8, on macOS 13.3.1 22E261 darwin-arm, locale en-US)
    • Flutter version 3.3.8 on channel stable at /Users/eligeller/fvm/versions/3.3.8
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 52b3dc25f6 (5 months ago), 2022-11-09 12:09:26 +0800
    • Engine revision 857bd6b74c
    • Dart version 2.18.4
    • DevTools version 2.15.0

[✓] Android toolchain - develop for Android devices (Android SDK version 32.1.0-rc1)
    • Android SDK at /Users/eligeller/Library/Android/sdk
    • Platform android-33, build-tools 32.1.0-rc1
    • Java binary at: /opt/homebrew/Cellar/openjdk/19.0.2/libexec/openjdk.jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment Homebrew (build 19.0.2)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 14.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 14B47b
    • CocoaPods version 1.11.3

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[!] Android Studio (version 2022.1)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    ✗ Unable to find bundled Java version.
    • Try updating or re-installing Android Studio.

[✓] VS Code (version 1.77.3)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.62.0

[✓] Connected device (3 available)
    • Pixel 5 (mobile) • 08311FDD4002F9 • android-arm64  • Android 13 (API 33)
    • macOS (desktop)  • macos          • darwin-arm64   • macOS 13.3.1 22E261 darwin-arm
    • Chrome (web)     • chrome         • web-javascript • Google Chrome 112.0.5615.137

[✓] HTTP Host Availability
    • All required HTTP hosts are available

! Doctor found issues in 1 category.

Activity

  1. changed the title [-][google_maps_flutter] NSInternalInconsistencyException - Sending a message before the FlutterEngine has been run.[/-] [+][google_maps_flutter] [ios] NSInternalInconsistencyException - Sending a message before the FlutterEngine has been run.[/+] on Apr 23, 2023
  2. added
    in triage
    on Apr 24, 2023
  3. darshankawar commented on Apr 24, 2023

    @darshankawar
    Member

    Thanks for the report.
    Flutter related frames seems to be missing UUIDs as mentioned in the log, so it can't be symbolized at the moment due to flutter-symbolizer-bot/flutter-symbolizer-bot#2.

    Based on the report, I am keeping this issue open and label for team's input.

  4. added
    c: crash
    platform-ios
    p: maps
    package
    a: production
    needs repro info
    engine
    and removed
    in triage
    on Apr 24, 2023
  5. added
    P2
    on Apr 24, 2023
  6. chinmaygarde commented on Apr 24, 2023

    @chinmaygarde
    Contributor

    This is similar to #96901 (comment) but that issue was related to plugin behavior around shutdown. This one seems to be behavior near suspend-resume.

  7. added
    team-ios
    triaged-ios
    on Jul 8, 2023
  8. zeqinjie commented on Jul 1, 2024

    @zeqinjie
    Contributor

    Our project seems to have encountered similar problems

    image
    CrashDoctor Diagnosis: Application threw exception NSInternalInconsistencyException: Sending a message before the FlutterEngine has been run.
    Originated at or in a subcall of GMSx_absl::base_internal::HookList<void (*)(void const*, unsigned long)>::Remove(void (*)(void const*, unsigned long))
    Thread 0 Crashed:
    
  9. yx-mike commented on Oct 15, 2024

    @yx-mike

    When your app receives the UIApplicationWillTerminateNotification notification in the background, if you are sending a message, the NSAssert assertion will be triggered.
    This is the case here.

    All crash records are in the background and received the UIApplicationWillTerminateNotification notification.

    Flutter: 3.7.12

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2a: productionc: crashengineneeds repro infop: mapspackageplatform-iosteam-iostriaged-ios

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions