Skip to content

Memory leak with mixed context? #7746

Open
@marcusand

Description

@marcusand

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>

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions