[Bug]: Preview tabs sometimes log "sandboxed_renderer.bundle.js script failed to run" (Electron #54149, fixed in 44.4.4)
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 1/5
- 見積もり時間
- 1時間未満
- 初心者へのやさしさ
- 90/100
- issue の種類
- バグ
- 明瞭さ
- 明確に書かれている
- 活発さ
- 活発
- 技術スタック
- electron, typescript
- 領域
- desktop
調査の方向性
apps/desktop/package.json から始めます。ここでは issue で Electron 44.4.2 が報告されています。issue で引用されている Electron の upstream リリース情報を確認し、依存関係を修正済みの 44.x パッチに更新してから、preview_open に続けて preview_snapshot を再実行し、不要な sandboxed_renderer.bundle.js エントリが表示されなくなったことを確認します。
索引モデルが issue の本文から書いたものです。
説明
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.
- 主要言語
- TypeScript
- スター
- 24k
- フォーク
- 6.3k
- 平均マージ
- 10時間 46分
- マージ済み PR(30日)
- 299
環境構築
このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
pingdotgg/t3code のほかの issue
-
enhancement via-triage
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
pingdotgg/t3code#14541 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
pingdotgg/t3code#14536 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
bug via-triage
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
pingdotgg/t3code#14452 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
メンテナーはふだん 1 日以内に返信
pingdotgg/t3code の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信
-
automated issue report
難易度 1/5 1時間未満 初心者へのやさしさ 68/100
-
documentation
難易度 1/5 1時間未満 初心者へのやさしさ 92/100
github/copilot-sdk#2804 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
drizzle-team/drizzle-orm#6418 ·
メンテナーはふだん 4 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 92/100
diegosouzapw/OmniRoute#15307 · コメント 1 件 ·
メンテナーはふだん 2 日以内に返信