Skip to content

frame_converter.cc creates a new ObjectTemplate on every IPC call, causing V8 crash after 2²⁸ IPC messages are sent #53380

Closed

Description

@weiblen-sh

Preflight Checklist

Electron Version

44.1.0, 43.5.0, 42.11.0

What operating system(s) are you using?

Windows

Operating System Version

Windows 11 26100.9106

What arch are you using?

x64

Last Known Working Electron version

No response

Does the issue also appear in Chromium / Google Chrome?

No

Expected Behavior

Electron's ipcRenderer API is not subject to a maximum number of IPC messages sent in a single launch of the process

Actual Behavior

Currently the 2²⁸th message sent from a renderer to main will result in an application crash. I have confirmed this on both MacOS and Windows hosts, and have no reason to believe that Linux would behave differently either

Testcase Gist URL

https://gist.github.com/weiblen-sh/89de25a5585da083ff86079d299eb92a

Additional Information

This was previously reported under #52343 but closed / dismissed as AI slop. While the report lacked sufficient detail / understanding (calling it AI slop would not be unfair) it actually was correctly pointing to a real bug. From what I was able to gather this change introduced the bug and was fixing build failures caused by the persistent rfh_templ due to enabling the -Wexit-time-destructors build flag.

I used the supplied repro and left it running until the 29-bit BitField space was exhausted with the MSVC debugger attached and sure enough this crash manifests at precisely the 2²⁹th instantiated ObjectTemplate:
Image

I wish I had a faster way to repro this for you but ~80k IPC messages / sec was the peak I could reach which takes ~1 hour to crash.

Activity

  1. added theissue type on Sep 1, 2026
  2. added
    has-repro-gist
    on Sep 1, 2026
  3. moved this to 👀 Unsorted Items in 44-x-yon Sep 1, 2026
  4. YUCLing commented on Sep 1, 2026

    @YUCLing
    Contributor

    Just tested on my machine, and it does crash

    [repro] electron 44.1.0 / v8 15.2.124.18-electron.0
    [repro] serial number limit 536,870,912 (2^29)
    [repro] expected abort near 268,435,456 messages
    [repro] checkpoint file C:\Users\vocal\AppData\Local\Temp\electron-template-serial-repro.json
    [repro] 10,000,000 IPC messages in 162s (61,729 / s)
    [repro] 20,000,000 IPC messages in 339s (58,988 / s)
    [repro] 30,000,000 IPC messages in 490s (61,270 / s)
    [repro] 40,000,000 IPC messages in 610s (65,557 / s)
    [repro] 50,000,000 IPC messages in 729s (68,613 / s)
    [repro] 60,000,000 IPC messages in 858s (69,905 / s)
    [repro] 70,000,000 IPC messages in 973s (71,922 / s)
    [repro] 80,000,000 IPC messages in 1097s (72,923 / s)
    [repro] 90,000,000 IPC messages in 1281s (70,236 / s)
    [repro] 100,000,000 IPC messages in 1424s (70,224 / s)
    [repro] 110,000,000 IPC messages in 1545s (71,187 / s)
    [repro] 120,000,000 IPC messages in 1682s (71,340 / s)
    [repro] 130,000,000 IPC messages in 1858s (69,985 / s)
    [repro] 140,000,000 IPC messages in 1995s (70,184 / s)
    [repro] 150,000,000 IPC messages in 2151s (69,728 / s)
    [repro] 160,000,000 IPC messages in 2306s (69,379 / s)
    [repro] 170,000,000 IPC messages in 2437s (69,745 / s)
    [repro] 180,000,000 IPC messages in 2632s (68,401 / s)
    [repro] 190,000,000 IPC messages in 2784s (68,239 / s)
    [repro] 200,000,000 IPC messages in 2927s (68,339 / s)
    [repro] 210,000,000 IPC messages in 3090s (67,972 / s)
    [repro] 220,000,000 IPC messages in 3263s (67,424 / s)
    [repro] 230,000,000 IPC messages in 3427s (67,112 / s)
    [repro] 240,000,000 IPC messages in 3591s (66,835 / s)
    [repro] 250,000,000 IPC messages in 3758s (66,531 / s)
    [repro] 260,000,000 IPC messages in 3913s (66,439 / s)
    
    Electron exited with code 2147483651.
    

    Here's the content of the checkpoint file.

    {
      "messages": 268365726,
      "rate": 41533.78378378379,
      "elapsedMs": 4040070,
      "limit": 536870912,
      "templatesPerMessage": 2,
      "checkpointPath": "C:\\Users\\vocal\\AppData\\Local\\Temp\\electron-template-serial-repro.json",
      "versions": {
        "electron": "44.1.0",
        "chrome": "152.0.7977.65",
        "v8": "15.2.124.18-electron.0",
        "node": "24.19.0"
      },
      "wroteAt": "2026-09-01T21:38:08.522Z"
    }
    
  5. NaterGator commented on Sep 2, 2026

    @NaterGator
    Contributor

    I was also able to repro this on Ubuntu 24.04.4 LTS under WSL2:

    Console ready 🔬
    Saving files to temp directory...
    Saved files to /tmp/electron-fiddle-2582-DqYqKG4sDoJP
    Electron v44.1.0 started.
    [repro] electron 44.1.0 / v8 15.2.124.18-electron.0
    [repro] serial number limit 536,870,912 (2^29)
    [repro] expected abort near 268,435,456 messages
    [repro] checkpoint file /tmp/electron-template-serial-repro.json
    [repro] 10,000,000 IPC messages in 226s (44,291 / s)
    [repro] 20,000,000 IPC messages in 406s (49,264 / s)
    [repro] 30,000,000 IPC messages in 581s (51,623 / s)
    [repro] 40,000,000 IPC messages in 758s (52,784 / s)
    [repro] 50,000,000 IPC messages in 929s (53,821 / s)
    [repro] 60,000,000 IPC messages in 1102s (54,431 / s)
    [repro] 70,000,000 IPC messages in 1273s (54,996 / s)
    [repro] 80,000,000 IPC messages in 1442s (55,464 / s)
    [repro] 90,000,000 IPC messages in 1613s (55,814 / s)
    [repro] 100,000,000 IPC messages in 1784s (56,061 / s)
    [repro] 110,000,000 IPC messages in 1960s (56,133 / s)
    [repro] 120,000,000 IPC messages in 2133s (56,248 / s)
    [repro] 130,000,000 IPC messages in 2305s (56,398 / s)
    [repro] 140,000,000 IPC messages in 2478s (56,499 / s)
    [repro] 150,000,000 IPC messages in 2649s (56,634 / s)
    [repro] 160,000,000 IPC messages in 2822s (56,694 / s)
    [repro] 170,000,000 IPC messages in 2996s (56,743 / s)
    [repro] 180,000,000 IPC messages in 3164s (56,889 / s)
    [repro] 190,000,000 IPC messages in 3330s (57,064 / s)
    [repro] 200,000,000 IPC messages in 3507s (57,025 / s)
    [repro] 210,000,000 IPC messages in 3674s (57,156 / s)
    [repro] 220,000,000 IPC messages in 3842s (57,269 / s)
    [repro] 230,000,000 IPC messages in 4008s (57,390 / s)
    [repro] 240,000,000 IPC messages in 4173s (57,515 / s)
    [repro] 250,000,000 IPC messages in 4341s (57,594 / s)
    [repro] 260,000,000 IPC messages in 4508s (57,671 / s)
    
    Electron exited with signal SIGTRAP.
    

    Last checkpoint:

    nate@NatesPC:~$ cat /tmp/electron-template-serial-repro.json
    {
      "messages": 268281024,
      "rate": 59190.7514450867,
      "elapsedMs": 4645854,
      "limit": 536870912,
      "templatesPerMessage": 2,
      "checkpointPath": "/tmp/electron-template-serial-repro.json",
      "versions": {
        "electron": "44.1.0",
        "chrome": "152.0.7977.65",
        "v8": "15.2.124.18-electron.0",
        "node": "24.19.0"
      },
      "wroteAt": "2026-09-02T02:43:59.798Z"
    }
    
  6. self-assigned this
    on Sep 2, 2026
  7. deepak1556 commented on Sep 2, 2026

    @deepak1556
    Member

    Thank you for taking the time to create a minimal repro.

  8. moved this from 👀 Unsorted Items to 🔄 Follow Up Before Stable in 44-x-yon Sep 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

42-x-y43-x-y44-x-ybug 🪲crash 💥has-repro-gistplatform/windows

Type

Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions