[Bug]: Preview tabs sometimes log "sandboxed_renderer.bundle.js script failed to run" (Electron #54149, fixed in 44.4.4)
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Newbie friendliness
- 90/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- electron, typescript
- Domain
- desktop
Research direction
Start in apps/desktop/package.json, where the issue reports Electron 44.4.2. Check the upstream Electron release information cited in the issue, update the dependency to a fixed 44.x patch, and repeat preview_open followed by preview_snapshot to confirm the spurious sandboxed_renderer.bundle.js entries no longer appear.
Written by the indexing model from the issue text.
Description
Before submitting
- I searched existing issues and did not find a duplicate.
- I included enough detail to reproduce or investigate the problem.
Area
apps/desktop
Steps to reproduce
- Open a new preview tab on any page, for example
https://example.com, through preview automation (preview_open). - Read the console with
preview_snapshot. - Repeat with new tabs; the errors appear on some of them.
Expected behavior
consoleEntries holds only the page's own messages.
Actual behavior
Some new tabs log the two errors below, and preview_snapshot returns them in consoleEntries. The page itself loads and works. For agents this is noise: an agent checking a page reads consoleEntries and has to work out that these errors are not the page's, which is misleading when the task is to find console errors.
Cause and fix
The errors come from Electron, not from the page: electron/electron#54149. When a DevTools protocol client attaches to a sandboxed frame before its first navigation finishes, the sandbox bundle runs on the initial empty document, which has no startupData. Preview automation is such a client, so the race depends on timing.
Fixed upstream in electron/electron#54155 and released in v44.4.4 ("Fixed a spurious sandboxed_renderer.bundle.js script failed to run console error when DevTools attached to a sandboxed frame before its first navigation"); backports are in v43.7.4 and v42.11.7. Bumping Electron to 44.4.5, the latest 44.x patch, should remove the errors.
Impact
Cosmetic issue
Version or commit
main @ de251fc (electron: 44.4.2 in apps/desktop/package.json); installed 0.0.43-nightly.20260926.2282
Environment
Desktop app on Linux (NixOS, Wayland, niri), Electron 44.4.2
Logs or stack traces
Electron sandboxed_renderer.bundle.js script failed to run
TypeError: Cannot destructure property 'preloadScripts' of 'binding.startupData' as it is null.
at node:electron/js2c/sandbox_bundle:2:124925
at ___electron_webpack_init__ (node:electron/js2c/sandbox_bundle:2:125864)
Screenshots, recordings, or supporting files
No response
Workaround
Ignore these two console entries.
- Dominant language
- TypeScript
- Stars
- 23.6k
- Forks
- 6.1k
- Avg merge
- 8h 51m
- Merged PRs (30d)
- 350
Getting set up
Starts the project's dev container in your browser, under your own GitHub account.
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from pingdotgg/t3code
-
bug via-triage
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
pingdotgg/t3code#14067 · 1 comment ·
Maintainers usually reply within 1 day
-
bug needs-triage
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
pingdotgg/t3code#14066 · 1 comment ·
Maintainers usually reply within 1 day
-
bug via-triage
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
pingdotgg/t3code#13977 · 1 comment ·
Maintainers usually reply within 1 day
-
needs more info via-triage
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
pingdotgg/t3code#13851 · 3 comments ·
Maintainers usually reply within 1 day
-
bug via-triage
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
pingdotgg/t3code#13831 · 1 comment ·
Maintainers usually reply within 1 day
All issues in pingdotgg/t3code
Similar issues
-
documentation
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
inu-appcenter/memorIN-frontend#106 ·
Maintainers usually reply within 1 day
-
kind/bug
Difficulty 1/5 Under an hour Newbie friendliness 88/100
Maintainers usually reply within 7 days
-
[Bug] @deck.gl/arcgis dist import resolves to unpublished @deck.gl/core source path (9.3.11, 9.4.0)Open
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
CSCfi/sd-search-ui#145 ·
Maintainers usually reply within 1 day
-
Add: Cbeebies pl SDOpencheck:passed streams:add
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
Maintainers usually reply within 1 day