Closed Bug 1310264 Opened 10 years ago Closed 9 years ago

Firefox 50b7 freezes for up to 2 minutes when OS wakes up from sleep

Categories

(Firefox :: General, defect)

50 Branch
x86_64
macOS
defect
Not set
major

Tracking

()

RESOLVED INVALID
Tracking Status
firefox50 --- affected

People

(Reporter: cbeard, Unassigned)

References

Details

(Keywords: perf)

Attachments

(1 file)

Attached image activity-monitor.png —
For the last week every morning when I wake up my Mac and try to interact with Firefox it is completely unresponsiveness with a "beachball" cursor. It takes up to 2 minutes to recover! This is on the beta channel with e10s "1/1 (Enabled by default)". Looking at Activity Monitor, it looks like the CPU is pegged at 100% for the main process when this happens. I'm not sure what's normal, but the disk I/O feels like it could be high at 4.6GB for the main process -- this drops to 75MB once it recovers. This morning when it happened I had 7 open tabs including GMail (x2), Techmeme, Twitter, Google Calendar (x2) and a New York Times article. When this happened before I assumed it was the long-standing issues with Google Docs as I often have multiple Google Docs open at any one time. This was not the case today. In this profile I have two add-ons enabled, both of which are flagged as e10s compatible, including: Dashlane and Adblock Plus. I'm attaching screenshots from Activity Monitor as well as the output from about:support (below) --- about:support { "application": { "name": "Firefox", "osVersion": "Darwin 16.0.0", "version": "50.0b7", "buildID": "20161013141419", "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:50.0) Gecko/20100101 Firefox/50.0", "safeMode": false, "updateChannel": "beta", "supportURL": "https://support.mozilla.org/1/firefox/50.0/Darwin/en-US/", "numTotalWindows": 1, "numRemoteWindows": 1, "remoteAutoStart": true, "autoStartStatus": 1 }, "modifiedPreferences": { "accessibility.typeaheadfind.flashBar": 0, "browser.cache.disk.hashstats_reported": 1, "browser.cache.frecency_experiment": 2, "browser.cache.disk.smart_size.first_run": false, "browser.cache.disk.capacity": 358400, "browser.cache.disk.filesystem_reported": 1, "browser.download.importedFromSqlite": true, "browser.fixup.domainwhitelist.news": true, "browser.places.smartBookmarksVersion": 8, "browser.sessionstore.upgradeBackup.latestBuildID": "20161013141419", "browser.startup.homepage_override.buildID": "20161013141419", "browser.startup.homepage_override.mstone": "50.0", "browser.tabs.remote.autostart.2": true, "browser.urlbar.suggest.searches": true, "browser.urlbar.userMadeSearchSuggestionsChoice": true, "dom.apps.lastUpdate.buildID": "20160907153016", "dom.mozApps.maxLocalId": 1001, "dom.apps.reset-permissions": true, "dom.apps.lastUpdate.mstone": "49.0", "dom.mozApps.used": true, "extensions.lastAppVersion": "50.0", "gfx.crash-guard.status.glcontext": 2, "gfx.crash-guard.glcontext.deviceID": "0x6810", "gfx.crash-guard.glcontext.appVersion": "45.0.2", "gfx.blacklist.layers.direct3d9.failureid": "FEATURE_FAILURE_DL_BLACKLIST_g150", "gfx.blacklist.direct2d.failureid": "FEATURE_FAILURE_DL_BLACKLIST_g144", "media.gmp-manager.buildID": "20161013141419", "media.gmp.storage.version.observed": 1, "media.webrtc.debug.aec_log_dir": "/Users/cbeard/Library/Caches/TemporaryItems", "media.webrtc.debug.log_file": "/Users/cbeard/Library/Caches/TemporaryItems/WebRTC.log", "media.benchmark.vp9.versioncheck": 1, "media.youtube-ua.override.to": "43", "media.gmp-gmpopenh264.lastUpdate": 1471282468, "media.gmp-widevinecdm.lastUpdate": 1471395669, "media.gmp-gmpopenh264.version": "1.6", "media.benchmark.vp9.fps": 253, "media.gmp-manager.lastCheck": 1476463348, "media.gmp-gmpopenh264.abi": "x86_64-gcc3-u-i386-x86_64", "media.gmp-widevinecdm.version": "1.4.8.903", "media.gmp-widevinecdm.abi": "x86_64-gcc3-u-i386-x86_64", "network.cookie.prefsMigrated": true, "network.predictor.cleaned-up": true, "network.auth.allow-subresource-auth": 2, "places.history.expiration.transient_current_max_pages": 107731, "places.database.lastMaintenance": 1476129827, "plugin.importedState": true, "plugin.disable_full_page_plugin_for_types": "application/pdf", "print.print_resolution_name": "", "print.print_plex_name": "", "print.print_margin_top": "0.5", "print.print_to_file": false, "print.print_evenpages": true, "print.print_orientation": 0, "print.print_colorspace": "", "print.print_reversed": false, "print.print_duplex": 1515870810, "print.print_unwriteable_margin_right": 17, "print.print_paper_height": " 11.00", "print.print_command": "", "print.print_unwriteable_margin_left": 17, "print.print_margin_left": "0.5", "print.print_unwriteable_margin_bottom": 17, "print.print_scaling": " 1.00", "print.print_margin_right": "0.5", "print.print_oddpages": true, "print.print_paper_size_type": 1, "print.print_bgcolor": false, "print.print_paper_width": " 8.50", "print.print_bgimages": false, "print.print_shrink_to_fit": true, "print.print_margin_bottom": "0.5", "print.print_downloadfonts": false, "print.print_unwriteable_margin_top": 17, "print.print_paper_name": "", "print.print_in_color": true, "print.print_page_delay": 50, "print.print_paper_data": 0, "print.print_paper_size_unit": 0, "print.print_resolution": 1515870810, "privacy.donottrackheader.value": 1, "privacy.sanitize.migrateFx3Prefs": true, "privacy.donottrackheader.enabled": true, "privacy.sanitize.migrateClearSavedPwdsOnExit": true, "storage.vacuum.last.places.sqlite": 1476129827, "storage.vacuum.last.index": 1 }, "lockedPreferences": {}, "javaScript": { "incrementalGCEnabled": true }, "accessibility": { "isActive": false, "forceDisabled": 0 }, "libraryVersions": { "NSPR": { "minVersion": "4.12", "version": "4.12" }, "NSS": { "minVersion": "3.26.2", "version": "3.26.2" }, "NSSUTIL": { "minVersion": "3.26.2", "version": "3.26.2" }, "NSSSSL": { "minVersion": "3.26.2", "version": "3.26.2" }, "NSSSMIME": { "minVersion": "3.26.2", "version": "3.26.2" } }, "userJS": { "exists": false }, "crashes": { "submitted": [], "pending": 0 }, "sandbox": {}, "extensions": [ { "name": "Adblock Plus", "version": "2.7.3", "isActive": true, "id": "{d10d0bf8-f5b5-c8b4-a8b2-2b9879e08c5d}" }, { "name": "Dashlane", "version": "4.2.3", "isActive": true, "id": "jetpack-extension@dashlane.com" }, { "name": "Multi-process staged rollout", "version": "1.4", "isActive": true, "id": "e10srollout@mozilla.org" }, { "name": "Pocket", "version": "1.0.5", "isActive": true, "id": "firefox@getpocket.com" }, { "name": "Web Compat", "version": "1.0", "isActive": true, "id": "webcompat@mozilla.org" } ], "experiments": [], "graphics": { "numTotalWindows": 1, "numAcceleratedWindows": 1, "windowLayerManagerType": "OpenGL", "windowLayerManagerRemote": true, "supportsHardwareH264": "Yes", "currentAudioBackend": "audiounit", "adapterDescription": "", "adapterVendorID": "0x1002", "adapterDeviceID": "0x6810", "adapterRAM": "", "adapterDrivers": "", "driverVersion": "", "driverDate": "", "webglRenderer": "ATI Technologies Inc. -- AMD Radeon R9 M290X OpenGL Engine", "webgl2Renderer": "(no info)", "info": { "AzureCanvasBackend": "skia", "AzureCanvasAccelerated": 1, "AzureFallbackCanvasBackend": "none", "AzureContentBackend": "skia", "ApzWheelInput": 1, "TileHeight": 1024, "TileWidth": 1024 }, "featureLog": { "features": [ { "name": "HW_COMPOSITING", "description": "Compositing", "status": "available", "log": [ { "type": "default", "status": "available" } ] }, { "name": "OPENGL_COMPOSITING", "description": "OpenGL Compositing", "status": "available", "log": [ { "type": "default", "status": "available" } ] } ], "fallbacks": [] }, "crashGuards": [] } }
Severity: critical → normal
I'll also note here that no other apps that are restored when the OS wakes from sleep are affected. Each is wholly usable and responsive.
Hey cbeard, Thanks for reporting. If you're willing, I have some steps I'd like you to follow to try to give us more information on what is happening here. The first thing I need you to do is install the Gecko Profiler add-on in your version of Firefox Beta: https://github.com/bgirard/Gecko-Profiler-Addon/raw/master/geckoprofiler-signed.xpi This is the Gecko Profiler Add-on. This add-on acts like a flight recorder, and will take snapshots of what Firefox is doing every few milliseconds. I have a video that demonstrates how to record and dump a "performance profile", and then how to share it: https://www.youtube.com/watch?v=kGBs0BQsoQg Note that the URLs of your currently opened tabs might be included in the profile, so if you want to share it with me privately, you can feel free to mail it to me directly at mconley@mozilla.com. Let me know if you have any questions about the above.
Flags: needinfo?(cbeard)
Adding some JS GC / CC folks in case this might ring some bells around things that could get wonky when our clock starts ticking again after having been asleep for a while.
Yeah, some people seem to have this issue frequently (see bug 639262, or various other bugs that come up if you search for "freeze sleep" on bugzilla) but I'm not sure what is happening. I'm not sure the profiler will work, because the browser is not responding. When you are in Activity Monitor, and have the hanging process selected (that's using 100% CPU), you can click on the gear at the upper left, and select "Sample Process". This will give you some kind of profiling information you can copy and paste into a file and attach to this bug.
See Also: → 639262
Chris, did this start happening *after* you updated to Sierra 10.12?
Severity: normal → major
Keywords: perf
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → INVALID
Flags: needinfo?(cbeard)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: