Skip to content

iOS 15 crash: Fatal Exception: NSInternalInconsistencyException. The application must have a key window since the keyboard client must be part of the responder chain to function #87809

@a313

Description

@a313

App crash on IOS 15.0.0
Steps to Reproduce
I don't have a way to reproduce this issue. I only got this crash from production and can not reproduce it. Its only crash on IOS 15.0.0

This is the stack trace i got from firebase Crashlytics dashboard:

Fatal Exception: NSInternalInconsistencyException
The application must have a key window since the keyboard client must be part of the responder chain to function

crash log

> Fatal Exception: NSInternalInconsistencyException
0  CoreFoundation                 0x182314470 __exceptionPreprocess
1  libobjc.A.dylib                0x19ac98de4 objc_exception_throw
2  Foundation                     0x183bb573c _userInfoForFileAndLine
3  Flutter                        0x10315eef0 (Missing)
4  Flutter                        0x10315f418 (Missing)
5  Flutter                        0x10315ee24 (Missing)
6  Flutter                        0x10315eb1c (Missing)
7  Flutter                        0x10315e894 (Missing)
8  Flutter                        0x10315e2f0 (Missing)
9  Flutter                        0x103460e44 (Missing)
10 Flutter                        0x103173690 (Missing)
11 Flutter                        0x10347a1a8 (Missing)
12 Flutter                        0x103415f78 (Missing)
13 Flutter                        0x103417df8 (Missing)
14 CoreFoundation                 0x182329588 __CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__
15 CoreFoundation                 0x1822ad630 __CFRunLoopDoTimer
16 CoreFoundation                 0x1822a7e30 __CFRunLoopDoTimers
17 CoreFoundation                 0x182286648 __CFRunLoopRun
18 CoreFoundation                 0x182299da8 CFRunLoopRunSpecific
19 GraphicsServices               0x19df9438c GSEventRunModal
20 UIKitCore                      0x184c17f78 -[UIApplication _run]
21 UIKitCore                      0x184993ff4 UIApplicationMain
22 Runner                         0x102219214 main + 5 (AppDelegate.swift:5)
23 ???                            0x1025919e4 (Missing)

Crashed: com.google.firebase.crashlytics.ios.exception
SIGABRT ABORT 0x00000001b90519d0

> Crashed: com.google.firebase.crashlytics.ios.exception
0  FirebaseCrashlytics            0x10296c31c FIRCLSProcessRecordAllThreads + 180
1  FirebaseCrashlytics            0x10296c700 FIRCLSProcessRecordAllThreads + 1176
2  FirebaseCrashlytics            0x1029654c4 FIRCLSHandler + 48
3  FirebaseCrashlytics            0x10295fc40 __FIRCLSExceptionRecord_block_invoke + 92
4  libdispatch.dylib              0x181f87518 _dispatch_client_callout + 20
5  libdispatch.dylib              0x181f968b0 _dispatch_lane_barrier_sync_invoke_and_complete + 60
6  FirebaseCrashlytics            0x10295f3d8 FIRCLSExceptionRecord + 212
7  FirebaseCrashlytics            0x10295f6d0 FIRCLSExceptionRecordNSException + 536
8  FirebaseCrashlytics            0x10295efb8 FIRCLSTerminateHandler() + 400
9  libc++abi.dylib                0x19ad9ff58 std::__terminate(void (*)()) + 20
10 libc++abi.dylib                0x19ada2efc __cxa_rethrow + 148
11 libobjc.A.dylib                0x19ac9ad1c objc_exception_rethrow + 44
12 CoreFoundation                 0x182299e94 CFRunLoopRunSpecific + 836
13 GraphicsServices               0x19df9438c GSEventRunModal + 164
14 UIKitCore                      0x184c17f78 -[UIApplication _run] + 1100
15 UIKitCore                      0x184993ff4 UIApplicationMain + 2208
16 Runner                         0x102219214 main + 5 (AppDelegate.swift:5)
17 ???                            0x1025919e4 (Missing)







flutter doctor -v

Flutter Doctor

> Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 2.2.2, on macOS 11.2.3 20D91 darwin-x64, locale en-US)
[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
[✓] Xcode - develop for iOS and macOS
[✓] Chrome - develop for the web
[✓] Android Studio (version 4.2)
[✓] VS Code (version 1.59.0)
[✓] Connected device (2 available)

> [✓] Flutter (Channel stable, 2.2.2, on macOS 11.2.3 20D91 darwin-x64, locale en-US)
>     • Framework revision d79295af24 (8 weeks ago), 2021-06-11 08:56:01 -0700
>     • Engine revision 91c9fc8fe0
>     • Dart version 2.13.3
> 
> [✓] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
>     • Platform android-30, build-tools 30.0.3
>     • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
>     • Java version OpenJDK Runtime Environment (build 11.0.8+10-b944.6916264)
>     • All Android licenses accepted.
> 
> [✓] Xcode - develop for iOS and macOS
>     • Xcode at /Applications/Xcode.app/Contents/Developer
>     • Xcode 12.4, Build version 12D4e
>     • CocoaPods version 1.10.1
> 
> [✓] Chrome - develop for the web
>     • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
> 
> [✓] Android Studio (version 4.2)
>     • 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
>     • Java version OpenJDK Runtime Environment (build 11.0.8+10-b944.6916264)
> 
> [✓] VS Code (version 1.59.0)
>     • VS Code at /Applications/Visual Studio Code.app/Contents
>     • Flutter extension version 3.25.0






pubspec.yaml

> environment:
>   sdk: ">=2.12.0 <3.0.0"
> 
> dependencies:
>   flutter:
>     sdk: flutter
>   flutter_localizations:
>     sdk: flutter
>   camera:
>     git:
>       url: https://github.com/bottlepay/plugins.git
>       path: packages/camera/camera
>       ref: android-rework
>   fl_chart:
>     git:
>       url: https://github.com/a313/fl_chart
>   app_tracking_transparency: ^2.0.1
>   appsflyer_sdk: ^6.2.4+4-nullsafety
>   auto_size_text: ^3.0.0-nullsafety.0
>   badges: ^2.0.1
>   cached_network_image: ^3.0.0
>   connectivity: ^3.0.4
>   cupertino_icons: ^1.0.3
>   device_info: ^2.0.2
>   equatable: ^2.0.2
>   firebase_analytics: ^8.1.0
>   firebase_core: ^1.3.0
>   firebase_crashlytics: ^2.0.7
>   firebase_dynamic_links: ^2.0.5
>   firebase_messaging: ^10.0.3
>   flutter_colorful_tab: ^0.1.0
>   flutter_html: ^2.1.0
>   flutter_inappwebview: ^5.3.2
>   flutter_local_notifications: ^6.0.0
>   flutter_secure_storage: ^4.2.0
>   flutter_slidable: ^0.6.0
>   flutter_social_content_share: ^1.0.0
>   flutter_sticky_header: ^0.6.0
>   flutter_svg: ^0.22.0
>   flutter_widget_from_html: ^0.6.1
>   get: ^4.2.3
>   get_storage: ^2.0.3
>   image: ^3.0.2
>   image_cropper: ^1.4.0
>   image_picker: ^0.8.2
>   intl: ^0.17.0
>   json_annotation: ^4.0.1
>   local_auth: ^1.1.6
>   math_expressions: ^2.1.1
>   native_pdf_view: ^4.1.0
>   native_shared_preferences: ^2.0.4
>   package_info: ^2.0.0
>   path_provider: ^2.0.2
>   permission_handler: ^8.0.0+1
>   photo_gallery: ^1.0.1
>   pin_code_fields: ^7.1.0
>   pull_to_refresh: ^2.0.0
>   qr_flutter: ^4.0.0
>   share: ^2.0.1
>   shimmer: ^2.0.0
>   smooth_page_indicator: ^0.3.0-nullsafety.0
>   url_launcher: ^6.0.5
>   
> dev_dependencies:
>   flutter_test:
>     sdk: flutter
>   build_runner: any
>   json_serializable: ^4.1.4
>   lint: ^1.5.3
> 
> 

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Important issues not at the top of the work lista: productionIssues experienced in live production appsc: crashStack traces logged to the consolee: OS-version specificAffects only some versions of the relevant operating systemengineflutter/engine related. See also e: labels.platform-iosiOS applications specificallyr: fixedIssue is closed as already fixed in a newer version

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions