Stuck at tabswitch spinner when opening a new tab
Categories
(Core :: Graphics, defect, P2)
Tracking
()
People
(Reporter: eight04, Unassigned)
References
(Blocks 1 open bug)
Details
(4 keywords)
Attachments
(7 files)
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:123.0) Gecko/20100101 Firefox/123.0
Steps to reproduce:
- Open any page.
- Select some text, drag-n-drop the selection to the tab bar.
- A tab (googling the selection) is opened in the background.
- Wait until the tab is loaded.
- Switch to the new tab.
Actual results:
https://imgsh.net/a/rNrg8hc.png
The tab stuck at the loading animation.
The page is actually loaded, you can interact with the page via mouse/keyboard as seen in the screenshot.
Expected results:
Just show the page normally.
Comment 1•2 years ago
|
||
The Bugbug bot thinks this bug should belong to the 'Firefox::Tabbed Browser' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.
Hello, thank you for the bug report!
Unfortunately I could not reproduce your issue. Would you be so kind as to answer a few questions so we can investigate this further?
- Does this issue happen with a new profile? Here is a link on how to create one: https://support.mozilla.org/en-US/kb/profile-manager-create-remove-switch-firefox-profiles
- Does this issue happen when Firefox is in Troubleshoot Mode? Here’s a link on how to enable it: https://support.mozilla.org/en-US/kb/diagnose-firefox-issues-using-troubleshoot-mode#w_how-to-start-firefox-in-troubleshoot-mode
Thank you.
(In reply to Ardelean Oana, Desktop QA [:oardelean] from comment #2)
- Does this issue happen with a new profile? Here is a link on how to create one: https://support.mozilla.org/en-US/kb/profile-manager-create-remove-switch-firefox-profiles
- Does this issue happen when Firefox is in Troubleshoot Mode? Here’s a link on how to enable it: https://support.mozilla.org/en-US/kb/diagnose-firefox-issues-using-troubleshoot-mode#w_how-to-start-firefox-in-troubleshoot-mode
Tested it again. Now I'm not able to reproduce this issue anymore.
Tested on my original profile, a new profile, and my original profile with trouble shoot mode.
Saw this bug again today.
I middle-clicked a Google search result.
Later I switched to that tab, the tab stuck at the loading animation. (while you can still interact with the page)
BUT before I submitted this comment (probably in one minute), I checked the tab again and the page was shown correctly.
Comment 5•2 years ago
|
||
The severity field is not set for this bug.
:dao, could you have a look please?
For more information, please visit BugBot documentation.
Saw this bug again.
- I noticed one tab was stuck.
- After a while, I checked the tab again and found that it was still stuck.
- I pressed the "Print Screen" key to take a screenshot with PicPick.
- After the screenshot was taken, PicPick opened the image editor.
- I minimized the image editor and the tab loaded correctly.
Hy :eight04, thank you so much for the additional information!
I could reproduce this issue on Firefox Nightly 123.0a1 on Ubuntu 22 so far. I used the STR provided by the reporter until I caught the issue.
Please note that this issue is intermittent and does not reproduce reliably.
Setting as NEW so the developing team can have a look.
Updated•2 years ago
|
Comment 8•2 years ago
|
||
Hi eight04,
Thanks for continuing to provide feedback here. I think the next thing we need here is a performance profile recording to get a deeper sense of what might be going wrong.
If you follow the instructions at https://firefox-source-docs.mozilla.org/performance/reporting_a_performance_problem.html, it will guide you through enabling the profiler button in Firefox and starting a recording. Once recording, you can keep it on in the background until you see the issue (it uses a circular buffer). Once you see the issue, hit the button again, and a new tab will open with the profile that was collected. There are instructions here on how to upload and share the profile here in this bug, and then we can examine it.
Comment 9•2 years ago
|
||
(In reply to Mike Conley (:mconley) (:⚙️) from comment #8)
Hi eight04,
Thanks for continuing to provide feedback here. I think the next thing we need here is a performance profile recording to get a deeper sense of what might be going wrong.
QA may also be able to help with this as they managed to reproduce the issue.
Updated•2 years ago
|
| Reporter | ||
Comment 10•2 years ago
|
||
Saw this bug again. Unfortunately I didn't run the profiler at browser start so the report only includes the loading screen I saw.
https://share.firefox.dev/48YGZFF
At 50s, I minimized the window and maximize it again, which fixed the issue.
Comment 11•2 years ago
|
||
Thanks for the profile, eight04.
From examining the profile, what I see is that the Twitter page (during the recording of the profile) never seems to have its refresh driver tick / WebRender display list upload until the window is restored. I'm going to move this bug over to Core :: Graphics for now.
I also managed to capture a profile of the issue. Note that the bug was caught towards the end. Please let me know if the profile is usable and if there’s anything else I can help with.
Profile: https://share.firefox.dev/4bA0Yfh
Comment 13•2 years ago
|
||
The Performance Impact Calculator has determined this bug's performance impact to be medium. If you'd like to request re-triage, you can reset the Performance Impact flag to "?" or needinfo the triage sheriff.
Platforms: Windows
Impact on site: Renders site effectively unusable
Configuration: Rare
Websites affected: Major
[x] Able to reproduce locally
Comment 14•2 years ago
|
||
Thanks oardelean,
From what I can tell, your profile is similar to eight04's - we tab switch, and request displaylists from the underlying tab, but they never arrive or get composited, so we hit our timeout and show the spinner.
oardelean and eight04, can you please visit about:support and click "Copy text to clipboard" and paste your clipboard into a new comment in this bug? I want to look for commonalities in your graphics stack.
Updated•2 years ago
|
| Reporter | ||
Comment 16•2 years ago
|
||
Comment 17•2 years ago
|
||
Hm. Nothing is jumping out from those about:supports that might explain this.
oardelean - how reliabily can you reproduce this? Are you able to get a regression range?
Unfortunately I wasn’t able to find a regression range. This particular bug is quite tricky to catch - most of the times it does not reproduce, and when it does, the browser sometimes tends to freeze for a short while, which makes it difficult to come with a correct regression range. I was only able to reproduce once on today’s Nightly build(using the same profile which has the about:support attached), but had no success whatsoever on older builds.
| Reporter | ||
Comment 19•2 years ago
|
||
Got a similar tab today, without the spinner.
https://imgur.com/iAh6nN6
This time, minimizing & maximizing the window doesn't fix it.
Here is the log from the browser console:
https://imgur.com/tlrFvn6
There are some sendAsyncMessage errors. Don't know if it's relevant.
Comment 20•2 years ago
|
||
The severity field is not set for this bug.
:bhood, could you have a look please?
For more information, please visit BugBot documentation.
Updated•2 years ago
|
Comment 22•2 years ago
|
||
Comment 23•2 years ago
|
||
Comment 24•2 years ago
|
||
Comment 25•2 years ago
|
||
Comment 26•2 years ago
|
||
Tab preview feature causes this bug from v131.0.
Issue gone by disabling below in about:config.
browser.tabs.hoverPreview.enabled = false
browser.tabs.hoverPreview.showThumbnails = false
Comment 27•2 years ago
|
||
Thank you. I'm going to try this setting over a few days and see if this issue occurs or not.
Since it's a bug, I presume it's on the roadmap to be fixed sometime in the future?
Comment 28•2 years ago
|
||
We don't currently have enough information to reproduce this particular bug. If you can confirm that disabling tab hover previews fixes the issue for yourself, that gives us an extra clue, but we still need to determine why it's happening and then how to fix it - and we may need information from you after you've done this check.
Comment 29•2 years ago
|
||
The issue still persist.
I confirm that in my about:config, browser.tabs.hoverPreview.enabled and browser.tabs.hoverPreview.showThumbnails is toggled to false. I've also restarted the browser to ensure the configuration took effect before the video recording.
Comment 30•1 year ago
|
||
This also happens to me on occasion, at least for the last few months and multiple versions of Firefox.
Here's how it seems to happen:
- Open a link in a new tab, or right-click an image and click "Open Image in New Tab".
- Tab seems to load, based on correct title in tab, but if you click on it, all you see is the spinner.
- Pressing Reload (Ctrl+R) is not helpful. You still just see the spinning icon.
- Navigating to another webpage entirely is not helpful. That new page loads fine behind the spinner, but you can't see it.
But I did come across a way today that gets the tab back to normal SORT OF, but not entirely. Here's what happened:
- I right-clicked and opened youtube.com in a new window.
- After clicking to the new tab (showing only the spinner), I clicked the home button (duckduckgo.com). No change in spinner, but new title appeared.
- I navigated to another frequently visited site. Same thing, still just a spinner, but the title changed.
- I pressed either the back button or Alt+LeftArrow. NOW DuckDuckGo was properly showing. However, both the forward and backward buttons are grayed out (disabled), as though DuckDuckGo were the first and only page ever visited in that tab, which is NOT true, since the pages actually did load behind the spinner, and the visits generated history in the library.
If I had to guess, I'd suspect some kind of race condition or other timing bug. Heavy swap-file activity MAY be a factor in reproducing this, but I can't say for sure if that helps.
Comment 31•1 year ago
|
||
Hi firefoxbugs,
Are you able to provide a performance profile recording for when you experience this?: https://firefox-source-docs.mozilla.org/performance/reporting_a_performance_problem.html
Comment 32•1 year ago
|
||
(In reply to Mike Conley (:mconley) (:⚙️) from comment #31)
Not at all likely. This only happens every week or two, and there's no way I can run the profiler 24/7.
[Note: In fact, even when I tried running the profiler a few seconds, it slowed my entire system to be completely unusable and I had to log in from a TTY and kill the firefox process. This is more or less how I usually close Firefox anyway; I use it for hours or days until it eats up too much memory and swap, as it inevitably does, and then I kill the process. I never quit normally, because I've found that could take an incredibly long time (potentially hours) for Firefox to read back all the data from swap only to free it. So this behavior was kind of normal, but the profiler seemed to accelerate the need to kill the process when I hadn't even had Firefox open that long.]
Is there information which would be useful that could be collected only starting once the spinning tab is observed? If so, I can try, but you will need to let me know exactly what settings to use, specifically, whatever you think is the minimal set of data that would still be helpful.
FWIW, this bug doesn't seem to be the cause of a performance problem, so I'm not really clear on what you're hoping to see. The spinning icon is not indicative of it actually doing anything. In other words, my CPU usage, page loading speed, etc. is not in any way affected, even if I leave that spinning tab open for hours.
Comment 33•1 month ago
|
||
This matches bug 2071626: a warmed background tab (tab hover previews warm tabs) that changes content process loses its layer state, so the tab switcher waits for layers forever until something toggles them, such as minimizing and restoring the window. Adding the dependency; worth retesting once it lands.
Description
•