Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

flutter-desktop-embedding have a blank window after run the built program on linux #604

Closed
biij5698 opened this issue Nov 9, 2019 · 14 comments

Comments

@biij5698
Copy link

biij5698 commented Nov 9, 2019

on linux 64 bit system,after i built a flutter-desktop-embedding program,when i run it,a blank window appeared quickly

@stuartmorgan
Copy link
Collaborator

A blank window is often the result of an exception. Please provide the console log from running (in debug mode).

Also, can you reproduce this with the example here, or only with your own application?

@biij5698
Copy link
Author

The program's postition is :~/pro/flutter-desktop-embedding/example
Then i run the command:flutter run --debug
Then a blank widnow appeared about two seconds and then the normal window appeared.
Here can not upload the pictures of the blank window.
The follow is the running log:
Launching lib/main.dart on Linux in debug mode...
Building Linux application...
flutter: ══╡ EXCEPTION CAUGHT BY SERVICES LIBRARY ╞══════════════════════════════════════════════════════════
flutter: The following assertion was thrown during a platform message callback:
flutter: 'package:flutter/src/widgets/shortcuts.dart': Failed assertion: line 76 pos 16: 'keys.isNotEmpty':
flutter: is not true.
flutter:
flutter: Either the assertion indicates an error in the framework itself, or we should provide substantially
flutter: more information in this error message to help you determine and fix the underlying cause.
flutter: In either case, please report this assertion by filing a bug on GitHub:
flutter: https://github.com/flutter/flutter/issues/new?template=BUG.md
flutter:
flutter: When the exception was thrown, this was the stack:
flutter: #2 new KeySet.fromSet (package:flutter/src/widgets/shortcuts.dart:76:16)
flutter: #3 new LogicalKeySet.fromSet (package:flutter/src/widgets/shortcuts.dart:138:63)
flutter: #4 ShortcutManager.handleKeypress (package:flutter/src/widgets/shortcuts.dart:192:63)
flutter: #5 _ShortcutsState._handleOnKey (package:flutter/src/widgets/shortcuts.dart:342:20)
flutter: #6 FocusManager._handleRawKeyEvent (package:flutter/src/widgets/focus_manager.dart:1314:38)
flutter: #7 RawKeyboard._handleKeyEvent (package:flutter/src/services/raw_keyboard.dart:528:17)
flutter:
flutter: #8 BasicMessageChannel.setMessageHandler. (package:flutter/src/services/platform_channel.dart:74:49)
flutter:
flutter: #9 _DefaultBinaryMessenger.handlePlatformMessage (package:flutter/src/services/binding.dart:200:33)
flutter:
flutter: #10 _invoke3. (dart:ui/hooks.dart:303:15)
flutter: #14 _invoke3 (dart:ui/hooks.dart:302:10)
flutter: #15 _dispatchPlatformMessage (dart:ui/hooks.dart:162:5)
flutter: (elided 5 frames from class _AssertionError and package dart:async)
flutter: ════════════════════════════════════════════════════════════════════════════════════════════════════
Syncing files to device Linux...
Lost connection to device.
Syncing files to device Linux...

@stuartmorgan
Copy link
Collaborator

What key are you pressing to trigger this?

@biij5698
Copy link
Author

biij5698 commented Nov 10, 2019

The same problem is appeared on window 10 system,but the blank window appeared less than one second.

@biij5698
Copy link
Author

I did not pressed any key and then i clicked the close button of the appeared window.

@biij5698
Copy link
Author

biij5698 commented Nov 10, 2019

The Linux system is Deepin 64 bit system.

@biij5698
Copy link
Author

biij5698 commented Nov 10, 2019

This seems to be caused by insufficient performance.
But it performs very well on an Apple notebook.

@biij5698
Copy link
Author

The Linux system's computer is used Mechanical hard disk

@stuartmorgan
Copy link
Collaborator

The same problem is appeared on window 10 system

With the exact same stack trace?

I did not pressed any key

Odd, since the stack is showing that the key handler is being invoked.

This seems to be caused by insufficient performance.

I'm not sure how you are coming to that conclusion; there is no reason for whether or not a set contains elements in a key event handler to be performance-sensitive. If you have clear evidence that this is related to performance, please provide details.

@stuartmorgan
Copy link
Collaborator

stuartmorgan commented Nov 10, 2019

Also, please provide your flutter doctor output so that we have exact version information.

In general, please always include that when filing a bug. The template requests it because it's almost always important to know the version where a bug happens.

(I'm not able to reproduce this on Linux at current head: e7073f9a1)

@stuartmorgan
Copy link
Collaborator

The program's postition is :~/pro/flutter-desktop-embedding/example

To be clear: are you saying you are running the FDE example without modification? Or do you have your own code added to it?

@thavlik
Copy link

thavlik commented Nov 18, 2019

I get flutter: 'package:flutter/src/widgets/shortcuts.dart': Failed assertion: line 76 pos 16: 'keys.isNotEmpty' on macOS 10.15.1 Catalina (latest) with no apparent cause or consequence. It just shows up completely randomly in the console. I do have a keyboard listener, so I am guessing it has to do with that.

@stuartmorgan
Copy link
Collaborator

Please file that exception in the Flutter issue tracker; if you're seeing it in an otherwise-working app it doesn't sounds like that's actually the cause of the blank screen reported here, but it would be good to investigate that on the framework side.

@stuartmorgan
Copy link
Collaborator

Closing due to lack of response. @biij5698 if you can supply the information requested above, I can re-open.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants