Open
Description
I have been having irregular crashes on Windows release builds. Something like 1 out of 5 release build will randomly have this issue while the other 4 work perfectly fine even though nothing has changed at all. I was finally able to catch the bug in the logs:
flutter: The following assertion was thrown during a platform message callback:
flutter: Attempted to send a key down event when no keys are in keysPressed. This state can occur if the key
flutter: event being sent doesn't properly set its modifier flags. This was the event:
flutter: RawKeyDownEvent#18da2(logicalKey: LogicalKeyboardKey#0006d(keyId: "0x0000006d", keyLabel: "m",
flutter: debugName: "Key M"), physicalKey: PhysicalKeyboardKey#700e1(usbHidUsage: "0x000700e1", debugName:
flutter: "Shift Left")) and its data: RawKeyEventDataLinux(keyLabel: m, keyCode: 77, scanCode: 50,
flutter: unicodeScalarValues: 109, modifiers: 0, modifiers down: {})
flutter: 'package:flutter/src/services/raw_keyboard.dart':
flutter: Failed assertion: line 617 pos 12: '<optimized out>'
I noticed that it usually happens when typing something like @gmail
which requires shift
press. Potentially related? #502
So far we found this issue on a Surface laptop and Macbook running Windows via Bootcamp. This issue doesn't happen at all on MacOS.