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
fix: stale renderer process on quit #32888
Conversation
@dsanders11 this would probably mean you can revert the upstream commit you made 😆 . But first, please confirm that this change works :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@deermichel, I've tested this on the machine where I see reproductions, and there's good news and bad news. Good news, your gist in the issue readily reproduces when using v19 nightlies, and I can confirm that the change in this PR stops it from reproducing with your gist. Bad news, I still see the issue reproduce just by running and stopping Fiddle manually with the default fiddle. I can't seem to replicate it with So I think this PR is valid and a step in the right direction, but I don't think it fully solves the issue, unfortunately. |
Ok, that's a bummer - but yeah then it's most likely related to the "arbitrary killing" of the operating system. Nonetheless, once this lands I at least want to check if that solves the user-facing issue we have in Skype (and I'm pretty optimistic it does). |
I've played with it further, and seems the only spot where it still reproduces is with 'Stop' in Fiddle. Oddly it doesn't reproduce with an 'End Process' from Task Manager. 🤔 While that's annoying since you can trip it while running Fiddle, it's not a production concern. LGTM |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
Failing tests are unrelated, merging. |
Release Notes Persisted
|
I have automatically backported this PR to "15-x-y", please check out #32967 |
I have automatically backported this PR to "14-x-y", please check out #32968 |
I have automatically backported this PR to "16-x-y", please check out #32969 |
I have automatically backported this PR to "17-x-y", please check out #32970 |
I have automatically backported this PR to "18-x-y", please check out #32971 |
Just discovered this. Fantastic work everyone! |
Description of Change
Closes #32884.
In the mentioned Chromium roll I observed the following:
patches/chromium/content_browser_main_loop.patch
which replacedQuitClosure()
withQuitWhenIdleClosure()
got removedshell/browser/electron_browser_main_parts.cc
, but now withQuitClosure()
If I replace
QuitClosure()
withQuitWhenIdleClosure()
, all processes terminate properly as it was the case before the Chromium roll. Since this is Electron code, it would explain why Chromium doesn't suffer from the same issue.Because I lack context of what exactly this code does, please double-check that this change is fine :). But apparently, regressions were anticipated according to this commit message. cc @MarshallOfSound @ckerr
cc @miniak @deepak1556 @zarubond @dsanders11
Checklist
npm test
passesRelease Notes
Notes: Fixed stale renderer process when application is quit while renderer is busy.