WebClients icon indicating copy to clipboard operation
WebClients copied to clipboard

Proton Mail desktop crashes at startup: EXCEPTION_ACCESS_VIOLATION at Proton Mail.exe+0x2c730ca on Windows 11 24H2

Open xyz-rainbow opened this issue 3 months ago • 4 comments

Summary

Proton Mail desktop app crashes deterministically at startup on Windows 11 24H2. Crash is version-independent (reproduced on 1.13.0, 1.4.0, and 1.7.1 — all three). GPU driver updates did not help.

Environment

Component Value
OS Windows 11 Pro 24H2 (Build 26200.8328)
CPU Intel Core i7-8700 (Coffee Lake, 6C/12T, 3.20 GHz)
iGPU Intel UHD Graphics 630
dGPU NVIDIA GeForce RTX 2060 (driver 32.0.16.1088, Game Ready 22-07-2026)
Motherboard MSI H310M PRO-M2 PLUS (MS-7C08)
RAM 16 GB
Working Proton Pass 1.36.1 (with GPU flags), Discord, CurseForge

Crash Signature

ExceptionCode:    EXCEPTION_ACCESS_VIOLATION (0xc0000005)
ExceptionAddress: 0x<base> + 0x2c730ca
Module:           Proton Mail.exe (172.1 MB binary)
Section:          .text
Registers:        Rax=2, Rbx=0, Rcx=0, Rdx=4, Rbp=0  (null pointer dereference)
Consistent:       YES — same offset on every crash, every version (1.4.0, 1.7.1)

What Proton Mail reports about GPU (from main.log)

{
  "gpuDevice": [
    {"deviceString": "NVIDIA GeForce RTX 2060", "active": false},
    {"deviceString": "Intel(R) UHD Graphics 630", "active": false},
    {"deviceString": "Microsoft Basic Render Driver", "active": false}
  ],
  "glImplementationParts": "(gl=none,angle=none)",
  "vulkanVersion": "Not supported",
  "inProcessGpu": true
}

All 3 GPUs report active: false. App crashes during loadURL https://mail.proton.me/ in renderer initialization.

Versions Tested

Version Result Binary size
1.13.0 (original) Crash at offset 0x242d60a 208 MB
1.4.0 (forced via Squirrel) Crash at offset 0x2c730ca 172 MB
1.7.1 (latest, forced via Squirrel) Crash at offset 0x2c730ca 172 MB

Steps That Did NOT Fix It

  1. GPU flags: --disable-gpu --disable-gpu-sandbox --disable-software-rasterizer --no-sandbox --disable-d3d11 --use-gl=disabled --in-process-gpu --disable-features=Vulkan,UseSkiaRenderer
  2. Wipe Crashpad, Cache, GPUCache, Local Storage, Session Storage, blob_storage, config.json from Roaming
  3. Forced Squirrel updates: 1.13.0 → 1.4.0 → 1.7.1 (all crash with same offset)
  4. NVIDIA GeForce driver update (32.0.16.1088, latest)
  5. Intel DSA — reports "up to date" but Intel UHD 630 driver remains 31.0.101.2115 from 2022-11-16 (couldn't find newer standalone)

Workaround

Use Proton Mail via mail.proton.me in browser. Works perfectly. Proton Pass desktop, Discord, CurseForge all work with various GPU-disable flag combinations.

Hypothesis

Crash at offset 0x2c730ca in .text section suggests:

  • Proton Mail tries to bind a GPU context during renderer init (loadURL)
  • Binding fails because all GPUs report active: false
  • null pointer / invalid handle dereferenced during error path
  • Likely a CHECK() or DCHECK() macro not designed for "no GPU available" case

Minidumps

Crashpad dumps preserved at: C:\Users\rainb\AppData\Roaming\Proton Mail\Crashpad\reports\

3 dumps available (34 MB each):

  • e936f1ea-a98f-46b9-a551-8b2285708b87.dmp (2026-08-07 23:25:42)
  • 8f516d55-1d12-4a9a-be31-99e9a3a3af81.dmp (2026-08-07 21:51:16)
  • 175ce38a-d974-4696-b5d6-637807b311cd.dmp (2026-08-07 21:54:42)

User willing to provide dumps via Dropbox / similar if needed.

Requested Fix

  1. Better handling of "no GPU active" case (e.g., fallback to SwiftShader / LLVMpipe / software rendering)
  2. Or: allow explicit GPU disabling via app config (similar to Discord's chromiumSwitches in settings.json)
  3. Investigate why all 3 GPUs report active: false on this configuration

User Impact

  • App completely unusable on desktop since 2026-07-22 (last successful use)
  • Forced to use web client as workaround
  • Affects Proton Mail only — Proton Pass, Discord, CurseForge work fine on same system

xyz-rainbow avatar Aug 07 '26 21:08 xyz-rainbow

Update 2026-08-08: Tested Proton Mail 1.9.0 (the latest available version on proton.me CDN, 113 MB nupkg).

Findings:

  • 1.9.0 has updated Chromium: Electron 34.5.8 with Chromium 132.0.6834.210 (vs 1.7.1 which had Electron 29.4.6 + Chromium 122)
  • Crash persists in 1.9.0: EXCEPTION_ACCESS_VIOLATION at Proton Mail.exe+0x293aefa (different offset than 1.7.1, confirming it's a different code path)
  • Bin size grew from 172 MB (1.7.1) to 186 MB (1.9.0), reflecting the Chromium upgrade

For reference, Proton Pass 1.36.1 (also installed on same system) uses Electron 39.5.2 + Chromium 142.0.7444.265 and works perfectly. So the bug is specific to Chromium 122-132 and was likely fixed in Chromium 133+.

The bug seems to be Chromium-related, not Proton-specific code. Proton VPN doesn't use Electron (native Win32 launcher) and also works fine.

Hypothesis: this may be a Chromium GPU init bug triggered when:

  • All 3 GPUs report active: false (NVIDIA RTX 2060, Intel UHD 630, MS Basic Render)
  • App tries to render UI without a GPU context

Proton Pass with newer Chromium doesn't have this issue — likely the Chromium team fixed the "no GPU" fallback path between 132 and 142.

Requested: please bump Electron/Chromium in Proton Mail to a version that includes the Chromium 133+ GPU fallback fix. The fix may already exist in your internal Electron version, you may just need to publish a Proton Mail release that uses it.

xyz-rainbow avatar Aug 07 '26 22:08 xyz-rainbow

Critical Update 2026-08-08: Tested Proton Mail 1.13.3 (latest, auto-updated by Proton Squirrel from my 1.9.0 install).

Chromium version comparison (on this same system):

  • Proton Pass 1.36.1: Electron 39.5.2 + Chromium 142 ✅ works
  • Proton Mail 1.7.1: Electron 29.4.6 + Chromium 122 ❌ crashes
  • Proton Mail 1.9.0: Electron 34.5.8 + Chromium 132 ❌ crashes
  • Proton Mail 1.13.3: Electron 40.10.1 + Chromium 144 ❌ STILL crashes

Key finding: The bug is NOT Chromium version dependent. 1.13.3 has Chromium 144 (newer than Pass!) and still crashes with same EXCEPTION_ACCESS_VIOLATION at Proton Mail.exe+0x244e17a. This rules out a Chromium bug.

Hack attempt: Patched 1.9.0 by NOPing a single null-dereference at offset 0x293a4fa (48 8b 09 → 90 90 90). App launched with empty/blank window — confirms the crash is in renderer init. But content didn't render (probably because NOP broke the actual init path).

Hypothesis refinement: The crash is in Proton Mail's own code, not Chromium. Possibly related to:

  • GPU context binding initialization in main.js (the glImplementationParts: (gl=none,angle=none) log entry)
  • Renderer process startup sequence
  • The 3 GPUs reporting active: false triggers a code path in Proton's app that wasn't designed for this scenario

Proton Pass on the same Chromium 142 doesn't crash — meaning Pass handles the "no GPU" case differently than Mail.

Requesting Proton engineers to:

  1. Compare Mail vs Pass init code paths (since they share Electron/Chromium now)
  2. Add proper fallback handling when GPU init fails
  3. Make the launch flag system similar to Discord (settings.json chromiumSwitches) so users can disable GPU at app level

I have a backup of the patched 1.9.0 binary available if Proton engineers want to inspect it.

xyz-rainbow avatar Aug 07 '26 22:08 xyz-rainbow

Comprehensive Update: All Attempts to Fix Proton Mail 1.13.3 Crash

After Proton's auto-update installed 1.13.3 (Electron 40.10.1 + Chromium 144), I did extensive hacking on the binary to try to make it work. Here's everything that was tried, with full details for Proton engineers.

System Configuration (same as before)

  • Windows 11 Pro 24H2 (Build 26200.8328)
  • CPU: Intel Core i7-8700 (Coffee Lake)
  • dGPU: NVIDIA GeForce RTX 2060 (driver 32.0.16.1088)
  • iGPU: Intel UHD Graphics 630 (driver 31.0.101.2115 — Intel DSA reports up-to-date but no newer standalone driver available)
  • Both GPUs report active: false in Proton Mail GPU info log

Attempt 1: NOP patching the main process null dereference

Crash signature (main process):

EXCEPTION_ACCESS_VIOLATION (0xc0000005) at Proton Mail.exe+0x244e17a (RVA)
Bytes at crash: 48 8b 09 (mov rcx, [rcx]) — null pointer dereference
Followed by: 48 85 c9 (test rcx, rcx), 74 2e (je +0x2e) — null check AFTER the deref (redundant)

Patch applied:

  • File offset 0x244d77a (RVA 0x244e17a): replaced 48 8b 09 with 90 90 90 (3 NOPs)
  • Backup of original: Y:\tmp\Proton Mail.exe.1.13.3.backup

Result: Main process stopped crashing. Window opened with title "Proton Mail".

Attempt 2: Combined patch + GPU flags

Tested flags: --disable-gpu --disable-gpu-sandbox --disable-software-rasterizer --no-sandbox --disable-d3d11 --use-gl=disabled --disable-features=Vulkan,UseSkiaRenderer --in-process-gpu --disable-accelerated-2d-canvas --disable-gpu-compositing

Result: Main process alive, but GPU process child crashes:

App#render-process-gone: { reason: 'launch-failed', exitCode: 11 }
child-process-gone: { type: 'GPU', reason: 'crashed', exitCode: -2147483645 }

The loadURL https://mail.proton.me/ times out after 30s. The error-network.html fallback also fails to load (ERR_FAILED -2).

Attempt 3: Custom blank.html / error-network.html

Replaced both HTML files with a styled launcher page that auto-opens https://mail.proton.me in the user's default browser.

Result: NO effect. Captured a screenshot of the window: completely white. The renderer process dies before loading ANY HTML, including local files via file:/// protocol. The custom HTML never renders.

Root cause analysis

The crash is in TWO different processes:

  1. Main process (Proton Mail.exe):

    • Crash at offset 0x244e17a (mov rcx, [rcx] null deref)
    • Fixable via NOP, but only stops the main process from dying
  2. GPU process child (Electron child process):

    • Crash with STATUS_BREAKPOINT (0x80000003, exitCode -2147483645)
    • This is the SAME crash pattern Discord originally had
    • Cannot be patched from the main exe — it's a separate process
    • Even with all 9 GPU-disable flags, this process still dies

The renderer cannot initialize because the GPU process crashes during boot, which makes any HTML content (custom or otherwise) fail to render.

Versions tested with crashes at these offsets

Version Electron Chromium Bin Size Crash Offset Crash Type
1.7.1 29.4.6 122.0.6261.156 172 MB 0x242d60a AV null deref
1.9.0 34.5.8 132.0.6834.210 186 MB 0x293aefa AV null deref
1.13.3 40.10.1 144.0.7559.236 208 MB 0x244e17a AV null deref

All three versions crash with same AV type. Electron 40 + Chromium 144 also fails — this is NOT a Chromium bug. Confirmed it is Proton Mail-specific code.

What Proton Pass does differently

Same Windows 11 host. Proton Pass 1.36.1 (Electron 39.5.2 + Chromium 142) works perfectly with just --disable-gpu --disable-gpu-sandbox --disable-software-rasterizer --no-sandbox --disable-d3d11 --use-gl=disabled --in-process-gpu flags.

Proton Pass doesn't crash because it handles the "no GPU available" case differently. Proton Mail's renderer initialization code has a null-deref path that Pass doesn't have.

Final state

  • All Proton Mail binaries restored to original (no patches, no custom HTMLs)
  • Proton Mail.exe in app-1.13.3 is original 1.13.3 from Proton's CDN (SHA256: 52f2fc3cfc65470316d7f9c38a1aefa4f1bb23e305bf58bfc1949d105de1c2d9)
  • app.asar is original (923 KB)
  • blank.html and error-network.html are original (112 bytes / 4585 bytes)
  • packages\RELEASES was updated by Proton Squirrel to reflect 1.13.3
  • Issue tracker reference: GitHub #528

Requested from Proton engineers

  1. Diff the renderer initialization code between Pass and Mail — Pass handles "no GPU" gracefully, Mail doesn't
  2. Add null checks before GPU context deref at offset 0x244e17a (file 0x244d77a) in main process
  3. Add proper fallback for when GPU process child crashes — don't just show blank
  4. Update Proton Mail's Squirrel RELEASES feed — currently it only offers 1.0.999 but CDN has up to 1.7.1; Proton seems to have abandoned Mail's auto-update
  5. Consider adding app-level GPU disable config (similar to Discord's chromiumSwitches in settings.json) so users can work around GPU bugs

Workaround for end users: use https://mail.proton.me in browser. No app-level fix exists without Proton code changes.

xyz-rainbow avatar Aug 07 '26 22:08 xyz-rainbow

Additional context: Proton VPN works on this same system

Forgot to mention in my previous comments — for completeness, Proton VPN also works perfectly on this same Windows 11 host with the GPU driver issues we discussed.

Proton VPN details:

  • Installed at: C:\Program Files\Proton\VPN\ProtonVPN.Launcher.exe (17.9 MB)
  • NOT an Electron app — native Win32 launcher + service components
  • All 3 GPUs reporting active: false doesn't affect it (no Chromium GPU process)
  • No flags needed, no workarounds, just works
  • Driver version: 5.1.7

Summary of what works vs what doesn't on this same system:

App Electron/Chromium Works?
Proton VPN None (native Win32) ✅ Yes
Proton Pass 1.36.1 Electron 39.5.2 + Chromium 142.0.7444.265 ✅ Yes (with 7 GPU flags)
Discord 1.0.9249 Chromium 126 ✅ Yes (with 9 flags + chromiumSwitches)
CurseForge Electron ✅ Yes (with 4 flags)
Proton Mail 1.13.3 Electron 40.10.1 + Chromium 144.0.7559.236 ❌ No

Implication: This is a Proton Mail-specific bug, not a Chromium bug or a system-wide GPU problem. Proton VPN proves the system is fine for Proton desktop apps. Proton Pass proves the Chromium version isn't the issue (works fine on older Chromium 142).

The bug is specific to Proton Mail's renderer initialization code. Please diff your Pass vs Mail renderer init paths.

xyz-rainbow avatar Aug 07 '26 22:08 xyz-rainbow