wails icon indicating copy to clipboard operation
wails copied to clipboard

[v2] MacOS - When the app is in the background and then reopened, sometimes it shows a blank screen.

Open GuoTengda1993 opened this issue 1 month ago • 6 comments

Description

go 1.25, vue3 + element-plus

I make a httpproxy app, can show traffic in a table page.

I use an EventsOn to reload table data:

EventsOn("reloadFlowList", (_) => {
    queryFlowAll()
})
  1. When the app is running, the wails web process is consuming an excessive amount of memory. Image
  2. When the app is in the background and then reopened, sometimes it shows a blank screen. At this moment, the wails web process was killed by OS. Image

I reduce the probability of blank screen occurrence by stop event push when background, but blank screen still happened after put app to background for a long time.

To Reproduce

When the app is in the background and then reopened, sometimes it shows a blank screen.

Expected behaviour

App is OK.

Screenshots

No response

Attempted Fixes

No response

System Details

# Wails
Version | v2.11.0


# System
┌────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
| OS           | MacOS                                                                                                                       |
| Version      | 15.6.1                                                                                                                      |
| ID           | 24G90                                                                                                                       |
| Branding     |                                                                                                                             |
| Go Version   | go1.25.4                                                                                                                    |
| Platform     | darwin                                                                                                                      |
| Architecture | arm64                                                                                                                       |
| CPU 1        | Apple M4 Pro                                                                                                                |
| CPU 2        | Apple M4 Pro                                                                                                                |
| GPU          | Chipset Model: Apple M4 Pro Type: GPU Bus: Built-In Total Number of Cores: 16 Vendor: Apple (0x106b) Metal Support: Metal 3 |
| Memory       | 24GB                                                                                                                        |
└────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘

# Dependencies
┌────────────────────────────────────────────────────────────────────────┐
| Dependency                | Package Name | Status    | Version         |
| Xcode command line tools  | N/A          | Installed | 2410            |
| Nodejs                    | N/A          | Installed | 24.6.0          |
| npm                       | N/A          | Installed | 11.5.1          |
| *Xcode                    | N/A          | Installed | 26.0.1 (17A400) |
| *upx                      | N/A          | Installed | upx 4.2.4       |
| *nsis                     | N/A          | Available |                 |
|                                                                        |
└─────────────────────── * - Optional Dependency ────────────────────────┘

Additional context

No response

GuoTengda1993 avatar Nov 14 '25 09:11 GuoTengda1993