wailsapp / wails

Create beautiful applications using Go
https://wails.io
MIT License
24.34k stars 1.17k forks source link

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

Open luc-git opened 1 year ago

luc-git commented 1 year ago

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

leaanthony commented 1 year ago

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

luc-git commented 11 months ago

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