wails icon indicating copy to clipboard operation
wails copied to clipboard

increase memory consumption (maybe memory leak I don't know)

Open luc-git opened this issue 2 years ago • 2 comments

Description

When I refresh the webpage in windows 11 the ram consumption increases a lot. I think this is because it creates a context each time you refresh and also you need to be careful if you use https://wails.io/docs/reference/options/ OnDomReady because it will trigger the event each time you refresh

To Reproduce

Open the app the right click and click "Refresh" or you can just use "Ctrl + R"

Expected behaviour

I think it shouldn't increase memory consumption

Screenshots

No response

Attempted Fixes

No response

System Details

DEB | Using go webview2loader
Wails CLI v2.5.1

 SUCCESS  Done.

# System

OS           | Windows 10 Pro
Version      | 2009 (Build: 22621)
ID           | 22H2
Go Version   | go1.21.0
Platform     | windows
Architecture | amd64

# Wails

Version | v2.5.1

# Dependencies

Dependency | Package Name | Status    | Version
WebView2   | N/A          | Installed | 116.0.1938.62
Nodejs     | N/A          | Installed | 18.0.0
npm        | N/A          | Installed | 8.6.0
*upx       | N/A          | Available |
*nsis      | N/A          | Available |
* - Optional Dependency

# Diagnosis

Your system is ready for Wails development!
Optional package(s) installation details:
  - upx : Available at https://upx.github.io/
  - nsis : More info at https://wails.io/docs/guides/windows-installer/

 ♥   If Wails is useful to you or your company, please consider sponsoring the project:
https://github.com/sponsors/leaanthony

Additional context

No response

luc-git avatar Sep 01 '23 21:09 luc-git

Thanks for opening this. What do you mean by context?

leaanthony avatar Sep 01 '23 21:09 leaanthony

By context I mean the "context" from the the standard lib "context" used in wails

luc-git avatar Sep 22 '23 19:09 luc-git