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 occurs when I drag the window #1176

Closed
Downtime111 opened this issue Jul 18, 2023 · 3 comments
Closed

Memory leak occurs when I drag the window #1176

Downtime111 opened this issue Jul 18, 2023 · 3 comments
Labels

Comments

@Downtime111
Copy link

Specification

  • pywebview version: 4.2.2
  • operating system: Windows 10
  • web renderer: edgechromium

Description

Thanks for this repository, I can easily create an app with Flask .
I created a frameless window, When I slowly drag, sometimes the memory usage will continue to slowly increase and never decrease again, here is my code:

main_window = webview.create_window(
        'http://127.0.0.1:51818',
        frameless=True,
        easy_drag=True,
)
webview.start()

图片
图片

I can rule out the issue with my app as it is just a simple demo.
And you should have noticed that I did not use the built-in server. Because when I used the built-in server, I created 20 charts on the front-end and retrieved data from the backend every 5 minutes. The occupancy rate of the Python process would increase to around 900MB after running for a day, and this number continued to increase. When I used my own wgsi server, this problem would not occur.

Practicalities

  • NO I am willing to work on this issue myself.

  • NO I am prepared to support this issue financially.

@r0x0r
Copy link
Owner

r0x0r commented Jul 19, 2023

There was an unchecked event listener, which is now properly unregistered. I pushed a fix to the master, please test.

@github-actions
Copy link

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@github-actions github-actions bot added the stale label Aug 19, 2023
@github-actions
Copy link

The message to post on the issue when closing it. If none provided, will not comment when closing an issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants