Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Memory leak when using offscreen window from a renderer #20559

Closed
3 tasks done
summeroff opened this issue Oct 14, 2019 · 1 comment
Closed
3 tasks done

Memory leak when using offscreen window from a renderer #20559

summeroff opened this issue Oct 14, 2019 · 1 comment

Comments

@summeroff
Copy link
Contributor

summeroff commented Oct 14, 2019

Preflight Checklist

  • I have read the Contributing Guidelines for this project.
  • I agree to follow the Code of Conduct that this project adheres to.
  • I have searched the issue tracker for an issue that matches the one I want to file, without success.

Issue Details

  • Electron Version:
    • start from v6.0.0 , also reproduced on v6.0.12 and v7.0.0-beta.6.
  • Operating System:
    • Windows 10 (1903 build 18362.418)
  • Last Known Working Electron version:
    • v5.0.11 not leak for me.

Expected Behavior

Memory usage stay not grow with time.

Actual Behavior

Electron continues to allocate memory till system have no more free ram.

To Reproduce

There is small electron app that show memory leak.
https://github.com/summeroff/electron_remote_offscreen_memory_leak
It based on electron quick start example app.
Most changes In renderer.js.
Code creates BrowserWindow with offscreen true. And subscribe to paint callback. Callback may do nothing.
Also loadUrl with some page that constantly update to induce paint events.

disableHardwareAcceleration() has no effect on memory leak for me.
There is no memory leak if code moved from renderer.js to main.js.

Screenshots

offscreen-memory-leak

Additional Information

@electron-triage
Copy link

The Electron version reported on this issue is no longer supported. See our supported versions documentation.

If this is still reproducible on a supported version, please open a new issue with any other new information that a maintainer should know.

Thank you for taking the time to report this issue and helping to make Electron better! Your help is appreciated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
6.1.x
Unsorted Issues
7.2.x
Unsorted Issues
Development

No branches or pull requests

3 participants