Closed Bug 602190 Opened 14 years ago Closed 14 years ago

[OpenGL] Memory leak with flash content

Categories

(Core :: Graphics, defect)

x86
Linux
defect
Not set
normal

Tracking

()

RESOLVED WORKSFORME
Tracking Status
blocking2.0 --- -
fennec - ---

People

(Reporter: playwatch, Assigned: karlt)

References

()

Details

User-Agent:       Mozilla/5.0 (X11; Linux i686; rv:2.0b7pre) Gecko/20101006 Firefox/4.0b7pre
Build Identifier: Mozilla/5.0 (X11; Linux i686; rv:2.0b7pre) Gecko/20101006 Firefox/4.0b7pre

Firefox occupies the entire memory

Reproducible: Always

Steps to Reproduce:
1.Go to http://www.divineproject.altervista.org/ with layers.accelerate-all->true
2.Wait till the site is loaded

Actual Results:  
Firefox will eat up the whole RAM and swap

Expected Results:  
Firefox should not occupy the whole ram suddenly

I'll try to find the regression range ASAP.
Version: unspecified → Trunk
blocking2.0: --- → ?
I don't think it blocks, opengl layer acceleration according to mozilla wiki, is not going to be activated by default in firefox 4...
anyway it seems another regression caused by https://bugzilla.mozilla.org/show_bug.cgi?id=598112
> is not going to be activated by default in firefox 4...

On Linux, perhaps.  Is this issue linux-specific, or does it also hit GL layers on Mac?
Blocks: 598112
Yes, I was talking about linux, and I dont't have a Mac to test this
> https://bugzilla.mozilla.org/show_bug.cgi?id=598112

598112 - this is just enabling plugins rendering with layers, and plugin-layers rendering not leaking with non-accelerated environment.
blocking2.0: ? → -
On Linux with layers.accelerate-all=true, FF consumes about 5 times more RSS memory (~150 Mb vs ~800 Mb)
PS. without flash
Confirmed here on Linux x86.

User Agent:
Mozilla/5.0 (X11; Linux i686; rv:2.0b8pre) Gecko/20101014 Firefox/4.0b8pre
Layer acceleration was usable before this bug...
Is this a leak or just excessive memory usage? In other words, if you close the window containing the Flash object, does everything return to normal?
This actually seems like something the mobile people will want fixed, either way.
blocking2.0: - → ?
(In reply to comment #8)
> Is this a leak or just excessive memory usage?
In my case its the second. FF uses >1gig versus ~200Mb without OpenGL (desktop)
(In reply to comment #8)
> Is this a leak or just excessive memory usage? In other words, if you close the
> window containing the Flash object, does everything return to normal?

No, closing the tab just prevented firefox to occupy the whole swap, it does not free the memory.
Someone needs to confirm this before I'll consider blocking.
blocking2.0: ? → ---
We've got three independent reports here.
Status: UNCONFIRMED → NEW
blocking2.0: --- → ?
Ever confirmed: true
(In reply to comment #11)
> No, closing the tab just prevented firefox to occupy the whole swap, it does
> not free the memory.

Just closing a tab might not be enough - what if you close the tab and then kill plugin-container? That should cause any resources used by plugins to be freed up.
(In reply to comment #14)
> (In reply to comment #11)
> > No, closing the tab just prevented firefox to occupy the whole swap, it does
> > not free the memory.
> 
> Just closing a tab might not be enough - what if you close the tab and then
> kill plugin-container? That should cause any resources used by plugins to be
> freed up.

Negative, by killing plugin-container I only managed to make firefox crash the first time. So I tried it again and after successfully killing the container firefox didn't free the ram.I've just forgotten to say that is the firefox process to occupy the ram, not the plugin-container one.
This doesn't block gecko 2.0 since it's linux + OpenGL only, but I'm nominating it for Fennec to see if it affects them. If it does, it should block!
blocking2.0: ? → -
tracking-fennec: --- → ?
Assignee: nobody → b56girard
tracking-fennec: ? → 2.0+
karlt, is this something you can look into?
Assignee: b56girard → nobody
Yes, I can investigate.
I'm not planning to look specifically at this in the next couple of weeks, though I am learning more about the code enabled by bug 598112 while working on other bugs.
Assignee: nobody → karlt
tracking-fennec: 2.0+ → 2.0-
That site don't load on my setup, x86_64 OpenSUSE 11.3 fglrx 10.11 HD6850 adobe linux x64 10.1  using nighly minefield 4.0b8pre

Loading site generate artifacts on flash animations too.
Here is the screenshot
http://img804.imageshack.us/img804/9614/screenshotib.png
(In reply to comment #19)
> That site don't load on my setup, x86_64 OpenSUSE 11.3 fglrx 10.11 HD6850 adobe
> linux x64 10.1  using nighly minefield 4.0b8pre
> 
> Loading site generate artifacts on flash animations too.
> Here is the screenshot
> http://img804.imageshack.us/img804/9614/screenshotib.png

Could be this bug if you see the artifacts even with layers.accelerate-all set to false https://bugzilla.mozilla.org/show_bug.cgi?id=603397.
Nop I use 64bit flash and don't have ndiswrapper plugin. Artifacts seen on just accelerate-all = true state. No problem on accelerate-all = false.
(In reply to comment #21)
> Nop I use 64bit flash and don't have ndiswrapper plugin. Artifacts seen on just
> accelerate-all = true state. No problem on accelerate-all = false.

Uh, anyway it is not a stable release of flash...you should try with the 10.2 "square" release and see if it happens, I'm not seeing any artifacts with the 32 bit release.
I can't reproduce anymore this bug on the URL of this bug, anyway Firefox barely responds to inputs, like it does with layer acceleration enabled on windows xp...I'll try to see if some other flash animations trigger this bug.
Ok, marking as wfm...
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.