Closed Bug 1188831 Opened 9 years ago Closed 7 years ago

Memory leak with youtube/deezer due to WARP on Windows Server 2012

Categories

(Core :: Graphics, defect)

39 Branch
defect
Not set
normal

Tracking

()

RESOLVED WONTFIX
Tracking Status
platform-rel --- +

People

(Reporter: kevin.guegan, Assigned: bas.schouten)

Details

(Whiteboard: [MemShrink:P2][gfx-noted] [platform-rel-Youtube][platform-rel-Deezer])

Attachments

(4 files)

User Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:39.0) Gecko/20100101 Firefox/39.0
Build ID: 20150630154324

Steps to reproduce:

Open a video on Youtube on a Virtual machine with Hyper-V. Windows Server 2k12 with 10GB Ram.


Actual results:

Memory usage from Firefox in Task Manager keeps growing to many GB (3-4-5). Does it also with Deezer but less (goes up to 2GB). I have tried to reinstall Firefox, remove some plugins like Flash Player, does not change anything.
After 2GB usage for Deezer, modules on the windows start to disappear (black) until Firefox does not answer anymore (end task in Task Manager).
For Youtube, I already ended up with a complete crash of my computer (BSOD), a few weeks ago. Firefox is up to date (no BETA).


Expected results:

In Safe mode it does not exceed 200MB with Deezer and 300MB with Youtube.
Could you create a fresh profile (https://support.mozilla.org/en-US/kb/profile-manager-create-and-remove-firefox-profiles) and save and attach a memory log in about:memory ("measure and save") when the leak is visible, please.
Flags: needinfo?(kevin.guegan)
Attached file memory-report.json.gz
First report
Flags: needinfo?(kevin.guegan)
Attached file memory-report2.json.gz
Second report
Attached file Screenshots.zip
Thanks for your time
Whiteboard: [MemShrink]
In the memory reports the "explicit" measurement is very low (less than 200 MiB) but "private", "resident" and "vsize" are all over 3 GiB. This means that the memory is not on the malloc heap.

For the YouTube problem that makes me immediately think that graphics memory is involved. The fact that it doesn't occur in safe mode means that there's a good chance that hardware acceleration is involved.

For Deezer (which I learned is a music streaming site) I'm not sure if hardware acceleration is relevant.
I looked on Google how to disable Hardware acceleration on FF, worked on both profiles, for both sites.

I was curious to understand what it was and why it was creating this problem. I looked on wikipedia so now I know what it is, but I still don't understand why it creates those leaks. Some explanations would be much appreciated :)

Also, thanks for your help. I have been using Firefox for like 10 years now, I never had a problem, and I really didn't want to leave my pal for **** browsers like Chrome because of this...
Status: UNCONFIRMED → RESOLVED
Closed: 9 years ago
Resolution: --- → WORKSFORME
Not sure we want to close this bug as while you have a work around, the issue is still there.

sounds like right down your alley
Status: RESOLVED → REOPENED
Ever confirmed: true
Flags: needinfo?(matt.woodrow)
Resolution: WORKSFORME → ---
Sure, if I can help in any way, let me know!
Did you observe this issue with previous versions of FF? LIke FF38?
about:support, graphics section would help.
Note that we'd prefer to see about:support with the pref settings that show the bug, not with hardware acceleration disabled/safe mode.

Thanks!
Flags: needinfo?(matt.woodrow)
Attached image support_graphics.jpg
(In reply to Loic from comment #10)
> Did you observe this issue with previous versions of FF? LIke FF38?

To be honest, I started using FF on my VM quite recently, and I can't remember if I did any update or not. But the problem was here when I started. I was using FF on my host before, and was working fine. I checked, and on my host (FF39.0), Hardware Acceleration ON, no leaks. This happens only in my VM.

My VM is run by Hyper-V, it's a Windows Server 2012 R2 64bits with 10GB Ram allocated.

If you need anymore info or screenshot, or whatever, just ask.
Instead of disabling acceleration overall (or going into safe mode), does the problem go away if you change layers.d3d11.disable-warp to true in about:config?
Fixes the problem too
Looks like a duplicate of bug 1179504 then, and disabling WARP on anything less than Windows 8 would take care of it.  If that's the case, it should be fixed on Beta already, and would show up in the release channel in about two weeks.
Status: REOPENED → RESOLVED
Closed: 9 years ago9 years ago
Resolution: --- → DUPLICATE
Windows Server 2012 is the equivalent of Windows 8 in a server version, isn't it? So it shouldn't be "less" than Windows 8, right?
(In reply to Kevin from comment #18)
> Windows Server 2012 is the equivalent of Windows 8 in a server version,
> isn't it? So it shouldn't be "less" than Windows 8, right?

Yeah, you're right. Bas, thoughts? We're going to turn WARP off for versions less than 0x06020000, and Windows Server 2012 is that very version, so it would not get caught.  Which would suggest we have WARP leak not just on 7 and below...
Status: RESOLVED → REOPENED
Flags: needinfo?(bas)
Resolution: DUPLICATE → ---
(In reply to Milan Sreckovic [:milan] from comment #19)
> (In reply to Kevin from comment #18)
> > Windows Server 2012 is the equivalent of Windows 8 in a server version,
> > isn't it? So it shouldn't be "less" than Windows 8, right?
> 
> Yeah, you're right. Bas, thoughts? We're going to turn WARP off for versions
> less than 0x06020000, and Windows Server 2012 is that very version, so it
> would not get caught.  Which would suggest we have WARP leak not just on 7
> and below.

Or we simply leak something and using WARP makes the leak show more actively. Which was always an option, but this bug suggests a little more that it's true.
Flags: needinfo?(bas)
Summary: memory leak youtube/deezer → Memory leak with youtube/deezer due to WARP on Windows Server 2012
(In reply to Bas Schouten (:bas.schouten) from comment #20)

> Or we simply leak something and using WARP makes the leak show more
> actively. Which was always an option, but this bug suggests a little more
> that it's true.

In Safe Mode, Hadrware Acceleration, and WARP disabled, there is no signs of leak at all. I have been looking at the memory usage of Firefox in task manager, keeping youtube open (which is the one loosing the most memory) and it is stable.
Component: Untriaged → Graphics
Product: Firefox → Core
Whiteboard: [MemShrink] → [MemShrink:P2]
Assignee: nobody → bas
We've disabled WARP on windows 7 in bug 1179504.

Where does this leave us for windows server?
Still have a leak, as Windows Server 2012 matches Windows 8 in version number.
Whiteboard: [MemShrink:P2] → [MemShrink:P2][gfx-noted]
Does this still reproduce with recent changes?
platform-rel: --- → ?
May I help you with some tests?
Whiteboard: [MemShrink:P2][gfx-noted] → [MemShrink:P2][gfx-noted] [platform-rel-Youtube]
platform-rel: ? → ---
platform-rel: --- → ?
Whiteboard: [MemShrink:P2][gfx-noted] [platform-rel-Youtube] → [MemShrink:P2][gfx-noted] [platform-rel-Youtube][platform-rel-Deezer]
platform-rel: ? → +
WARP support is off by default, and only available with a force preferences.
Status: REOPENED → RESOLVED
Closed: 9 years ago7 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: