Bug 142133 - Memory leak Incremental rendering on Safari
Summary: Memory leak Incremental rendering on Safari
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: 528+ (Nightly build)
Hardware: Mac (Intel) OS X 10.10
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2015-02-28 11:23 PST by raffa_supernova
Modified: 2015-03-01 17:53 PST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description raffa_supernova 2015-02-28 11:23:59 PST
I'm struggling with a huge memory leak in Safari since I installed Yosemite on my Macbook AIR late 2010 (2GB ram).

The memory leak is pretty evident visiting the Facebook page and simply scrolling the timeline for a while.

- The memory usage from the Facebook tab grows up very quickly and it is never released
- If I reload the page the memory usage increase

The memory usage on the Facebook page starts around 140Mb.

After 3/4 pages scrolled the memory usage is already grew up around 300Mb and more and more simply scrolling the timeline again and again.

- Using the "purge" command doesn't help
- Empty the "Web core cache" or running the "garbage collector" from the Safari's "Debug" menu doesn't help.

I don't have any extensions installed (AdBlock is disabled), except Flashblock.

After 30 minutes of use I need to quit Safari because the memory usage is around 1Gb (only used by the Facebook tab).

- A fresh install of Yosemite didn't help
- Using a new "fresh" OSx user doesn't help.
- Same problem observed using Google Chrome and Opera.

After debugging the Facebook scripts loading, looks like the issue could be related to the images loaded from the timeline always retained from a mysterious reasons.

Looks like the problem is strongly mitigated when I enable from the Safari's Debug menu the option:

"Suppress Incremental Rendering"

Here the detailed version of WebKit:

leaks 2405
Process:         com.apple.WebKit.WebContent [2405]
Path:            /System/Library/Frameworks/WebKit.framework/Versions/A/XPCServices/com.apple.WebKit.WebContent.xpc/Contents/MacOS/com.apple.WebKit.WebContent
Load Address:    0x1087e4000
Identifier:      com.apple.WebKit.WebContent
Version:         10600 (10600.5.6)
Build Info:      WebKit2-7600005006000000~2
Code Type:       X86-64
Parent Process:  ??? [1]

Date/Time:       2015-02-28 19:00:24.607 +0000
OS Version:      Mac OS X 10.10.3 (14D87h)
Report Version:  7
Analysis Tool:   /usr/bin/leak

I'm now using Safari 8.0.5 from OSx 10.10.3 (the beta release). I tried to move on the beta release to see if Apple fixed this issue without luck.
Comment 1 Radar WebKit Bug Importer 2015-03-01 17:53:37 PST
<rdar://problem/20001340>