Closed Bug 734171 Opened 14 years ago Closed 2 months ago

Switching to Private browsing hangs my browser for minutes

Categories

(Firefox :: Private Browsing, defect)

x86
macOS
defect

Tracking

()

RESOLVED WONTFIX

People

(Reporter: Cww, Unassigned)

Details

This may end up related to bug 725110. I'm running Nightly with about 30 tabs open, including: 2 gmail, google voice, igoogle, zimbra, espn, reddit, etherpad. Per memchaser, I have about 1000 MB resident, GC times 900-1100ms and CC times ~50 ms. I switch to private browsing and Firefox goes into a serious hang. There was a series of 25+ second GC times, and 18+ second CC times and the beachballing didn't stop for about 4 minutes. On the flip side, after all that, both GC and CC times were low (<200, <20 respectively) and Resident memory went down to ~300 MB. More info: Switching back from private browsing, resident memory usage is 750MB, GC times ~ 1200ms and CC times ~ 30ms Happened twice so far. about:telemetry and MemChaser are the only two enabled extensions.
I no nothing about private browsing. Do we unload or hide the existing tabs in that case? If you install about:cc (bug 726346) , does that reveal leaked documents?
Yes, private browsing closes all tabs.
Ok, installed about:cc nothing leaked normally. Immediately after switching to private browsing I tried running about:cc as soon as possible (hard because Firefox was hanging). I got: 7171 objects 1957 roots 0 garbage 18647 edges [...] 0x16e06f000 [rc=1] nsDocument normal (XUL) about:addons Roots: 20 0x167c6c620 [rc=3] root nsGenericElement (XUL) vbox class='content-inner-container' about:addons 0x168464470 [rc=3] root nsGenericElement (XUL) vbox class='content-inner-container' about:addons 0x16b986a10 [rc=3] root nsGenericElement (XUL) vbox class='content-inner-container' about:addons 0x160c7b1a0 [rc=3] root nsGenericElement (XUL) vbox class='content-inner-container' about:addons 0x16b9d2b80 [rc=3] root nsGenericElement (XUL) vbox class='content-inner-container' about:addons 0x157578040 [rc=3] root nsGenericElement (XUL) vbox class='content-inner-container' about:addons 0x168481670 [rc=2] root nsGenericElement (XUL) vbox class='icon-container' about:addons 0x160dcb280 [rc=2] root nsGenericElement (XUL) vbox class='icon-container' about:addons 0x1806e41f0 [rc=2] root nsGenericElement (XUL) vbox class='icon-container' about:addons 0x16abe3430 [rc=2] root nsGenericElement (XUL) vbox class='icon-container' about:addons 0x169380c10 [rc=2] root nsGenericElement (XUL) vbox class='icon-container' about:addons 0x1284b0aa0 [rc=2] root nsGenericElement (XUL) vbox class='icon-container' about:addons 0x168464350 [rc=2] root nsGenericElement (XUL) vbox class='icon-container' about:addons 0x157577f20 [rc=2] root nsGenericElement (XUL) vbox class='icon-container' about:addons 0x169e95160 [rc=2] root nsGenericElement (XUL) vbox class='icon-container' about:addons 0x16b9868f0 [rc=2] root nsGenericElement (XUL) vbox class='icon-container' about:addons 0x167c6c500 [rc=2] root nsGenericElement (XUL) vbox class='icon-container' about:addons 0x160c7b080 [rc=2] root nsGenericElement (XUL) vbox class='icon-container' about:addons 0x16b9d2a60 [rc=2] root nsGenericElement (XUL) vbox class='icon-container' about:addons 0x1828da740 [rc=3] root nsGenericElement (XUL) hbox about:addons But after a while, it clears up: 3373 objects 1088 roots 45 garbage 5037 edges [...] No possibly-leaked nsDocument objects in the log
Severity: normal → S3

Closing this out: the operation being reported here -- flipping the whole browser into private browsing mode, which tore down every open tab and swapped the session -- no longer exists. Global private browsing was replaced by per-window private browsing (bug 463027) in Firefox 20, so there is no longer a mode switch that can trigger the multi-minute GC/CC pause described in comment 0.

The underlying memory/cycle-collector behaviour has also been rewritten several times over since 2012 (incremental and generational GC, incremental CC, and out-of-process content), so the about:cc dump in comment 3 is not actionable against current code either.

Resolving WONTFIX rather than WORKSFORME because the code path is gone, not merely unreproducible. If a modern build still hangs when opening or closing private windows with many tabs open, please file a new bug with a fresh profiler capture (https://profiler.firefox.com/).

Status: NEW → RESOLVED
Closed: 2 months ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.