Skip to content

Framework does not handle key events sent by iOS simulator ( Xcode 12.2 ) #68741

Closed

Description

@jonahwilliams

Currently it looks like the framework does not handle iOS key events (

throw FlutterError('Unknown keymap for key events: $keymap');
). This causes the terminal to fill up with errors when trying to hot reload/restart.

An Observatory debugger and profiler on iPhone SE (2nd generation) is available at: http://127.0.0.1:59659/-Rhr2AmeKQM=/
flutter: ══╡ EXCEPTION CAUGHT BY SERVICES LIBRARY ╞══════════════════════════════════════════════════════════
flutter: The following assertion was thrown during a platform message callback:
flutter: Unknown keymap for key events: ios
flutter:
flutter: When the exception was thrown, this was the stack:
flutter: #0      new RawKeyEvent.fromMessage (package:flutter/src/services/raw_keyboard.dart:346:9)
flutter: #1      RawKeyboard._handleKeyEvent (package:flutter/src/services/raw_keyboard.dart:595:43)
flutter: #2      BasicMessageChannel.setMessageHandler.<anonymous closure> (package:flutter/src/services/platform_channel.dart:74:49)
flutter: #3      BasicMessageChannel.setMessageHandler.<anonymous closure> (package:flutter/src/services/platform_channel.dart:73:47)
flutter: #4      _DefaultBinaryMessenger.handlePlatformMessage (package:flutter/src/services/binding.dart:283:33)
flutter: #5      _invoke3.<anonymous closure> (dart:ui/hooks.dart:274:15)
flutter: #9      _invoke3 (dart:ui/hooks.dart:273:10)
flutter: #10     _dispatchPlatformMessage (dart:ui/hooks.dart:154:5)
flutter: (elided 3 frames from dart:async)
flutter: ════════════════════════════════════════════════════════════════════════════════════════════════════
flutter: Another exception was thrown: Unknown keymap for key events: ios
flutter: Another exception was thrown: Unknown keymap for key events: ios

Activity

  1. added
    frameworkflutter/packages/flutter repository. See also f: labels.
    P2Important issues not at the top of the work list
    on Oct 21, 2020
  2. changed the title [-]iOS simulator sends key events on Xcode 12.2[/-] [+]Framework does not handle key events sent by iOS simulator ( Xcode 12.2 )[/+] on Oct 21, 2020
  3. DanielEdrisian commented on Oct 21, 2020

    @DanielEdrisian
    Contributor

    I'm experiencing the same issue

    Edit: This is breaking https://github.com/flutter/platform_tests/tree/master/ios_widget_catalog_compare

  4. xster commented on Oct 22, 2020

    @xster
    Member

    I can reproduce. Seems like touch handling stopped working altogether on simulator. Even on iOS 13.

  5. added
    P0Critical issues such as a build break or regression
    and removed
    P2Important issues not at the top of the work list
    on Oct 22, 2020
  6. added
    a: text inputEntering text in a text field or keyboard related problems
    on Oct 22, 2020
  7. gspencergoog commented on Oct 22, 2020

    @gspencergoog
    Contributor

    @xster Touch handling? Or just key events?

  8. gspencergoog commented on Oct 22, 2020

    @gspencergoog
    Contributor

    My suspicion is that because we merged the engine side of this change, but not the framework side (because the tree was then closed), perhaps there were undesired side effects. I haven't tested that hypothesis yet, though.

  9. gspencergoog commented on Oct 22, 2020

    @gspencergoog
    Contributor

    The fix could be as simple as merging the framework side, which I will do anyhow as soon as the tree is open.

  10. self-assigned this
    on Oct 22, 2020
  11. xster commented on Oct 22, 2020

    @xster
    Member

    Touch handling is broken as well

  12. gspencergoog commented on Oct 22, 2020

    @gspencergoog
    Contributor

    OK, I'm able to fix the key event problem by just applying the framework side of the changes. I wasn't able to reproduce the touch handling part of the problem, though. Perhaps it's another issue?

  13. gspencergoog commented on Oct 22, 2020

    @gspencergoog
    Contributor

    How are you reproducing the touch handling part of the problem?

  14. xster commented on Oct 22, 2020

    @xster
    Member

    doh! sorry, false alarm from me. It wasn't responding but it was actually that my simulator was frozen :S
    I cannot reproduce on master head. Tentatively lowering back to P4.

    @DanielEdrisian were you seeing issues with touch handling transmissions in the comparison tool or was it key entries?

  15. added
    P2Important issues not at the top of the work list
    and removed
    P0Critical issues such as a build break or regression
    on Oct 22, 2020
  16. github-actions commented on Aug 10, 2021

    @github-actions

    This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.

  17. locked as resolved and limited conversation to collaborators on Aug 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

P2Important issues not at the top of the work lista: text inputEntering text in a text field or keyboard related problemsframeworkflutter/packages/flutter repository. See also f: labels.platform-iosiOS applications specifically

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions