nw.js icon indicating copy to clipboard operation
nw.js copied to clipboard

Memory leak with mixed context?

Open marcusand opened this issue 4 years ago • 1 comments

NWJS Version : v0.54.0-sdk Operating System : MacOS 11.4

Expected behavior

nwjs Helper (Renderer) not using more and more memory each refresh.

Actual behavior

with each refresh through the devTools the nwjs renderer process is using more memory according to the MacOS Activity Monitor.

How to reproduce

The setup is super simple. The issue seems to lay somewhere in the --mixed-context because without the flag I am not seeing a memory leak.

package.json:

{
  "name": "nw-memory-leak",
  "version": "1.0.0",
  "description": "",
  "main": "index.html",
  "scripts": {
    "test": "echo \"Error: no test specified\" && exit 1"
  },
  "author": "",
  "license": "ISC",
  "chromium-args": "--mixed-context"
}

index.html:

<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>test</title>
</head>
<body>
  
</body>
</html>

marcusand avatar Jun 22 '21 17:06 marcusand

nobody answer....

foolzhang avatar May 08 '25 06:05 foolzhang