Skip to content

Prevent scene worker restarts during Windows shutdown - #137

Merged
sshcrack merged 1 commit into
masterfrom
fix/worker-windows-shutdown
Nov 9, 2026
Merged

sshcrack merged 1 commit into
masterfrom
fix/worker-windows-shutdown

Conversation

@sshcrack

@sshcrack sshcrack commented Nov 9, 2026 •

Copy link
Copy Markdown
Owner

When Windows shuts down, it can terminate the scene worker before the desktop tray app. RenderOffload then treats that exit as a crash and can launch a replacement into the dying session, consistent with the reported 0xc0000142 popup.

Check SM_SHUTTINGDOWN before supervising the worker and again immediately before CreateProcess. Stop the existing worker while shutdown is active; normal retries resume if shutdown is cancelled.

Validation: Linux RenderOffload build passed; all five worker registry/render/contract/singleton/build-dependency smoke tests passed after rebuilding stale worker artifacts. Windows compilation is covered by CI. The original popup was not reproduced through a real shutdown, so the shutdown-race diagnosis remains inferred. No shutdown was triggered on winpc.

Screenshots and scene previews skipped: process-lifecycle change with no rendered UI or scene changes.


📦 Build artifacts

Built from 12ad3d3 · CI run

Platform Download Archive size
desktop-linux-build Download 263 MiB
desktop-windows-build Download 40 MiB
led-matrix-build Download 356 MiB
web-build Download 0 MiB

@sshcrack
sshcrack merged commit 9af6240 into master Nov 9, 2026
11 checks passed
@sshcrack
sshcrack deleted the fix/worker-windows-shutdown branch November 9, 2026 22:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant