flutter-plugins icon indicating copy to clipboard operation
flutter-plugins copied to clipboard

[desktop_multi_window] The app is crashing while opening new window

Open lukasz-lukasz-lukasz opened this issue 10 months ago • 3 comments

The app crashes while opening a new window. It isn't frequent but makes the app unstable. It can be because of the version of Flutter.

Reproduce Steps

Steps to reproduce the behavior:

  1. Open the example app
  2. Click on the 'Create a new World!' button to create a new window
  3. Repeat step 2) until the app crashes, in meantime you can close windows to avoid having too many opened windows
  4. Sometimes it is enough to open 5-10 windows to get crash but sometimes you can open 100 windows without a crash

Expected behavior

The app shouldn't crash while opening a new window.

31_08_2023_19_23_50 -1693502630
  • Flutter Version: [Channel stable, 3.13.0]
  • OS: [Windows [Version 10.0.19045.3324]
  • plugin: [desktop_multi_window: 0.2.0]

lukasz-lukasz-lukasz avatar Aug 31 '23 17:08 lukasz-lukasz-lukasz

same problem

Flutter Version: [Channel stable, 3.13.1] OS: [Windows 10 19044.2728]

weedsboy avatar Sep 15 '23 06:09 weedsboy

Same problem with desktop_webview_window 0.2.3 :disappointed:

Flutter version: 3.13.6 (Channel stable) OS: Windows 10 (21H2, Build 19044.2965) WebView2 version: 117.0.2045.43

fischermario avatar Oct 01 '23 13:10 fischermario

I'm not sure if the bug if fixed in the main branch of flutter.

Because the implementation of AngleSurfaceManager::SetVSyncEnabled() is totally different.

https://github.com/fufesou/flutter-engine/releases/tag/bugfix-crash-windows-angle-context-frameBuffer

fufesou avatar Nov 06 '23 16:11 fufesou