Skip to content

[Bug]: Application fails to launch due to GPU process crash (Error Code 18) #104

Description

@Kkthnx

Describe the bug

Bug Report: Application fails to launch due to GPU process crash (Error Code 18)

Description

When attempting to launch Sparkle, the application fails to open a window and terminates silently. Debugging via the terminal reveals a repeated failure to launch the GPU process, eventually leading to a fatal crash of the Chromium engine.

Steps to reproduce

Steps to Reproduce

  1. Navigate to the application directory in a terminal.
  2. Run .\Sparkle.exe.
  3. Observe the console output.
  4. The application logs "Window created successfully" but immediately follows with GPU errors and terminates.

Sparkle log output

## Logs

[Sparkle]: BrowserWindow created
[Sparkle]: Loading renderer from file
[Sparkle]: Window created successfully
[Sparkle]: Auto updater initialized
...
[1944:0408/154541.098:ERROR:content\browser\gpu\gpu_process_host.cc:990] GPU process launch failed: error_code=18
[1944:0408/154541.114:ERROR:content\browser\gpu\gpu_process_host.cc:990] GPU process launch failed: error_code=18
[1944:0408/154541.143:FATAL:content\browser\gpu\gpu_data_manager_impl_private.cc:417] GPU process isn't usable. Goodbye.

Sparkle Version

2.17.0

Windows Version

Windows 11 25H2 (8106)

Severity

Critical (app unusable / crash)

Additional context

Workaround Found
The application launches successfully when using the --no-sandbox flag:
.\Sparkle.exe --no-sandbox

Disabling hardware acceleration via --disable-gpu also prevents the crash, though the sandbox flag appears to be the primary requirement when running under a high-integrity (Administrator) profile.

Technical Analysis
The issue appears to be a conflict between the Electron/Chromium sandbox and Windows' high-integrity process levels. When the app is run as a "True" Administrator, the sandbox often fails to initialize the GPU child process with the required reduced privileges, causing a loop that triggers a FATAL exit.

Before submitting

  • I have checked existing issues to avoid duplicates
  • I am using the latest version of Sparkle
  • I have included logs and steps to reproduce

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions