Skip to content

Windows: Electron apps crash at launch (exit_code=-2147483645) when Indirect Display Driver adapters are present #54552

Open

Description

@tiancaixiaoxi

Preflight Checklist

Electron Version

44.0.0, 43.6.0, 41.0.3 (three separate apps, all affected)

What operating system(s) are you using?

Windows

Operating System Version

Windows 11 Home (Chinese), 10.0.26200 (build 26200)

What arch are you using?

x64

Last Known Working Electron version

Unknown — the machine has had two Indirect Display Driver (IDD) adapters installed for a long time.

Does the issue also appear in Chromium / Google Chrome?

Yes

Expected Behavior

Electron apps should launch on a Windows machine whose display topology contains Indirect Display Driver (IDD) adapters — the virtual monitors used by remote-desktop, screen-streaming, and Android-emulator software. These adapters are a normal, permanent part of many Windows setups (remote work, VDI, streaming, emulators) and are usually the only way a remote user can see the screen at all.

Electron should either pick the real hardware adapter, or fall back to software rendering. It should not terminate the whole browser process.

Actual Behavior

Three unrelated Electron apps crash on launch, with no window and no error dialog. All three produce the identical fatal sequence:

ERROR:content\browser\gpu\gpu_process_host.cc:1108] GPU process exited unexpectedly: exit_code=-2147483645
WARNING:content\browser\gpu\gpu_process_host.cc:1558] The GPU process has crashed 1 time(s)
... (repeats)
WARNING:content\browser\gpu\gpu_process_host.cc:1558] The GPU process has crashed 6 time(s)
FATAL:content\browser\gpu\gpu_data_manager_impl_private.cc:416] GPU process isn't usable. Goodbye.

exit_code=-2147483645 is 0x80000003 (STATUS_BREAKPOINT). After 6 attempts the app exits immediately.

Affected apps on this machine (all reproducible, all with a clean profile):

App Electron Chrome Result
Kimi Desktop 43.6.0 150.0.7871.250 0 processes, exits after 6 GPU crashes
ZCode 41.0.3 146.0.7680.80 exits after 6 GPU crashes
DeepSeek Harness 44.0.0 152.0.7977.54 exits after 6 GPU crashes

Because three different Electron majors (41 / 43 / 44) fail identically, this is not a version regression — it is a persistent condition of this machine's display topology.

The only way to launch any of them is --no-sandbox, which works 3/3 times on all three apps. Every other GPU-related flag fails:

Flag ZCode DeepSeek Harness
--no-sandbox 3/3 works 3/3 works
--disable-gpu-sandbox 0/3 0/3
--disable-gpu 0/3 0/3
--disable-gpu-compositing 0/3 0/3
--use-angle=d3d11 / d3d11on12 / gl / swiftshader 0/3 0/3
--in-process-gpu 0/3 0/3

--no-sandbox is not an acceptable fix for end users: it disables the renderer sandbox and is not something an end user can set on a packaged app anyway.

Testcase Gist URL

No response

Additional Information

This is not the DACL / zombie-SID bug

I am aware of #51761, #52098, #52255 and #51770. Those are caused by orphaned S-1-15-2-* ACEs in the app directory's DACL, and are fixed by icacls /reset on the install folder. That fix does nothing here. I verified:

  • The install directories (D:\software\Kimi, D:\software\ZCode, D:\software\DeepSeek Harness) contain no orphaned or unresolvable SIDs.
  • icacls reports no "Unknown Account" entries in any of the three install trees.
  • The crash is 100% reproducible and 100% deterministic; it is not intermittent.
  • The identical failure occurs on apps installed under D:\software\ (not %LOCALAPPDATA%\Programs), so the MSIX/AppX ACE-leak scenario does not apply.
  • The failing process is the GPU process, and it fails after successfully creating at least one adapter — meaning the sandbox launched, but the GPU init inside it did not survive.

Machine hardware

  • CPU: Intel(R) Core(TM) Ultra 5 125H (14 cores / 18 threads, Meteor Lake)
  • iGPU: Intel(R) Arc(TM) Graphics — PCI\VEN_8086&DEV_7D55&SUBSYS_3E7219E5&REV_08, driver 31.0.101.5382
  • Display adapters present (Get-CimInstance Win32_VideoController):
# Name PNP Device ID Driver
0 wjIddDriver Device ROOT\DISPLAY\0000 9.22.56.244
1 Intel(R) Arc(TM) Graphics PCI\VEN_8086&DEV_7D55... 31.0.101.5382
2 GameViewer Virtual Display Adapter ROOT\DISPLAY\0001 15.6.5.199

Note that both IDD adapters enumerate before the real Intel adapter in the Display device class, and they are enumerated on ROOT\DISPLAY\* rather than on the PCI bus.

Why the display topology matters

Both non-hardware adapters are genuine Microsoft Indirect Display Drivers (IDD) built on the UMDF / IddCx framework. From GameViewerIddDriver.inf (shipped by the streaming app):

Class = Display
ClassGUID = {4D36E968-E325-11CE-BFC1-08002BE10318}
[Standard.NTamd64.10.0...22000]
%DeviceName%=MyDevice_Install_WIN11, Root\GameViewerIddDriver   ; ROOT bus, not PCI

[MyDevice_HardwareDeviceSettings]
HKR,, "UpperFilters",  %REG_MULTI_SZ%, "IndirectKmd"            ; <- Microsoft IDD upper filter
HKR, "WUDF", "DeviceGroupId", %REG_SZ%, "IddDriverGroup"

[MyDevice_Install.NT.Wdf]
UmdfService=GameViewerIddDriver,IddDriver_Install
UmdfExtensions = IddCx0102                                      ; <- IddCx indirect display framework

These adapters are dynamic and hot-pluggable: the kernel PnP log shows the ROOT\DISPLAY\0000 node being created, torn down and re-created by user-mode software:

System log, Microsoft-Windows-Kernel-PnP:
[09/28/2026 22:31:08] ID=225  Application \Device\HarddiskVolume4\software\leidian\wujie\bin\wujie.exe (PID 25212)
                     "stopped to remove or eject device" ROOT\DISPLAY\0000
[09/28/2026 18:34:34] ID=219  Driver \Driver\WUDFRd failed to load. Device: ROOT\DISPLAY\0000
                     status: 0xC0000365

So these display devices appear, disappear and fail to re-initialize while the session is live. An Electron app launching during or after such a transition sees an unstable adapter list.

Why I believe the GPU process dies rather than falling back

The LOG(FATAL) in gpu_data_manager_impl_private.cc is only reached once FallBackToNextGpuMode() reports that the fallback stack is exhausted. On Windows GpuProcessHost::GetFallbackCrashLimit() is a hard-coded 3, and the stack is HARDWARE → DISPLAY_COMPOSITOR → SOFTWARE_GL. Here the GPU process dies 6 times before the fatal, i.e. it crashes again after every single fallback, including the software path. That points at something that is not "the hardware adapter is bad", but "the GPU-side sandbox/init cannot complete in this display environment at all".

--no-sandbox working while --disable-gpu-sandbox does not is also informative: --disable-gpu-sandbox leaves the GPU process running with the renderer sandbox settings (kNoSandbox vs kDisableGpuSandbox are distinct switches in sandbox/policy/switches.cc). The fact that the app comes up only when the whole sandbox is off suggests the failure happens during GPU-process startup, before or outside the GPU sandbox is even the deciding factor.

In-depth investigation

Adapter enumeration has no IDD / software filter. CollectDriverInfoD3D() in gpu/config/gpu_info_collector_win.cc walks DXGI adapters with a plain loop and assigns the first one as the primary GPU:

for (i = 0; SUCCEEDED(dxgi_factory->EnumAdapters(i, &dxgi_adapter)); i++) {
  DXGI_ADAPTER_DESC desc;
  CHECK_EQ(S_OK, dxgi_adapter->GetDesc(&desc));
  GPUInfo::GPUDevice device;
  device.vendor_id = desc.VendorId;
  device.device_id = desc.DeviceId;
  // ...
  if (i == 0) {
    gpu_info->gpu = device;
  } else {
    gpu_info->secondary_gpus.push_back(device);
  }
}

There is no check of DXGI_ADAPTER_FLAG_SOFTWARE, no check of D3DKMT_ADAPTERTYPE.IndirectDisplayDevice, and no preference for PCI-attached adapters. Whatever DXGI returns at index 0 becomes gpu_info->gpu. On this machine index 0 (by Display-class enumeration order) is an IDD on the ROOT bus.

Chromium is aware that non-PCI display devices exist — bug 973695 ("InitializeAndStartSandbox uses the wrong information to lookup devices in fallback databases") was specifically about "Scenarios such as Windows Virtual Desktop, Remote Desktop and VM connection are not PCI displays" being mis-parsed. That issue fixed the parsing of the device id string, but the enumeration still has no IDD/software classification step.

On the ANGLE side the same gap exists: third_party/angle/src/gpu_info_util/SystemInfo_win.cpp also enumerates DXGI adapters without filtering IDD devices.

Environment note (why this is a real-world blocker, not an exotic config). This machine is being controlled remotely. The IDD adapters are the remote-session display: disabling them costs the user control of the machine entirely. Asking the user to uninstall the IDD drivers to make Electron launch is not a workaround — it is a data-loss / lock-out risk. This is the reason such setups are common and will become more common, and it is the reason the fallback chain needs to survive an unexpected adapter rather than kill the browser.

Steps to reproduce the crash on this machine (no special tooling required):

  1. Install any of the three apps above on a machine that has at least one IDD adapter on the ROOT bus.
  2. Launch the app with no command-line flags.
  3. Observe: no window appears; the process exits within ~1 second; running from a shell with --enable-logging=stderr prints the six exit_code=-2147483645 lines followed by GPU process isn't usable. Goodbye.
  4. Relaunch with --no-sandbox → the app starts normally.

What a fix could look like (for discussion, not a demand):

  1. When selecting the primary GPU in CollectDriverInfoD3D(), skip adapters flagged DXGI_ADAPTER_FLAG_SOFTWARE and adapters whose PnP device is on the ROOT bus / whose D3DKMT_ADAPTERTYPE.IndirectDisplayDevice bit is set, unless no other adapter exists.
  2. Make the GPU fallback chain resilient: if every mode including software rendering is exhausted, prefer to start with GPU disabled (and log loudly) over terminating the browser process. Users strongly prefer a degraded window over no window.
  3. At minimum, surface the real reason. GPU process isn't usable. Goodbye. gives users nothing actionable; the actual GPU-init failure is swallowed before the LOG(FATAL).

Activity

  1. moved this to 👀 Unsorted Items in 44-x-yon Sep 29, 2026
  2. tiancaixiaoxi commented on Sep 29, 2026

    @tiancaixiaoxi
    Author

    I've since found two more pieces of evidence that strengthen this report, and one important correction to my own flag matrix.

    1. Independent corroboration: the same signature, the same virtual adapter

    While searching, I found an unrelated app reporting the identical failure with the same virtual display adapter present:

    • App crashes on startup with virtual display adapters — "GPU process isn't usable" fathah/hermes-desktop#592 (2026-06-08) — "App crashes on startup with virtual display adapters — GPU process isn't usable"
      • Environment: Windows 10 Pro 22H2 (19045), Intel UHD Graphics 630 + Todesk Virtual Display Adapter + GameViewer Virtual Display Adapter
      • Same exit_code=-2147483645, same 0x80000003 (STATUS_BREAKPOINT), same FATAL ... GPU process isn't usable. Goodbye.
      • Same conclusion: "the standard Electron command-line switches for disabling GPU acceleration are not sufficient to work around this particular issue with virtual display adapters"

    That report is still open with zero maintainer response and no labels after ~4 months. It is the same GameViewer Virtual Display Adapter (driver 15.6.5.199) that is on my machine, and Todesk is the same class of IDD as my wjIddDriver. Two unrelated apps, two different machines, same adapter vendor, same crash — this is a reproducible class, not a one-off.

    2. Important correction: the sandbox is a second, independent factor

    The hermes-desktop report states that --disable-gpu --disable-software-rasterizer --no-sandbox still crashed for them. That contradicts a simple reading of my own matrix, so I want to be precise about what I actually observed:

    Launched with Result on my machine
    --no-sandbox alone ✅ works (3/3, on all three apps)
    --no-sandbox combined with --disable-gpu ❌ crashes
    --disable-gpu-sandbox alone ❌ crashes

    So --no-sandbox alone recovers the apps, but --no-sandbox plus a GPU-disabling flag does not. That is consistent with hermes-desktop#592 seeing failures, since every combination they tried included a GPU-disabling flag.

    This tells us there are two independent failures layered on top of each other:

    1. Something about the IDD adapters in the display topology, and
    2. The GPU-process startup path itself, which does not survive even in software mode.

    Fixing only one of these will not be enough, which is probably why this has stayed unfixed. I've adjusted my original repro steps accordingly: to reproduce cleanly, launch with no flags at all, not with a GPU-disabling flag.

    3. Chromium has known about the IDD case since 2019 — and it was only half-fixed

    Two historical Chromium bugs describe exactly this class of device, and neither resulted in the enumeration being fixed:

    • crbug.com/973695 — "InitializeAndStartSandbox uses the wrong information to lookup devices in fallback databases", reported by a Microsoft engineer (2019-06-13). Key quotes:

      "if you use Chromium in a remote desktop session, you will receive RdpIdd_IndirectDisplay"

      "the device returned from EnumDisplayDevices may not correspond to an PCI device"

      "Note that this problem affects the GPU accelerated feature of Windows Virtual Desktop."

      The proposed solution was to enumerate via DXGI, then resolve the adapter's device path through DisplayConfigGetDeviceInfo / SetupDiOpenDeviceInterfaceW instead of string-parsing a device id. The DXGI half was adopted; the adapter classification (is this an IDD? is it on the PCI bus?) was not.

    • crbug.com/671539 — patch "Fix a bug that GPU process may fail to launch in RDP sessions", which found that EnumDisplayDevices() can return only the mirror driver RDPUDD Chained DD with an empty DeviceID and no physical display device, "which will cause the failure of launching the GPU process."

    So the pattern — an indirect/virtual display device causes GPU-process startup to fail — has been observed and papered over twice, but never structurally addressed. My machine has two such adapters (wjIddDriver, GameViewer) enumerated ahead of the real PCI adapter, which is the same situation with more of the trigger present.

    4. Why the IDD adapters cannot simply be removed

    Both of my IDD adapters are load-bearing for how the machine is used:

    • wjIddDriver is created and torn down dynamically by an Android-emulator component (wujie.exe), per the kernel PnP log in the original report.
    • GameViewer Virtual Display Adapter is the display used by the remote-control session. This machine is being controlled remotely; disabling the virtual display ends the remote session. Telling users to uninstall the IDD driver to make an app launch is not a workaround, it's removing their ability to use the machine.

    That is the core argument for handling this inside Chromium/Electron rather than in user config.

  3. added
    blocked/upstream ❌
    on Oct 12, 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

    43-x-y44-x-yblocked/upstream ❌bug 🪲platform/windows

    Type

    Projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions