macOS

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

Environment

Environment

Notarized Electron-based macOS app distributed via built-in auto-update. Repro on multiple Macs running macOS 14.3 with both integrated and discrete GPUs. App uses default BrowserWindow creation, GPU acceleration enabled, and calls no explicit app.disableHardwareAcceleration() at startup.

Symptoms

Symptoms

After the auto-updater installs and the app restarts, the main window opens showing a white/blank content area. Menu bar and application controls respond, renderer process appears in Activity Monitor and is not crashed, and devtools (when attached) show DOM elements present but the visual surface is white.

Observations

Observations

Launching the same build manually without auto-update rarely shows the issue. Starting with --disable-gpu or calling app.disableHardwareAcceleration() before creating BrowserWindow prevents the white screen and the page paints correctly. Forcibly resizing or toggling color profile sometimes triggers a repaint. Console logs do not show renderer crashes; enabling --enable-logging yields GPU-process messages that suggest compositor did not present a frame.

Already attempted

Already attempted

Cleared Electron cache and app user data directory, tried creating BrowserWindow with show:false then win.show() after 'ready-to-show', added a small setTimeout before showing window — mixed results. Updated Electron in dev to latest minor and reproduced. Tried forcing a CSS repaint and sending win.webContents.reload(), which sometimes recovers after manual intervention. No consistent app crash logs.

Question

Question

What causes the renderer to stop painting after auto-update restart on macOS, and how can I reliably ensure windows render after update without forcing software rendering by default?

COMMUNITY RESPONSES

Verified community troubleshooting

0 replies

No answers yet..

Showing 0 of 0 community responses
AI DIAGNOSTICS

Incident analysis

Updated 4w ago• Trouble ID

Most likely 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%

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.

Suggested Fixes

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.
Diagnostic step 2
Quick verification: launch the app with --disable-gpu. If that fixes the blank window, the issue is GPU/compositor related.
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.