-
Notifications
You must be signed in to change notification settings - Fork 29.5k
Closed
flutter/engine
#28877Labels
P2Important issues not at the top of the work listImportant issues not at the top of the work lista: desktopRunning on desktopRunning on desktopa: text inputEntering text in a text field or keyboard related problemsEntering text in a text field or keyboard related problemsfound in release: 2.5Found to occur in 2.5Found to occur in 2.5found in release: 2.6Found to occur in 2.6Found to occur in 2.6frameworkflutter/packages/flutter repository. See also f: labels.flutter/packages/flutter repository. See also f: labels.has reproducible stepsThe issue has been confirmed reproducible and is ready to work onThe issue has been confirmed reproducible and is ready to work onplatform-linuxBuilding on or for Linux specificallyBuilding on or for Linux specificallyr: fixedIssue is closed as already fixed in a newer versionIssue is closed as already fixed in a newer version
Description
Steps to Reproduce
- 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,
),
));
}
}- 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!
braj065
Metadata
Metadata
Assignees
Labels
P2Important issues not at the top of the work listImportant issues not at the top of the work lista: desktopRunning on desktopRunning on desktopa: text inputEntering text in a text field or keyboard related problemsEntering text in a text field or keyboard related problemsfound in release: 2.5Found to occur in 2.5Found to occur in 2.5found in release: 2.6Found to occur in 2.6Found to occur in 2.6frameworkflutter/packages/flutter repository. See also f: labels.flutter/packages/flutter repository. See also f: labels.has reproducible stepsThe issue has been confirmed reproducible and is ready to work onThe issue has been confirmed reproducible and is ready to work onplatform-linuxBuilding on or for Linux specificallyBuilding on or for Linux specificallyr: fixedIssue is closed as already fixed in a newer versionIssue is closed as already fixed in a newer version