New issue
Advanced search Search tips

Issue 640860 link

Starred by 2 users

Issue metadata

Status: Duplicate
Merged: issue 640578
Owner: ----
Closed: Aug 2016
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 3
Type: Bug



Sign in to add a comment

innerHTML Leak Memory

Reported by wyjj...@gmail.com, Aug 25 2016

Issue description

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

What steps will reproduce the problem?
1. Load index.html
2. Wait and see the memory usage in the task manager

What is the expected result?
Memory used by Chrome  remains relatively stable.

What happens instead?
At beginning of recording the memory usage is about 51Mb, 
after 14 hours the memory usage increase of more than 200Mb,
after 24 hours the memory usage increase of more than 400Mb.

At the same time, I don't have this issue on Firefox.

Chrome version: 52.0.2743.116  Channel: stable
OS Version: 6.1 (Windows 7, Windows Server 2008 R2)

source code:

<!DOCTYPE html>
<html>
<head>
    <style type="text/css">
        #container {
            font-size: 100px;
        }
    </style>
</head>

<body>
    <div id="container"></div>
    <script>
        function update() {
            var num = Math.random() * 9999;
            document.querySelector('#container').innerHTML = '<span>' + num + '</span>';
            requestAnimationFrame(update);
        }
        requestAnimationFrame(update);
    </script>
</body>

</html>

 
index.html
497 bytes View Download

Comment 1 by f...@opera.com, Aug 26 2016

Components: Blink>MemoryAllocator>GarbageCollection
Mergedinto: 640578
Status: Duplicate (was: Unconfirmed)
This issue is same as Bug ID -- 640578. So merging into the same.
Please unmerge if not the same.
Thank You.

Sign in to add a comment