Bug 160650 - Memory leak when displaying large files from filing system
Summary: Memory leak when displaying large files from filing system
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Images (show other bugs)
Version: WebKit Nightly Build
Hardware: Mac Unspecified
: P2 Major
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-08-07 17:00 PDT by Wayne Stewart
Modified: 2016-08-08 20:28 PDT (History)
4 users (show)

See Also:


Attachments
Screenshot of Activity Monitor (79.86 KB, image/png)
2016-08-07 17:00 PDT, Wayne Stewart
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Wayne Stewart 2016-08-07 17:00:55 PDT
Created attachment 285542 [details]
Screenshot of Activity Monitor

Summary:
If you display several large files in Safari/Webkit loaded from the local filing system (e.g.. file:///Users/waynestewart/Desktop/sample_1.jpg) the memory for these is not released if you load a subsequent image in the same tab/window or reread the image.
The memory is released when you close the tab/window however.

Steps to Reproduce:
1. Get a large image or pdf (note pdfs are better as you can get some really large ones!) from finder and load in Webkit
2. Drag another image or pdf into the address area so it loads
3. Repeat with more images/pfds
4. Alternatively you can just have one image/pdf and hit reload (Command R) multiple times.
5. Look at Memory usage in Activity Monitor

Expected Results:
Memory usage should be appropriate for the currently loaded image

Actual Results:
Memory usage continues to increase

Version:
OS X 10.11.5 (15F34)

Configuration:
16GB RAM System Ram
Comment 1 Alexey Proskuryakov 2016-08-08 18:03:10 PDT
Does this reproduce for you with Safari Technology Preview?
Comment 2 Wayne Stewart 2016-08-08 20:28:24 PDT
Yes, the problem exists in Safari, webkit and Safari technology preview.
It also exists in an embedded web area that is included in the 4D database (www.4d.com) which is how we discovered it.