Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Windows10 system wails #4007

Open
cnchef opened this issue Jan 13, 2025 · 3 comments
Open

Windows10 system wails #4007

cnchef opened this issue Jan 13, 2025 · 3 comments
Labels
Bug Something isn't working

Comments

@cnchef
Copy link

cnchef commented Jan 13, 2025

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 cnchef added the Bug Something isn't working label Jan 13, 2025
@julor
Copy link

julor commented Jan 16, 2025

I encountered the same bug,while updated wails to v2.9.2

@julor
Copy link

julor commented Jan 16, 2025

reduce wails build tools to v2.9.1 will work。

@leaanthony
Copy link
Member

There's been an update to webview to fix this. I'll see if I can get it out this weekend.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants