Closed Bug 1874527 Opened 1 year ago Closed 1 year ago

[Wayland] Indeterminate-sized downloads causes Firefox to become non-responsive

Categories

(Firefox :: Untriaged, defect, P2)

Firefox 121
defect

Tracking

()

RESOLVED DUPLICATE of bug 1812405

People

(Reporter: fnkimnki, Unassigned)

References

(Blocks 1 open bug)

Details

Attachments

(3 files)

User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:121.0) Gecko/20100101 Firefox/121.0

Steps to reproduce:

Download an archive of indeterminate size such as you may find on archive.org sometimes. If the file size is known before-hand, I haven't experienced the negative symptoms.

OS: EndeavorOS, latest updates as of current
Relevant hardware: AMD 5600x CPU, AMD 6600XT GPU, Samsung 970 NVME SSD, B450 chipset

Memory has been memtested overnight and passed. No overclock and hardware has been historically stable, otherwise.

Actual results:

Firefox becomes non-responsive or very slow to respond. I can scroll but switching tabs is either very slow or impossible. Even after the download finishes, Firefox still has said symptoms.

Expected results:

I would expect my browser to remain responsive.

I have since tried troubleshooting mode and behavior is the same. About:crash shows nothing to submit as Firefox doesn't crash but I just have to forcefully exit. Testing with a new profile from terminal, firefox --ProfileManager --no-remote, reveals the same behavior. I can very determinately create this behavior when downloading a compressed source file on github, where the file size isn't known when downloading. I will continue to try other options to narrow the causes.

The Bugbug bot thinks this bug should belong to the 'Core::Widget: Gtk' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.

Component: Untriaged → Widget: Gtk
Product: Firefox → Core

Further testing shows about:performance having ~30% impact on cpu performance when the issue happens as opposed to ~3% when downloading a file of known size. To see my about:performance tab, I have to quickly switch to it before Firefox stalls, sometimes I can't do it quickly enough when downloading the troublesome file type. For example, https://github.com/mozilla/DeepSpeech/releases, the last two compressed source files give the troublesome issue and others do not.

Component: Widget: Gtk → Untriaged
Product: Core → Firefox

Starting Firefox via terminal with "firefox-x11" doesn't cause the issue so this seems to be an issue with Firefox's interaction with the Wayland compositor, maybe? I'm also running KDE if it's of relevance.

About:support output.

I believe this is solved now. Changing "gfx.webrender.all" to "true", not default on my setup, fixes the issue when I start Firefox with Wayland. Strange, I thought for sure it'd be a network issue.

I spoke too soon. I still get the same crash with webrender enabled or not and using X11 or Wayland. I wished you could edit here so I don't have to keep posting new entries. I guess I'll have to use Chrome for my github downloads as that causes a freeze. It's not every time like I initially thought. It didn't happen for a while yesterday but now it's been doing it.

Could it be a dupe of Bug 1796960 or Bug 1812405?

Priority: -- → P2

I just tested nightly, same problem with firefox freezing while downloading unknown file sizes such as compressed source code on github. I recall this being a recent issue but of course I've only recently started using github so maybe I just recently noticed it. Perhaps earlier I disabled wayland incorrectly, I suspect I did and it led to think it wasn't a Wayland issue. But I set MOZ_ENABLE_WAYLAND=0 as an environment variable in KDE's launcher and my quick testing, I don't have the issue anymore.

I do believe it's probably a duplicate of bug 1812405 considering the submitter realized an issue with downloads of "unknown time remaining".

Blocks: wayland
Status: UNCONFIRMED → RESOLVED
Closed: 1 year ago
Duplicate of bug: 1812405
Resolution: --- → DUPLICATE
Summary: Indeterminate-sized downloads causes Firefox to become non-responsive → [Wayland] Indeterminate-sized downloads causes Firefox to become non-responsive
Attached file log.txt

Output of following from time of process start to force kill: MOZ_LOG="WidgetVsync:5 nsRefreshDriver:5 WidgetPopup:5" firefox > log.txt 2>&1

Attached file about-support
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: