Closed Bug 1205436 Opened 11 years ago Closed 5 years ago

Hamburger menu on main Firefox window breaks permanently in long sessions

Categories

(Firefox :: General, defect)

42 Branch
Unspecified
Windows 10
defect
Not set
major

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: kael, Unassigned)

Details

Attachments

(2 files, 1 obsolete file)

I tend to leave Firefox open on my machine for multiple days. I have two windows, one of which basically acts as my productivity space and reading list: email, calendar, some news articles, etc. So the heavyweight web apps live there. Most other stuff is in a separate window. After FF has been running for a while, the hamburger menu in the main window breaks. Clicking it does nothing, and I don't see any error messages in the browser console. Once it's in this state it never recovers. However, the hamburger menu on the other idle window still works, so I can use it to do a graceful Firefox exit/restart. Been hitting this issue for at least a couple weeks now. ---- Application Basics ------------------ Name: Firefox Version: 42.0a2 Build ID: 20150915004227 Update Channel: aurora User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:42.0) Gecko/20100101 Firefox/42.0 Multiprocess Windows: 0/2 (default: false) Safe Mode: false Crash Reports for the Last 3 Days --------------------------------- All Crash Reports Extensions ---------- Name: Rikaichan Version: 2.09.1-signed Enabled: true ID: {0AA9101C-D3C1-4129-A9B7-D778C6A17F82} Name: Rikaichan Japanese-English Dictionary File Version: 2.01.150818 Enabled: true ID: rikaichan-jpen@polarcloud.com Name: uBlock Origin Version: 1.1.0.0 Enabled: true ID: uBlock0@raymondhill.net Name: User Style Manager Version: 1.1.1.1-signed Enabled: true ID: UserStyleManager@girishsharma Graphics -------- Adapter Description: NVIDIA GeForce GTX 980 Ti Adapter Drivers: nvd3dumx,nvwgf2umx,nvwgf2umx,nvwgf2umx nvd3dum,nvwgf2um,nvwgf2um,nvwgf2um Adapter RAM: 4095 Asynchronous Pan/Zoom: none Device ID: 0x17c8 Direct2D Enabled: true DirectWrite Enabled: true (10.0.10240.16430) Driver Date: 8-25-2015 Driver Version: 10.18.13.5582 GPU #2 Active: false GPU Accelerated Windows: 2/2 Direct3D 11 (OMTC) Subsys ID: 19963842 Supports Hardware H264 Decoding: true Vendor ID: 0x10de WebGL Renderer: Google Inc. -- ANGLE (NVIDIA GeForce GTX 980 Ti Direct3D11 vs_5_0 ps_5_0) windowLayerManagerRemote: true AzureCanvasBackend: direct2d 1.1 AzureContentBackend: direct2d 1.1 AzureFallbackCanvasBackend: cairo AzureSkiaAccelerated: 0 Important Modified Preferences ------------------------------ accessibility.typeaheadfind.flashBar: 0 browser.cache.disk.capacity: 358400 browser.cache.disk.filesystem_reported: 1 browser.cache.disk.smart_size.first_run: false browser.cache.disk.smart_size.use_old_max: false browser.cache.frecency_experiment: 4 browser.download.importedFromSqlite: true browser.download.manager.alertOnEXEOpen: false browser.fixup.domainwhitelist.firehomie: true browser.fixup.domainwhitelist.rv325: true browser.places.smartBookmarksVersion: 7 browser.sessionstore.upgradeBackup.latestBuildID: 20150915004227 browser.startup.homepage_override.buildID: 20150915004227 browser.startup.homepage_override.mstone: 42.0a2 browser.tabs.remote.autostart.2: false browser.tabs.warnOnClose: false browser.tabs.warnOnOpen: false dom.apps.reset-permissions: true dom.mozApps.used: true extensions.lastAppVersion: 42.0a2 font.internaluseonly.changed: true font.name.monospace.x-western: Consolas font.name.sans-serif.x-western: Calibri font.name.serif.x-western: Cambria font.size.fixed.x-western: 15 font.size.variable.x-western: 18 gfx.direct3d.last_used_feature_level_idx: 0 gfx.driver-init.appVersion: 42.0a2 gfx.driver-init.deviceID: 0x17c8 gfx.driver-init.driverVersion: 10.18.13.5582 gfx.driver-init.feature-d2d: true gfx.driver-init.feature-d3d11: true gfx.driver-init.status: 2 gfx.font_rendering.cleartype_params.cleartype_level: 40 gfx.font_rendering.cleartype_params.force_gdi_classic_for_families: gfx.font_rendering.directwrite.enabled: true media.gmp-gmpopenh264.lastUpdate: 1430793755 media.gmp-gmpopenh264.version: 1.4 media.gmp-manager.buildID: 20150915004227 media.gmp-manager.lastCheck: 1442376855 media.hardware-video-decoding.failed: false network.cookie.prefsMigrated: true network.http.speculative-parallel-limit: 0 network.predictor.cleaned-up: true network.prefetch-next: false places.database.lastMaintenance: 1442387356 places.history.expiration.transient_current_max_pages: 104858 plugin.disable_full_page_plugin_for_types: application/pdf plugin.importedState: true plugin.state.flash: 1 plugin.state.npctrl: 2 plugin.state.npgoogleupdate: 0 plugin.state.npnv3dv: 0 plugin.state.npnv3dvstreaming: 0 privacy.cpd.cookies: false privacy.cpd.downloads: false privacy.cpd.formdata: false privacy.cpd.history: false privacy.cpd.sessions: false privacy.donottrackheader.enabled: true privacy.sanitize.migrateFx3Prefs: true privacy.sanitize.timeSpan: 0 privacy.trackingprotection.enabled: true privacy.trackingprotection.pbmode.enabled: false security.disable_button.openCertManager: false storage.vacuum.last.index: 1 storage.vacuum.last.places.sqlite: 1440750833 Important Locked Preferences ---------------------------- JavaScript ---------- Incremental GC: true Accessibility ------------- Activated: false Prevent Accessibility: 0 Library Versions ---------------- NSPR Expected minimum version: 4.10.9 Version in use: 4.10.9 NSS Expected minimum version: 3.19.3 Basic ECC Version in use: 3.19.3 Basic ECC NSSSMIME Expected minimum version: 3.19.3 Basic ECC Version in use: 3.19.3 Basic ECC NSSSSL Expected minimum version: 3.19.3 Basic ECC Version in use: 3.19.3 Basic ECC NSSUTIL Expected minimum version: 3.19.3 Version in use: 3.19.3 Experimental Features ---------------------
Hmm, strange that it works in one window but not the other. First thing would be to try running with addons disabled, to see if that's causing the problem. I'm curious if you can get it to open by: 1) Enable the devtools.chrome.enabled pref 2) Open a devtools scratchpad 3) Change the environment to Chrome from the menubar 2) run: document.getElementById("PanelUI-menu-button").click() Gijs, any other ideas?
Flags: needinfo?(gijskruitbosch+bugs)
Regarding errors in the browser console: What about if you stick "PanelUI.toggle()" in the browser console ? Does that work? (make sure to open the browser console from the window that's broken, not from the other one) Do you have any add-on buttons in the panel, especially ones that might have notifications/counters/badges on them? I'm specifically thinking of bug 1029937, though that should be fixed with current aurora... Dolske's questions from comment #1 are also going to be useful to have answered. Thanks!
Flags: needinfo?(gijskruitbosch+bugs) → needinfo?(kg)
Attached image panel —
Here's what my panel looks like. I'll try your suggestions next time this bug happens.
I hit it almost immediately after starting a session, but in this case it was right after I disabled a new addon I installed. So this might be a different way of triggering the same problem. In this case neither document.getElementById("PanelUI-menu-button").click() nor PanelUI.toggle() did anything, and I don't see any errors in the browser console.
(In reply to K. Gadd (:kael) from comment #4) > I hit it almost immediately after starting a session, but in this case it > was right after I disabled a new addon I installed. So this might be a > different way of triggering the same problem. > > In this case neither > document.getElementById("PanelUI-menu-button").click() > nor > PanelUI.toggle() > > did anything, and I don't see any errors in the browser console. Thanks for the update. This is all quite mysterious... looking at your list of add-ons, do you have any userstyles installed? Other things that would help sort out what's going on here would be to let us know what these return: PanelUI.panel.state document.documentElement.hasAttribute("customizing") and if PanelUI.panel.openPopup(PanelUI.menuButton) shows the panel (it might be slightly misaligned compared to the default, but that doesn't matter for the testing). I'm kind of lost as to what's going wrong here, I'm afraid. :-(
I'll try those next time, thanks. I have one userstyle: ------ /* revised to*/ @namespace url(http://www.w3.org/1999/xhtml); /* hide promoted tweets */ @-moz-document domain(twitter.com), domain(www.twitter.com) { .promoted-tweet, .ProfileTweet--promoted { display: none !important; } div.Trends { display: none !important; } } /* set a background color, but only on your timeline and personal pages */ @-moz-document regexp("(http|https)\:\/\/(www)?twitter.com(|\/|\/i\/((?!cards).*))") { div#page-outer, body, html { background-color: rgb(20, 35, 50) !important; } } ------
Flags: needinfo?(kg)
PanelUI.panel.state /* closed */ document.documentElement.hasAttribute("customizing") /* false */ PanelUI.panel.openPopup(PanelUI.menuButton) /* nothing happened */ This usually happens after I wake my monitors from sleep, but that's probably unrelated and is just 'FF has been running for a while'.
This happens very frequently on my Surface Book (fresh firefox profile). Seems to coincide with either machine sleep or maybe dock/undock. Happens even during relatively short sessions.
(In reply to K. Gadd (:kael) from comment #8) > This happens very frequently on my Surface Book (fresh firefox profile). > Seems to coincide with either machine sleep or maybe dock/undock. Happens > even during relatively short sessions. "very frequently" - can you check if this literally *always* happens after dock/undock ? TBH, it sounds like something's going wrong here at a widget/XUL level... Pulling in Jim Mathies and Neil in case they have ideas...
Flags: needinfo?(kg)
Flags: needinfo?(jmathies)
Flags: needinfo?(enndeakin)
Is the hamburger button the only ui widget that stops responding? Can you interact with other parts of the browser ui? If so I doubt this is widget level. If the whole window becomes unresponsive, then yeah widget is a highly likely suspect.
Flags: needinfo?(jmathies)
There's some other bugs on issues when waking from sleep I think. The only thing we do when sleeping is to pause downloads and timers. I don't think a timer is used for the popup is it? I suppose there could be some race or edge case that isn't handled properly.
Flags: needinfo?(enndeakin)
(In reply to Neil Deakin from comment #11) > There's some other bugs on issues when waking from sleep I think. The only > thing we do when sleeping is to pause downloads and timers. I don't think a > timer is used for the popup is it? I suppose there could be some race or > edge case that isn't handled properly. The sleep bugs I'm aware of are paint refresh related. I'm not aware of an issue with user input.
Not trivially reproducible just with a dock/undock or a short sleep, but I'm seeing it every couple hours, so I'll try to narrow down the causes here. I'm not undocking the GPU, however - just the charging dock that has USB ports, ethernet adapter, etc. So I feel like it's less plausible that the charging dock would be the issue here.
Flags: needinfo?(kg)
Sadly I don't have a reliable reproduction step, but I just rebooted this machine ~10 minutes ago, then plugged it into the docking station (usb, ethernet NIC, etc) and now the hamburger menu is broken. Things attached to the docking station: A USB hub An ethernet adapter (that I'm using instead of WiFi while docked) A power supply DisplayPort outputs (not in use) I'm not really sure how any of this could interact with FF such that it would break the hamburger menu. ;( Maybe this bug just happens to be more common on this laptop. Would it make sense that this could be an interaction with other software on this machine? I'll try to enumerate the things that are installed on both laptop and desktop: Both are 64-bit Win10 Pro SysInternals Process Explorer instead of Taskmgr Both have the NVIDIA display drivers & GeForce Experience installed Both have Steam installed Both have Dropbox installed and running Both have the LINE client installed and running Both have Instantbird (nightly builds) installed and running Both are running Firefox Developer Edition (64-bit) And the built-in firewall and virus scanner are enabled on both machines. Can't think of anything else :(
Something I just thought of: I opened the menu bar (right-clicked to the right of the hamburger menu, clicked 'menu bar'), selected View->Toolbars->Customize... The customization UI opened in a tab but the tab was empty and the hamburger menu button was locked in a 'depressed' position. The animation where the tab usually fills with the customization UI and the browser margins expand never happened. Reloading the tab didn't fix it either, it was just blank forever. The customization tab had an address bar, also, showing its about: url.
(In reply to K. Gadd (:kael) from comment #15) > Something I just thought of: > I opened the menu bar (right-clicked to the right of the hamburger menu, > clicked 'menu bar'), selected View->Toolbars->Customize... > The customization UI opened in a tab but the tab was empty and the hamburger > menu button was locked in a 'depressed' position. The animation where the > tab usually fills with the customization UI and the browser margins expand > never happened. Reloading the tab didn't fix it either, it was just blank > forever. The customization tab had an address bar, also, showing its about: > url. Whoa. Any particular errors in the browser console when trying to use that? Does it still work in the second window (where the panel isn't broken) ? I'm still completely at sea over what would cause this. :-\ It'd also be useful to know if this breakage also affects other panels (the downloads panel, or the bookmarks one, or the developer tools / history ones (which are in the panel by default)). Mike or Jared, do you have alternative ideas about how to figure out what's causing this? I'm stumped.
Flags: needinfo?(mconley)
Flags: needinfo?(jaws)
I find it odd that the Browser Console isn't complaining about something. Sanity check - kael, at the top of the Browser Console are filters for the type of messages that are displayed. The down arrow on the right side of each button lets you drill down into the severity of the messages as well. Do you have "JS" enabled to show all messages? How about "Logging"?
Flags: needinfo?(mconley) → needinfo?(kg)
I have all the filters on, yeah. I might need to leave the Browser Console on from startup to see if something happens well in advance of me noticing the problem. It won't purge entries once it gets too long, right? I checked the JS console for the customize tab, but not the browser console because I couldn't remember the hotkey :(
(In reply to K. Gadd (:kael) from comment #18) > I have all the filters on, yeah. I might need to leave the Browser Console > on from startup to see if something happens well in advance of me noticing > the problem. It won't purge entries once it gets too long, right? No it won't - but you'll find your browser getting jankier over time as more and more entries get added, as it gets more expensive to reflow (since the document inside is getting longer and longer), and the Browser Console runs in the main browser process. > > I checked the JS console for the customize tab, but not the browser console > because I couldn't remember the hotkey :( Ctrl-Shift-J (or Cmd-Shift-J on OS X) for next time. Somebody also suggesting temporarily disabling your add-ons for a while (Help > Restart with add-ons disabled). Have you tried reproducing in that state?
Might be able to repro without addons more easily since it happens frequently on my laptop. Browsing without ublock and rikaichan is gonna be tricky though since I use them both a lot... at least it tends to repro on twitter and github, so it might work out. I'll try it. For reference, this is a fresh profile since I got the machine a week ago.
Flags: needinfo?(kg)
Attached patch Logging Patch (obsolete) — — Splinter Review
(In reply to Mike Conley (:mconley) - Needinfo me! from comment #17) > I find it odd that the Browser Console isn't complaining about something. Aren't exceptions that are thrown in a Task not logged to the error console? My guess is that there is an exception in CustomizeMode.enter(), which causes customize mode to effectively freeze if `this._customizing` is true. Whatever is causing it to throw is probably happening outside of customize mode too. This patch adds some logging for failures to show the menu panel, and also exits customize mode if entering failed. Previously, if an exception was thrown in the Task after `this._customizing` was set to true, customize mode would never enter and there is no UI to exit. The patch now calls CustomizeMode.exit() to clean-up and also reset this._customizing to false. :kael, can you please go to about:config and post your `browser.uiCustomization.state` value here? That will show us how you have your toolbars and panel set up, which may help show if there is an error opening the menu/customizing.
Assignee: nobody → jaws
Status: NEW → ASSIGNED
Flags: needinfo?(jaws) → needinfo?(kg)
Attachment #8683247 - Flags: review?(gijskruitbosch+bugs)
Comment on attachment 8683247 [details] [diff] [review] Logging Patch Review of attachment 8683247 [details] [diff] [review]: ----------------------------------------------------------------- ::: browser/components/customizableui/content/panelUI.js @@ +2,5 @@ > * License, v. 2.0. If a copy of the MPL was not distributed with this file, > * You can obtain one at http://mozilla.org/MPL/2.0/. */ > > +XPCOMUtils.defineLazyModuleGetter(this, "console", > + "resource://gre/modules/Console.jsm"); panelUI.js is loaded by browser.xul. I'm fairly sure you don't need to define a getter here yourself - window.console is always defined.
Attachment #8683247 - Flags: review?(gijskruitbosch+bugs) → review+
On my laptop it's: {"placements":{"PanelUI-contents":["edit-controls","zoom-controls","e10s-button","new-window-button","privatebrowsing-button","save-page-button","history-panelmenu","fullscreen-button","preferences-button","developer-button","print-button"],"addon-bar":["addonbar-closebutton","status-bar"],"PersonalToolbar":["personal-bookmarks"],"nav-bar":["urlbar-container","search-container","bookmarks-menu-button","downloads-button","ublock0-button","rikaichan-toggle-button"],"TabsToolbar":["tabbrowser-tabs","new-tab-button","alltabs-button"],"toolbar-menubar":["menubar-items"]},"seen":["webide-button","ublock0-button","themefontsizechanger-toolbarbutton"],"dirtyAreaCache":["PersonalToolbar","nav-bar","TabsToolbar","toolbar-menubar","PanelUI-contents","addon-bar"],"currentVersion":4,"newElementCount":0} Desktop is probably similar, but I don't have access to that machine right now. I should in a couple days.
Flags: needinfo?(kg)
Kael, can you try and reproduce your issue on the latest Nightly build? If you are able to reproduce it, please open the Browser Console (Ctrl+Shift+J on Windows) and paste in this bug any errors that you see that include "customize" or "PanelUI" (there's a filter in the top right of the console to help with searching).
Flags: needinfo?(kg)
Unassigning due to lack of feedback from Kael. I can pick this up again once we know more information.
Assignee: jaws → nobody
Status: ASSIGNED → NEW
This hasn't reproduced in a couple weeks, but I haven't been using the laptop once. I'm fine with this going into some sort of hibernation/semi-closed state and reopening if I manage to reproduce it again in a Nightly build.
Flags: needinfo?(kg)
Thanks, closing this as resolved-worksforme then.
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → WORKSFORME
Removing leave-open keyword from resolved bugs, per :sylvestre.
Keywords: leave-open

This is still a huge problem: https://youtu.be/DiJBj1M57H0

Browser is unable to work anymore after opening hamburger menu.

I cannot longer click on any other tabs, I can only scroll in the current page.

Status: RESOLVED → REOPENED
Resolution: WORKSFORME → ---

(In reply to Cristian Silaghi from comment #32)

This is still a huge problem: https://youtu.be/DiJBj1M57H0

Browser is unable to work anymore after opening hamburger menu.

I cannot longer click on any other tabs, I can only scroll in the current page.

Please file a separate bug with more details; it's probably not the same problem that :kael ran into 6 years ago.

Status: REOPENED → RESOLVED
Closed: 10 years ago → 5 years ago
Flags: needinfo?(cristian.silaghi)
Resolution: --- → WORKSFORME
Flags: needinfo?(cristian.silaghi)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: