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
- Navigate to the application directory in a terminal.
- Run
.\Sparkle.exe.
- Observe the console output.
- 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
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
.\Sparkle.exe.Sparkle log output
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