New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 674816 link

Starred by 3 users

Issue metadata

Status: Archived
Owner: ----
Closed: Feb 2018
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Windows
Pri: 2
Type: Bug



Sign in to add a comment

fillText function of HTML5 Canvas makes memory leak

Reported by hjw0...@gmail.com, Dec 16 2016

Issue description

UserAgent: Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.87 Safari/537.36

Steps to reproduce the problem:
1. call fillText() with requestAnimationFrame
 ( sample file attached)
2. the page closed with memory problem message at chrome

What is the expected behavior?
texts are displayed without memory leak.

What went wrong?
the page closed with memory problem message

Did this work before? N/A 

Chrome version: 55.0.2883.87  Channel: stable
OS Version: 6.1 (Windows 7, Windows Server 2008 R2)
Flash Version: Shockwave Flash 24.0 r0
 
testFillText.html
750 bytes View Download

Comment 1 by tkent@chromium.org, Dec 16 2016

Components: -Blink Blink>Canvas

Comment 2 by hjw0...@gmail.com, Dec 16 2016

If hardware acceleration disabled, chrome memory status was stable with fillText function call.
 
Cc: brajkumar@chromium.org
Labels: Needs-Feedback
Unable to reproduce this issue on Windows-7 & 10 using chrome latest stable M55-55.0.2883.87. By opening the attached test case file testFillText.html observed no memory issues or crashes even the hardware acceleration is enabled. 

Reporter@ - Are you able to reproduce this issue consistently even in incognito mode? Could you please let us know what kind of error message is displayed while closing the page? If any crashes are observed for this issue please provide sample crash ID's from chrome://crashes for further investigation.

Thanks!

Comment 4 by hjw0...@gmail.com, Dec 19 2016

I reproduced this issue.
It takes about 60 minutes from start to crash with memory problem messages.
I attached 4 memory status images from start to crash.
CrashID and chrome information images are attached, too.
All files are zipped a file.

Test System Information.
OS: Windows 7 Enterprise Korean, Service Pack 1, 32bit
CPU: Intel(R) Core(TM) i7-4770 CPU @3.40GHz
Main Memory: 3.17GB

chrome_test.zip
594 KB Download

Comment 5 by hjw0...@gmail.com, Dec 20 2016

chrome://gpu status related

captured Image is attached.
chrome_gpu.JPG
189 KB View Download

Comment 6 by ajha@chromium.org, Dec 20 2016

Labels: M-55 prestable-55.0.2883.87

Comment 7 by hjw0...@gmail.com, Dec 20 2016

I did a incognito mode test.
The same result was reproduced.
Captured images are attached as a zip file.

incognito_mode_test.zip
497 KB Download
Project Member

Comment 8 by sheriffbot@chromium.org, Dec 27 2016

Labels: -Needs-Feedback Needs-Review
Owner: brajkumar@chromium.org
Thank you for providing more feedback. Adding requester "brajkumar@chromium.org" for another review and adding "Needs-Review" label for tracking.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
Components: -Blink>Canvas Internals>Skia
This appears to be a GPU rendering issue because it goes away with GPU disabled.
Owner: ----
As per comment #9 removing myself from owners list.
Labels: -Needs-Review Needs-Feedback
Was unable to reproduce it on Win 10 using 55.0.2883.87.
hjw0511@: COuld you please update the thread according to above comment #9.
Preface.
I just wanted to file a new bug report about the same problem - before I saw this issue. 

Steps to reproduce.
1. Make sure chrome uses GPU hardware acceleration
2. Call fillText() within requestAnimationFrame (refer to attached example)
3. Let the browser tab open/visual so the animation loop is really called for approx 60minutes

Expected.
Texts are displayed without memory increase

What went wrong?
Memory increases (refer to attached screenshots).

Did this work before?
n/a

Additional Notes.
On Edge/Firefox there is no memory leak.
Please let me know if you need any further information. Thanks!

Test environment.
Chrome Version 56.0.2924.87
OS: Windows 7 Professional, 64bit
PC: Intel(R) Core(TM) i5-4200M CPU @2.50

fillTextBug.zip
104 KB Download
Working on a new project, I've came across a similar issue mentioned here. To verify that my issue has the same cause, I've ran the sample uploaded in comment 12 and was able to reproduce it.

My test environment is:
Chrome version: 56.0.2924.87
Chromium Embedded version: 3.2785.1486.g8c4ba9f (Chromium 53.0.2785.116)

OS: Windows 10 1607 (Build 14393.693)
PC: Dell Precision T5810
CPU: Intel Xeon E5-1650 v3
GPU: NVidia Quadro K620
Chipset: Intel C612

Project Member

Comment 14 by sheriffbot@chromium.org, Feb 28 2018

Status: Archived (was: Unconfirmed)
Issue has not been modified or commented on in the last 365 days, please re-open or file a new bug if this is still an issue.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot

Sign in to add a comment