Repository navigation
fix(desktop): prevent renderer crash on windows during app exit (#2908) - #3352
Closed
VisheshDDev wants to merge 1 commit into
Closed
VisheshDDev wants to merge 1 commit into
VisheshDDev wants to merge 1 commit into
Conversation
Contributor
|
The latest updates on your projects. Learn more about Vercel for GitHub.
1 Skipped Deployment
|
Author
|
@benjaminr-bi Submitted the fix for #2908! Prevents the Windows renderer access violation on app exit by guarding destroyed webContents and terminating lingering terminal processes during shutdown. |
Contributor
|
@VisheshDDev is attempting to deploy a commit to the Different AI Team on Vercel. A member of the Team first needs to authorize it. |
Contributor
Contributor screen: passedCommit No hidden characters, dependency, database or obfuscation concerns. Nothing else runs yet. A maintainer reviews the changes then comments |
Member
|
closed due to age, please reopen and tag me if still valid |
This branch was successfully deployed
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
Fixes #2908
On Windows, closing or quitting the desktop app could trigger a native access violation crash when
showShutdownScreen()attempted to interact with a destroyed renderer window or when active pty terminal sessions emitted IPC messages into destroyed web contents.Changes
win.webContents?.isDestroyed()guard insideshowShutdownScreen().disposeRuntimeBeforeQuit().Testing
pnpm --filter @openwork/desktop typecheck:electron.