wailsapp/wails

Memory leak

tianya66 opened this issue · 0 comments

Description

go触发事件 前端接收 然后内存一直上涨
#3553 (comment)

To Reproduce

  1. go添加一个方法 给前端调用 方法内容是用for循环触发一个事件 中间停顿1秒
    2.前端添加一个按钮 调用go绑定的方法触发事件 前端接收该事件
  2. 启动程序 点击按钮 多点击几次 内存暴涨

Expected behaviour

内存一直上涨

Screenshots

image

Attempted Fixes

No response

System Details

# Wails
Version | v2.9.2

# System
┌─────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
| OS           | Windows 10 Pro                                                                                   |
| Version      | 2009 (Build: 19045)                                                                              |
| ID           | 22H2                                                                                             |
| Go Version   | go1.23.4                                                                                         |
| Platform     | windows                                                                                          |
| Architecture | amd64                                                                                            |
| CPU          | 12th Gen Intel(R) Core(TM) i5-12490F                                                             |
| GPU 1        | OrayIddDriver Device (Shanghai Best Oray Information Technology Co., Ltd.) - Driver: 17.1.58.818 |
| GPU 2        | NVIDIA GeForce RTX 4070 Ti (NVIDIA) - Driver: 31.0.15.4629                                       |
| Memory       | 32GB                                                                                             |
└─────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘

# Dependencies
┌───────────────────────────────────────────────────────┐
| Dependency | Package Name | Status    | Version       |
| WebView2   | N/A          | Installed | 131.0.2903.70 |
| Nodejs     | N/A          | Installed | 20.16.0       |
| npm        | N/A          | Installed | 10.8.1        |
| *upx       | N/A          | Available |               |
| *nsis      | N/A          | Available |               |
└─────────────── * - Optional Dependency ───────────────┘

Additional context

No response