FULL AI ANALYSIS

Electron app shows blank white window after auto-update restart on macOS 14.3 (renderer alive but never paints)

Generated Oct 28, 2026, 9:44:48 AM

Analysis summary

This looks like a compositor or GPU initialization race on macOS triggered by the update/restart sequence. The fact disabling GPU fixes it suggests the Metal/Compositor path is implicated: either GPU process isn't initialized correctly post-update, the NSView backing layer isn't ready when Electron shows the window, or code-signing/entitlement changes from the update interfere with the GPU process sandbox. A timing variant (window shown before the GPU-backed layer is attached) can cause a white surface until a redraw. Intermittent recovery via resize supports a paint/timing issue rather than DOM or renderer crash.

Possible causes

GPU/Metal compositor initialization race after auto-update restart: BrowserWindow is shown before the macOS backing layer / GPU process is ready, resulting in no frames being presented.

60%

GPU process blocked by sandbox/entitlements or code-signing state immediately after an auto-update (app re-launch) causing compositor to be unusable until manual trigger.

45%

Corrupted GPU state or cached compositor assets following in-place update — a cached resource prevents correct swapchain/presentation until restarted with cleared caches.

20%

Electron/Chromium bug in the Metal renderer path on the specific macOS GPU driver version causing occasional failure to present frames from the renderer.

15%

Suggested fixes

1

Diagnostic step 1

Reproduce with logging: start the app with --enable-logging --v=1 and capture Console.app logs and GPU-process messages to see compositor errors.

2

Diagnostic step 2

Quick verification: launch the app with --disable-gpu. If that fixes the blank window, the issue is GPU/compositor related.

3

Diagnostic step 3

As a safe application-side mitigation, call app.disableHardwareAcceleration() before creating any BrowserWindow to force software rendering and confirm it removes the regression.

4

Diagnostic step 4

If you need GPU: delay showing the window until 'ready-to-show' and, optionally, add a short setTimeout (50–150ms) before win.show(); also call win.webContents.invalidate() / win.webContents.reloadIgnoringCache() if the first paint fails.

5

Diagnostic step 5

Collect per-restart repro info (Console logs, GPU service logs, macOS crash reports) and file a bug with Electron/Apple if reproducible; avoid disabling offloads or modifying system drivers on user machines.