Repository navigation
The window comes back when its web engine crashes - #362
Merged
elripalda merged 3 commits intoNov 20, 2026
Merged
Conversation
An overlay hooking into WebView2 (RivaTuner Statistics Server) can crash its main process, which left the window one flat colour until the launcher was quit. A page that dies is loaded again; an engine that dies gets the main window made again while the launcher keeps running. At most one recovery every two minutes and three per run, then a message names the likely cause and the tray (or starting the launcher again) brings the window back.
Its web engine dying while a game ran brought the window back minimized, so it wouldn't cover the game, but it then stayed minimized after the game, where before it had been open.
ach_test_toast ran on the main thread, and its first toast makes the toast window there, which deadlocks WebView2 on Windows. As an async command it runs off the main thread, and toast() already hands the window work to the main thread, as real achievement toasts do.
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.
Sometimes, a few seconds after the launcher starts (often right after an update, while the player clicks a game), the whole window turns one flat colour and stays that way until the launcher is quit from the tray. The colour is the window's background (
#0B1220): the WebView2 engine that draws the page has died, and nothing makes it again.On the PC where this kept happening, all four WebView2 crash dumps (
%LOCALAPPDATA%\com.recomplauncher.app\EBWebView\Crashpad\reports) are the same access violation insideRTSSHooks64.dll: RivaTuner Statistics Server (it comes with MSI Afterburner) hookingdxgi.dllin WebView2's main process. When that process dies, every WebView2 process of the launcher goes with it. Other overlays that hook into processes can do the same.What changes
webview_crash.rs. Each window's WebView2 is watched (add_ProcessFailed) on Windows.remake_maininlib.rs). The launcher process keeps running, so downloads, a game being played and the tray go on; only the page starts over. A window that was hidden in the tray stays hidden. If a game is running it comes back minimized, so it never covers the game, and opens again when the game ends. Big Picture comes back in Big Picture. Place and Text Size are restored as at start.show_mainmakes the window again when it's gone for this reason). While the main window is gone for this reason, aRunEvent::ExitRequestedwithout a code doesn't close the launcher.launcher-trail.logwith the reason and exit code, and RivaTuner when it's running, so problem reports show it.ach_test_toast) is now an async command. As a sync command it ran on the main thread, and its first toast made the toast window there, which deadlocks WebView2 on Windows (the launcher froze).toast()already hands the window work to the main thread, as real achievement toasts do.Tests
webview_crash.rs: the first crash is recovered; one soon after a recovery gives up; one long after is recovered; three recoveries are the most in a run.cargo test898 passed, 1 ignored (on the first commit; the later two weren't rerun there).cargo test833 passed, 1 ignored. One earlier run failedinputs::tests::the_build_the_step_leaves_has_to_be_there, which passes alone and on the rerun (this PR doesn't touchinputs.rs).Patch notes (Beta 67)
For
docs/PATCH-NOTES-0.90-beta-67.md, under Everything else:For the website (SDK guide): none.
Not for the player notes (no developer section yet): the test toast in the achievement dev tools no longer freezes the launcher on Windows.