Closed Bug 1820495 Opened 2 years ago Closed 2 years ago

high memory usage of gpu-committed and gpu-shared with SVG [intel xe?]

Categories

(Core :: Graphics, defect)

Firefox 110
defect

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: konrad.hammerer, Assigned: bradwerth)

References

(Blocks 1 open bug)

Details

Attachments

(6 files)

Attached file Untitled2.html

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

Steps to reproduce:

Running the attached code seems to cause a memory leak in the Firefox process.

Actual results:

Process fills up to more than 15 GB of memory after time...

Expected results:

Memory consumption should stay stable.

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

Component: Untriaged → SVG
Product: Firefox → Core

Task Manager screens hot shows memory consumption after a few minutes.

I cant repro on Win11.

Can you attach the contents of your about:support to this bug?

Flags: needinfo?(forum.news)
Attached file support_out.txt

added output of about:support

Flags: needinfo?(forum.news)

Just wanted to add: I can reproduce this a 100%. Every time I open this page and leave the Firefox window open/visible on the screen, I can see the memory consumption in the task manager going up rapidly. After some minutes (and more than 15 GB of mem consumption), the animation frame rate starts to drop.

Seems fine to me too.

Try creating a second tab and putting about:memory into the address bar. You can then create reports on the memory usage of the other page and see where the memory is going. You can also minimise the memory and see if it reduces.

You should also try safe mode to rule out add-ons.

Flags: needinfo?(forum.news)
Attached file memory-report.json.zip

added multiple memory snapshots

Flags: needinfo?(forum.news)

ah - launching FF in safe mode solves the problem. Let me further investigate which add-on might cause the problem.

The problem is not related to any of my add-ons but the option "use hardware acceleration, if available". Screen shot attached. Without this option, the process runs stable at around 50 MB. With this option, the mem consumption grows very fast.

Component: SVG → Graphics
Blocks: gfx-triage
Severity: -- → S3

FWIW, I also tried to reproduce in Windows and mac and did not see high or increasing memory usage. Perhaps something specific to the driver?

Attached GPU information as screen shot. Anything else I can test or provide?

Thanks
Konrad

Attached image gfx driver.png

One thing I will call out is that this device id 0x8086 0x9a49 is the dedicated GPU version of the Intel Xe graphics, and may be in a desktop system.

Jeff will see if he can repro on a local system that has similar hardware.

Flags: needinfo?(jmuizelaar)

FWIW, my device is a Dell Latitude 7420

I have the exact same issue. I also have a DELL with an Intel Iris Xe gpu.
I have a simple HTML file with an animated svg file as follows:

<html>
  <body>
    <img src="background-animated.svg" />
  </body>
</html>

and memory won't stop increasing. My SVG file has an animateTransform. If I remove that, the issue goes away.

Flags: needinfo?(ahale)
Summary: memory leak using svg objects → high memory usage of gpu-committed and gpu-shared with SVG

I've linked a few other bugs where the only real problem is high gpu-committed and/or gpu-shared to bug 1827696. I don't know if they are related or not.

See Also: → 1827696

Bumping this to S2 for investigation, I will need to assess how broadly this impacts users. I don't have the hardware personally but I can PiKVM to one in the near future to investigate.

Severity: S3 → S2
Summary: high memory usage of gpu-committed and gpu-shared with SVG → high memory usage of gpu-committed and gpu-shared with SVG [intel xe]
Summary: high memory usage of gpu-committed and gpu-shared with SVG [intel xe] → high memory usage of gpu-committed and gpu-shared with SVG [intel xe?]

Could you please attach the animated SVG file (background-animated.svg) referenced in comment 18?

Flags: needinfo?(jmuizelaar) → needinfo?(forum.news)
Flags: needinfo?(forum.news) → needinfo?(fedegg192)
Assignee: nobody → bwerth

I will try to move this forward. I'll try replicating on a variety of hardware, including the Intel Xe hardware which I will have to access remotely.

Flags: needinfo?(ahale)

Hi,

You asked for the animated svg file mentioned in comment 18 but it wasn't me posting that comment so I cannot attach that svg file. Anyway, in the original post I added the Untitled2.html attachment which should be enough to reproduce the problem. Let me know if you need additional information.

Thanks
Konrad

Hi,

Just re-tested with the latest Firefox version 114.0.2 64bit and Windows 11 (same hardware as before) but cannot reproduce the issue anymore. So either Firefox has fixed it with the last updates or it was fixed with an GPU driver update or Windows update.

Konrad

No longer blocks: gfx-triage
Severity: S2 → S3

(In reply to FGG from comment #18)

I have the exact same issue. I also have a DELL with an Intel Iris Xe gpu.

FGG, would you please test again with an updated Nightly, and updated driver? The original reporter is saying that the issue is fixed for them. Is it also fixed for you?

I'm not able to reproduce this on Intel Xe hardware using the original testcase, attachment 9321309 [details]. I tried mozregression to find a range where the behavior might have changed, but all the builds worked without blowing up memory. I tried a build from 2023-03-06 and that was fine, too. Please re-open this Bug if this is still occurring for you. In such a case, please try to run mozregression to find what code is responsible.

Status: UNCONFIRMED → RESOLVED
Closed: 2 years ago
Flags: needinfo?(fedegg192)
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: