Skip to content

[Bug]: Renderer crashes at startup on Windows when Kaspersky restricts an executable it does not recognize #56064

Backlog

Description

@chthollyphile

Preflight Checklist

Electron Version

45.5.0

What operating system(s) are you using?

Windows

Operating System Version

Windows 11 25H2 (build 26200.8457), with Kaspersky Premium 21.27.6.532

What arch are you using?

x64

Last Known Working Electron version

No response

Does the issue also appear in Chromium / Google Chrome?

I don't know how to test

Expected Behavior

The window shows its content.

Actual Behavior

On a machine with Kaspersky installed (default settings), the stock, unmodified electron.exe from electron-v45.5.0-win32-x64.zip opens no window content: the renderer process crashes as soon as it starts.

> electron.exe --enable-logging=stderr
Renderer process crashed - see https://www.electronjs.org/docs/tutorial/application-debugging for potential debugging information.

In an app, render-process-gone fires with reason: 'crashed', exitCode: -2147483645 and an empty webContents.getURL(), again on every reload. The main and GPU processes stay alive. No crash dump is written by crashReporter, and Windows logs no Application Error event.

It happens whenever Kaspersky does not recognize the executable and puts it in its "Low Restricted" group, which is the case for a freshly released Electron binary and for any unsigned app built on Electron. On the same machine the stock 43.7.5 electron.exe, which Kaspersky recognizes and trusts, works; a copy of that file with one byte appended crashes the same way.

Workarounds: --no-sandbox, or adding the executable to Kaspersky's Trusted applications with "Do not monitor application activity".

Testcase Gist URL

No response

Additional Information

No test case is needed: the default app of the stock binary reproduces it.

Steps:

  1. Windows machine with Kaspersky installed, System Watcher on (default).
  2. Unzip electron-v45.5.0-win32-x64.zip and run electron.exe.

The same visible failure can be produced without Kaspersky with electron.exe --enable-features=WinSboxNoFakeGdiInit (checked on 45.5.0 and 43.7.5).

Chrome could not be tested the same way, because Kaspersky recognizes chrome.exe.

Downstream report: chthollyphile/folia-major#1346. This is not #51761 (install-folder ACL): there the GPU process crashes too and the app exits.

In-depth investigation

Stack of the crashing renderer, captured with a debugger on an app built on 43.7.5 (we have no stack from 45.5.0, only the same visible failure):

00 HandleDelayLoadFailureCommon+0xda      chrome/common/win/delay_load_failure_support.cc
01 DelayLoadFailureHook+0x4c
02 _delayLoadHelper2+0x184
03 [USER32.dll delay-load thunk]          GetSystemMetrics
04 uv__winsock_init+0x5f                  libuv src/win/winsock.c: GetSystemMetrics(SM_CLEANBOOT)
05 uv__init+0x31

The delay load of USER32.dll fails with error 1114 (ERROR_DLL_INIT_FAILED). The renderer runs under win32k lockdown, where USER32.dll can only initialize thanks to the sandbox's fake GDI init interceptions. Kaspersky's klhkum hook DLL is loaded in the crashing process, and turning off Kaspersky's System Watcher alone makes the crash go away.

The process dies before Crashpad is attached in PreSandboxStartup, which is why there is no dump.

libuv's uv__winsock_init is what calls into USER32 this early; Chrome's renderer has no such call. Two things on the Electron side would help: not making that call in a win32k-locked process, and failing with something diagnosable when a delay load fails this early.

Activity

  1. github-actions commented on Nov 25, 2026

    @github-actions
    Contributor

    Hello @chthollyphile. Thanks for taking the time to open an issue and helping to make Electron better!

    This issue was automatically closed because its body does not follow any of this repository's issue templates. Maintainers rely on the sections in those templates to triage issues, and issues that are missing them usually cannot be acted upon.

    To get this issue triaged, please either:

  2. changed the title [-][Windows] Renderer aborts at startup (USER32 delay-load fails in `uv__winsock_init`, exit 0x80000003) when Kaspersky System Watcher restricts an executable it does not know[/-] [+][Bug]: Renderer crashes at startup on Windows when Kaspersky restricts an executable it does not recognize[/+] on Nov 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions