- Notifications
You must be signed in to change notification settings - Fork29.7k
Closed
Labels
c: crashStack traces logged to the consolec: regressionIt was better in the past than it is nowcustomer: crowdAffects or could affect many people, though not necessarily a specific customer.e: device-specificOnly manifests on certain devicesfound in release: 2.5Found to occur in 2.5found in release: 2.6Found to occur in 2.6frameworkflutter/packages/flutter repository. See also f: labels.has reproducible stepsThe issue has been confirmed reproducible and is ready to work onplatform-iosiOS applications specificallyr: fixedIssue is closed as already fixed in a newer version
Description
Steps to Reproduce
Please check the following screencap (there is no code assigned, it's just toggling the keyboard from the simulator menu.
This is the error in text form:
[VERBOSE-2:ui_dart_state.cc(209)] Unhandled Exception: 'package:flutter/src/services/hardware_keyboard.dart': Failed assertion: line 790 pos 16: '(data.physical == 0 && data.logical == 0) || (data.physical != 0 && data.logical != 0)': is not true.#0 _AssertionError._doThrowNew (dart:core-patch/errors_patch.dart:46:39)#1 _AssertionError._throwNew (dart:core-patch/errors_patch.dart:36:5)#2 KeyEventManager.handleKeyData (package:flutter/src/services/hardware_keyboard.dart:790:16)#3 PlatformDispatcher._dispatchKeyData.<anonymous closure> (dart:ui/platform_dispatcher.dart:375:61)#4 _invoke2.<anonymous closure> (dart:ui/hooks.dart:205:15)#5 _rootRun (dart:async/zone.dart:1428:13)#6 _CustomZone.run (dart:async/zone.dart:1328:19)#7 _CustomZone.runGuarded (dart:async/zone.dart:1236:7)#8 _invoke2 (dart:ui/hooks.dart:204:10)#9 PlatformDispatcher._dispatchKeyData (dart:ui/platform_dispatcher.dart:373:5)#10 _dispatchKeyData (dart:ui/h<…>[VERBOSE-2:ui_dart_state.cc(209)] Unhandled Exception: 'package:flutter/src/services/hardware_keyboard.dart': Failed assertion: line 790 pos 16: '(data.physical == 0 && data.logical == 0) || (data.physical != 0 && data.logical != 0)': is not true.#0 _AssertionError._doThrowNew (dart:core-patch/errors_patch.dart:46:39)#1 _AssertionError._throwNew (dart:core-patch/errors_patch.dart:36:5)#2 KeyEventManager.handleKeyData (package:flutter/src/services/hardware_keyboard.dart:790:16)#3 PlatformDispatcher._dispatchKeyData.<anonymous closure> (dart:ui/platform_dispatcher.dart:375:61)#4 _invoke2.<anonymous closure> (dart:ui/hooks.dart:205:15)#5 _rootRun (dart:async/zone.dart:1428:13)#6 _CustomZone.run (dart:async/zone.dart:1328:19)#7 _CustomZone.runGuarded (dart:async/zone.dart:1236:7)#8 _invoke2 (dart:ui/hooks.dart:204:10)#9 PlatformDispatcher._dispatchKeyData (dart:ui/platform_dispatcher.dart:373:5)#10 _dispatchKeyData (dart:ui/h<…>On another note, the only reason I tried using the software keyboard in the first place, is because my own keyboard stopped sending keystrokes into the simulator. So now I can't move past a form unless I copy paste text from outside the simulator. Super annoying...
Logs
[✓] Flutter (Channel master, 2.6.0-1.0.pre.112, on macOS 11.5.2 20G95 darwin-x64, locale en-US) • Flutter version 2.6.0-1.0.pre.112 at /Users/jan/flutter • Upstream repository https://github.com/flutter/flutter.git • Framework revision 0c65de1616 (3 days ago), 2021-08-30 05:26:01 -0400 • Engine revision c05688f4bc • Dart version 2.15.0 (build 2.15.0-65.0.dev)[!] Android toolchain - develop for Android devices (Android SDK version 30.0.2) • Android SDK at /Users/jan/Library/Android/sdk ✗ cmdline-tools component is missing Run `path/to/sdkmanager --install "cmdline-tools;latest"` See https://developer.android.com/studio/command-line for more details. ✗ Android license status unknown. Run `flutter doctor --android-licenses` to accept the SDK licenses. See https://flutter.dev/docs/get-started/install/macos#android-setup for more details.[✓] Xcode - develop for iOS and macOS (Xcode 12.5.1) • Xcode at /Applications/Xcode.app/Contents/Developer • CocoaPods version 1.10.0[✓] Chrome - develop for the web • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome[✓] Android Studio (version 2020.3) • 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.10+0-b96-7281165)[✓] VS Code (version 1.59.1) • VS Code at /Applications/Visual Studio Code.app/Contents • Flutter extension version 3.25.0[✓] Connected device (3 available) • iPad Pro (9.7-inch) (mobile) • 25E7C8D3-09DE-4A13-84FB-51CEAEBA93C4 • ios • com.apple.CoreSimulator.SimRuntime.iOS-14-5 (simulator) • macOS (desktop) • macos • darwin-x64 • macOS 11.5.2 20G95 darwin-x64 • Chrome (web) • chrome • web-javascript • Google Chrome 92.0.4515.159 ! Error: Errors were encountered while preparing your device for development. Please check the Devices and Simulators Window. (code -1)! Doctor found issues in 1 category.Metadata
Metadata
Assignees
Labels
c: crashStack traces logged to the consolec: regressionIt was better in the past than it is nowcustomer: crowdAffects or could affect many people, though not necessarily a specific customer.e: device-specificOnly manifests on certain devicesfound in release: 2.5Found to occur in 2.5found in release: 2.6Found to occur in 2.6frameworkflutter/packages/flutter repository. See also f: labels.has reproducible stepsThe issue has been confirmed reproducible and is ready to work onplatform-iosiOS applications specificallyr: fixedIssue is closed as already fixed in a newer version