Repository navigation
Fix Windows playback hang in the WebView window hook - #205
Closed
Bl4z3-k1n91 wants to merge 1 commit into
Closed
Bl4z3-k1n91 wants to merge 1 commit into
Bl4z3-k1n91 wants to merge 1 commit into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The Windows hook that hides the background WebView now checks window ownership before reading the title. The
desktop_webview_windowplugin creates those top-level windows on Flutter's platform thread, and the existing caption checks still apply on that thread.Playback hang on v2.6.2
During playback on Windows 11, two native stack captures showed the platform thread blocked in
BotGuardWinEventProc→IsBotGuardWindow→GetWindowTextW→SendMessageW. The target was anOleMainThreadWndClasswindow owned by libmpv'smpv/wasapi eventthread. That thread was waiting inWaitForSingleObjectEx, so it wasn't processing the synchronousWM_GETTEXTrequest.Microsoft documents this behavior for a same-process window queried by GetWindowTextW.
Potentially related to #199.
Validation
WM_GETTEXT. The patched lookup returned in under 1 ms and delivered zero messages.git diff --checkpassed.