Closed Bug 1718930 Opened 4 years ago Closed 4 years ago

Unresponsive UI when switching between tabs (hang/freeze)

Categories

(Core :: Graphics: Canvas2D, defect)

Firefox 89
defect

Tracking

()

RESOLVED DUPLICATE of bug 1717209

People

(Reporter: bugzilla, Unassigned)

References

Details

(Whiteboard: QA-not-reproducible)

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:89.0) Gecko/20100101 Firefox/89.0

Steps to reproduce:

Open these 3 tabs in a new profile with no addons or settings changed:

https://www.binance.com/en/futures/BTCUSDT
https://www.binance.com/en/trade/BTC_USDT?layout=pro&type=spot
https://uk.tradingview.com/chart/?symbol=BITSTAMP%3ABTCUSD

Change tabs quickly using Ctrl+1/2/3 for 30 seconds to a minute.

Actual results:

FF hangs for 10-20 seconds, media continues to play if there is any, clicking on tabs changes window title. This happens regardless of whether you're switching tabs using keyboard shortcuts or just clicking on the tab while browsing normally. This behavior has been going on since v89.0.

Expected results:

FF should NOT hang.

The Bugbug bot thinks this bug should belong to the 'Core::Audio/Video: Playback' component, and is moving the bug to that component. Please revert this change in case you think the bot is wrong.

Component: Untriaged → Audio/Video: Playback
Product: Firefox → Core

Is this problem specific to when you have media playing in a tab, or does it happen even when no media is open in any tabs?

Flags: needinfo?(bugzilla)

No media is required to reproduce but if there were any media alongside those 3 tabs it would continue to play.

Flags: needinfo?(bugzilla)

Thanks. Since this doesn't sound media specific, I'm going to revert the component the bot put this in. This should help it find a more appropriate owner.

Component: Audio/Video: Playback → Untriaged
Product: Core → Firefox

Hey Svilen,
I tried reproducing this issue on the latest versions of Firefox Nightly 91.0a1 (2021-07-07), beta 90.0 or release 89.0.2 but the freeze didn't occur for me.
If possible, you can test this issue on the nightly build as well. Download the build from : https://www.mozilla.org/en-US/firefox/nightly/all/ .

Flags: needinfo?(bugzilla)
Whiteboard: QA-not-reproducible

More difficult to reproduce on 91.0a1. Had to open 3 tabs all from Trading View and had to throw in a couple of page refreshes in between switching tabs. I did however manage to capture it happening using the profiler: https://share.firefox.dev/3yBYk4B

It's visible towards the end as a ~10 second jank.

Flags: needinfo?(bugzilla)

This has gotten worse with v90.0. Now occasionally after a freeze FF is left in a flashing/blinking state where clicks don't get registered and the only way to restore functionality is a full restart.

I'm not sure but I think I have a similar issue. It started on v89 but is still present on v90.
The hang seems to happen randomly, but particularly when changing tabs, opening a menu or the "Simple Tabs Groups" drop down (yes I checked with this extension disabled, it still occurs).
I use 2 different profiles at the same time (2 windows):

  • 1 with some extensions (uBlock, Disconnect, STG, etc.), called "A"
  • 1 with a new and clean profile, no extension, called "B"

The "B" window is regularly freezing and I have to xkill it. When multiple tabs are open I've noticed that clicking on each of them changes the title of the window, but the app is completely unresponsive besides that.
The "A" window is also impacted, but less regularly, let's say once every 2 hours, while I have to kill "B" twice an hour at least.

I'm on Archlinux with XFCE, if it's of any help.

Looks like a remote canvas problem. We're waiting in mozilla::layers::CanvasEventRingBuffer::WaitForReadCount

Flags: needinfo?(bobowencode)
Component: Untriaged → Canvas: 2D
Product: Firefox → Core
Severity: -- → S3

This looks very similar to bug 1717209, which is now fixed on Beta.
I can reproduce and it seems to be fixed on Beta, but I'm a little unsure because it doesn't reproduce easily for me.

Hi Svilen, thanks for taking the time to report this.
Would you be able to test on the latest Beta please to see if you can reproduce, if you choose a custom install you can stop it from overwriting your current release install:
https://www.mozilla.org/en-GB/firefox/all/#product-desktop-beta

Flags: needinfo?(bobowencode) → needinfo?(bugzilla)
See Also: → 1717209

Hi Bob, thank you and Jeff for looking into this. It does appear to be the same issue as #1717209 which means this is probably a duplicate.

I tried reproducing on Beta but am no longer able to. I consider this fixed but will keep an eye on it and report back if I encounter it again down the line.

Status: UNCONFIRMED → RESOLVED
Closed: 4 years ago
Flags: needinfo?(bugzilla)
Resolution: --- → DUPLICATE

(In reply to Anael O. from comment #8)

I'm not sure but I think I have a similar issue. It started on v89 but is still present on v90.
The hang seems to happen randomly, but particularly when changing tabs, opening a menu or the "Simple Tabs Groups" drop down (yes I checked with this extension disabled, it still occurs).
I use 2 different profiles at the same time (2 windows):

  • 1 with some extensions (uBlock, Disconnect, STG, etc.), called "A"
  • 1 with a new and clean profile, no extension, called "B"

The "B" window is regularly freezing and I have to xkill it. When multiple tabs are open I've noticed that clicking on each of them changes the title of the window, but the app is completely unresponsive besides that.
The "A" window is also impacted, but less regularly, let's say once every 2 hours, while I have to kill "B" twice an hour at least.

I'm on Archlinux with XFCE, if it's of any help.

Hi, in general I'd only expect this to be an issue on Windows., but it might affect Linux as well.
It would be great if you could also test the latest Beta.
If the problem is still there, would you file a new bug please.

Flags: needinfo?(nanawel)

To me it looks like this issue is fixed with v91. I used this version all day yesterday and it did not crash once.

Thanks!

Flags: needinfo?(nanawel)

(In reply to Anael O. from comment #13)

To me it looks like this issue is fixed with v91. I used this version all day yesterday and it did not crash once.

Thanks!

Excellent, thanks for letting us know.

Sorry to bump, but FYI even if I thought this bug was gone, it came back or was still here after all.

Today it crashed 5 times already, and the context was more or less always the same:

  • 2 Firefox windows open, each with its own profile, each on its own monitor
  • Bitwarden extension loaded and vault unlocked, on both windows (I don't know why, but it seems to have a role or at least to facilitate the reproduction on the bug)
  • Changing focus from Firefox to another window, or the other way around

This time it only crashed one profile, but as a precaution I restarted both.

Still on an up-to-date Archlinux x64, with XFCE/XFWM.

Regards,

(In reply to Anael O. from comment #15)

Sorry to bump, but FYI even if I thought this bug was gone, it came back or was still here after all.

Today it crashed 5 times already, and the context was more or less always the same:

  • 2 Firefox windows open, each with its own profile, each on its own monitor
  • Bitwarden extension loaded and vault unlocked, on both windows (I don't know why, but it seems to have a role or at least to facilitate the reproduction on the bug)
  • Changing focus from Firefox to another window, or the other way around

This time it only crashed one profile, but as a precaution I restarted both.

Still on an up-to-date Archlinux x64, with XFCE/XFWM.

Regards,

This sounds like it might be a different issue, can you file a new bug with those steps to reproduce in it.
Please add links to any relevant crash reports (from about:crashes).

You need to log in before you can comment on or make changes to this bug.