-
Notifications
You must be signed in to change notification settings - Fork 29.7k
Closed
flutter/engine
#49087Closed
Copy link
Labels
P2Important issues not at the top of the work listImportant issues not at the top of the work lista: internationalizationSupporting other languages or locales. (aka i18n)Supporting other languages or locales. (aka i18n)a: text inputEntering text in a text field or keyboard related problemsEntering text in a text field or keyboard related problemsengineflutter/engine related. See also e: labels.flutter/engine related. See also e: labels.found in release: 3.11Found to occur in 3.11Found to occur in 3.11found in release: 3.7Found to occur in 3.7Found to occur in 3.7has reproducible stepsThe issue has been confirmed reproducible and is ready to work onThe issue has been confirmed reproducible and is ready to work onplatform-webWeb applications specificallyWeb applications specificallyr: fixedIssue is closed as already fixed in a newer versionIssue is closed as already fixed in a newer versionteam-webOwned by Web platform teamOwned by Web platform teamtriaged-webTriaged by Web platform teamTriaged by Web platform team
Description
Is there an existing issue for this?
- I have searched the existing issues
- I have read the guide to filing a bug
Steps to reproduce
I am developing Flutter Web and getting a 'hardware_keyboard' error when I continuously input Korean characters in a TextField. This is a very old issue. Is there a way to fix this problem?
Expected results
When typing Korean characters in a TextField, the expected result is that the characters are inputted correctly and without any errors or crashes. The TextField should function as intended and the app should respond accordingly to the input.
Actual results
The 'hardware_keyboard' error occurs when typing Korean characters in a TextField, especially when typing continuously or rapidly. This error can cause the app to crash or behave unexpectedly.
Code sample
Code sample
[ return Scaffold(
body: Center(
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
children: [
SizedBox(
width: 300.0,
child: TextField(),
)
],
)
),
);]Screenshots or Video
Screenshots / Video demonstration
[Upload media here]
Logs
Logs
[Performing hot restart...
Waiting for connection from debug service on Chrome...
Restarted application in 1,766ms.
Error: Assertion failed: file:///C:/Dev/flutter/packages/flutter/lib/src/services/hardware_keyboard.dart:435:16
C:/b/s/w/ir/cache/builder/src/out/host_debug/dart-sdk/lib/_internal/js_dev_runtime/private/ddc_runtime/errors.dart 266:49 throw_
C:/b/s/w/ir/cache/builder/src/out/host_debug/dart-sdk/lib/_internal/js_dev_runtime/private/ddc_runtime/errors.dart 29:3 assertFailed
packages/flutter/src/services/hardware_keyboard.dart 435:56 <fn>
packages/flutter/src/services/hardware_keyboard.dart 442:14 [_assertEventIsRegular]
packages/flutter/src/services/hardware_keyboard.dart 535:5 handleKeyEvent
packages/flutter/src/services/hardware_keyboard.dart 881:29 handleKeyData
C:/b/s/w/ir/cache/builder/src/out/host_debug/lib/_engine/engine/platform_dispatcher.dart 272:33 <fn>
C:/b/s/w/ir/cache/builder/src/out/host_debug/lib/_engine/engine/platform_dispatcher.dart 1168:13 invoke
C:/b/s/w/ir/cache/builder/src/out/host_debug/lib/_engine/engine/platform_dispatcher.dart 271:7 invokeOnKeyData
C:/b/s/w/ir/cache/builder/src/out/host_debug/lib/_engine/engine/keyboard_binding.dart 161:39 [_onKeyData]
C:/b/s/w/ir/cache/builder/src/out/host_debug/lib/_engine/engine/keyboard_binding.dart 579:36 <fn>
C:/b/s/w/ir/cache/builder/src/out/host_debug/lib/_engine/engine/keyboard_binding.dart 454:11 [_handleEvent]
C:/b/s/w/ir/cache/builder/src/out/host_debug/lib/_engine/engine/keyboard_binding.dart 582:7 handleEvent
C:/b/s/w/ir/cache/builder/src/out/host_debug/lib/_engine/engine/keyboard_binding.dart 97:25 <fn>
C:/b/s/w/ir/cache/builder/src/out/host_debug/dart-sdk/lib/_internal/js_dev_runtime/private/ddc_runtime/operations.dart 367:37 _checkAndCall
C:/b/s/w/ir/cache/builder/src/out/host_debug/dart-sdk/lib/_internal/js_dev_runtime/private/ddc_runtime/operations.dart 372:39 dcall
C:/b/s/w/ir/cache/builder/src/out/host_debug/lib/_engine/engine/keyboard_binding.dart 139:23 loggedHandler
C:/b/s/w/ir/cache/builder/src/out/host_debug/dart-sdk/lib/_internal/js_dev_runtime/private/ddc_runtime/operations.dart 367:37 _checkAndCall
C:/b/s/w/ir/cache/builder/src/out/host_debug/dart-sdk/lib/_internal/js_dev_runtime/private/ddc_runtime/operations.dart 372:39 dcall]Flutter Doctor output
Doctor output
[[√] Flutter (Channel stable, 3.7.12, on Microsoft Windows [Version 10.0.19045.2846], locale ko-KR)
• Flutter version 3.7.12 on channel stable at C:\Dev\flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision 4d9e56e694 (3 weeks ago), 2023-04-17 21:47:46 -0400
• Engine revision 1a65d409c7
• Dart version 2.19.6
• DevTools version 2.20.1
[X] Windows Version (Unable to confirm if installed Windows version is 10 or greater)
[√] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
• Android SDK at C:\Users\SintPatrick\AppData\Local\Android\sdk
• Platform android-30, build-tools 30.0.3
• Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
• Java version OpenJDK Runtime Environment (build 11.0.12+7-b1504.28-7817840)
• All Android licenses accepted.
[√] Chrome - develop for the web
• Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe
[√] Visual Studio - develop for Windows (Visual Studio Community 2022 17.4.5)
• Visual Studio at C:\Program Files\Microsoft Visual Studio\2022\Community
• Visual Studio Community 2022 version 17.4.33403.182
• Windows 10 SDK version 10.0.19041.0
[√] Android Studio (version 2021.2)
• Android Studio at C:\Program Files\Android\Android Studio
• 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.12+7-b1504.28-7817840)
[√] IntelliJ IDEA Ultimate Edition (version 2022.2)
• IntelliJ at C:\Program Files\JetBrains\IntelliJ IDEA 2022.2.2
• Flutter plugin version 73.0.2
• Dart plugin version 222.4167.21
[√] VS Code (version 1.75.0)
• VS Code at C:\Users\SintPatrick\AppData\Local\Programs\Microsoft VS Code
• Flutter extension version 3.58.0
[√] Connected device (3 available)
• Windows (desktop) • windows • windows-x64 • Microsoft Windows [Version 10.0.19045.2846]
• Chrome (web) • chrome • web-javascript • Google Chrome 112.0.5615.139
• Edge (web) • edge • web-javascript • Microsoft Edge 113.0.1774.35
[√] HTTP Host Availability
• All required HTTP hosts are available
! Doctor found issues in 1 category.
]Metadata
Metadata
Labels
P2Important issues not at the top of the work listImportant issues not at the top of the work lista: internationalizationSupporting other languages or locales. (aka i18n)Supporting other languages or locales. (aka i18n)a: text inputEntering text in a text field or keyboard related problemsEntering text in a text field or keyboard related problemsengineflutter/engine related. See also e: labels.flutter/engine related. See also e: labels.found in release: 3.11Found to occur in 3.11Found to occur in 3.11found in release: 3.7Found to occur in 3.7Found to occur in 3.7has reproducible stepsThe issue has been confirmed reproducible and is ready to work onThe issue has been confirmed reproducible and is ready to work onplatform-webWeb applications specificallyWeb applications specificallyr: fixedIssue is closed as already fixed in a newer versionIssue is closed as already fixed in a newer versionteam-webOwned by Web platform teamOwned by Web platform teamtriaged-webTriaged by Web platform teamTriaged by Web platform team
Type
Projects
Status
Done (PR merged)