Skip to content

[Linux] Unable to take Keyboard Input  #89729

Closed
flutter-team-archive/engine
#28877

Description

@Mayank-9018

Steps to Reproduce

  1. Run this code on linux desktop:
minimal code sample
import 'package:flutter/material.dart';

void main() => runApp(MyApp());

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(title: 'Flutter Demo', home: HomePage());
  }
}

class HomePage extends StatefulWidget {
  const HomePage({Key? key}) : super(key: key);

  @override
  _HomePageState createState() => _HomePageState();
}

class _HomePageState extends State<HomePage> with TickerProviderStateMixin {
  late TextEditingController _textEditingController;

  @override
  void initState() {
    _textEditingController = TextEditingController(text: "Something");
    super.initState();
  }

  @override
  Widget build(BuildContext context) {
    return Scaffold(
        appBar: AppBar(),
        body: Center(
          child: TextFormField(
            textCapitalization: TextCapitalization.sentences,
            onEditingComplete: () {
              print('editing complete');
            },
            controller: _textEditingController,
            decoration: InputDecoration(border: OutlineInputBorder()),
            autofocus: true,
          ),
        ));
  }
}
  1. Hot Restart a few times

Expected results:
It used to work fine on Flutter 2.2.x. I upgraded to 2.5 and I am unable to use Keyboard to take Input in TextField and TextFormField and I receive this error:

══╡ EXCEPTION CAUGHT BY SERVICES LIBRARY ╞══════════════════════════════════════════════════════════
The following assertion was thrown during a platform message callback:
A KeyUpEvent is dispatched, but the state shows that the physical key is not pressed. If this occurs
in real application, please report this bug to Flutter. If this occurs in unit tests, please ensure
that simulated events follow Flutter's event model as documented in `HardwareKeyboard`. This was the
event: KeyUpEvent#6ab5b(physicalKey: PhysicalKeyboardKey#700e2(usbHidUsage: "0x000700e2", debugName:
"Alt Left"), logicalKey: LogicalKeyboardKey#00104(keyId: "0x200000104", keyLabel: "Alt Left",
debugName: "Alt Left"), character: null, timeStamp: 1:27:37.409000, synthesized)
'package:flutter/src/services/hardware_keyboard.dart':
Failed assertion: line 441 pos 16: '_pressedKeys.containsKey(event.physicalKey)'

Either the assertion indicates an error in the framework itself, or we should provide substantially
more information in this error message to help you determine and fix the underlying cause.
In either case, please report this assertion by filing a bug on GitHub:
  https://github.com/flutter/flutter/issues/new?template=2_bug.md

When the exception was thrown, this was the stack:
#2      HardwareKeyboard._assertEventIsRegular.<anonymous closure> (package:flutter/src/services/hardware_keyboard.dart:441:16)
#3      HardwareKeyboard._assertEventIsRegular (package:flutter/src/services/hardware_keyboard.dart:452:6)
#4      HardwareKeyboard.handleKeyEvent (package:flutter/src/services/hardware_keyboard.dart:543:5)
#5      KeyEventManager.handleRawKeyMessage (package:flutter/src/services/hardware_keyboard.dart:821:35)
#6      BasicMessageChannel.setMessageHandler.<anonymous closure> (package:flutter/src/services/platform_channel.dart:73:49)
#7      BasicMessageChannel.setMessageHandler.<anonymous closure> (package:flutter/src/services/platform_channel.dart:72:47)
#8      _DefaultBinaryMessenger.setMessageHandler.<anonymous closure> (package:flutter/src/services/binding.dart:379:35)
#9      _DefaultBinaryMessenger.setMessageHandler.<anonymous closure> (package:flutter/src/services/binding.dart:376:46)
#10     _invoke2.<anonymous closure> (dart:ui/hooks.dart:205:15)
#14     _invoke2 (dart:ui/hooks.dart:204:10)
#15     _ChannelCallbackRecord.invoke (dart:ui/channel_buffers.dart:42:5)
#16     _Channel.push (dart:ui/channel_buffers.dart:132:31)
#17     ChannelBuffers.push (dart:ui/channel_buffers.dart:329:17)
#18     PlatformDispatcher._dispatchPlatformMessage (dart:ui/platform_dispatcher.dart:544:22)
#19     _dispatchPlatformMessage (dart:ui/hooks.dart:92:31)
(elided 5 frames from class _AssertionError and dart:async)
════════════════════════════════════════════════════════════════════════════════════════════════════

The Error says something related to Alt Left key, but I never press the Alt Left key, I am unable to press any key.

Actual results:

output.mp4
Logs
[  +51 ms] executing: uname -m
[  +29 ms] Exit code 0 from: uname -m
[        ] x86_64
[   +5 ms] executing: [/home/mayank/snap/flutter/common/flutter/] git -c log.showSignature=false log -n 1 --pretty=format:%H
[   +5 ms] Exit code 0 from: git -c log.showSignature=false log -n 1 --pretty=format:%H
[        ] 4cc385b4b84ac2f816d939a49ea1f328c4e0b48e
[   +1 ms] executing: [/home/mayank/snap/flutter/common/flutter/] git tag --points-at 4cc385b4b84ac2f816d939a49ea1f328c4e0b48e
[  +12 ms] Exit code 0 from: git tag --points-at 4cc385b4b84ac2f816d939a49ea1f328c4e0b48e
[        ] 2.5.0
[   +7 ms] executing: [/home/mayank/snap/flutter/common/flutter/] git rev-parse --abbrev-ref --symbolic @{u}
[   +4 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{u}
[        ] origin/stable
[        ] executing: [/home/mayank/snap/flutter/common/flutter/] git ls-remote --get-url origin
[   +4 ms] Exit code 0 from: git ls-remote --get-url origin
[        ] https://github.com/flutter/flutter.git
[  +83 ms] executing: [/home/mayank/snap/flutter/common/flutter/] git rev-parse --abbrev-ref HEAD
[   +4 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD
[        ] stable
[  +61 ms] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterWebSdk' is not required, skipping update.
[   +3 ms] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'WindowsUwpEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
[  +65 ms] executing: /home/mayank/android-sdk/platform-tools/adb devices -l
[  +46 ms] List of devices attached
[   +5 ms] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
[   +2 ms] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'WindowsUwpEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
[   +1 ms] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
[  +76 ms] Multiple devices found:
[  +37 ms] Linux (desktop) • linux  • linux-x64      • Ubuntu 21.04 5.11.0-25-generic
[        ] Chrome (web)    • chrome • web-javascript • Google Chrome 92.0.4515.107
[   +2 ms] [1]: Linux (linux)
[        ] [2]: Chrome (chrome)
[   +1 ms] Please choose one (To quit, press "q/Q")
[        ] : 
[+3162 ms] 1
[  +12 ms] Skipping pub get: version match.
[  +97 ms] Generating /home/mayank/Documents/Flutter/demo/android/app/src/main/java/io/flutter/plugins/GeneratedPluginRegistrant.java
[  +92 ms] Initializing file store
[   +9 ms] Skipping target: gen_localizations
[   +6 ms] Skipping target: gen_dart_plugin_registrant
[   +1 ms] _composite: Starting due to {}
[        ] _composite: Complete
[   +3 ms] complete
[   +6 ms] Launching lib/main.dart on Linux in debug mode...
[   +6 ms] /home/mayank/snap/flutter/common/flutter/bin/cache/dart-sdk/bin/dart --disable-dart-dev /home/mayank/snap/flutter/common/flutter/bin/cache/artifacts/engine/linux-x64/frontend_server.dart.snapshot --sdk-root /home/mayank/snap/flutter/common/flutter/bin/cache/artifacts/engine/common/flutter_patched_sdk/ --incremental --target=flutter --debugger-module-names --experimental-emit-debug-metadata -DFLUTTER_WEB_AUTO_DETECT=true --output-dill /tmp/flutter_tools.TPEMZM/flutter_tool.YUXTBO/app.dill --packages /home/mayank/Documents/Flutter/demo/.dart_tool/package_config.json -Ddart.vm.profile=false -Ddart.vm.product=false --enable-asserts --track-widget-creation --filesystem-scheme org-dartlang-root --initialize-from-dill build/c075001b96339384a97db4862b8ab8db.cache.dill.track.dill --enable-experiment=alternative-invalidation-strategy
[  +20 ms] Building Linux application...
[  +19 ms] <- compile package:demo/main.dart
[   +5 ms] executing: [build/linux/x64/debug/] cmake -G Ninja -DCMAKE_BUILD_TYPE=Debug -DFLUTTER_TARGET_PLATFORM=linux-x64 /home/mayank/Documents/Flutter/demo/linux
[ +222 ms] -- The CXX compiler identification is Clang 6.0.0
[        ] -- Check for working CXX compiler: /snap/flutter/current/usr/bin/clang++
[ +157 ms] -- Check for working CXX compiler: /snap/flutter/current/usr/bin/clang++ -- works
[        ] -- Detecting CXX compiler ABI info
[ +139 ms] -- Detecting CXX compiler ABI info - done
[   +5 ms] -- Detecting CXX compile features
[ +652 ms] -- Detecting CXX compile features - done
[  +10 ms] -- Found PkgConfig: /snap/flutter/current/usr/bin/pkg-config (found version "0.29.1") 
[        ] -- Checking for module 'gtk+-3.0'
[  +18 ms] --   Found gtk+-3.0, version 3.22.30
[  +73 ms] -- Checking for module 'glib-2.0'
[  +17 ms] --   Found glib-2.0, version 2.56.4
[  +44 ms] -- Checking for module 'gio-2.0'
[  +18 ms] --   Found gio-2.0, version 2.56.4
[  +63 ms] -- Configuring done
[  +10 ms] -- Generating done
[   +1 ms] -- Build files have been written to: /home/mayank/Documents/Flutter/demo/build/linux/x64/debug
[   +6 ms] executing: ninja -C build/linux/x64/debug install
[  +20 ms] ninja: Entering directory `build/linux/x64/debug'
[+12225 ms] [1/6] Generating /home/mayank/Documents/Flutter/demo/linux/flutter/ephemeral/libflutter_linux_gtk.so, /home/mayank/Documents/Flutter/demo/linux/flutter/ephemeral/flutter_linux/fl_basic_message_channel.h, /home/mayank/Documents/Flutter/demo/linux/flutter/ephemeral/flutter_linux/fl_binary_codec.h, /home/mayank/Documents/Flutter/demo/linux/flutter/ephemeral/flutter_linux/fl_binary_messenger.h, /home/mayank/Documents/Flutter/demo/linux/flutter/ephemeral/flutter_linux/fl_dart_project.h, /home/mayank/Documents/Flutter/demo/linux/flutter/ephemeral/flutter_linux/fl_engine.h, /home/mayank/Documents/Flutter/demo/linux/flutter/ephemeral/flutter_linux/fl_json_message_codec.h, /home/mayank/Documents/Flutter/demo/linux/flutter/ephemeral/flutter_linux/fl_json_method_codec.h, /home/mayank/Documents/Flutter/demo/linux/flutter/ephemeral/flutter_linux/fl_message_codec.h, /home/mayank/Documents/Flutter/demo/linux/flutter/ephemeral/flutter_linux/fl_method_call.h, /home/mayank/Documents/Flutter/demo/linux/flutter/ephemeral/flutter_linux/fl_method_channel.h, /home/mayank/Documents/Flutter/demo/linux/flutter/ephemeral/flutter_linux/fl_method_codec.h, /home/mayank/Documents/Flutter/demo/linux/flutter/ephemeral/flutter_linux/fl_method_response.h, /home/mayank/Documents/Flutter/demo/linux/flutter/ephemeral/flutter_linux/fl_plugin_registrar.h, /home/mayank/Documents/Flutter/demo/linux/flutter/ephemeral/flutter_linux/fl_plugin_registry.h, /home/mayank/Documents/Flutter/demo/linux/flutter/ephemeral/flutter_linux/fl_standard_message_codec.h, /home/mayank/Documents/Flutter/demo/linux/flutter/ephemeral/flutter_linux/fl_standard_method_codec.h, /home/mayank/Documents/Flutter/demo/linux/flutter/ephemeral/flutter_linux/fl_string_codec.h, /home/mayank/Documents/Flutter/demo/linux/flutter/ephemeral/flutter_linux/fl_value.h, /home/mayank/Documents/Flutter/demo/linux/flutter/ephemeral/flutter_linux/fl_view.h, /home/mayank/Documents/Flutter/demo/linux/flutter/ephemeral/flutter_linux/flutter_linux.h, _phony_
[        ] [  +70 ms] executing: uname -m
[        ] [  +29 ms] Exit code 0 from: uname -m
[        ] [        ] x86_64
[        ] [   +5 ms] executing: [/home/mayank/snap/flutter/common/flutter/] git -c log.showSignature=false log -n 1 --pretty=format:%H
[        ] [   +6 ms] Exit code 0 from: git -c log.showSignature=false log -n 1 --pretty=format:%H
[        ] [        ] 4cc385b4b84ac2f816d939a49ea1f328c4e0b48e
[        ] [        ] executing: [/home/mayank/snap/flutter/common/flutter/] git tag --points-at 4cc385b4b84ac2f816d939a49ea1f328c4e0b48e
[        ] [  +13 ms] Exit code 0 from: git tag --points-at 4cc385b4b84ac2f816d939a49ea1f328c4e0b48e
[        ] [        ] 2.5.0
[        ] [  +12 ms] executing: [/home/mayank/snap/flutter/common/flutter/] git rev-parse --abbrev-ref --symbolic @{u}
[        ] [   +4 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{u}
[        ] [        ] origin/stable
[        ] [        ] executing: [/home/mayank/snap/flutter/common/flutter/] git ls-remote --get-url origin
[        ] [   +5 ms] Exit code 0 from: git ls-remote --get-url origin
[        ] [        ] https://github.com/flutter/flutter.git
[        ] [  +84 ms] executing: [/home/mayank/snap/flutter/common/flutter/] git rev-parse --abbrev-ref HEAD
[        ] [   +4 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD
[        ] [        ] stable
[        ] [  +53 ms] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'FlutterWebSdk' is not required, skipping update.
[        ] [   +3 ms] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'WindowsUwpEngineArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
[        ] [ +100 ms] Artifact Instance of 'MaterialFonts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'GradleWrapper' is not required, skipping update.
[        ] [        ] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'FlutterWebSdk' is not required, skipping update.
[        ] [        ] Artifact Instance of 'FlutterSdk' is not required, skipping update.
[        ] [        ] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'WindowsUwpEngineArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
[        ] [   +1 ms] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
[        ] [        ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'FontSubsetArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'PubDependencies' is not required, skipping update.
[        ] [  +49 ms] Initializing file store
[        ] [  +28 ms] Skipping target: gen_localizations
[        ] [  +16 ms] gen_dart_plugin_registrant: Starting due to {InvalidatedReasonKind.inputChanged: The following inputs have updated contents: /home/mayank/Documents/Flutter/demo/.dart_tool/package_config_subset}
[        ] [   +2 ms] unpack_linux: Starting due to {}
[        ] [ +107 ms] unpack_linux: Complete
[        ] [ +682 ms] gen_dart_plugin_registrant: Complete
[        ] [   +1 ms] kernel_snapshot: Starting due to {}
[   +1 ms] [   +7 ms] /home/mayank/snap/flutter/common/flutter/bin/cache/dart-sdk/bin/dart --disable-dart-dev /home/mayank/snap/flutter/common/flutter/bin/cache/artifacts/engine/linux-x64/frontend_server.dart.snapshot --sdk-root /home/mayank/snap/flutter/common/flutter/bin/cache/artifacts/engine/common/flutter_patched_sdk/ --target=flutter --no-print-incremental-dependencies -DFLUTTER_WEB_AUTO_DETECT=true -Ddart.vm.profile=false -Ddart.vm.product=false --enable-asserts --track-widget-creation --packages /home/mayank/Documents/Flutter/demo/.dart_tool/package_config.json --output-dill /home/mayank/Documents/Flutter/demo/.dart_tool/flutter_build/242adb5ba487e6411fd8241c8961104b/app.dill --depfile /home/mayank/Documents/Flutter/demo/.dart_tool/flutter_build/242adb5ba487e6411fd8241c8961104b/kernel_snapshot.d package:demo/main.dart
[        ] [+8829 ms] kernel_snapshot: Complete
[        ] [ +432 ms] debug_bundle_linux-x64_assets: Starting due to {}
[        ] [ +142 ms] debug_bundle_linux-x64_assets: Complete
[        ] [ +553 ms] Persisting file store
[        ] [   +5 ms] Done persisting file store
[        ] [   +5 ms] build succeeded.
[        ] [   +7 ms] "flutter assemble" took 10,999ms.
[        ] [ +255 ms] ensureAnalyticsSent: 252ms
[        ] [   +1 ms] Running shutdown hooks
[        ] [        ] Shutdown hooks complete
[        ] [        ] exiting with code 0
[ +398 ms] [2/6] Building CXX object CMakeFiles/demo.dir/main.cc.o
[  +57 ms] [3/6] Building CXX object CMakeFiles/demo.dir/flutter/generated_plugin_registrant.cc.o
[  +21 ms] [4/6] Building CXX object CMakeFiles/demo.dir/my_application.cc.o
[ +165 ms] [5/6] Linking CXX executable intermediates_do_not_run/demo
[   +2 ms] [5/6] Install the project...
[  +11 ms] -- Install configuration: "Debug"
[        ] -- Installing: /home/mayank/Documents/Flutter/demo/build/linux/x64/debug/bundle/demo
[        ] -- Set runtime path of "/home/mayank/Documents/Flutter/demo/build/linux/x64/debug/bundle/demo" to "$ORIGIN/lib"
[        ] -- Installing: /home/mayank/Documents/Flutter/demo/build/linux/x64/debug/bundle/data/icudtl.dat
[   +1 ms] -- Installing: /home/mayank/Documents/Flutter/demo/build/linux/x64/debug/bundle/lib/libflutter_linux_gtk.so
[  +72 ms] -- Installing: /home/mayank/Documents/Flutter/demo/build/linux/x64/debug/bundle/data/flutter_assets
[        ] -- Installing: /home/mayank/Documents/Flutter/demo/build/linux/x64/debug/bundle/data/flutter_assets/NOTICES.Z
[        ] -- Installing: /home/mayank/Documents/Flutter/demo/build/linux/x64/debug/bundle/data/flutter_assets/AssetManifest.json
[        ] -- Installing: /home/mayank/Documents/Flutter/demo/build/linux/x64/debug/bundle/data/flutter_assets/FontManifest.json
[        ] -- Installing: /home/mayank/Documents/Flutter/demo/build/linux/x64/debug/bundle/data/flutter_assets/kernel_blob.bin
[  +71 ms] -- Installing: /home/mayank/Documents/Flutter/demo/build/linux/x64/debug/bundle/data/flutter_assets/fonts
[        ] -- Installing: /home/mayank/Documents/Flutter/demo/build/linux/x64/debug/bundle/data/flutter_assets/fonts/MaterialIcons-Regular.otf
[   +2 ms] -- Installing: /home/mayank/Documents/Flutter/demo/build/linux/x64/debug/bundle/data/flutter_assets/version.json
[        ] -- Installing: /home/mayank/Documents/Flutter/demo/build/linux/x64/debug/bundle/data/flutter_assets/packages
[        ] -- Installing: /home/mayank/Documents/Flutter/demo/build/linux/x64/debug/bundle/data/flutter_assets/packages/cupertino_icons
[        ] -- Installing: /home/mayank/Documents/Flutter/demo/build/linux/x64/debug/bundle/data/flutter_assets/packages/cupertino_icons/assets
[        ] -- Installing: /home/mayank/Documents/Flutter/demo/build/linux/x64/debug/bundle/data/flutter_assets/packages/cupertino_icons/assets/CupertinoIcons.ttf
[  +20 ms] Building Linux application... (completed in 14.5s)
[ +314 ms] Observatory URL on device: http://127.0.0.1:42187/rQXlUaIISKI=/
[   +5 ms] Caching compiled dill
[  +74 ms] Connecting to service protocol: http://127.0.0.1:42187/rQXlUaIISKI=/
[ +153 ms] Launching a Dart Developer Service (DDS) instance at http://127.0.0.1:0, connecting to VM service at http://127.0.0.1:42187/rQXlUaIISKI=/.
[ +121 ms] DDS is listening at http://127.0.0.1:33015/wE8uRIl5fg8=/.
[  +73 ms] Successfully connected to service protocol: http://127.0.0.1:42187/rQXlUaIISKI=/
[  +42 ms] DevFS: Creating new filesystem on the device (null)
[  +19 ms] DevFS: Created new filesystem on the device (file:///tmp/demoESGPUM/demo/)
[   +2 ms] Updating assets
[ +108 ms] Syncing files to device Linux...
[   +2 ms] <- reset
[        ] Compiling dart to kernel with 0 updated files
[   +2 ms] <- recompile package:demo/main.dart 932b794d-0f03-446e-bb55-09bbcb0a60db
[        ] <- 932b794d-0f03-446e-bb55-09bbcb0a60db
[ +112 ms] Updating files.
[        ] DevFS: Sync finished
[   +2 ms] Syncing files to device Linux... (completed in 119ms)
[        ] Synced 0.0MB.
[   +1 ms] <- accept
[   +2 ms] Connected to _flutterView/0x158c750.
[   +2 ms] Flutter run key commands.
[   +1 ms] r Hot reload. 🔥🔥🔥
[        ] R Hot restart.
[        ] h List all available interactive commands.
[        ] d Detach (terminate "flutter run" but leave application running).
[        ] c Clear the screen
[        ] q Quit (terminate the application on the device).
[        ] 💪 Running with sound null safety 💪
[        ] An Observatory debugger and profiler on Linux is available at: http://127.0.0.1:33015/wE8uRIl5fg8=/
[ +607 ms] DevTools activation throttled until 2021-09-10 01:07:56.856669.
[ +544 ms] The Flutter DevTools debugger and profiler on Linux is available at: http://127.0.0.1:9101?uri=http://127.0.0.1:33015/wE8uRIl5fg8=/
[+7329 ms] Skipping target: gen_localizations
[   +1 ms] Skipping target: gen_dart_plugin_registrant
[   +1 ms] Skipping target: _composite
[        ] complete
[   +2 ms] Performing hot reload...
[  +16 ms] Scanned through 521 files in 8ms
[        ] Syncing files to device Linux...
[        ] Compiling dart to kernel with 0 updated files
[        ] <- recompile package:demo/main.dart 03e29e9b-14e5-40f6-b3d8-fc1c9430f690
[        ] <- 03e29e9b-14e5-40f6-b3d8-fc1c9430f690
[   +9 ms] Updating files.
[   +2 ms] DevFS: Sync finished
[        ] Syncing files to device Linux... (completed in 13ms)
[        ] Synced 0.0MB.
[  +18 ms] Reassembling application
[  +58 ms] Hot reload performed in 100ms.
[        ] Performing hot reload... (completed in 109ms)
[        ] Reloaded 0 libraries in 124ms.
[+10216 ms] Skipping target: gen_localizations
[   +1 ms] Skipping target: gen_dart_plugin_registrant
[        ] Skipping target: _composite
[        ] complete
[        ] Performing hot reload...
[  +14 ms] Scanned through 521 files in 10ms
[        ] Syncing files to device Linux...
[        ] Compiling dart to kernel with 0 updated files
[        ] <- recompile package:demo/main.dart f583e3d4-ccb9-4ad6-9b85-56596b3b352f
[        ] <- f583e3d4-ccb9-4ad6-9b85-56596b3b352f
[   +8 ms] Updating files.
[        ] DevFS: Sync finished
[        ] Syncing files to device Linux... (completed in 10ms)
[        ] Synced 0.0MB.
[  +12 ms] Reassembling application
[  +18 ms] Hot reload performed in 51ms.
[        ] Performing hot reload... (completed in 56ms)
[        ] Reloaded 0 libraries in 68ms.
[+3187 ms] Skipping target: gen_localizations
[   +1 ms] Skipping target: gen_dart_plugin_registrant
[        ] Skipping target: _composite
[        ] complete
[   +4 ms] Performing hot restart...
[   +7 ms] Scanned through 521 files in 4ms
[        ] Syncing files to device Linux...
[        ] <- reset
[        ] Compiling dart to kernel with 0 updated files
[        ] <- recompile package:demo/main.dart 20b63346-0de7-41d8-8f13-874905014483
[        ] <- 20b63346-0de7-41d8-8f13-874905014483
[  +92 ms] Updating files.
[  +66 ms] DevFS: Sync finished
[        ] Syncing files to device Linux... (completed in 160ms)
[        ] Synced 27.5MB.
[        ] <- accept
[ +173 ms] Hot restart performed in 340ms.
[   +1 ms] Performing hot restart... (completed in 343ms)
[        ] Restarted application in 355ms.
[+6033 ms] Skipping target: gen_localizations
[   +4 ms] Skipping target: gen_dart_plugin_registrant
[        ] Skipping target: _composite
[        ] complete
[        ] Performing hot restart...
[   +7 ms] Scanned through 521 files in 6ms
[        ] Syncing files to device Linux...
[        ] <- reset
[        ] Compiling dart to kernel with 0 updated files
[   +2 ms] <- recompile package:demo/main.dart b7083f81-8a64-4ca8-b056-1e3ad01244e9
[        ] <- b7083f81-8a64-4ca8-b056-1e3ad01244e9
[ +102 ms] Updating files.
[  +43 ms] DevFS: Sync finished
[        ] Syncing files to device Linux... (completed in 149ms)
[        ] Synced 27.5MB.
[        ] <- accept
[   +3 ms] Ignoring terminal input: "R" because we are busy.
[ +167 ms] Hot restart performed in 328ms.
[   +1 ms] Performing hot restart... (completed in 330ms)
[        ] Restarted application in 344ms.
[   +4 ms] Skipping target: gen_localizations
[   +1 ms] Skipping target: gen_dart_plugin_registrant
[        ] Skipping target: _composite
[        ] complete
[        ] Performing hot restart...
[   +5 ms] Scanned through 521 files in 4ms
[        ] Syncing files to device Linux...
[        ] <- reset
[        ] Compiling dart to kernel with 0 updated files
[        ] <- recompile package:demo/main.dart b008a0e6-61f1-4540-989d-555fd6ddd059
[        ] <- b008a0e6-61f1-4540-989d-555fd6ddd059
[  +99 ms] Updating files.
[  +72 ms] DevFS: Sync finished
[        ] Syncing files to device Linux... (completed in 174ms)
[        ] Synced 27.5MB.
[        ] <- accept
[ +626 ms] Hot restart performed in 806ms.
[        ] Performing hot restart... (completed in 807ms)
[        ] Restarted application in 812ms.
[+3857 ms] Skipping target: gen_localizations
[        ] Skipping target: gen_dart_plugin_registrant
[        ] Skipping target: _composite
[        ] complete
[        ] Performing hot restart...
[   +7 ms] Scanned through 521 files in 7ms
[        ] Syncing files to device Linux...
[        ] <- reset
[        ] Compiling dart to kernel with 0 updated files
[   +1 ms] <- recompile package:demo/main.dart a7d663ac-c953-46ef-9e57-dd07cd64cf9b
[        ] <- a7d663ac-c953-46ef-9e57-dd07cd64cf9b
[ +109 ms] Updating files.
[  +63 ms] DevFS: Sync finished
[        ] Syncing files to device Linux... (completed in 175ms)
[        ] Synced 27.5MB.
[        ] <- accept
[  +50 ms] Ignoring terminal input: "R" because we are busy.
[ +121 ms] Hot restart performed in 356ms.
[        ] Performing hot restart... (completed in 356ms)
[        ] Restarted application in 369ms.
[  +44 ms] Skipping target: gen_localizations
[   +1 ms] Skipping target: gen_dart_plugin_registrant
[        ] Skipping target: _composite
[        ] complete
[        ] Performing hot restart...
[   +5 ms] Scanned through 521 files in 4ms
[   +1 ms] Syncing files to device Linux...
[        ] <- reset
[        ] Compiling dart to kernel with 0 updated files
[        ] <- recompile package:demo/main.dart 1fd73479-e9c1-4bb5-a40a-8b8ab4a80339
[        ] <- 1fd73479-e9c1-4bb5-a40a-8b8ab4a80339
[ +125 ms] Updating files.
[  +56 ms] DevFS: Sync finished
[        ] Syncing files to device Linux... (completed in 183ms)
[        ] Synced 27.5MB.
[        ] <- accept
[   +4 ms] Ignoring terminal input: "R" because we are busy.
[ +120 ms] Ignoring terminal input: "R" because we are busy.
[ +146 ms] Ignoring terminal input: "R" because we are busy.
[ +151 ms] Ignoring terminal input: "R" because we are busy.
[ +176 ms] Ignoring terminal input: "R" because we are busy.
[ +168 ms] Hot restart performed in 958ms.
[        ] Performing hot restart... (completed in 959ms)
[        ] Restarted application in 968ms.
[ +848 ms] Skipping target: gen_localizations
[        ] Skipping target: gen_dart_plugin_registrant
[        ] Skipping target: _composite
[        ] complete
[        ] Performing hot restart...
[   +4 ms] Scanned through 521 files in 3ms
[        ] Syncing files to device Linux...
[        ] <- reset
[        ] Compiling dart to kernel with 0 updated files
[        ] <- recompile package:demo/main.dart c403aab1-18e0-43dd-8e66-7f2ec44adb3c
[        ] <- c403aab1-18e0-43dd-8e66-7f2ec44adb3c
[ +119 ms] Updating files.
[  +53 ms] DevFS: Sync finished
[        ] Syncing files to device Linux... (completed in 175ms)
[        ] Synced 27.5MB.
[        ] <- accept
[ +181 ms] Hot restart performed in 362ms.
[        ] Performing hot restart... (completed in 363ms)
[        ] Restarted application in 370ms.
[ +506 ms] Skipping target: gen_localizations
[        ] Skipping target: gen_dart_plugin_registrant
[        ] Skipping target: _composite
[        ] complete
[        ] Performing hot restart...
[   +4 ms] Scanned through 521 files in 4ms
[        ] Syncing files to device Linux...
[        ] <- reset
[        ] Compiling dart to kernel with 0 updated files
[   +1 ms] <- recompile package:demo/main.dart 61e2d612-cfca-43bc-8691-274fd5e7d915
[        ] <- 61e2d612-cfca-43bc-8691-274fd5e7d915
[ +126 ms] Updating files.
[  +62 ms] DevFS: Sync finished
[        ] Syncing files to device Linux... (completed in 190ms)
[        ] Synced 27.5MB.
[        ] <- accept
[ +207 ms] Hot restart performed in 402ms.
[        ] Performing hot restart... (completed in 403ms)
[        ] Restarted application in 405ms.
[ +863 ms] ** (demo:46668): WARNING **: 13:30:57.513: Unable to retrieve framework response: Message is not valid JSON
[   +8 ms] 
           ══╡ EXCEPTION CAUGHT BY SERVICES LIBRARY ╞══════════════════════════════════════════════════════════
           The following assertion was thrown during a platform message callback:
           A KeyUpEvent is dispatched, but the state shows that the physical key is not pressed. If this occurs
           in real application, please report this bug to Flutter. If this occurs in unit tests, please ensure
           that simulated events follow Flutter's event model as documented in `HardwareKeyboard`. This was the
           event: KeyUpEvent#6ab5b(physicalKey: PhysicalKeyboardKey#700e2(usbHidUsage: "0x000700e2", debugName:
           "Alt Left"), logicalKey: LogicalKeyboardKey#00104(keyId: "0x200000104", keyLabel: "Alt Left",
           debugName: "Alt Left"), character: null, timeStamp: 1:27:37.409000, synthesized)
           'package:flutter/src/services/hardware_keyboard.dart':
           Failed assertion: line 441 pos 16: '_pressedKeys.containsKey(event.physicalKey)'

           Either the assertion indicates an error in the framework itself, or we should provide substantially
           more information in this error message to help you determine and fix the underlying cause.
           In either case, please report this assertion by filing a bug on GitHub:
             https://github.com/flutter/flutter/issues/new?template=2_bug.md

           When the exception was thrown, this was the stack:
           #2      HardwareKeyboard._assertEventIsRegular.<anonymous closure> (package:flutter/src/services/hardware_keyboard.dart:441:16)
           #3      HardwareKeyboard._assertEventIsRegular (package:flutter/src/services/hardware_keyboard.dart:452:6)
           #4      HardwareKeyboard.handleKeyEvent (package:flutter/src/services/hardware_keyboard.dart:543:5)
           #5      KeyEventManager.handleRawKeyMessage (package:flutter/src/services/hardware_keyboard.dart:821:35)
           #6      BasicMessageChannel.setMessageHandler.<anonymous closure> (package:flutter/src/services/platform_channel.dart:73:49)
           #7      BasicMessageChannel.setMessageHandler.<anonymous closure> (package:flutter/src/services/platform_channel.dart:72:47)
           #8      _DefaultBinaryMessenger.setMessageHandler.<anonymous closure> (package:flutter/src/services/binding.dart:379:35)
           #9      _DefaultBinaryMessenger.setMessageHandler.<anonymous closure> (package:flutter/src/services/binding.dart:376:46)
           #10     _invoke2.<anonymous closure> (dart:ui/hooks.dart:205:15)
           #14     _invoke2 (dart:ui/hooks.dart:204:10)
           #15     _ChannelCallbackRecord.invoke (dart:ui/channel_buffers.dart:42:5)
           #16     _Channel.push (dart:ui/channel_buffers.dart:132:31)
           #17     ChannelBuffers.push (dart:ui/channel_buffers.dart:329:17)
           #18     PlatformDispatcher._dispatchPlatformMessage (dart:ui/platform_dispatcher.dart:544:22)
           #19     _dispatchPlatformMessage (dart:ui/hooks.dart:92:31)
           (elided 5 frames from class _AssertionError and dart:async)
           ════════════════════════════════════════════════════════════════════════════════════════════════════
[  +13 ms] ** (demo:46668): WARNING **: 13:30:57.535: Unable to retrieve framework response: Message is not valid JSON
[        ] 
           Another exception was thrown: A KeyUpEvent is dispatched, but the state shows that the physical key is not pressed. If this occurs in real application, please report this bug to Flutter. If this occurs in unit tests, please ensure that simulated events follow Flutter's event model as documented in `HardwareKeyboard`. This was the event: KeyUpEvent#6ab5b(physicalKey: PhysicalKeyboardKey#700e2(usbHidUsage: "0x000700e2", debugName: "Alt Left"), logicalKey: LogicalKeyboardKey#00104(keyId: "0x200000104", keyLabel: "Alt Left", debugName: "Alt Left"), character: null, timeStamp: 1:27:37.409000, synthesized)
[  +67 ms] 
           Another exception was thrown: A KeyUpEvent is dispatched, but the state shows that the physical key is not pressed. If this occurs in real application, please report this bug to Flutter. If this occurs in unit tests, please ensure that simulated events follow Flutter's event model as documented in `HardwareKeyboard`. This was the event: KeyUpEvent#6ab5b(physicalKey: PhysicalKeyboardKey#700e2(usbHidUsage: "0x000700e2", debugName: "Alt Left"), logicalKey: LogicalKeyboardKey#00104(keyId: "0x200000104", keyLabel: "Alt Left", debugName: "Alt Left"), character: null, timeStamp: 1:27:37.409000, synthesized)
[        ] ** (demo:46668): WARNING **: 13:30:57.604: Unable to retrieve framework response: Message is not valid JSON
[ +129 ms] 
           Another exception was thrown: A KeyUpEvent is dispatched, but the state shows that the physical key is not pressed. If this occurs in real application, please report this bug to Flutter. If this occurs in unit tests, please ensure that simulated events follow Flutter's event model as documented in `HardwareKeyboard`. This was the event: KeyUpEvent#6ab5b(physicalKey: PhysicalKeyboardKey#700e2(usbHidUsage: "0x000700e2", debugName: "Alt Left"), logicalKey: LogicalKeyboardKey#00104(keyId: "0x200000104", keyLabel: "Alt Left", debugName: "Alt Left"), character: null, timeStamp: 1:27:37.409000, synthesized)
[        ] ** (demo:46668): WARNING **: 13:30:57.733: Unable to retrieve framework response: Message is not valid JSON
[+4041 ms] 
           Another exception was thrown: A KeyUpEvent is dispatched, but the state shows that the physical key is not pressed. If this occurs in real application, please report this bug to Flutter. If this occurs in unit tests, please ensure that simulated events follow Flutter's event model as documented in `HardwareKeyboard`. This was the event: KeyUpEvent#6ab5b(physicalKey: PhysicalKeyboardKey#700e2(usbHidUsage: "0x000700e2", debugName: "Alt Left"), logicalKey: LogicalKeyboardKey#00104(keyId: "0x200000104", keyLabel: "Alt Left", debugName: "Alt Left"), character: null, timeStamp: 1:27:37.409000, synthesized)
[        ] ** (demo:46668): WARNING **: 13:31:01.776: Unable to retrieve framework response: Message is not valid JSON
[+1562 ms] 
           Another exception was thrown: A KeyUpEvent is dispatched, but the state shows that the physical key is not pressed. If this occurs in real application, please report this bug to Flutter. If this occurs in unit tests, please ensure that simulated events follow Flutter's event model as documented in `HardwareKeyboard`. This was the event: KeyUpEvent#6ab5b(physicalKey: PhysicalKeyboardKey#700e2(usbHidUsage: "0x000700e2", debugName: "Alt Left"), logicalKey: LogicalKeyboardKey#00104(keyId: "0x200000104", keyLabel: "Alt Left", debugName: "Alt Left"), character: null, timeStamp: 1:27:37.409000, synthesized)
[        ] ** (demo:46668): WARNING **: 13:31:03.338: Unable to retrieve framework response: Message is not valid JSON
[+1904 ms] ** (demo:46668): WARNING **: 13:31:05.241: Unable to retrieve framework response: Message is not valid JSON
[   +1 ms] 
           Another exception was thrown: A KeyUpEvent is dispatched, but the state shows that the physical key is not pressed. If this occurs in real application, please report this bug to Flutter. If this occurs in unit tests, please ensure that simulated events follow Flutter's event model as documented in `HardwareKeyboard`. This was the event: KeyUpEvent#6ab5b(physicalKey: PhysicalKeyboardKey#700e2(usbHidUsage: "0x000700e2", debugName: "Alt Left"), logicalKey: LogicalKeyboardKey#00104(keyId: "0x200000104", keyLabel: "Alt Left", debugName: "Alt Left"), character: null, timeStamp: 1:27:37.409000, synthesized)
[  +99 ms] 
           Another exception was thrown: A KeyUpEvent is dispatched, but the state shows that the physical key is not pressed. If this occurs in real application, please report this bug to Flutter. If this occurs in unit tests, please ensure that simulated events follow Flutter's event model as documented in `HardwareKeyboard`. This was the event: KeyUpEvent#6ab5b(physicalKey: PhysicalKeyboardKey#700e2(usbHidUsage: "0x000700e2", debugName: "Alt Left"), logicalKey: LogicalKeyboardKey#00104(keyId: "0x200000104", keyLabel: "Alt Left", debugName: "Alt Left"), character: null, timeStamp: 1:27:37.409000, synthesized)
[        ] ** (demo:46668): WARNING **: 13:31:05.344: Unable to retrieve framework response: Message is not valid JSON
[ +179 ms] 
           Another exception was thrown: A KeyUpEvent is dispatched, but the state shows that the physical key is not pressed. If this occurs in real application, please report this bug to Flutter. If this occurs in unit tests, please ensure that simulated events follow Flutter's event model as documented in `HardwareKeyboard`. This was the event: KeyUpEvent#6ab5b(physicalKey: PhysicalKeyboardKey#700e2(usbHidUsage: "0x000700e2", debugName: "Alt Left"), logicalKey: LogicalKeyboardKey#00104(keyId: "0x200000104", keyLabel: "Alt Left", debugName: "Alt Left"), character: null, timeStamp: 1:27:37.409000, synthesized)
[        ] ** (demo:46668): WARNING **: 13:31:05.524: Unable to retrieve framework response: Message is not valid JSON
[  +48 ms] 
           Another exception was thrown: A KeyUpEvent is dispatched, but the state shows that the physical key is not pressed. If this occurs in real application, please report this bug to Flutter. If this occurs in unit tests, please ensure that simulated events follow Flutter's event model as documented in `HardwareKeyboard`. This was the event: KeyUpEvent#6ab5b(physicalKey: PhysicalKeyboardKey#700e2(usbHidUsage: "0x000700e2", debugName: "Alt Left"), logicalKey: LogicalKeyboardKey#00104(keyId: "0x200000104", keyLabel: "Alt Left", debugName: "Alt Left"), character: null, timeStamp: 1:27:37.409000, synthesized)
[        ] ** (demo:46668): WARNING **: 13:31:05.573: Unable to retrieve framework response: Message is not valid JSON
[+6602 ms] DevFS: Deleting filesystem on the device (file:///tmp/demoESGPUM/demo/)
[  +15 ms] DevFS: Deleted filesystem on the device (file:///tmp/demoESGPUM/demo/)
[   +9 ms] Application finished.
[   +5 ms] "flutter run" took 71,805ms.
[  +16 ms] Service protocol connection closed.
[ +237 ms] ensureAnalyticsSent: 251ms
[   +1 ms] Running shutdown hooks
[        ] Shutdown hooks complete
[   +1 ms] exiting with code 0

No issues found!
[✓] Flutter (Channel stable, 2.5.0, on Ubuntu 21.04 5.11.0-25-generic, locale en_GB.UTF-8)
    • Flutter version 2.5.0 at /home/mayank/snap/flutter/common/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 4cc385b4b8 (26 hours ago), 2021-09-07 23:01:49 -0700
    • Engine revision f0826da7ef
    • Dart version 2.14.0

[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.2)
    • Android SDK at /home/mayank/android-sdk/
    • Platform android-30, build-tools 30.0.2
    • ANDROID_SDK_ROOT = /home/mayank/android-sdk/
    • Java binary at: /snap/android-studio/114/android-studio/jre/bin/java
    • Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7249189)
    • All Android licenses accepted.

[✓] Chrome - develop for the web
    • Chrome at google-chrome

[✓] Linux toolchain - develop for Linux desktop
    • clang version 6.0.0-1ubuntu2 (tags/RELEASE_600/final)
    • cmake version 3.10.2
    • ninja version 1.8.2
    • pkg-config version 0.29.1

[✓] Android Studio (version 2020.3)
    • Android Studio at /snap/android-studio/114/android-studio
    • Flutter plugin version 59.0.2
    • Dart plugin version 203.8292
    • Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7249189)

[✓] VS Code
    • VS Code at /snap/code/current
    • Flutter extension version 3.26.0

[✓] Connected device (2 available)
    • Linux (desktop) • linux  • linux-x64      • Ubuntu 21.04 5.11.0-25-generic
    • Chrome (web)    • chrome • web-javascript • Google Chrome 92.0.4515.107

• No issues found!

Activity

  1. changed the title [-]Flutter 2.5 - Unable to take Keyboard Input after Hot Reload[/-] [+]Flutter 2.5 - Unable to take Keyboard Input after Hot Reload Linux[/+] on Sep 9, 2021
  2. davidmartos96 commented on Sep 9, 2021

    @davidmartos96
    Contributor

    @Mayank-9018 Have you tried the dev/master branch of Flutter? In desktop is possible that the stable snapshot has some bugs that are already fixed in higher versions.

  3. Mayank-9018 commented on Sep 9, 2021

    @Mayank-9018
    Author

    I haven't tried this on master branch yet. I'll try and update the issue.

  4. Mayank-9018 commented on Sep 9, 2021

    @Mayank-9018
    Author

    The Issue persists on Master branch as well.

  5. changed the title [-]Flutter 2.5 - Unable to take Keyboard Input after Hot Reload Linux[/-] [+]Unable to take Keyboard Input after Hot Reload Linux[/+] on Sep 9, 2021
  6. TahaTesser commented on Sep 9, 2021

    @TahaTesser
    Contributor

    Hi @Mayank-9018
    Running on the latest stable channel, tried hot reload several times, input still works.

    Screenshot from 2021-09-09 12-43-33

    flutter doctor -v
    ✓] Flutter (Channel stable, 2.5.0, on Pop!_OS 21.04 5.11.0-7633-generic, locale
        en_US.UTF-8)
        • Flutter version 2.5.0 at /home/taha/Code/flutter_stable
        • Upstream repository https://github.com/flutter/flutter.git
        • Framework revision 4cc385b4b8 (28 hours ago), 2021-09-07 23:01:49 -0700
        • Engine revision f0826da7ef
        • Dart version 2.14.0
    
    [✓] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
        • Android SDK at /home/taha/Code/android-sdk
        • Platform android-31, build-tools 30.0.3
        • ANDROID_HOME = /home/taha/Code/android-sdk
        • Java binary at: /home/taha/Code/android-studio/jre/bin/java
        • Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7249189)
        • All Android licenses accepted.
    
    [✓] Chrome - develop for the web
        • Chrome at google-chrome
    
    [✓] Linux toolchain - develop for Linux desktop
        • Ubuntu clang version 12.0.0-3ubuntu1~21.04.1
        • cmake version 3.18.4
        • ninja version 1.8.2
        • pkg-config version 0.29.2
    

    Can you please try a new project?

  7. added
    waiting for responseThe Flutter team cannot make further progress on this issue until the original reporter responds
    on Sep 9, 2021
  8. Mayank-9018 commented on Sep 9, 2021

    @Mayank-9018
    Author

    Thanks @TahaTesser for responding.

    The error occurs on Hot Restarting and not Hot Reloading. (My bad)

    The video I uploaded seems unplayable for some reason, here's a new one(it just wouldn't upload on Github):
    https://youtu.be/rESjLwMk_JI

    In the video, it occured after 4-5 restarts but sometimes it would just happen on first restart.

  9. removed
    waiting for responseThe Flutter team cannot make further progress on this issue until the original reporter responds
    on Sep 9, 2021
  10. changed the title [-]Unable to take Keyboard Input after Hot Reload Linux[/-] [+]Unable to take Keyboard Input after Hot Restart Linux[/+] on Sep 9, 2021
  11. TahaTesser commented on Sep 9, 2021

    @TahaTesser
    Contributor

    Hi @Mayank-9018
    Thanks for the details, hot restart does reproduce the issue on Linux desktop, doesn't reproduce on the web

    Just TextField is needed to reproduce, autofocus makes it easier but the issue also reproduces without it

    body: Center(
            child: Container(
              child: TextField(
                autofocus: true,
              ),
            ),
          ),
    logs
    [  +65 ms] executing: uname -m
    [  +33 ms] Exit code 0 from: uname -m
    [        ] x86_64
    [   +5 ms] executing: [/home/taha/Code/flutter_master/] git -c log.showSignature=false log -n 1 --pretty=format:%H
    [   +6 ms] Exit code 0 from: git -c log.showSignature=false log -n 1 --pretty=format:%H
    [        ] 58944e6b88f9237f270b4134a4712d8c0f5e254a
    [        ] executing: [/home/taha/Code/flutter_master/] git tag --points-at 58944e6b88f9237f270b4134a4712d8c0f5e254a
    [  +14 ms] Exit code 0 from: git tag --points-at 58944e6b88f9237f270b4134a4712d8c0f5e254a
    [   +2 ms] executing: [/home/taha/Code/flutter_master/] git describe --match *.*.* --long --tags 58944e6b88f9237f270b4134a4712d8c0f5e254a
    [  +44 ms] Exit code 0 from: git describe --match *.*.* --long --tags 58944e6b88f9237f270b4134a4712d8c0f5e254a
    [        ] 2.6.0-0.0.pre-219-g58944e6b88
    [  +12 ms] executing: [/home/taha/Code/flutter_master/] git rev-parse --abbrev-ref --symbolic @{u}
    [   +6 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{u}
    [        ] origin/master
    [        ] executing: [/home/taha/Code/flutter_master/] git ls-remote --get-url origin
    [   +9 ms] Exit code 0 from: git ls-remote --get-url origin
    [        ] https://github.com/flutter/flutter.git
    [ +124 ms] executing: [/home/taha/Code/flutter_master/] git rev-parse --abbrev-ref HEAD
    [   +6 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD
    [        ] master
    [  +83 ms] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not required, skipping update.
    [        ] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
    [        ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
    [        ] Artifact Instance of 'FlutterWebSdk' is not required, skipping update.
    [   +5 ms] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.
    [        ] Artifact Instance of 'WindowsUwpEngineArtifacts' is not required, skipping update.
    [        ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
    [        ] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update.
    [        ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.
    [        ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.
    [        ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update.
    [        ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
    [ +102 ms] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not required, skipping update.
    [        ] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
    [        ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
    [        ] Artifact Instance of 'FlutterWebSdk' is not required, skipping update.
    [   +3 ms] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.
    [        ] Artifact Instance of 'WindowsUwpEngineArtifacts' is not required, skipping update.
    [        ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
    [   +2 ms] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.
    [        ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.
    [        ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update.
    [        ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
    [ +100 ms] Skipping pub get: version match.
    [ +137 ms] Generating /home/taha/StudioProjects/triage/android/app/src/main/java/io/flutter/plugins/GeneratedPluginRegistrant.java
    [ +120 ms] Initializing file store
    [  +12 ms] Skipping target: gen_localizations
    [   +6 ms] Skipping target: gen_dart_plugin_registrant
    [        ] Skipping target: _composite
    [   +2 ms] complete
    [   +6 ms] Launching lib/main.dart on Linux in debug mode...
    [   +5 ms] /home/taha/Code/flutter_master/bin/cache/dart-sdk/bin/dart --disable-dart-dev /home/taha/Code/flutter_master/bin/cache/artifacts/engine/linux-x64/frontend_server.dart.snapshot --sdk-root /home/taha/Code/flutter_master/bin/cache/artifacts/engine/common/flutter_patched_sdk/ --incremental --target=flutter --debugger-module-names --experimental-emit-debug-metadata -DFLUTTER_WEB_AUTO_DETECT=true --output-dill /tmp/flutter_tools.KMWBET/flutter_tool.VPRXHB/app.dill --packages /home/taha/StudioProjects/triage/.dart_tool/package_config.json -Ddart.vm.profile=false -Ddart.vm.product=false --enable-asserts --track-widget-creation --filesystem-scheme org-dartlang-root --initialize-from-dill build/c075001b96339384a97db4862b8ab8db.cache.dill.track.dill --flutter-widget-cache --enable-experiment=alternative-invalidation-strategy
    [  +23 ms] Building Linux application...
    [  +29 ms] <- compile package:triage/main.dart
    [   +3 ms] executing: [build/linux/x64/debug/] cmake -G Ninja -DCMAKE_BUILD_TYPE=Debug -DFLUTTER_TARGET_PLATFORM=linux-x64 /home/taha/StudioProjects/triage/linux
    [ +110 ms] -- Configuring done
    [        ] -- Generating done
    [        ] -- Build files have been written to: /home/taha/StudioProjects/triage/build/linux/x64/debug
    [   +6 ms] executing: ninja -C build/linux/x64/debug install
    [  +32 ms] ninja: Entering directory `build/linux/x64/debug'
    [+3647 ms] [1/5] Generating /home/taha/StudioProjects/triage/linux/flutter/ephemeral/libflutter_linux_gtk.so, /home/taha/StudioProjects/triage/linux/flutter/ephemeral/flutter_linux/fl_basic_message_channel.h, /home/taha/StudioProjects/triage/linux/flutter/ephemeral/flutter_linux/fl_binary_codec.h, /home/taha/StudioProjects/triage/linux/flutter/ephemeral/flutter_linux/fl_binary_messenger.h, /home/taha/StudioProjects/triage/linux/flutter/ephemeral/flutter_linux/fl_dart_project.h, /home/taha/StudioProjects/triage/linux/flutter/ephemeral/flutter_linux/fl_engine.h, /home/taha/StudioProjects/triage/linux/flutter/ephemeral/flutter_linux/fl_json_message_codec.h, /home/taha/StudioProjects/triage/linux/flutter/ephemeral/flutter_linux/fl_json_method_codec.h, /home/taha/StudioProjects/triage/linux/flutter/ephemeral/flutter_linux/fl_message_codec.h, /home/taha/StudioProjects/triage/linux/flutter/ephemeral/flutter_linux/fl_method_call.h, /home/taha/StudioProjects/triage/linux/flutter/ephemeral/flutter_linux/fl_method_channel.h, /home/taha/StudioProjects/triage/linux/flutter/ephemeral/flutter_linux/fl_method_codec.h, /home/taha/StudioProjects/triage/linux/flutter/ephemeral/flutter_linux/fl_method_response.h, /home/taha/StudioProjects/triage/linux/flutter/ephemeral/flutter_linux/fl_plugin_registrar.h, /home/taha/StudioProjects/triage/linux/flutter/ephemeral/flutter_linux/fl_plugin_registry.h, /home/taha/StudioProjects/triage/linux/flutter/ephemeral/flutter_linux/fl_standard_message_codec.h, /home/taha/StudioProjects/triage/linux/flutter/ephemeral/flutter_linux/fl_standard_method_codec.h, /home/taha/StudioProjects/triage/linux/flutter/ephemeral/flutter_linux/fl_string_codec.h, /home/taha/StudioProjects/triage/linux/flutter/ephemeral/flutter_linux/fl_value.h, /home/taha/StudioProjects/triage/linux/flutter/ephemeral/flutter_linux/fl_view.h, /home/taha/StudioProjects/triage/linux/flutter/ephemeral/flutter_linux/flutter_linux.h, _phony_
    [   +3 ms] [ +116 ms] executing: uname -m
    [   +2 ms] [  +69 ms] Exit code 0 from: uname -m
    [   +2 ms] [        ] x86_64
    [   +2 ms] [   +9 ms] executing: [/home/taha/Code/flutter_master/] git -c log.showSignature=false log -n 1 --pretty=format:%H
    [   +1 ms] [  +12 ms] Exit code 0 from: git -c log.showSignature=false log -n 1 --pretty=format:%H
    [        ] [        ] 58944e6b88f9237f270b4134a4712d8c0f5e254a
    [   +1 ms] [        ] executing: [/home/taha/Code/flutter_master/] git tag --points-at 58944e6b88f9237f270b4134a4712d8c0f5e254a
    [   +1 ms] [  +28 ms] Exit code 0 from: git tag --points-at 58944e6b88f9237f270b4134a4712d8c0f5e254a
    [   +2 ms] [   +3 ms] executing: [/home/taha/Code/flutter_master/] git describe --match *.*.* --long --tags 58944e6b88f9237f270b4134a4712d8c0f5e254a
    [        ] [  +66 ms] Exit code 0 from: git describe --match *.*.* --long --tags 58944e6b88f9237f270b4134a4712d8c0f5e254a
    [        ] [        ] 2.6.0-0.0.pre-219-g58944e6b88
    [        ] [  +13 ms] executing: [/home/taha/Code/flutter_master/] git rev-parse --abbrev-ref --symbolic @{u}
    [        ] [   +5 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{u}
    [        ] [        ] origin/master
    [        ] [        ] executing: [/home/taha/Code/flutter_master/] git ls-remote --get-url origin
    [        ] [   +8 ms] Exit code 0 from: git ls-remote --get-url origin
    [        ] [        ] https://github.com/flutter/flutter.git
    [        ] [  +84 ms] executing: [/home/taha/Code/flutter_master/] git rev-parse --abbrev-ref HEAD
    [        ] [   +7 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD
    [        ] [        ] master
    [        ] [  +72 ms] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not required, skipping update.
    [        ] [        ] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
    [        ] [        ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
    [        ] [        ] Artifact Instance of 'FlutterWebSdk' is not required, skipping update.
    [        ] [   +6 ms] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.
    [        ] [        ] Artifact Instance of 'WindowsUwpEngineArtifacts' is not required, skipping update.
    [        ] [        ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
    [   +5 ms] [        ] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update.
    [   +3 ms] [        ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.
    [   +1 ms] [        ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.
    [        ] [        ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update.
    [        ] [        ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
    [        ] [ +154 ms] Artifact Instance of 'MaterialFonts' is not required, skipping update.
    [        ] [        ] Artifact Instance of 'GradleWrapper' is not required, skipping update.
    [        ] [        ] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not required, skipping update.
    [        ] [        ] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
    [        ] [        ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
    [        ] [        ] Artifact Instance of 'FlutterWebSdk' is not required, skipping update.
    [        ] [        ] Artifact Instance of 'FlutterSdk' is not required, skipping update.
    [        ] [        ] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.
    [        ] [        ] Artifact Instance of 'WindowsUwpEngineArtifacts' is not required, skipping update.
    [        ] [        ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
    [   +1 ms] [   +2 ms] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.
    [        ] [        ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.
    [        ] [        ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update.
    [        ] [        ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
    [        ] [        ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
    [        ] [        ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
    [        ] [        ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
    [        ] [        ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
    [        ] [        ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
    [        ] [        ] Artifact Instance of 'FontSubsetArtifacts' is not required, skipping update.
    [        ] [        ] Artifact Instance of 'PubDependencies' is not required, skipping update.
    [        ] [  +46 ms] Initializing file store
    [        ] [  +11 ms] Done initializing file store
    [        ] [  +44 ms] Skipping target: gen_localizations
    [        ] [  +12 ms] Skipping target: gen_dart_plugin_registrant
    [        ] [ +827 ms] Skipping target: unpack_linux
    [        ] [ +566 ms] Skipping target: kernel_snapshot
    [        ] [ +401 ms] Skipping target: debug_bundle_linux-x64_assets
    [        ] [        ] Persisting file store
    [        ] [   +9 ms] Done persisting file store
    [        ] [   +6 ms] build succeeded.
    [        ] [  +12 ms] "flutter assemble" took 2,129ms.
    [        ] [ +179 ms] ensureAnalyticsSent: 172ms
    [        ] [   +3 ms] Running shutdown hooks
    [        ] [        ] Shutdown hooks complete
    [        ] [        ] exiting with code 0
    [ +757 ms] [2/5] Building CXX object CMakeFiles/triage.dir/flutter/generated_plugin_registrant.cc.o
    [  +46 ms] [3/5] Building CXX object CMakeFiles/triage.dir/my_application.cc.o
    [ +211 ms] [4/5] Linking CXX executable intermediates_do_not_run/triage
    [        ] [4/5] Install the project...
    [  +10 ms] -- Install configuration: "Debug"
    [  +15 ms] -- Installing: /home/taha/StudioProjects/triage/build/linux/x64/debug/bundle/triage
    [        ] -- Set runtime path of "/home/taha/StudioProjects/triage/build/linux/x64/debug/bundle/triage" to "$ORIGIN/lib"
    [        ] -- Installing: /home/taha/StudioProjects/triage/build/linux/x64/debug/bundle/data/icudtl.dat
    [   +1 ms] -- Installing: /home/taha/StudioProjects/triage/build/linux/x64/debug/bundle/lib/libflutter_linux_gtk.so
    [  +70 ms] -- Installing: /home/taha/StudioProjects/triage/build/linux/x64/debug/bundle/data/flutter_assets
    [        ] -- Installing: /home/taha/StudioProjects/triage/build/linux/x64/debug/bundle/data/flutter_assets/AssetManifest.json
    [        ] -- Installing: /home/taha/StudioProjects/triage/build/linux/x64/debug/bundle/data/flutter_assets/FontManifest.json
    [        ] -- Installing: /home/taha/StudioProjects/triage/build/linux/x64/debug/bundle/data/flutter_assets/version.json
    [        ] -- Installing: /home/taha/StudioProjects/triage/build/linux/x64/debug/bundle/data/flutter_assets/NOTICES
    [        ] -- Installing: /home/taha/StudioProjects/triage/build/linux/x64/debug/bundle/data/flutter_assets/NOTICES.Z
    [        ] -- Installing: /home/taha/StudioProjects/triage/build/linux/x64/debug/bundle/data/flutter_assets/packages
    [        ] -- Installing: /home/taha/StudioProjects/triage/build/linux/x64/debug/bundle/data/flutter_assets/packages/cupertino_icons
    [        ] -- Installing: /home/taha/StudioProjects/triage/build/linux/x64/debug/bundle/data/flutter_assets/packages/cupertino_icons/assets
    [        ] -- Installing: /home/taha/StudioProjects/triage/build/linux/x64/debug/bundle/data/flutter_assets/packages/cupertino_icons/assets/CupertinoIcons.ttf
    [        ] -- Installing: /home/taha/StudioProjects/triage/build/linux/x64/debug/bundle/data/flutter_assets/kernel_blob.bin
    [  +82 ms] -- Installing: /home/taha/StudioProjects/triage/build/linux/x64/debug/bundle/data/flutter_assets/fonts
    [        ] -- Installing: /home/taha/StudioProjects/triage/build/linux/x64/debug/bundle/data/flutter_assets/fonts/MaterialIcons-Regular.otf
    [  +23 ms] Building Linux application... (completed in 5.1s)
    [ +467 ms] Observatory URL on device: http://127.0.0.1:45951/dIApA6tIGjg=/
    [   +9 ms] Caching compiled dill
    [ +130 ms] Connecting to service protocol: http://127.0.0.1:45951/dIApA6tIGjg=/
    [ +198 ms] Launching a Dart Developer Service (DDS) instance at http://127.0.0.1:0, connecting to VM service at http://127.0.0.1:45951/dIApA6tIGjg=/.
    [ +158 ms] DDS is listening at http://127.0.0.1:32929/rZRlRiKzafE=/.
    [  +96 ms] Successfully connected to service protocol: http://127.0.0.1:45951/dIApA6tIGjg=/
    [  +44 ms] DevFS: Creating new filesystem on the device (null)
    [  +23 ms] DevFS: Created new filesystem on the device (file:///tmp/triageLGFXTV/triage/)
    [   +5 ms] Updating assets
    [ +140 ms] Syncing files to device Linux...
    [   +2 ms] <- reset
    [        ] Compiling dart to kernel with 0 updated files
    [   +3 ms] <- recompile package:triage/main.dart f5a0a3f2-0cb1-45c9-a782-0cb56385f916
    [        ] <- f5a0a3f2-0cb1-45c9-a782-0cb56385f916
    [ +172 ms] Updating files.
    [        ] DevFS: Sync finished
    [   +2 ms] Syncing files to device Linux... (completed in 180ms)
    [        ] Synced 0.0MB.
    [   +5 ms] <- accept
    [   +3 ms] Connected to _flutterView/0x13295f0.
    [   +4 ms] Flutter run key commands.
    [   +2 ms] r Hot reload. 🔥🔥🔥
    [   +1 ms] R Hot restart.
    [   +1 ms] h List all available interactive commands.
    [        ] d Detach (terminate "flutter run" but leave application running).
    [        ] c Clear the screen
    [        ] q Quit (terminate the application on the device).
    [        ] 💪 Running with sound null safety 💪
    [   +8 ms] An Observatory debugger and profiler on Linux is available at: http://127.0.0.1:32929/rZRlRiKzafE=/
    [+1436 ms] DevTools activation throttled until 2021-09-09 23:58:07.178329.
    [ +611 ms] The Flutter DevTools debugger and profiler on Linux is available at: http://127.0.0.1:9103?uri=http://127.0.0.1:32929/rZRlRiKzafE=/
    [+10159 ms] Skipping target: gen_localizations
    [   +2 ms] Skipping target: gen_dart_plugin_registrant
    [   +1 ms] Skipping target: _composite
    [        ] complete
    [   +3 ms] Performing hot reload...
    [  +14 ms] Scanned through 525 files in 6ms
    [        ] Syncing files to device Linux...
    [        ] Compiling dart to kernel with 0 updated files
    [        ] <- recompile package:triage/main.dart 6e0fee69-0b82-44df-9bbf-696021a053e2
    [        ] <- 6e0fee69-0b82-44df-9bbf-696021a053e2
    [   +7 ms] Updating files.
    [   +1 ms] DevFS: Sync finished
    [        ] Syncing files to device Linux... (completed in 10ms)
    [        ] Synced 0.0MB.
    [  +12 ms] Reassembling application
    [  +68 ms] Hot reload performed in 98ms.
    [   +1 ms] Performing hot reload... (completed in 107ms)
    [        ] Reloaded 0 libraries in 124ms.
    [+3521 ms] Skipping target: gen_localizations
    [   +2 ms] Skipping target: gen_dart_plugin_registrant
    [   +9 ms] Skipping target: _composite
    [   +1 ms] complete
    [   +8 ms] Performing hot restart...
    [  +29 ms] Scanned through 525 files in 16ms
    [   +1 ms] Syncing files to device Linux...
    [        ] <- reset
    [        ] Compiling dart to kernel with 0 updated files
    [        ] <- recompile package:triage/main.dart 7349db1f-c87f-4ef4-ba71-ef5eb8f4b3bf
    [        ] <- 7349db1f-c87f-4ef4-ba71-ef5eb8f4b3bf
    [ +156 ms] Updating files.
    [  +73 ms] DevFS: Sync finished
    [        ] Syncing files to device Linux... (completed in 231ms)
    [        ] Synced 27.4MB.
    [        ] <- accept
    [ +283 ms] Hot restart performed in 534ms.
    [   +1 ms] Performing hot restart... (completed in 547ms)
    [        ] Restarted application in 575ms.
    [+3137 ms] ** (triage:25881): WARNING **: 15:03:27.106: Unable to retrieve framework response: Message is not valid JSON
    [  +13 ms] ** (triage:25881): WARNING **: 15:03:27.117: Unable to retrieve framework response: Message is not valid JSON
    [   +7 ms] 
               ══╡ EXCEPTION CAUGHT BY SERVICES LIBRARY ╞══════════════════════════════════════════════════════════
               The following assertion was thrown during a platform message callback:
               A KeyUpEvent is dispatched, but the state shows that the physical key is not pressed. If this occurs
               in real application, please report this bug to Flutter. If this occurs in unit tests, please ensure
               that simulated events follow Flutter's event model as documented in `HardwareKeyboard`. This was the
               event: KeyUpEvent#71bad(physicalKey: PhysicalKeyboardKey#700e2(usbHidUsage: "0x000700e2", debugName:
               "Alt Left"), logicalKey: LogicalKeyboardKey#00104(keyId: "0x200000104", keyLabel: "Alt Left",
               debugName: "Alt Left"), character: null, timeStamp: 5:28:08.429000, synthesized)
               'package:flutter/src/services/hardware_keyboard.dart':
               Failed assertion: line 441 pos 16: '_pressedKeys.containsKey(event.physicalKey)'
    
               Either the assertion indicates an error in the framework itself, or we should provide substantially
               more information in this error message to help you determine and fix the underlying cause.
               In either case, please report this assertion by filing a bug on GitHub:
                 https://github.com/flutter/flutter/issues/new?template=2_bug.md
    
               When the exception was thrown, this was the stack:
               #2      HardwareKeyboard._assertEventIsRegular.<anonymous closure> (package:flutter/src/services/hardware_keyboard.dart:441:16)
               #3      HardwareKeyboard._assertEventIsRegular (package:flutter/src/services/hardware_keyboard.dart:452:6)
               #4      HardwareKeyboard.handleKeyEvent (package:flutter/src/services/hardware_keyboard.dart:543:5)
               #5      KeyEventManager.handleRawKeyMessage (package:flutter/src/services/hardware_keyboard.dart:821:35)
               #6      BasicMessageChannel.setMessageHandler.<anonymous closure> (package:flutter/src/services/platform_channel.dart:73:49)
               #7      BasicMessageChannel.setMessageHandler.<anonymous closure> (package:flutter/src/services/platform_channel.dart:72:47)
               #8      _DefaultBinaryMessenger.setMessageHandler.<anonymous closure> (package:flutter/src/services/binding.dart:379:35)
               #9      _DefaultBinaryMessenger.setMessageHandler.<anonymous closure> (package:flutter/src/services/binding.dart:376:46)
               #10     _invoke2.<anonymous closure> (dart:ui/hooks.dart:205:15)
               #14     _invoke2 (dart:ui/hooks.dart:204:10)
               #15     _ChannelCallbackRecord.invoke (dart:ui/channel_buffers.dart:42:5)
               #16     _Channel.push (dart:ui/channel_buffers.dart:132:31)
               #17     ChannelBuffers.push (dart:ui/channel_buffers.dart:329:17)
               #18     PlatformDispatcher._dispatchPlatformMessage (dart:ui/platform_dispatcher.dart:544:22)
               #19     _dispatchPlatformMessage (dart:ui/hooks.dart:92:31)
               (elided 5 frames from class _AssertionError and dart:async)
               ════════════════════════════════════════════════════════════════════════════════════════════════════
    [   +1 ms] 
               Another exception was thrown: A KeyDownEvent is dispatched, but the state shows that the physical key is already pressed. If this occurs in real application, please report this bug to Flutter. If this occurs in unit tests, please ensure that simulated events follow Flutter's event model as documented in `HardwareKeyboard`. This was the event: KeyDownEvent#ecd97(physicalKey: PhysicalKeyboardKey#70039(usbHidUsage: "0x00070039", debugName: "Caps Lock"), logicalKey: LogicalKeyboardKey#00104(keyId: "0x100000104", keyLabel: "Caps Lock", debugName: "Caps Lock"), character: null, timeStamp: 5:28:08.429000, synthesized)
    [   +3 ms] ** (triage:25881): WARNING **: 15:03:27.128: Unable to retrieve framework response: Message is not valid JSON
    [   +2 ms] 
               Another exception was thrown: A KeyDownEvent is dispatched, but the state shows that the physical key is already pressed. If this occurs in real application, please report this bug to Flutter. If this occurs in unit tests, please ensure that simulated events follow Flutter's event model as documented in `HardwareKeyboard`. This was the event: KeyDownEvent#ecd97(physicalKey: PhysicalKeyboardKey#70039(usbHidUsage: "0x00070039", debugName: "Caps Lock"), logicalKey: LogicalKeyboardKey#00104(keyId: "0x100000104", keyLabel: "Caps Lock", debugName: "Caps Lock"), character: null, timeStamp: 5:28:08.429000, synthesized)
    [   +2 ms] ** (triage:25881): WARNING **: 15:03:27.137: Unable to retrieve framework response: Message is not valid JSON
    [        ] 
               Another exception was thrown: A KeyDownEvent is dispatched, but the state shows that the physical key is already pressed. If this occurs in real application, please report this bug to Flutter. If this occurs in unit tests, please ensure that simulated events follow Flutter's event model as documented in `HardwareKeyboard`. This was the event: KeyDownEvent#ecd97(physicalKey: PhysicalKeyboardKey#70039(usbHidUsage: "0x00070039", debugName: "Caps Lock"), logicalKey: LogicalKeyboardKey#00104(keyId: "0x100000104", keyLabel: "Caps Lock", debugName: "Caps Lock"), character: null, timeStamp: 5:28:08.429000, synthesized)
    [ +424 ms] 
               Another exception was thrown: A KeyDownEvent is dispatched, but the state shows that the physical key is already pressed. If this occurs in real application, please report this bug to Flutter. If this occurs in unit tests, please ensure that simulated events follow Flutter's event model as documented in `HardwareKeyboard`. This was the event: KeyDownEvent#ecd97(physicalKey: PhysicalKeyboardKey#70039(usbHidUsage: "0x00070039", debugName: "Caps Lock"), logicalKey: LogicalKeyboardKey#00104(keyId: "0x100000104", keyLabel: "Caps Lock", debugName: "Caps Lock"), character: null, timeStamp: 5:28:08.429000, synthesized)
    [   +1 ms] ** (triage:25881): WARNING **: 15:03:27.563: Unable to retrieve framework response: Message is not valid JSON
    [   +5 ms] 
               Another exception was thrown: A KeyDownEvent is dispatched, but the state shows that the physical key is already pressed. If this occurs in real application, please report this bug to Flutter. If this occurs in unit tests, please ensure that simulated events follow Flutter's event model as documented in `HardwareKeyboard`. This was the event: KeyDownEvent#ecd97(physicalKey: PhysicalKeyboardKey#70039(usbHidUsage: "0x00070039", debugName: "Caps Lock"), logicalKey: LogicalKeyboardKey#00104(keyId: "0x100000104", keyLabel: "Caps Lock", debugName: "Caps Lock"), character: null, timeStamp: 5:28:08.429000, synthesized)
    [        ] ** (triage:25881): WARNING **: 15:03:27.571: Unable to retrieve framework response: Message is not valid JSON
    [  +18 ms] 
               Another exception was thrown: A KeyDownEvent is dispatched, but the state shows that the physical key is already pressed. If this occurs in real application, please report this bug to Flutter. If this occurs in unit tests, please ensure that simulated events follow Flutter's event model as documented in `HardwareKeyboard`. This was the event: KeyDownEvent#ecd97(physicalKey: PhysicalKeyboardKey#70039(usbHidUsage: "0x00070039", debugName: "Caps Lock"), logicalKey: LogicalKeyboardKey#00104(keyId: "0x100000104", keyLabel: "Caps Lock", debugName: "Caps Lock"), character: null, timeStamp: 5:28:08.429000, synthesized)
    [        ] ** (triage:25881): WARNING **: 15:03:27.589: Unable to retrieve framework response: Message is not valid JSON
    [  +45 ms] 
               Another exception was thrown: A KeyDownEvent is dispatched, but the state shows that the physical key is already pressed. If this occurs in real application, please report this bug to Flutter. If this occurs in unit tests, please ensure that simulated events follow Flutter's event model as documented in `HardwareKeyboard`. This was the event: KeyDownEvent#ecd97(physicalKey: PhysicalKeyboardKey#70039(usbHidUsage: "0x00070039", debugName: "Caps Lock"), logicalKey: LogicalKeyboardKey#00104(keyId: "0x100000104", keyLabel: "Caps Lock", debugName: "Caps Lock"), character: null, timeStamp: 5:28:08.429000, synthesized)
    [        ] ** (triage:25881): WARNING **: 15:03:27.634: Unable to retrieve framework response: Message is not valid JSON
    [  +35 ms] ** (triage:25881): WARNING **: 15:03:27.671: Unable to retrieve framework response: Message is not valid JSON
    [   +1 ms] 
               Another exception was thrown: A KeyDownEvent is dispatched, but the state shows that the physical key is already pressed. If this occurs in real application, please report this bug to Flutter. If this occurs in unit tests, please ensure that simulated events follow Flutter's event model as documented in `HardwareKeyboard`. This was the event: KeyDownEvent#ecd97(physicalKey: PhysicalKeyboardKey#70039(usbHidUsage: "0x00070039", debugName: "Caps Lock"), logicalKey: LogicalKeyboardKey#00104(keyId: "0x100000104", keyLabel: "Caps Lock", debugName: "Caps Lock"), character: null, timeStamp: 5:28:08.429000, synthesized)
    [  +39 ms] 
               Another exception was thrown: A KeyDownEvent is dispatched, but the state shows that the physical key is already pressed. If this occurs in real application, please report this bug to Flutter. If this occurs in unit tests, please ensure that simulated events follow Flutter's event model as documented in `HardwareKeyboard`. This was the event: KeyDownEvent#ecd97(physicalKey: PhysicalKeyboardKey#70039(usbHidUsage: "0x00070039", debugName: "Caps Lock"), logicalKey: LogicalKeyboardKey#00104(keyId: "0x100000104", keyLabel: "Caps Lock", debugName: "Caps Lock"), character: null, timeStamp: 5:28:08.429000, synthesized)
    [   +1 ms] ** (triage:25881): WARNING **: 15:03:27.713: Unable to retrieve framework response: Message is not valid JSON
    [   +9 ms] ** (triage:25881): WARNING **: 15:03:27.723: Unable to retrieve framework response: Message is not valid JSON
    [   +2 ms] 
               Another exception was thrown: A KeyDownEvent is dispatched, but the state shows that the physical key is already pressed. If this occurs in real application, please report this bug to Flutter. If this occurs in unit tests, please ensure that simulated events follow Flutter's event model as documented in `HardwareKeyboard`. This was the event: KeyDownEvent#ecd97(physicalKey: PhysicalKeyboardKey#70039(usbHidUsage: "0x00070039", debugName: "Caps Lock"), logicalKey: LogicalKeyboardKey#00104(keyId: "0x100000104", keyLabel: "Caps Lock", debugName: "Caps Lock"), character: null, timeStamp: 5:28:08.429000, synthesized)
    [   +9 ms] ** (triage:25881): WARNING **: 15:03:27.734: Unable to retrieve framework response: Message is not valid JSON
    [   +1 ms] 
               Another exception was thrown: A KeyDownEvent is dispatched, but the state shows that the physical key is already pressed. If this occurs in real application, please report this bug to Flutter. If this occurs in unit tests, please ensure that simulated events follow Flutter's event model as documented in `HardwareKeyboard`. This was the event: KeyDownEvent#ecd97(physicalKey: PhysicalKeyboardKey#70039(usbHidUsage: "0x00070039", debugName: "Caps Lock"), logicalKey: LogicalKeyboardKey#00104(keyId: "0x100000104", keyLabel: "Caps Lock", debugName: "Caps Lock"), character: null, timeStamp: 5:28:08.429000, synthesized)
    [  +53 ms] 
               Another exception was thrown: A KeyDownEvent is dispatched, but the state shows that the physical key is already pressed. If this occurs in real application, please report this bug to Flutter. If this occurs in unit tests, please ensure that simulated events follow Flutter's event model as documented in `HardwareKeyboard`. This was the event: KeyDownEvent#ecd97(physicalKey: PhysicalKeyboardKey#70039(usbHidUsage: "0x00070039", debugName: "Caps Lock"), logicalKey: LogicalKeyboardKey#00104(keyId: "0x100000104", keyLabel: "Caps Lock", debugName: "Caps Lock"), character: null, timeStamp: 5:28:08.429000, synthesized)
    [   +1 ms] ** (triage:25881): WARNING **: 15:03:27.789: Unable to retrieve framework response: Message is not valid JSON
    [  +13 ms] ** (triage:25881): WARNING **: 15:03:27.804: Unable to retrieve framework response: Message is not valid JSON
    [   +3 ms] 
               Another exception was thrown: A KeyDownEvent is dispatched, but the state shows that the physical key is already pressed. If this occurs in real application, please report this bug to Flutter. If this occurs in unit tests, please ensure that simulated events follow Flutter's event model as documented in `HardwareKeyboard`. This was the event: KeyDownEvent#ecd97(physicalKey: PhysicalKeyboardKey#70039(usbHidUsage: "0x00070039", debugName: "Caps Lock"), logicalKey: LogicalKeyboardKey#00104(keyId: "0x100000104", keyLabel: "Caps Lock", debugName: "Caps Lock"), character: null, timeStamp: 5:28:08.429000, synthesized)
    [  +42 ms] 
               Another exception was thrown: A KeyDownEvent is dispatched, but the state shows that the physical key is already pressed. If this occurs in real application, please report this bug to Flutter. If this occurs in unit tests, please ensure that simulated events follow Flutter's event model as documented in `HardwareKeyboard`. This was the event: KeyDownEvent#ecd97(physicalKey: PhysicalKeyboardKey#70039(usbHidUsage: "0x00070039", debugName: "Caps Lock"), logicalKey: LogicalKeyboardKey#00104(keyId: "0x100000104", keyLabel: "Caps Lock", debugName: "Caps Lock"), character: null, timeStamp: 5:28:08.429000, synthesized)
    [   +2 ms] ** (triage:25881): WARNING **: 15:03:27.853: Unable to retrieve framework response: Message is not valid JSON
    [  +16 ms] 
               Another exception was thrown: A KeyDownEvent is dispatched, but the state shows that the physical key is already pressed. If this occurs in real application, please report this bug to Flutter. If this occurs in unit tests, please ensure that simulated events follow Flutter's event model as documented in `HardwareKeyboard`. This was the event: KeyDownEvent#ecd97(physicalKey: PhysicalKeyboardKey#70039(usbHidUsage: "0x00070039", debugName: "Caps Lock"), logicalKey: LogicalKeyboardKey#00104(keyId: "0x100000104", keyLabel: "Caps Lock", debugName: "Caps Lock"), character: null, timeStamp: 5:28:08.429000, synthesized)
    [        ] ** (triage:25881): WARNING **: 15:03:27.869: Unable to retrieve framework response: Message is not valid JSON
    [  +10 ms] 
               Another exception was thrown: A KeyDownEvent is dispatched, but the state shows that the physical key is already pressed. If this occurs in real application, please report this bug to Flutter. If this occurs in unit tests, please ensure that simulated events follow Flutter's event model as documented in `HardwareKeyboard`. This was the event: KeyDownEvent#ecd97(physicalKey: PhysicalKeyboardKey#70039(usbHidUsage: "0x00070039", debugName: "Caps Lock"), logicalKey: LogicalKeyboardKey#00104(keyId: "0x100000104", keyLabel: "Caps Lock", debugName: "Caps Lock"), character: null, timeStamp: 5:28:08.429000, synthesized)
    [        ] ** (triage:25881): WARNING **: 15:03:27.880: Unable to retrieve framework response: Message is not valid JSON
    [   +6 ms] 
               Another exception was thrown: A KeyDownEvent is dispatched, but the state shows that the physical key is already pressed. If this occurs in real application, please report this bug to Flutter. If this occurs in unit tests, please ensure that simulated events follow Flutter's event model as documented in `HardwareKeyboard`. This was the event: KeyDownEvent#ecd97(physicalKey: PhysicalKeyboardKey#70039(usbHidUsage: "0x00070039", debugName: "Caps Lock"), logicalKey: LogicalKeyboardKey#00104(keyId: "0x100000104", keyLabel: "Caps Lock", debugName: "Caps Lock"), character: null, timeStamp: 5:28:08.429000, synthesized)
    [        ] ** (triage:25881): WARNING **: 15:03:27.888: Unable to retrieve framework response: Message is not valid JSON
    [  +72 ms] ** (triage:25881): WARNING **: 15:03:27.959: Unable to retrieve framework response: Message is not valid JSON
    [   +1 ms] 
               Another exception was thrown: A KeyDownEvent is dispatched, but the state shows that the physical key is already pressed. If this occurs in real application, please report this bug to Flutter. If this occurs in unit tests, please ensure that simulated events follow Flutter's event model as documented in `HardwareKeyboard`. This was the event: KeyDownEvent#ecd97(physicalKey: PhysicalKeyboardKey#70039(usbHidUsage: "0x00070039", debugName: "Caps Lock"), logicalKey: LogicalKeyboardKey#00104(keyId: "0x100000104", keyLabel: "Caps Lock", debugName: "Caps Lock"), character: null, timeStamp: 5:28:08.429000, synthesized)
    [  +12 ms] ** (triage:25881): WARNING **: 15:03:27.974: Unable to retrieve framework response: Message is not valid JSON
    [   +1 ms] 
               Another exception was thrown: A KeyDownEvent is dispatched, but the state shows that the physical key is already pressed. If this occurs in real application, please report this bug to Flutter. If this occurs in unit tests, please ensure that simulated events follow Flutter's event model as documented in `HardwareKeyboard`. This was the event: KeyDownEvent#ecd97(physicalKey: PhysicalKeyboardKey#70039(usbHidUsage: "0x00070039", debugName: "Caps Lock"), logicalKey: LogicalKeyboardKey#00104(keyId: "0x100000104", keyLabel: "Caps Lock", debugName: "Caps Lock"), character: null, timeStamp: 5:28:08.429000, synthesized)
    [  +12 ms] 
               Another exception was thrown: A KeyDownEvent is dispatched, but the state shows that the physical key is already pressed. If this occurs in real application, please report this bug to Flutter. If this occurs in unit tests, please ensure that simulated events follow Flutter's event model as documented in `HardwareKeyboard`. This was the event: KeyDownEvent#ecd97(physicalKey: PhysicalKeyboardKey#70039(usbHidUsage: "0x00070039", debugName: "Caps Lock"), logicalKey: LogicalKeyboardKey#00104(keyId: "0x100000104", keyLabel: "Caps Lock", debugName: "Caps Lock"), character: null, timeStamp: 5:28:08.429000, synthesized)
    [        ] ** (triage:25881): WARNING **: 15:03:27.989: Unable to retrieve framework response: Message is not valid JSON
    [  +39 ms] ** (triage:25881): WARNING **: 15:03:28.029: Unable to retrieve framework response: Message is not valid JSON
    [   +2 ms] 
               Another exception was thrown: A KeyDownEvent is dispatched, but the state shows that the physical key is already pressed. If this occurs in real application, please report this bug to Flutter. If this occurs in unit tests, please ensure that simulated events follow Flutter's event model as documented in `HardwareKeyboard`. This was the event: KeyDownEvent#ecd97(physicalKey: PhysicalKeyboardKey#70039(usbHidUsage: "0x00070039", debugName: "Caps Lock"), logicalKey: LogicalKeyboardKey#00104(keyId: "0x100000104", keyLabel: "Caps Lock", debugName: "Caps Lock"), character: null, timeStamp: 5:28:08.429000, synthesized)
    [   +9 ms] 
               Another exception was thrown: A KeyDownEvent is dispatched, but the state shows that the physical key is already pressed. If this occurs in real application, please report this bug to Flutter. If this occurs in unit tests, please ensure that simulated events follow Flutter's event model as documented in `HardwareKeyboard`. This was the event: KeyDownEvent#ecd97(physicalKey: PhysicalKeyboardKey#70039(usbHidUsage: "0x00070039", debugName: "Caps Lock"), logicalKey: LogicalKeyboardKey#00104(keyId: "0x100000104", keyLabel: "Caps Lock", debugName: "Caps Lock"), character: null, timeStamp: 5:28:08.429000, synthesized)
    [        ] ** (triage:25881): WARNING **: 15:03:28.041: Unable to retrieve framework response: Message is not valid JSON
    [  +25 ms] 
               Another exception was thrown: A KeyDownEvent is dispatched, but the state shows that the physical key is already pressed. If this occurs in real application, please report this bug to Flutter. If this occurs in unit tests, please ensure that simulated events follow Flutter's event model as documented in `HardwareKeyboard`. This was the event: KeyDownEvent#ecd97(physicalKey: PhysicalKeyboardKey#70039(usbHidUsage: "0x00070039", debugName: "Caps Lock"), logicalKey: LogicalKeyboardKey#00104(keyId: "0x100000104", keyLabel: "Caps Lock", debugName: "Caps Lock"), character: null, timeStamp: 5:28:08.429000, synthesized)
    [        ] ** (triage:25881): WARNING **: 15:03:28.067: Unable to retrieve framework response: Message is not valid JSON
    [  +51 ms] ** (triage:25881): WARNING **: 15:03:28.119: Unable to retrieve framework response: Message is not valid JSON
    [   +1 ms] 
               Another exception was thrown: A KeyDownEvent is dispatched, but the state shows that the physical key is already pressed. If this occurs in real application, please report this bug to Flutter. If this occurs in unit tests, please ensure that simulated events follow Flutter's event model as documented in `HardwareKeyboard`. This was the event: KeyDownEvent#ecd97(physicalKey: PhysicalKeyboardKey#70039(usbHidUsage: "0x00070039", debugName: "Caps Lock"), logicalKey: LogicalKeyboardKey#00104(keyId: "0x100000104", keyLabel: "Caps Lock", debugName: "Caps Lock"), character: null, timeStamp: 5:28:08.429000, synthesized)
    [   +5 ms] ** (triage:25881): WARNING **: 15:03:28.125: Unable to retrieve framework response: Message is not valid JSON
    [   +1 ms] 
               Another exception was thrown: A KeyDownEvent is dispatched, but the state shows that the physical key is already pressed. If this occurs in real application, please report this bug to Flutter. If this occurs in unit tests, please ensure that simulated events follow Flutter's event model as documented in `HardwareKeyboard`. This was the event: KeyDownEvent#ecd97(physicalKey: PhysicalKeyboardKey#70039(usbHidUsage: "0x00070039", debugName: "Caps Lock"), logicalKey: LogicalKeyboardKey#00104(keyId: "0x100000104", keyLabel: "Caps Lock", debugName: "Caps Lock"), character: null, timeStamp: 5:28:08.429000, synthesized)
    [  +40 ms] 
               Another exception was thrown: A KeyDownEvent is dispatched, but the state shows that the physical key is already pressed. If this occurs in real application, please report this bug to Flutter. If this occurs in unit tests, please ensure that simulated events follow Flutter's event model as documented in `HardwareKeyboard`. This was the event: KeyDownEvent#ecd97(physicalKey: PhysicalKeyboardKey#70039(usbHidUsage: "0x00070039", debugName: "Caps Lock"), logicalKey: LogicalKeyboardKey#00104(keyId: "0x100000104", keyLabel: "Caps Lock", debugName: "Caps Lock"), character: null, timeStamp: 5:28:08.429000, synthesized)
    [        ] ** (triage:25881): WARNING **: 15:03:28.167: Unable to retrieve framework response: Message is not valid JSON
    [  +81 ms] ** (triage:25881): WARNING **: 15:03:28.250: Unable to retrieve framework response: Message is not valid JSON
    [   +1 ms] 
               Another exception was thrown: A KeyDownEvent is dispatched, but the state shows that the physical key is already pressed. If this occurs in real application, please report this bug to Flutter. If this occurs in unit tests, please ensure that simulated events follow Flutter's event model as documented in `HardwareKeyboard`. This was the event: KeyDownEvent#ecd97(physicalKey: PhysicalKeyboardKey#70039(usbHidUsage: "0x00070039", debugName: "Caps Lock"), logicalKey: LogicalKeyboardKey#00104(keyId: "0x100000104", keyLabel: "Caps Lock", debugName: "Caps Lock"), character: null, timeStamp: 5:28:08.429000, synthesized)
    [  +10 ms] ** (triage:25881): WARNING **: 15:03:28.262: Unable to retrieve framework response: Message is not valid JSON
    [        ] 
               Another exception was thrown: A KeyDownEvent is dispatched, but the state shows that the physical key is already pressed. If this occurs in real application, please report this bug to Flutter. If this occurs in unit tests, please ensure that simulated events follow Flutter's event model as documented in `HardwareKeyboard`. This was the event: KeyDownEvent#ecd97(physicalKey: PhysicalKeyboardKey#70039(usbHidUsage: "0x00070039", debugName: "Caps Lock"), logicalKey: LogicalKeyboardKey#00104(keyId: "0x100000104", keyLabel: "Caps Lock", debugName: "Caps Lock"), character: null, timeStamp: 5:28:08.429000, synthesized)
    [  +41 ms] ** (triage:25881): WARNING **: 15:03:28.304: Unable to retrieve framework response: Message is not valid JSON
    [   +1 ms] 
               Another exception was thrown: A KeyDownEvent is dispatched, but the state shows that the physical key is already pressed. If this occurs in real application, please report this bug to Flutter. If this occurs in unit tests, please ensure that simulated events follow Flutter's event model as documented in `HardwareKeyboard`. This was the event: KeyDownEvent#ecd97(physicalKey: PhysicalKeyboardKey#70039(usbHidUsage: "0x00070039", debugName: "Caps Lock"), logicalKey: LogicalKeyboardKey#00104(keyId: "0x100000104", keyLabel: "Caps Lock", debugName: "Caps Lock"), character: null, timeStamp: 5:28:08.429000, synthesized)
    [  +41 ms] ** (triage:25881): WARNING **: 15:03:28.346: Unable to retrieve framework response: Message is not valid JSON
    [   +1 ms] 
               Another exception was thrown: A KeyDownEvent is dispatched, but the state shows that the physical key is already pressed. If this occurs in real application, please report this bug to Flutter. If this occurs in unit tests, please ensure that simulated events follow Flutter's event model as documented in `HardwareKeyboard`. This was the event: KeyDownEvent#ecd97(physicalKey: PhysicalKeyboardKey#70039(usbHidUsage: "0x00070039", debugName: "Caps Lock"), logicalKey: LogicalKeyboardKey#00104(keyId: "0x100000104", keyLabel: "Caps Lock", debugName: "Caps Lock"), character: null, timeStamp: 5:28:08.429000, synthesized)
    [  +16 ms] ** (triage:25881): WARNING **: 15:03:28.366: Unable to retrieve framework response: Message is not valid JSON
    [   +1 ms] 
               Another exception was thrown: A KeyDownEvent is dispatched, but the state shows that the physical key is already pressed. If this occurs in real application, please report this bug to Flutter. If this occurs in unit tests, please ensure that simulated events follow Flutter's event model as documented in `HardwareKeyboard`. This was the event: KeyDownEvent#ecd97(physicalKey: PhysicalKeyboardKey#70039(usbHidUsage: "0x00070039", debugName: "Caps Lock"), logicalKey: LogicalKeyboardKey#00104(keyId: "0x100000104", keyLabel: "Caps Lock", debugName: "Caps Lock"), character: null, timeStamp: 5:28:08.429000, synthesized)
    [  +12 ms] 
               Another exception was thrown: A KeyDownEvent is dispatched, but the state shows that the physical key is already pressed. If this occurs in real application, please report this bug to Flutter. If this occurs in unit tests, please ensure that simulated events follow Flutter's event model as documented in `HardwareKeyboard`. This was the event: KeyDownEvent#ecd97(physicalKey: PhysicalKeyboardKey#70039(usbHidUsage: "0x00070039", debugName: "Caps Lock"), logicalKey: LogicalKeyboardKey#00104(keyId: "0x100000104", keyLabel: "Caps Lock", debugName: "Caps Lock"), character: null, timeStamp: 5:28:08.429000, synthesized)
    [        ] ** (triage:25881): WARNING **: 15:03:28.380: Unable to retrieve framework response: Message is not valid JSON
    [   +7 ms] ** (triage:25881): WARNING **: 15:03:28.387: Unable to retrieve framework response: Message is not valid JSON
    [   +1 ms] 
               Another exception was thrown: A KeyDownEvent is dispatched, but the state shows that the physical key is already pressed. If this occurs in real application, please report this bug to Flutter. If this occurs in unit tests, please ensure that simulated events follow Flutter's event model as documented in `HardwareKeyboard`. This was the event: KeyDownEvent#ecd97(physicalKey: PhysicalKeyboardKey#70039(usbHidUsage: "0x00070039", debugName: "Caps Lock"), logicalKey: LogicalKeyboardKey#00104(keyId: "0x100000104", keyLabel: "Caps Lock", debugName: "Caps Lock"), character: null, timeStamp: 5:28:08.429000, synthesized)
    [ +122 ms] 
               Another exception was thrown: A KeyDownEvent is dispatched, but the state shows that the physical key is already pressed. If this occurs in real application, please report this bug to Flutter. If this occurs in unit tests, please ensure that simulated events follow Flutter's event model as documented in `HardwareKeyboard`. This was the event: KeyDownEvent#ecd97(physicalKey: PhysicalKeyboardKey#70039(usbHidUsage: "0x00070039", debugName: "Caps Lock"), logicalKey: LogicalKeyboardKey#00104(keyId: "0x100000104", keyLabel: "Caps Lock", debugName: "Caps Lock"), character: null, timeStamp: 5:28:08.429000, synthesized)
    [   +5 ms] ** (triage:25881): WARNING **: 15:03:28.516: Unable to retrieve framework response: Message is not valid JSON
    [  +14 ms] ** (triage:25881): WARNING **: 15:03:28.529: Unable to retrieve framework response: Message is not valid JSON
    [   +2 ms] 
               Another exception was thrown: A KeyDownEvent is dispatched, but the state shows that the physical key is already pressed. If this occurs in real application, please report this bug to Flutter. If this occurs in unit tests, please ensure that simulated events follow Flutter's event model as documented in `HardwareKeyboard`. This was the event: KeyDownEvent#ecd97(physicalKey: PhysicalKeyboardKey#70039(usbHidUsage: "0x00070039", debugName: "Caps Lock"), logicalKey: LogicalKeyboardKey#00104(keyId: "0x100000104", keyLabel: "Caps Lock", debugName: "Caps Lock"), character: null, timeStamp: 5:28:08.429000, synthesized)
    [  +74 ms] ** (triage:25881): WARNING **: 15:03:28.606: Unable to retrieve framework response: Message is not valid JSON
    [   +1 ms] 
               Another exception was thrown: A KeyDownEvent is dispatched, but the state shows that the physical key is already pressed. If this occurs in real application, please report this bug to Flutter. If this occurs in unit tests, please ensure that simulated events follow Flutter's event model as documented in `HardwareKeyboard`. This was the event: KeyDownEvent#ecd97(physicalKey: PhysicalKeyboardKey#70039(usbHidUsage: "0x00070039", debugName: "Caps Lock"), logicalKey: LogicalKeyboardKey#00104(keyId: "0x100000104", keyLabel: "Caps Lock", debugName: "Caps Lock"), character: null, timeStamp: 5:28:08.429000, synthesized)
    [  +49 ms] 
               Another exception was thrown: A KeyDownEvent is dispatched, but the state shows that the physical key is already pressed. If this occurs in real application, please report this bug to Flutter. If this occurs in unit tests, please ensure that simulated events follow Flutter's event model as documented in `HardwareKeyboard`. This was the event: KeyDownEvent#ecd97(physicalKey: PhysicalKeyboardKey#70039(usbHidUsage: "0x00070039", debugName: "Caps Lock"), logicalKey: LogicalKeyboardKey#00104(keyId: "0x100000104", keyLabel: "Caps Lock", debugName: "Caps Lock"), character: null, timeStamp: 5:28:08.429000, synthesized)
    [        ] ** (triage:25881): WARNING **: 15:03:28.658: Unable to retrieve framework response: Message is not valid JSON
    stable master
    ❗️ ❗️

    Check flutter doctor -v outputs for each channel below

    flutter doctor -v
    [✓] Flutter (Channel stable, 2.5.0, on Pop!_OS 21.04 5.11.0-7633-generic, locale en_US.UTF-8)
        • Flutter version 2.5.0 at /home/taha/Code/flutter_stable
        • Upstream repository https://github.com/flutter/flutter.git
        • Framework revision 4cc385b4b8 (30 hours ago), 2021-09-07 23:01:49 -0700
        • Engine revision f0826da7ef
        • Dart version 2.14.0
    
    [✓] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
        • Android SDK at /home/taha/Code/android-sdk
        • Platform android-31, build-tools 30.0.3
        • ANDROID_HOME = /home/taha/Code/android-sdk
        • Java binary at: /home/taha/Code/android-studio/jre/bin/java
        • Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7249189)
        • All Android licenses accepted.
    
    [✓] Chrome - develop for the web
        • Chrome at google-chrome
    
    [✓] Linux toolchain - develop for Linux desktop
        • Ubuntu clang version 12.0.0-3ubuntu1~21.04.1
        • cmake version 3.18.4
        • ninja version 1.8.2
        • pkg-config version 0.29.2
    
    [✓] Android Studio (version 2020.3)
        • Android Studio at /home/taha/Code/android-studio
        • Flutter plugin version 60.1.2
        • Dart plugin version 203.8292
        • Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7249189)
    
    [✓] VS Code (version 1.60.0)
        • VS Code at /usr/share/code
        • Flutter extension version 3.26.0
    
    [✓] Connected device (2 available)
        • Linux (desktop) • linux  • linux-x64      • Pop!_OS 21.04 5.11.0-7633-generic
        • Chrome (web)    • chrome • web-javascript • Google Chrome 93.0.4577.63
    
    • No issues found
    [✓] Flutter (Channel master, 2.6.0-1.0.pre.219, on Pop!_OS 21.04 5.11.0-7633-generic, locale en_US.UTF-8)
        • Flutter version 2.6.0-1.0.pre.219 at /home/taha/Code/flutter_master
        • Upstream repository https://github.com/flutter/flutter.git
        • Framework revision 58944e6b88 (10 hours ago), 2021-09-08 19:37:34 -0700
        • Engine revision 6a3b04632b
        • Dart version 2.15.0 (build 2.15.0-82.0.dev)
    
    [✓] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
        • Android SDK at /home/taha/Code/android-sdk
        • Platform android-31, build-tools 30.0.3
        • ANDROID_HOME = /home/taha/Code/android-sdk
        • Java binary at: /home/taha/Code/android-studio/jre/bin/java
        • Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7249189)
        • All Android licenses accepted.
    
    [✓] Chrome - develop for the web
        • Chrome at google-chrome
    
    [✓] Linux toolchain - develop for Linux desktop
        • Ubuntu clang version 12.0.0-3ubuntu1~21.04.1
        • cmake version 3.18.4
        • ninja version 1.8.2
        • pkg-config version 0.29.2
    
    [✓] Android Studio (version 2020.3)
        • Android Studio at /home/taha/Code/android-studio
        • Flutter plugin version 60.1.2
        • Dart plugin version 203.8292
        • Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7249189)
    
    [✓] VS Code (version 1.60.0)
        • VS Code at /usr/share/code
        • Flutter extension version 3.26.0
    
    [✓] Connected device (2 available)
        • Linux (desktop) • linux  • linux-x64      • Pop!_OS 21.04 5.11.0-7633-generic
        • Chrome (web)    • chrome • web-javascript • Google Chrome 93.0.4577.63
    
    • No issues found

    ✅: No Issue ❗️: Issue reproduced

  12. changed the title [-]Unable to take Keyboard Input after Hot Restart Linux[/-] [+][Linux] Unable to take Keyboard Input after Hot Restart[/+] on Sep 9, 2021
  13. added and removed
    in triagePresently being triaged by the triage team
    on Sep 9, 2021
  14. 12 remaining items

  15. TahaTesser commented on Sep 17, 2021

    @TahaTesser
    Contributor

    The same issue is reproduced without hot restart but by changing keyboard and quickly typing on Linux desktop,#90194

  16. TahaTesser commented on Sep 17, 2021

    @TahaTesser
    Contributor

    @Mayank-9018
    I tried web several times, both hot restart or keyboard change is not causing the issue

    Can you please provide steps to reproduce and full logs for web?

  17. Mayank-9018 commented on Sep 18, 2021

    @Mayank-9018
    Author

    @TahaTesser
    I am currently unable to reproduce this issue on web, I don't rememeber it was the same issue as this, but I am on Stable branch and I do get this error on web:

    ════════ Exception caught by services library ══════════════════════════════════
    Unexpected null value.
    ════════════════════════════════════════════════════════════════════════════════
    Error: Assertion failed:
    ../…/services/hardware_keyboard.dart:787
    false
    "Should never encounter KeyData when transitMode is rawKeyData."
        at Object.throw_ [as throw] (http://localhost:36391/dart_sdk.js:5061:11)
        at Object.assertFailed (http://localhost:36391/dart_sdk.js:4986:15)
        at hardware_keyboard.KeyEventManager.new.handleKeyData (http://localhost:36391/packages/flutter/src/services/restoration.dart.lib.js:5334:28)
        at http://localhost:36391/dart_sdk.js:160131:47
        at Object.invoke (http://localhost:36391/dart_sdk.js:179656:7)
        at _engine.EnginePlatformDispatcher.__.invokeOnKeyData (http://localhost:36391/dart_sdk.js:160131:17)
        at _engine.KeyboardBinding.__.[_onKeyData] (http://localhost:36391/dart_sdk.js:158922:49)
        at http://localhost:36391/dart_sdk.js:159248:18
        at IdentityMap.new.removeWhere (http://localhost:36391/dart_sdk.js:22176:15)
        at http://localhost:36391/dart_sdk.js:159244:47
        at IdentityMap.from.forEach (http://localhost:36391/dart_sdk.js:26433:11)
        at _engine.KeyboardConverter.new.handleEvent (http://localhost:36391/dart_sdk.js:159242:53)
        at http://localhost:36391/dart_sdk.js:158928:76
        at loggedHandler (http://localhost:36391/dart_sdk.js:158906:43)
    

    I am able to take input, but I do get this error in console.
    Is another issue opened for this?

  18. Joseph0717 commented on Sep 18, 2021

    @Joseph0717
  19. yahu1031 commented on Sep 19, 2021

    @yahu1031

    Hi @TahaTesser, It also happens in windows 11 (win 10 insider dev build).

    [ERROR:flutter/lib/ui/ui_dart_state.cc(209)] Unhandled Exception: 'package:flutter/src/services/hardware_keyboard.dart': Failed assertion: line 787 pos 16: 'false': Should never encounter KeyData when transitMode is rawKeyData.
    #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/…/services/hardware_keyboard.dart:787
    #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/hooks.dart:104:31)
    

    Device info:

    Edition: Windows 11 Pro Insider Preview
    Version: Dev
    OS Build: 22458.1000
    Experience: Windows Feature Experience Pack 1000.22458.1000.0

    EDIT/UPDATE:
    It happens when I switch b/w app and vscode. sometimes when I use my keys Shift/Alt/Ctrl/etc. keys.

  20. self-assigned this
    on Sep 22, 2021
  21. braj065 commented on Sep 23, 2021

    @braj065

    I am also getting the error when running on flutter web. I am on 2.5.1 stable channel.

  22. dkwingsmt commented on Sep 28, 2021

    @dkwingsmt
    Contributor

    I can consistently reproduce this issue with the following steps: (on an app with only a text field)

    • Start the app
    • Alt-Tab to the terminal
    • Hot restart
    • Switch back to the app.

    There are two unexpected behaviors:

    1. The text field no longer displays texts. (This behavior will disappear after another hot restart.)
    2. The CLI reports the crash log. (This behavior persists after another hot restart.)

    This should be fixed by the following PRs:

    I'll inform this issue with any updates.

  23. dkwingsmt commented on Oct 7, 2021

    @dkwingsmt
    Contributor

    The changes have been rolled into the latest master. Let me know if similar issues continue to occur, with your flutter doctor -v and reproduction step.

  24. added
    r: fixedIssue is closed as already fixed in a newer version
    on Oct 7, 2021
  25. github-actions commented on Oct 21, 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.

  26. locked as resolved and limited conversation to collaborators on Oct 21, 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: desktopRunning on desktopa: text inputEntering text in a text field or keyboard related problemsfound 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-linuxBuilding on or for Linux 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