New issue
Advanced search Search tips

Issue 839897 link

Starred by 3 users

Issue metadata

Status: Untriaged
Owner: ----
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Windows
Pri: 2
Type: Bug


Show other hotlists

Hotlists containing this issue:
Hotlist-1


Sign in to add a comment

Priority inversion on shutdown with background tabs.

Project Member Reported by gab@chromium.org, May 4 2018

Issue description

Chrome Version: M68-
OS: Win10 / All that support process priority toggling.

What steps will reproduce the problem?
(1) Have many background tabs (notice in process explorer they're running at background OS priority)
(2) ctrl+shift+Q to close Chrome

What is the expected result?
Background processes are foregrounded before being asked to shutdown

What happens instead?
The browser process pings beforeunload handlers and waits for each renderer. Some of those may take "forever" to unwind if the OS has other things to do.
 

Comment 1 by gab@chromium.org, May 4 2018

Cc: fdoray@chromium.org chrisha@chromium.org
Components: Internals>Core
Labels: Hotlist-GoodFirstBug
Summary: Priority inversion on shutdown with background tabs. (was: Priority inversion on shutdown)
To repro you can run brucedawson's cpuhog tool attached before hitting ctrl+shift+Q. I just tried and it took >30 seconds to shutdown Chrome on my Z840.

(note if you try to repro multiple times in a row : you'll have to manually cycle through your tabs after session restore to trigger shown/hidden or they won't actually be backgrounded because of  issue 560446 )
cpuhog.zip
3.7 KB Download

Comment 2 by gab@chromium.org, May 4 2018

Labels: -Pri-3 Pri-2
Here's the matching x64 Windows binary if you'd rather not manually compile the SLN.
cpuhog.exe
58.5 KB Download

Sign in to add a comment