Skip to content

fix: spellcheck failing to initialize on Linux - #52712

Merged
MarshallOfSound merged 1 commit into
electron:mainfrom
kethinov:fix/spellcheck-init-race-50327
Aug 8, 2026
Merged

MarshallOfSound merged 1 commit into
electron:mainfrom
kethinov:fix/spellcheck-init-race-50327

Conversation

@kethinov

@kethinov kethinov commented Aug 8, 2026 •

Copy link
Copy Markdown
Contributor

Description of Change

I traced the cause of Electron bug #50327 to Chromium bug https://issues.chromium.org/issues/543082396. I submitted a patch to Chromium to fix the bug https://chromium-review.googlesource.com/c/chromium/src/+/8206965 which was merged.

This PR backports that fix https://crrev.com/f7aaf9a09a06e77292ea077bcd1527034d02f449 to Electron.

The Electron patch is marked for removal once Chromium rolls past the upstream revision.

Fixes #50327

Testing

I'm interested in this primarily to fix element-hq/element-web#34139 but it should fix the same issue in other Electron apps too.

I verified by creating a small bug reduction Electron app that mirrors the Element Electron app's startup sequence, reading params.misspelledWord from context-menu. On each branch I built twice from the same tree, differing only in the one-line predicate:

Branch Chromium with fix predicate reverted
main 153.0.7982.0 PASS FAIL
44-x-y 152.0.7977.30 PASS FAIL
43-x-y 150.0.7871.224 PASS FAIL

spec/spellchecker-spec.ts passes on Linux (22/22, remainder skipped).

This is intended for backport to 44-x-y and 43-x-y (semver/patch). I verified the patch applies and the fix works on both, per the table above.

Checklist

Release Notes

Notes: Fixed spellcheck not initializing on Linux when the dictionary was already cached from a previous run.

@kethinov
kethinov requested a review from a team as a code owner August 8, 2026 03:56
@electron-cation electron-cation Bot added the new-pr 🌱 PR opened recently label Aug 8, 2026
@github-actions

github-actions Bot commented Aug 8, 2026

Copy link
Copy Markdown
Contributor

⚠️ This PR contains unsigned commits. This repository enforces commit signatures
for all incoming PRs. To get your PR merged, please sign those commits
(git rebase --exec 'git commit -S --amend --no-edit -n' @{upstream}) and force push them to this branch
(git push --force-with-lease)

For more information on signing commits, see GitHub's documentation on Telling Git about your signing key.

@github-actions github-actions Bot added the needs-signed-commits Currently some or all of the commits in this PR are not signed label Aug 8, 2026
@kethinov
kethinov force-pushed the fix/spellcheck-init-race-50327 branch from 6dc97da to 4285340 Compare August 8, 2026 03:58
@github-actions github-actions Bot removed the needs-signed-commits Currently some or all of the commits in this PR are not signed label Aug 8, 2026
@dsanders11 dsanders11 added target/43-x-y PR should also be added to the "43-x-y" branch. target/44-x-y PR should also be added to the "44-x-y" branch. semver/patch backwards-compatible bug fixes labels Aug 8, 2026
@MarshallOfSound
MarshallOfSound merged commit 6bfb5cf into electron:main Aug 8, 2026
90 checks passed
@release-clerk

release-clerk Bot commented Aug 8, 2026

Copy link
Copy Markdown

Release Notes Persisted

Fixed spellcheck not initializing on Linux when the dictionary was already cached from a previous run.

@trop

trop Bot commented Aug 8, 2026

Copy link
Copy Markdown
Contributor

I have automatically backported this PR to "44-x-y", please check out #52716

@trop

trop Bot commented Aug 8, 2026

Copy link
Copy Markdown
Contributor

I have automatically backported this PR to "43-x-y", please check out #52717

@trop trop Bot added in-flight/44-x-y in-flight/43-x-y merged/44-x-y PR was merged to the "44-x-y" branch. and removed target/44-x-y PR should also be added to the "44-x-y" branch. target/43-x-y PR should also be added to the "43-x-y" branch. in-flight/44-x-y labels Aug 8, 2026
@trop trop Bot added merged/43-x-y PR was merged to the "43-x-y" branch. and removed in-flight/43-x-y labels Aug 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

45-x-y merged/43-x-y PR was merged to the "43-x-y" branch. merged/44-x-y PR was merged to the "44-x-y" branch. new-pr 🌱 PR opened recently semver/patch backwards-compatible bug fixes

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

Spellcheck inactive after restart when de-DE dictionary cache exists on Linux Spellcheck no longer initialises correctly on Linux (Electron 40+)

3 participants