wails icon indicating copy to clipboard operation
wails copied to clipboard

Windows10 system wails

Open cnchef opened this issue 10 months ago • 3 comments

Description

The UI window will crash and exit abnormally even if it communicates with the backend once or has not communicated for a period of time, prompting to restart the program

In debugging mode, the log shows that the startup command wails dev - v2 only has the following information

The following error is displayed:

ERR | WebView2 process failed with kind 0

To Reproduce

Go Wails Framework System Environment: Windows 10 (amd64) Go Version: go1.21.4 Wails Version: v2.9.2

The project was created using commands from the official Wails documentation, such as:

To generate a Svelte project with JavaScript: wails init -n myproject -t svelte

If you prefer TypeScript: wails init -n myproject -t svelte-ts Regardless of the template used (Svelte, React, Vue, Preact, Lit, Vanilla), the UI crashes and exits shortly after launching the project.

The following error is displayed:

ERR | WebView2 process failed with kind 0 wails-bug1

wails-bug

Expected behaviour

The UI window will crash and exit abnormally even if it communicates with the backend once or has not communicated for a period of time, prompting to restart the program

In debugging mode, the log shows that the startup command wails dev - v2 only has the following information

The following error is displayed:

ERR | WebView2 process failed with kind 0

Screenshots

No response

Attempted Fixes

No response

System Details

wails doctor

# Wails
Version | v2.9.2

# System
┌───────────────────────────────────────────────────────────────────────┐
| OS           | Windows 10 Pro                                         |
| Version      | 2009 (Build: 19045)                                    |
| ID           | 22H2                                                   |
| Go Version   | go1.21.4                                               |
| Platform     | windows                                                |
| Architecture | amd64                                                  |
| CPU          | Intel(R) Core(TM) i5-6500 CPU @ 3.20GHz                |
| GPU          | NVIDIA GeForce GT 730 (NVIDIA) - Driver: 27.21.14.5671 |
| Memory       | 24GB                                                   |
└───────────────────────────────────────────────────────────────────────┘

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

# Diagnosis
Optional package(s) installation details:
  - upx : Available at https://upx.github.io/
  - nsis : More info at https://wails.io/docs/guides/windows-installer/

 SUCCESS  Your system is ready for Wails development!

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

Additional context

No response

cnchef avatar Jan 13 '25 08:01 cnchef