Repository navigation
fix(wallpaper): log why the Windows Slice renderer process exits - #320
Merged
Merged
Conversation
When the Slice renderer exits or cannot start, loadURL only rejects with a generic ERR_FAILED (-2) and no did-fail-load fires, so the main-process log carried no cause. The render-process-gone handler already resets Slice readiness; it now also logs details.reason and details.exitCode. Refs #319 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What and why
When the Windows Slice renderer process exits or cannot start,
loadURL()only rejects with a genericERR_FAILED (-2)and nodid-fail-loadfires. The existingrender-process-gonehandler reset Slice readiness but logged nothing, so the main-process log carried no cause. In #319 this made a launch-environment problem (Chromium could not start sandboxed child processes) look like a Slice window-configuration bug.The handler now logs
details.reasonanddetails.exitCode. It is the only event that carries the cause and it already owns the readiness reset, so this adds no state, retry or fallback.sandbox: trueis unchanged.Linked Issue for product-semantic or public-contract changes: not applicable (diagnostics only). Refs #319
Change class
Owning layer: Electron main process, Slice window lifecycle (
createElectronSliceWindow).User-visible effect, or
none: none in the UI. When the Slice renderer exits, the Electron log gains one line, for example[electron-slice] renderer process gone: launch-failed (exit 49).Compatibility or migration impact, or
none: noneEvidence
Commands and manual journeys run:
npm run buildinelectron/: passes (local dependencies resolve Electron 44.0.0; the lockfile now pins 44.9.1, which CI covers)npm testinelectron/: 709 passed, 0 failed, 0 skippedA standalone Electron 44.0.0 reproduction on Windows 11 build 26300 that copies the Slice window options and loads the real
render/web/electron_slice.htmlwith the compiled preload:--disable-gpu-sandbox--disable-gpu-sandbox:render-process-gonereportslaunch-failed(exit 49), thenloadURLrejects with the sameERR_FAILED (-2)fromstopLoadingListeneras in Windows 平台桌面悬浮输入框始终无法加载:隐藏透明窗口上的 sandbox: true 会中止页面加载 #319; hidden-opaque and visible-opaque sandboxed windows fail the same way, andsandbox: falseloadsrender-process-gonecrashed, then the sameERR_FAILED (-2)rejectionNot run: the full wallpaper journey with Lively. The build type-checks the patched handler; the standalone reproduction covers the event and its payload.
Relevant Python tests pass (no Python change)
CPU/model-less baseline remains supported
Electron
npm run buildpasses when Electron code changedDependency audit passes when dependencies changed (no dependency change)
Before/after screenshots are attached for visible UI changes (log only)
Documentation/examples are updated for changed settings or contracts (no change)
Out of scope: the macOS Canvas window has no
render-process-gonehandler; it is left unchanged here.Final check
🤖 Generated with Claude Code