Bug 11289 - REGRESSION: Canvas with large height uses lots of memory, computer almost stops responding
Summary: REGRESSION: Canvas with large height uses lots of memory, computer almost sto...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: 420+
Hardware: Mac OS X 10.4
: P1 Normal
Assignee: Nobody
URL:
Keywords: InRadar, Regression
Depends on:
Blocks:
 
Reported: 2006-10-14 01:03 PDT by jonathanjohnsson
Modified: 2007-03-06 20:45 PST (History)
1 user (show)

See Also:


Attachments
Test case (24 bytes, text/html)
2006-10-14 01:04 PDT, jonathanjohnsson
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description jonathanjohnsson 2006-10-14 01:03:28 PDT
<canvas height=1000000> makes WebKit use lots of memory. At least on my computer, that means lots of  paging (swapping(?)) which almost brings the computer to a halt, beachballing. The mouse starts to move jerky, etc.

WebKit eventually recovers, but it takes some minutes, paging all the time (~1000 pageins almost every second in top, for example).

I'm not completely sure this should be considered bug, but it might, and at least now this behaviour is noted and known.
Comment 1 jonathanjohnsson 2006-10-14 01:04:06 PDT
Created attachment 11086 [details]
Test case
Comment 2 Dave Hyatt 2006-10-14 01:27:16 PDT
We should clearly cap the size of the buffer to some reasonable amount.
Comment 3 Dave Hyatt 2006-10-14 01:27:45 PDT
Making P1, since this is an easy way to destroy a browsing session by a Web page.
Comment 4 jonathanjohnsson 2006-10-14 01:32:40 PDT
This is a regression from released Safari.
Comment 5 Stephanie Lewis 2006-11-08 17:29:50 PST
radar 4827378
Comment 6 Sam Weinig 2007-03-06 20:45:17 PST
This seems to have been fixed with r19876 <http://trac.webkit.org/projects/webkit/changeset/19876> Though it does seem that multiple large canvases could still cause a slow down.