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 v0.2.3] Webview crashes if window is manipulated before fully initializing #366

Open
isaacy13 opened this issue Sep 19, 2024 · 2 comments

Comments

@isaacy13
Copy link

isaacy13 commented Sep 19, 2024

When the webview window is created, if you press minimize too early the entire application crashes.

Reproduce Steps

Steps to reproduce the behavior:

  1. Open Flutter app
  2. Call WebviewWindow.create
  3. As soon as window opens, press minimize
  4. App crashes

Expected behavior

The window should minimize without crashing

Version (please complete the following information):

  • Flutter 3.22.3, Dart 3.4.4
  • Windows 11 Pro | 23H2 | 22631.3880
  • desktop_webview_window v0.2.3

EXCEPTION_ACCESS_VIOLATION_READ / 0x0

  • webview_window::WebView::UpdateBounds (web_view.cc:202)

note that adding null check resolves issue and everything behaves as expected, haven't delved deep enough to see if has any repercussions

image image

Here's the parameters the webview is initialized with
image

@gk-1213
Copy link

gk-1213 commented Sep 20, 2024

If the window is closed before complete initialization, Webview will also crash

@gk-1213
Copy link

gk-1213 commented Sep 20, 2024

如果在完成初始化之前关闭窗口,Webview 也会崩溃

image

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