MixinNetwork / MixinNetwork/flutter-plugins

[desktop_webview_window] Create a window and close it immediately, but an error message will appear saying 'Warning: Failed to respond to a message. This is a memory leak. Lost connection to device.'

Open
#367 1 comment 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C
Stars
512
Forks
292
Avg merge
15h 8m
Merged PRs (30d)
7

Description

A clear and concise description of what the bug is.

Reproduce Steps

Steps to reproduce the behavior:

  1. await WebviewWindow.create() Create a webview window
  2. Close the window within less than 1 second (presumably before the window is successfully created, click the "x" button on the white screen window to close the window)
  3. The program crashes and reports error 'Warning: Failed to respond to a message. This is a memory leak.'
  4. Simultaneously pop up an error pop-up window
    image

Expected behavior

Closing the window immediately will not result in an error

Version (please complete the following information):

  • Flutter Version: 3.19.5
  • OS: Windows11
  • plugin: [desktop_webview_window]

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the crash with await WebviewWindow.create() on Windows 11 using Flutter 3.19.5, then close the white window before creation completes. Trace the desktop_webview_window window-creation and close lifecycle; done means immediate closure produces neither a crash nor the reported lost-connection warning.

Written by the indexing model from the issue text.

Assessment

Tech stack
flutter
Domain
desktop
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.