Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

GPU memory leak, probably related to HTML5 video (YT)

  • कोई प्रतियुत्तर नहीं
  • 0 यह समस्या है
  • 4 views

For little more than year I've been battling with an issue, where after watching Youtube for hour or two, and having 5-6 open tabs with videos, at some point Firefox would crawl to a stop with UI going down to 1-2 fps, and finally inability to click anything, until I restarted the browser.

Only today I have pieced together, that when it happens, task manager shows almost all of my GPU's VRAM (Dedicated GPU memory) is claimed by Firefox. It looks that there is a GPU memory leak somewhere.

How should I go on about this? If it's a bug, what I should include in a report?

Here is ~2 hrs of progress, PC and Firefox specs at the end:

This is after watching one ~20 minute video:

====================

GPU (pid 10124) Explicit Allocations

0.24 MB (100.0%) -- explicit └──0.24 MB (100.0%) -- gfx/webrender/gpu-cache

  ├──0.24 MB (100.0%) ── metadata
  └──0.00 MB (00.00%) ── cpu-mirror

Other Measurements

0.78 MB (100.0%) -- gfx └──0.78 MB (100.0%) ── webrender/textures/gpu-cache

 265.84 MB ── gpu-committed

1,246.20 MB ── gpu-dedicated

  11.72 MB ── gpu-shared

End of GPU (pid 10124)

====================

After second video, another 15 minutes later:

====================

GPU (pid 10124) Explicit Allocations

0.29 MB (100.0%) -- explicit └──0.29 MB (100.0%) -- gfx/webrender/gpu-cache

  ├──0.29 MB (100.0%) ── metadata
  └──0.00 MB (00.00%) ── cpu-mirror

Other Measurements

0.63 MB (100.0%) -- gfx └──0.63 MB (100.0%) ── webrender/textures/gpu-cache

 277.34 MB ── gpu-committed

1,737.74 MB ── gpu-dedicated

  16.55 MB ── gpu-shared

End of GPU (pid 10124)

====================

After opening and CLOSING several youtube tabs, withplaying 10-15 seconds of each video:

====================

GPU (pid 10124) Explicit Allocations

0.19 MB (100.0%) -- explicit └──0.19 MB (100.0%) -- gfx/webrender/gpu-cache

  ├──0.19 MB (100.0%) ── metadata
  └──0.00 MB (00.00%) ── cpu-mirror

Other Measurements

0.78 MB (100.0%) -- gfx └──0.78 MB (100.0%) ── webrender/textures/gpu-cache

 390.18 MB ── gpu-committed

4,339.20 MB ── gpu-dedicated

   4.27 MB ── gpu-shared

End of GPU (pid 10124)

================================

Here, I closed all tabs except about:memory. After another ~60 minutes of random browsing non-video pages (literally text pages and Google Docs):

====================

GPU (pid 10124) Explicit Allocations

0.25 MB (100.0%) -- explicit └──0.25 MB (100.0%) -- gfx/webrender/gpu-cache

  ├──0.25 MB (100.0%) ── metadata
  └──0.00 MB (00.00%) ── cpu-mirror

Other Measurements

0.94 MB (100.0%) -- gfx └──0.94 MB (100.0%) ── webrender/textures/gpu-cache

 324.99 MB ── gpu-committed

4,396.21 MB ── gpu-dedicated

   0.62 MB ── gpu-shared

End of GPU (pid 10124)

====================

It never goes down.

Then, I opened played for few seconds, stopped and closed (including tabs) ~15 youtube videos:

================================

GPU (pid 10124) Explicit Allocations

52.08 MB (100.0%) -- explicit ├──23.07 MB (44.29%) -- gfx │ ├──23.07 MB (44.29%) -- webrender │ │ ├──10.00 MB (19.20%) ── upload-stagin-memory │ │ ├───6.74 MB (12.95%) ── texture-cache/structures │ │ ├───3.69 MB (07.08%) -- interning │ │ │ ├──1.48 MB (02.84%) -- clip │ │ │ │ ├──0.78 MB (01.50%) ── interners │ │ │ │ └──0.70 MB (01.34%) ── data-stores │ │ │ ├──1.24 MB (02.39%) -- text_run │ │ │ │ ├──0.92 MB (01.77%) ── interners │ │ │ │ └──0.32 MB (00.62%) ── data-stores │ │ │ └──0.96 MB (01.85%) ++ (15 tiny) │ │ ├───0.95 MB (01.83%) ++ (6 tiny) │ │ ├───0.89 MB (01.71%) ── shader-cache │ │ └───0.79 MB (01.52%) -- resource-cache │ │ ├──0.79 MB (01.52%) ── fonts │ │ └──0.00 MB (00.00%) ++ (3 tiny) │ └───0.00 MB (00.00%) ++ (3 tiny) ├──19.94 MB (38.30%) ── heap-unclassified ├───4.00 MB (07.68%) ── ac2d/heap-resources ├───3.25 MB (06.25%) -- threads │ ├──2.29 MB (04.40%) ++ stacks │ └──0.96 MB (01.85%) -- overhead │ ├──0.91 MB (01.76%) ── kernel │ └──0.05 MB (00.09%) ++ (2 tiny) ├───1.35 MB (02.59%) -- phc │ ├──1.35 MB (02.59%) ── metadata │ └──0.00 MB (00.00%) ── fragmentation └───0.46 MB (00.89%) ++ (9 tiny)

Other Measurements

134,217,727.94 MB (100.0%) -- address-space ├──132,114,625.34 MB (98.43%) ── free(segments=370) ├────2,101,793.05 MB (01.57%) -- reserved │ ├──2,097,077.34 MB (01.56%) ── mapped(segments=14) │ └──────4,715.70 MB (00.00%) ── private(segments=550) └────────1,309.55 MB (00.00%) ++ commit

72.73 MB (100.0%) -- decommitted └──72.73 MB (100.0%) -- heap

  ├──61.39 MB (84.41%) ── decommitted
  └──11.34 MB (15.59%) -- unused-pages
     ├──11.34 MB (15.59%) ── fresh
     └───0.00 MB (00.00%) ── madvised

304.62 MB (100.0%) -- gfx └──304.62 MB (100.0%) -- webrender

  ├──302.79 MB (99.40%) -- textures
  │  ├──192.00 MB (63.03%) ── render-targets
  │  ├───44.00 MB (14.44%) -- texture-cache
  │  │   ├──44.00 MB (14.44%) ── atlas
  │  │   └───0.00 MB (00.00%) ── standalone
  │  ├───32.00 MB (10.51%) ── depth-targets
  │  ├───18.93 MB (06.21%) ── swap-chains
  │  ├───11.25 MB (03.69%) ── upload-staging-textures
  │  └────4.61 MB (01.51%) ++ (5 tiny)
  └────1.83 MB (00.60%) ++ images/mapped_from_owner

128.00 MB (100.0%) -- heap ├───72.73 MB (56.82%) -- decommitted │ ├──61.39 MB (47.96%) ── unmapped │ └──11.34 MB (08.86%) -- unused-pages │ ├──11.34 MB (08.86%) ── fresh │ └───0.00 MB (00.00%) ── madvised └───55.27 MB (43.18%) -- committed

   ├──48.27 MB (37.71%) ── allocated
   ├───3.95 MB (03.09%) -- bin-unused
   │   ├──2.35 MB (01.84%) ++ (44 tiny)
   │   └──1.60 MB (01.25%) ── bin-1024
   ├───1.96 MB (01.53%) ── bookkeeping
   └───1.09 MB (00.85%) ── unused-pages/dirty

41 (100.0%) -- ipc-channels ├───7 (17.07%) ── PCompositorManagerParent ├───7 (17.07%) ── PImageBridgeParent ├───7 (17.07%) ── PVRManagerParent ├───6 (14.63%) ── PRemoteDecoderManagerParent ├───5 (12.20%) ── PAPZInputBridgeParent ├───4 (09.76%) ── PCanvasManagerParent ├───2 (04.88%) ── PVideoBridgeParent ├───1 (02.44%) ── PGPUParent ├───1 (02.44%) ── PProfilerChild └───1 (02.44%) ── PVsyncBridgeParent

78 (100.0%) -- ipc-channels-peak ├──14 (17.95%) ── PCompositorManagerParent ├──14 (17.95%) ── PImageBridgeParent ├──14 (17.95%) ── PVRManagerParent ├──13 (16.67%) ── PRemoteDecoderManagerParent ├──10 (12.82%) ── PCanvasManagerParent ├───8 (10.26%) ── PAPZInputBridgeParent ├───2 (02.56%) ── PVideoBridgeParent ├───1 (01.28%) ── PGPUParent ├───1 (01.28%) ── PProfilerChild └───1 (01.28%) ── PVsyncBridgeParent

25 (100.0%) -- observer-service └──25 (100.0%) -- referent

  ├──22 (88.00%) ── strong
  └───3 (12.00%) -- weak
      ├──3 (12.00%) ── alive
      └──0 (00.00%) ── dead

1 (100.0%) -- preference-service └──1 (100.0%) -- referent

  ├──1 (100.0%) ── strong
  └──0 (00.00%) ++ weak
               1 ── ac2d-context-count
               0 ── ac2d-target-count
         4.00 MB ── ac2d-texture-memory
         0.00 MB ── gfx-d2d-vram-draw-target
         0.00 MB ── gfx-d2d-vram-source-surface
       462.87 MB ── gpu-committed
     6,829.63 MB ── gpu-dedicated
         0.62 MB ── gpu-shared
        48.27 MB ── heap-allocated
         1.00 MB ── heap-chunksize
       686.68 MB ── private
       558.20 MB ── resident
       481.14 MB ── resident-unique
        44.44 MB ── system-heap-allocated
 2,103,102.59 MB ── vsize

129,414,503.44 MB ── vsize-max-contiguous

               0 ── webgl-buffer-count
         0.00 MB ── webgl-buffer-memory
               0 ── webgl-context-count
               0 ── webgl-renderbuffer-count
         0.00 MB ── webgl-renderbuffer-memory
               0 ── webgl-shader-count
               0 ── webgl-texture-count
         0.00 MB ── webgl-texture-memory

End of GPU (pid 10124)

====================

This just continues, when gpu-dedicated hits ~7.8 GB, Firefox becomes unusable, and rest of the system appears a bit sluggish.

I can't say if this is regression, since I haven't been watching YT at all until recently.

Windows 10 Pro 22H2 Firefox Nightly 64 bit EN, 139.0a1 build 20250405211119 Checked in my normal everyday profile and with new clean one. GPU acceleration enabled, all video codecs installed.

Hardware: Core i7 9750H, 32 GB DDR4, GeForce 4060 8 GB. this is NOT a RAM issue, RAM usage never goes above ~19 GB on this PC.

It happens a tad bit slower than before, when I had 1060 6 GB.

I also noticed it on my laptop with integrated Intel GPU, but I don't have it anymore, so can't really check.

For little more than year I've been battling with an issue, where after watching Youtube for hour or two, and having 5-6 open tabs with videos, at some point Firefox would crawl to a stop with UI going down to 1-2 fps, and finally inability to click anything, until I restarted the browser. Only today I have pieced together, that when it happens, task manager shows almost all of my GPU's VRAM (Dedicated GPU memory) is claimed by Firefox. It looks that there is a GPU memory leak somewhere. How should I go on about this? If it's a bug, what I should include in a report? Here is ~2 hrs of progress, PC and Firefox specs at the end: This is after watching one ~20 minute video: ================================ GPU (pid 10124) Explicit Allocations 0.24 MB (100.0%) -- explicit └──0.24 MB (100.0%) -- gfx/webrender/gpu-cache ├──0.24 MB (100.0%) ── metadata └──0.00 MB (00.00%) ── cpu-mirror Other Measurements 0.78 MB (100.0%) -- gfx └──0.78 MB (100.0%) ── webrender/textures/gpu-cache 265.84 MB ── gpu-committed 1,246.20 MB ── gpu-dedicated 11.72 MB ── gpu-shared End of GPU (pid 10124) ================================ After second video, another 15 minutes later: ================================ GPU (pid 10124) Explicit Allocations 0.29 MB (100.0%) -- explicit └──0.29 MB (100.0%) -- gfx/webrender/gpu-cache ├──0.29 MB (100.0%) ── metadata └──0.00 MB (00.00%) ── cpu-mirror Other Measurements 0.63 MB (100.0%) -- gfx └──0.63 MB (100.0%) ── webrender/textures/gpu-cache 277.34 MB ── gpu-committed 1,737.74 MB ── gpu-dedicated 16.55 MB ── gpu-shared End of GPU (pid 10124) ================================ After opening and CLOSING several youtube tabs, withplaying 10-15 seconds of each video: ================================ GPU (pid 10124) Explicit Allocations 0.19 MB (100.0%) -- explicit └──0.19 MB (100.0%) -- gfx/webrender/gpu-cache ├──0.19 MB (100.0%) ── metadata └──0.00 MB (00.00%) ── cpu-mirror Other Measurements 0.78 MB (100.0%) -- gfx └──0.78 MB (100.0%) ── webrender/textures/gpu-cache 390.18 MB ── gpu-committed 4,339.20 MB ── gpu-dedicated 4.27 MB ── gpu-shared End of GPU (pid 10124) ================================ Here, I closed all tabs except about:memory. After another ~60 minutes of random browsing non-video pages (literally text pages and Google Docs): ================================ GPU (pid 10124) Explicit Allocations 0.25 MB (100.0%) -- explicit └──0.25 MB (100.0%) -- gfx/webrender/gpu-cache ├──0.25 MB (100.0%) ── metadata └──0.00 MB (00.00%) ── cpu-mirror Other Measurements 0.94 MB (100.0%) -- gfx └──0.94 MB (100.0%) ── webrender/textures/gpu-cache 324.99 MB ── gpu-committed 4,396.21 MB ── gpu-dedicated 0.62 MB ── gpu-shared End of GPU (pid 10124) ================================ It never goes down. Then, I opened played for few seconds, stopped and closed (including tabs) ~15 youtube videos: ================================ GPU (pid 10124) Explicit Allocations 52.08 MB (100.0%) -- explicit ├──23.07 MB (44.29%) -- gfx │ ├──23.07 MB (44.29%) -- webrender │ │ ├──10.00 MB (19.20%) ── upload-stagin-memory │ │ ├───6.74 MB (12.95%) ── texture-cache/structures │ │ ├───3.69 MB (07.08%) -- interning │ │ │ ├──1.48 MB (02.84%) -- clip │ │ │ │ ├──0.78 MB (01.50%) ── interners │ │ │ │ └──0.70 MB (01.34%) ── data-stores │ │ │ ├──1.24 MB (02.39%) -- text_run │ │ │ │ ├──0.92 MB (01.77%) ── interners │ │ │ │ └──0.32 MB (00.62%) ── data-stores │ │ │ └──0.96 MB (01.85%) ++ (15 tiny) │ │ ├───0.95 MB (01.83%) ++ (6 tiny) │ │ ├───0.89 MB (01.71%) ── shader-cache │ │ └───0.79 MB (01.52%) -- resource-cache │ │ ├──0.79 MB (01.52%) ── fonts │ │ └──0.00 MB (00.00%) ++ (3 tiny) │ └───0.00 MB (00.00%) ++ (3 tiny) ├──19.94 MB (38.30%) ── heap-unclassified ├───4.00 MB (07.68%) ── ac2d/heap-resources ├───3.25 MB (06.25%) -- threads │ ├──2.29 MB (04.40%) ++ stacks │ └──0.96 MB (01.85%) -- overhead │ ├──0.91 MB (01.76%) ── kernel │ └──0.05 MB (00.09%) ++ (2 tiny) ├───1.35 MB (02.59%) -- phc │ ├──1.35 MB (02.59%) ── metadata │ └──0.00 MB (00.00%) ── fragmentation └───0.46 MB (00.89%) ++ (9 tiny) Other Measurements 134,217,727.94 MB (100.0%) -- address-space ├──132,114,625.34 MB (98.43%) ── free(segments=370) ├────2,101,793.05 MB (01.57%) -- reserved │ ├──2,097,077.34 MB (01.56%) ── mapped(segments=14) │ └──────4,715.70 MB (00.00%) ── private(segments=550) └────────1,309.55 MB (00.00%) ++ commit 72.73 MB (100.0%) -- decommitted └──72.73 MB (100.0%) -- heap ├──61.39 MB (84.41%) ── decommitted └──11.34 MB (15.59%) -- unused-pages ├──11.34 MB (15.59%) ── fresh └───0.00 MB (00.00%) ── madvised 304.62 MB (100.0%) -- gfx └──304.62 MB (100.0%) -- webrender ├──302.79 MB (99.40%) -- textures │ ├──192.00 MB (63.03%) ── render-targets │ ├───44.00 MB (14.44%) -- texture-cache │ │ ├──44.00 MB (14.44%) ── atlas │ │ └───0.00 MB (00.00%) ── standalone │ ├───32.00 MB (10.51%) ── depth-targets │ ├───18.93 MB (06.21%) ── swap-chains │ ├───11.25 MB (03.69%) ── upload-staging-textures │ └────4.61 MB (01.51%) ++ (5 tiny) └────1.83 MB (00.60%) ++ images/mapped_from_owner 128.00 MB (100.0%) -- heap ├───72.73 MB (56.82%) -- decommitted │ ├──61.39 MB (47.96%) ── unmapped │ └──11.34 MB (08.86%) -- unused-pages │ ├──11.34 MB (08.86%) ── fresh │ └───0.00 MB (00.00%) ── madvised └───55.27 MB (43.18%) -- committed ├──48.27 MB (37.71%) ── allocated ├───3.95 MB (03.09%) -- bin-unused │ ├──2.35 MB (01.84%) ++ (44 tiny) │ └──1.60 MB (01.25%) ── bin-1024 ├───1.96 MB (01.53%) ── bookkeeping └───1.09 MB (00.85%) ── unused-pages/dirty 41 (100.0%) -- ipc-channels ├───7 (17.07%) ── PCompositorManagerParent ├───7 (17.07%) ── PImageBridgeParent ├───7 (17.07%) ── PVRManagerParent ├───6 (14.63%) ── PRemoteDecoderManagerParent ├───5 (12.20%) ── PAPZInputBridgeParent ├───4 (09.76%) ── PCanvasManagerParent ├───2 (04.88%) ── PVideoBridgeParent ├───1 (02.44%) ── PGPUParent ├───1 (02.44%) ── PProfilerChild └───1 (02.44%) ── PVsyncBridgeParent 78 (100.0%) -- ipc-channels-peak ├──14 (17.95%) ── PCompositorManagerParent ├──14 (17.95%) ── PImageBridgeParent ├──14 (17.95%) ── PVRManagerParent ├──13 (16.67%) ── PRemoteDecoderManagerParent ├──10 (12.82%) ── PCanvasManagerParent ├───8 (10.26%) ── PAPZInputBridgeParent ├───2 (02.56%) ── PVideoBridgeParent ├───1 (01.28%) ── PGPUParent ├───1 (01.28%) ── PProfilerChild └───1 (01.28%) ── PVsyncBridgeParent 25 (100.0%) -- observer-service └──25 (100.0%) -- referent ├──22 (88.00%) ── strong └───3 (12.00%) -- weak ├──3 (12.00%) ── alive └──0 (00.00%) ── dead 1 (100.0%) -- preference-service └──1 (100.0%) -- referent ├──1 (100.0%) ── strong └──0 (00.00%) ++ weak 1 ── ac2d-context-count 0 ── ac2d-target-count 4.00 MB ── ac2d-texture-memory 0.00 MB ── gfx-d2d-vram-draw-target 0.00 MB ── gfx-d2d-vram-source-surface 462.87 MB ── gpu-committed 6,829.63 MB ── gpu-dedicated 0.62 MB ── gpu-shared 48.27 MB ── heap-allocated 1.00 MB ── heap-chunksize 686.68 MB ── private 558.20 MB ── resident 481.14 MB ── resident-unique 44.44 MB ── system-heap-allocated 2,103,102.59 MB ── vsize 129,414,503.44 MB ── vsize-max-contiguous 0 ── webgl-buffer-count 0.00 MB ── webgl-buffer-memory 0 ── webgl-context-count 0 ── webgl-renderbuffer-count 0.00 MB ── webgl-renderbuffer-memory 0 ── webgl-shader-count 0 ── webgl-texture-count 0.00 MB ── webgl-texture-memory End of GPU (pid 10124) ================================ This just continues, when gpu-dedicated hits ~7.8 GB, Firefox becomes unusable, and rest of the system appears a bit sluggish. I can't say if this is regression, since I haven't been watching YT at all until recently. Windows 10 Pro 22H2 Firefox Nightly 64 bit EN, 139.0a1 build 20250405211119 Checked in my normal everyday profile and with new clean one. GPU acceleration enabled, all video codecs installed. Hardware: Core i7 9750H, 32 GB DDR4, GeForce 4060 8 GB. this is NOT a RAM issue, RAM usage never goes above ~19 GB on this PC. It happens a tad bit slower than before, when I had 1060 6 GB. I also noticed it on my laptop with integrated Intel GPU, but I don't have it anymore, so can't really check.

tcobalt द्वारा सम्पादित

You must log in to your account to reply to posts. Please start a new question, if you do not have an account yet.