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

[desktop_webview_window] [Flutter 3.22.0] App crashes on windows when webview is closed #363

Open
anirudhJG opened this issue Sep 12, 2024 · 3 comments

Comments

@anirudhJG
Copy link

App crashes when webview is closed from method channel API

Reproduce Steps

Steps to reproduce the behavior:
1.Update to Flutter version 3.22.0
2. Close from the close API method channel
3. Notice App crashing
4. Message is Exception thrown at 0x00007FFF7DF25CB4 (flutter_windows.dll) in App.exe: 0xC0000005: Access violation reading location 0x00000000000002F0.

Expected behavior

App should not crash

Version (please complete the following information):

  • Flutter Version: 3.22.0
  • OS: Windows
  • plugin: desktop_webview_window
@isaacy13
Copy link

isaacy13 commented Oct 21, 2024

I'm getting same issue, it's reproducible ~5% of the time close() is called

It's consistently pointing to flutter_windows, while another thread is consistently pointing to destructor of either desktop_webview_window or desktop_multi_window

Admittedly I got a weird setup going on (intermixing both plugins), but seems like others are also getting this issue

  • e.g.: seems both desktop_webview_window and desktop_multi_window plugins might be affected

desktop_webview_window example:
image
image
desktop-webview-window-symbolicated.txt

desktop_multi_window example:
image
image
desktop-multi-window-symbolicated.txt

Flutter Version: 3.22.3, Dart 3.4.4
OS: Windows
plugins: desktop_webview_window, desktop_multi_window

@isaacy13
Copy link

isaacy13 commented Oct 21, 2024

Updated Flutter SDK to stable channel (Flutter 3.24.3, Dart 3.5.3 at time of writing)

Could be placebo, but it feels more stable (still replicated crash once, but A LOT harder to reproduce now)

Seems like flutter_windows.dll is root cause (Flutter SDK issue & not plugin issue), I'd suggest any folks running into this issue to try upgrading their Flutter SDK

EDIT: seems like there's a lead here. New Flutter engine code might be breaking change for desktop_webview_window
when chance, I will try either downgrading Flutter < 3.22 or testing out playground patch

flutter/flutter#155685 (comment)
flutter/flutter#155685 (comment)

@isaacy13
Copy link

isaacy13 commented Oct 23, 2024

Has been reported by another individual to Flutter before
flutter/flutter#152299
flutter/flutter#155685

Other threads
#352

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

No branches or pull requests

2 participants