Skip to content

fix: crash with objectTemplate exhaustion from sending ipc messages - #53420

Merged
MarshallOfSound merged 1 commit into
43-x-yfrom
trop/43-x-y-bp-fix-crash-with-objecttemplate-exhaustion-from-sending-ipc-messages-1788375397254
Sep 2, 2026
Merged

MarshallOfSound merged 1 commit into
43-x-yfrom
trop/43-x-y-bp-fix-crash-with-objecttemplate-exhaustion-from-sending-ipc-messages-1788375397254

Conversation

@trop

@trop trop Bot commented Sep 2, 2026

Copy link
Copy Markdown
Contributor

Backport of #53398

See that PR for details.

Notes: Fixed application crash after a large number of IPC messages from renderers.

@MarshallOfSound
MarshallOfSound enabled auto-merge (squash) September 2, 2026 18:57
@trop trop Bot added 43-x-y backport This is a backport PR semver/patch backwards-compatible bug fixes labels Sep 2, 2026
@MarshallOfSound
MarshallOfSound merged commit 6b17814 into 43-x-y Sep 2, 2026
96 checks passed
@MarshallOfSound
MarshallOfSound deleted the trop/43-x-y-bp-fix-crash-with-objecttemplate-exhaustion-from-sending-ipc-messages-1788375397254 branch September 2, 2026 20:56
@release-clerk

release-clerk Bot commented Sep 2, 2026

Copy link
Copy Markdown

Release Notes Persisted

Fixed application crash after a large number of IPC messages from renderers.

timche added a commit to zoidsh/meru that referenced this pull request Sep 11, 2026
Moves Electron from 43.5.1 to 43.7.0, across 43.6.0 and 43.7.0. Chromium
stays at 150.0.7871.250 with backported ANGLE, Chromium, Skia, V8 and
PDFium fixes on top, and Node goes from 24.19.0 to 24.21.0. No breaking
changes are declared in either release, and the version bump is the whole
diff.

Four fixes land in paths Meru runs and that no test here could have
reached. A crash after a large number of IPC messages from renderers
(electron/electron#53420), which is V8 object-template exhaustion and
exactly the shape Meru's per-account, per-view IPC has over the life of the
app. A Linux crash when `process.env` is written while another thread reads
it, plus a memory leak when a worker thread exits (#53510). A Windows crash
when a file dialog is shown for a window that is closing (#53584), which is
the download save path. And an intermittent Windows access violation on an
ASAR integrity violation, now a clean exit code 1 (#53456), on the updater
path alongside the `ValidateIntegrityOrDie` fix taken in 43.5.1.

`setDisplayMediaRequestHandler` also stops crashing when the granted frame
has been destroyed (#53671). Meru's handler in `account.ts` opens a picker
window and calls back only when the user chooses, so the requesting Meet
frame can be long gone by then; such a request now fails with
`INVALID_STATE` rather than resolving against a null capturer. Smaller and
user-visible: a renderer crash printing from an iframe (#53761), and the
DevTools Security panel's View certificate button, Ctrl+wheel zoom inside
DevTools and DevTools shortcuts such as F8 all working again (#53631).

The rest of the range was read against the code rather than assumed, and
none of it reaches Meru. File System Access permission scoping (#53694):
`fileSystem` is not in the request handler's allow list in `account.ts`, so
those requests are already denied. `getUserMedia` no longer accepting
WebContents source ids for `chromeMediaSource: 'desktop'` (#53707): only
screen and window ids are passed, from `desktopCapturer.getSources`.
`nodeIntegrationInWorker` scoping to frames with Node integration (#53712)
and the `<webview>` `allowpopups` and IPC-validation hardening (#53726,
#53718): neither preference is set and there is no `<webview>` anywhere.
The same-process `window.open()` contextIsolation crash (#53540) and the
`menu.popup` offscreen crash (#53432): nothing sets `contextIsolation` or
uses offscreen rendering. The `webContents` `console-message` listener fix
after destroy (#53496): the only `console-message` listener is on
`session.serviceWorkers` in `electron-extensions/extensions.ts`, a
different emitter. `node::ObjectWrap` aborting under Node 24.19 and later
(#53393): there are no runtime `dependencies` and so no native addons. The
trailing `frame` argument on `will-download` and `preconnect` (#53704) is
additive and Meru registers neither.

`setPermissionCheckHandler` receiving the requesting frame's origin for
`hid` and `usb` checks from a subframe (#53689) is the one change that
reaches the code, and it makes the extension carve-out work as its comment
claims: an extension page in a subframe asking for `hid` was checked
against the top-level origin, missed `isLoadedExtensionUrl` and fell
through to `return true`; it is now checked against its own origin and
denied. A tightening, in the direction the code already intended.
renovate Bot added a commit to cigaleapp/cigale that referenced this pull request Sep 13, 2026
##### [v44.2.0](https://github.com/electron/electron/releases/tag/v44.2.0)

### Release Notes for v44.2.0

#### Fixes

- Fixed a pending read on a `net.request` chunked upload stream inside a protocol handler never settling when the request failed or was aborted. [#53373](electron/electron#53373) <sup>(Also in [43](electron/electron#53374), [45](https://github.com/electron/electron/pull/53368))</sup>
- Fixed a potential crash when using `menu.popup` with a frame from an offscreen rendered window. [#53362](electron/electron#53362) <sup>(Also in [43](https://github.com/electron/electron/pull/53432))</sup>
- Fixed an intermittent crash (access violation) on Windows when an ASAR integrity violation is detected, so the process now exits with code 1 as intended. [#53455](electron/electron#53455) <sup>(Also in [43](electron/electron#53456), [45](https://github.com/electron/electron/pull/53438))</sup>
- Fixed application crash after a large number of IPC messages from renderers. [#53417](electron/electron#53417) <sup>(Also in [42](electron/electron#53419), [43](electron/electron#53420), [45](https://github.com/electron/electron/pull/53418))</sup>
- Fixed native addons deriving from `node::ObjectWrap` aborting during garbage collection on Node.js 24.19.0 and later. [#53392](electron/electron#53392) <sup>(Also in [42](electron/electron#53394), [43](electron/electron#53393), [45](https://github.com/electron/electron/pull/53391))</sup>

#### Other Changes

- Backported fixes from upstream ANGLE, Chromium, Skia and V8. [#53479](electron/electron#53479)
- Improved throughput of responses that `protocol.handle` handlers return straight from `net.fetch`. [#53378](electron/electron#53378)
- Updated Chromium to 152.0.7977.76. [#53382](electron/electron#53382)
- Updated Node.js to v24.20.0. [#53250](electron/electron#53250)
##### [v44.1.1](https://github.com/electron/electron/releases/tag/v44.1.1)

### Release Notes for v44.1.1

#### Fixes

- Fixed `chrome.tabs.query()` returning tab `url` and `title` to extensions without the `tabs` permission or host access, aligning with `tabs.get`. [#53354](electron/electron#53354) <sup>(Also in [42](electron/electron#53355), [43](electron/electron#53356), [45](https://github.com/electron/electron/pull/53353))</sup>
- Fixed a renderer crash when an array with a throwing property getter is passed across `contextBridge`, and several main/utility-process crashes when option objects passed to Electron APIs contain throwing accessors or Proxy traps. [#53331](electron/electron#53331) <sup>(Also in [42](electron/electron#53329), [43](https://github.com/electron/electron/pull/53330))</sup>
- Fixed an intermittent crash at startup on Linux caused by a race between Pango and the main thread initializing fontconfig. [#53340](electron/electron#53340) <sup>(Also in [43](electron/electron#53339), [45](https://github.com/electron/electron/pull/53338))</sup>
- Fixed an issue where an exception thrown by a property getter on an object passed through `contextBridge` was swallowed instead of being thrown back to the caller. [#53335](electron/electron#53335) <sup>(Also in [43](electron/electron#53334), [45](https://github.com/electron/electron/pull/53297))</sup>
- Fixed main process crashes when navigating to `http://accessibility/` or `http://devtools/`, when an extension background page used `navigator.mediaDevices`, and when calling `SerialPort.forget()` for a disconnected device. [#53333](electron/electron#53333) <sup>(Also in [43](electron/electron#53332), [45](https://github.com/electron/electron/pull/53325))</sup>
- Fixed the PDF viewer failing to save an edited PDF with `NotAllowedError: Third party iframes are not allowed to show a file picker`. [#53328](electron/electron#53328) <sup>(Also in [43](electron/electron#53327), [45](https://github.com/electron/electron/pull/53326))</sup>
gwennlbh pushed a commit to cigaleapp/cigale that referenced this pull request Sep 14, 2026
##### [v44.2.0](https://github.com/electron/electron/releases/tag/v44.2.0)

### Release Notes for v44.2.0

#### Fixes

- Fixed a pending read on a `net.request` chunked upload stream inside a protocol handler never settling when the request failed or was aborted. [#53373](electron/electron#53373) <sup>(Also in [43](electron/electron#53374), [45](https://github.com/electron/electron/pull/53368))</sup>
- Fixed a potential crash when using `menu.popup` with a frame from an offscreen rendered window. [#53362](electron/electron#53362) <sup>(Also in [43](https://github.com/electron/electron/pull/53432))</sup>
- Fixed an intermittent crash (access violation) on Windows when an ASAR integrity violation is detected, so the process now exits with code 1 as intended. [#53455](electron/electron#53455) <sup>(Also in [43](electron/electron#53456), [45](https://github.com/electron/electron/pull/53438))</sup>
- Fixed application crash after a large number of IPC messages from renderers. [#53417](electron/electron#53417) <sup>(Also in [42](electron/electron#53419), [43](electron/electron#53420), [45](https://github.com/electron/electron/pull/53418))</sup>
- Fixed native addons deriving from `node::ObjectWrap` aborting during garbage collection on Node.js 24.19.0 and later. [#53392](electron/electron#53392) <sup>(Also in [42](electron/electron#53394), [43](electron/electron#53393), [45](https://github.com/electron/electron/pull/53391))</sup>

#### Other Changes

- Backported fixes from upstream ANGLE, Chromium, Skia and V8. [#53479](electron/electron#53479)
- Improved throughput of responses that `protocol.handle` handlers return straight from `net.fetch`. [#53378](electron/electron#53378)
- Updated Chromium to 152.0.7977.76. [#53382](electron/electron#53382)
- Updated Node.js to v24.20.0. [#53250](electron/electron#53250)
##### [v44.1.1](https://github.com/electron/electron/releases/tag/v44.1.1)

### Release Notes for v44.1.1

#### Fixes

- Fixed `chrome.tabs.query()` returning tab `url` and `title` to extensions without the `tabs` permission or host access, aligning with `tabs.get`. [#53354](electron/electron#53354) <sup>(Also in [42](electron/electron#53355), [43](electron/electron#53356), [45](https://github.com/electron/electron/pull/53353))</sup>
- Fixed a renderer crash when an array with a throwing property getter is passed across `contextBridge`, and several main/utility-process crashes when option objects passed to Electron APIs contain throwing accessors or Proxy traps. [#53331](electron/electron#53331) <sup>(Also in [42](electron/electron#53329), [43](https://github.com/electron/electron/pull/53330))</sup>
- Fixed an intermittent crash at startup on Linux caused by a race between Pango and the main thread initializing fontconfig. [#53340](electron/electron#53340) <sup>(Also in [43](electron/electron#53339), [45](https://github.com/electron/electron/pull/53338))</sup>
- Fixed an issue where an exception thrown by a property getter on an object passed through `contextBridge` was swallowed instead of being thrown back to the caller. [#53335](electron/electron#53335) <sup>(Also in [43](electron/electron#53334), [45](https://github.com/electron/electron/pull/53297))</sup>
- Fixed main process crashes when navigating to `http://accessibility/` or `http://devtools/`, when an extension background page used `navigator.mediaDevices`, and when calling `SerialPort.forget()` for a disconnected device. [#53333](electron/electron#53333) <sup>(Also in [43](electron/electron#53332), [45](https://github.com/electron/electron/pull/53325))</sup>
- Fixed the PDF viewer failing to save an edited PDF with `NotAllowedError: Third party iframes are not allowed to show a file picker`. [#53328](electron/electron#53328) <sup>(Also in [43](electron/electron#53327), [45](https://github.com/electron/electron/pull/53326))</sup>

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

43-x-y backport This is a backport PR semver/patch backwards-compatible bug fixes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant