Open Bug 1976603 Opened 1 month ago Updated 2 days ago

Unusual memory usage while minimized.

Categories

(Core :: Performance: Memory, defect)

Firefox 140
defect

Tracking

()

UNCONFIRMED

People

(Reporter: cgenrique, Unassigned)

References

Details

Attachments

(7 files)

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

Steps to reproduce:

I left Firefox on YouTube playing a video/on Reddit (old.reddit) on a random post on r/Steam (these were two different tests) while minimized.

Actual results:

Firefox started consuming more RAM, in a matter of minutes I was over 90% consumption (see images Memory and MemoryGraph). This "fixes" itself when I open the window again (see the other two images).

Oddly enough, this doesn't slow my PC (tested while running other programs and games), and when I restore my browser window, Firefox also isn't slowed at all.

Expected results:

Normal or far slower memory consumption when running minimized.

Attached file Memory Report

This is the memory report taken from "about:memory" unzipped.

Attached file Technical Info

This is the technical info. taken from "about:support" unzipped. It's in Spanish.

This is the Memory consumption while playing a YouTube video minimized. (MEMORY image unzipped.)

This is the Memory consumption graph while playing a YouTube video minimized. (MEMORYGRAPH image unzipped.)

This is the Memory consumption graph after restoring the page. (Image unzipped.)

This is the Memory consumption after restoring the page. (Image unzipped.)

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

Component: Untriaged → Performance: Memory
Product: Firefox → Core

The severity field is not set for this bug.
:jlink, could you have a look please?

For more information, please visit BugBot documentation.

Flags: needinfo?(jlink)

Hi Victor, thank you for your interest and the bug report.

Looking at the memory graph that you have provided, I can see that there was a dramatic drop in memory usage. I'm not sure what might have been causing the change in memory usage but, according to the other screenshots that you provided that show the memory usage per-application, it doesn't seem to the case that Firefox is using up most of your memory, or is the application who memory usage changed dramatically from before to after. The memory report as well backs up the notion that the Firefox memory was and remained modest during this time.

In your initial description, you mention "Firefox started consuming more RAM" - did you see something that pointed to Firefox's memory usage specifically? Or was it just the change was correlated with the minimizing and restoring of a Firefox window?

Your initial description makes it seems like you were able to reproduce this on demand. If that was the case, are you still able to reproduce this behavior? If you are able to reproduce it on demand, are you able to see anything that points to Firefox as the source of the memory usage change?

Flags: needinfo?(jlink) → needinfo?(cgenrique)
Severity: -- → S4

I can see that there was a dramatic drop in memory usage.

I just want to clarify the drop happened when I opened Firefox's minimized window again.

Did you see something that pointed to Firefox's memory usage specifically?

Yes, when I minimized Firefox's window, the memory usage started to ramp up. This ramp up only happened with Firefox. While the memory in megabytes didn't grow, the graph started to rise and, like I said before, this only happened when using Firefox, regardless if I was using it on its own with other program (like a game) running in tandem.

Your initial description makes it seems like you were able to reproduce this on demand. If that was the case, are you still able to reproduce this behavior?

Yes, I was still able to reproduce it on demand. The last time I did, the ramp up was noticeably faster than before.

Now, I did mention in my original report that this memory usage/anomaly didn't slow my pc down, however, I did realize it caused my computer to have "memory unable to be read" type problems.

Because of that, I decided to do a clean installation. Firefox has behaved normally ever since.

Are you able to see anything that points to Firefox as the source of the memory usage change?

The only thing I did different before my problems started was adding a custom background to my Firefox homepage, a moving GIF (this one specifically). Ever since the clean installation, I haven't changed the background from the default colors.

Flags: needinfo?(cgenrique)

Thank you for that additional info. We have become aware recently that there seem to be some memory issues related to animated images. We have addressed some problems but I continue to see evidence that there are still issues.

Even with a build with code from yesterday, just loading the url that you cite causes some strange memory behavior for me. The first time I loaded it, my memory shot up by ~350Mb before dropping quickly back to normal (stable at ~30Mb more than before the load). The second time I tried it my memory usage steadily increased to over 1Gb, dropped down to ~1Gb, and then continued to climb to over 1.7Gb and didn't show any signs of stopping.

I didn't minimize or restore at all in my test so possibly minimizing and restoring might not actually be related, or perhaps they make it more likely that the memory problems will occur but aren't strictly required.

Since it seems I can reproduce it, I should be able to get some more info by getting a profile with additional memory allocation information enabled. From there I'll either update this bug, create a new bug, or link to an existing bug.

Thank you for your help and responsiveness here!

See Also: → 1979467

(In reply to Victor from comment #10)

The only thing I did different before my problems started was adding a custom background to my Firefox homepage, a moving GIF (this one specifically). Ever since the clean installation, I haven't changed the background from the default colors.

This sounds like bug 1974818, which despite the bugzilla status does not seem to be resolved as mentioned in that bug.

See Also: → 1974818
Depends on: 1979467

I don't think that bug 1979467 is going to solve this. Since so far bug 1979467 has only been reproduced on Windows 11 with Intel gfx adapter and the memory use seems to be a one time thing (ie future loads of copies of the same gif don't trigger it) it seems more likely to be a driver issue.

No longer depends on: 1979467
See Also: → 1979809
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: