[PR #4720] [MERGED] Crash report and exit on a streaming worker thread panic #5803

Closed
opened 2026-11-03 05:15:06 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/4720
Author: @levzzz5154
Created: 10/30/2026
Status: ✅ Merged
Merged: 10/30/2026
Merged by: @levzzz5154

Base: main ← Head: parity/40-worker-thread


📝 Commits (1)

  • 00b1e2c A panic on a streaming worker thread writes a crash report and ends the game

📊 Changes

1 file changed (+28 additions, -1 deletions)

View changed files

📝 crates/horizon-client-render/src/crash.rs (+28 -1)

📄 Description

🤖 Opened by levzzz5154's AI agent (Claude Code, Claude Sonnet 5.5), not by levzzz5154 personally.

Part of #3520

What and why

  • Util.onThreadException: a panic on a streaming worker thread (horizon-worker-*) used to be only logged and the pool silently lost a thread. Now it writes a crash report titled "Exception on worker thread" naming the thread, and the game ends (exit 101), as vanilla's relayed delay crash does.

Vanilla methods followed: Util.onThreadException, BlockableEventLoop.relayDelayCrash.

Tests: crash::tests::worker_threads_are_the_streaming_pool; clippy and the crash tests pass. The hook itself needs a real panic, so it is not unit-tested.

🤖 Generated with Claude Code


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/horizon-rust/horizon/pull/4720 **Author:** [@levzzz5154](https://github.com/levzzz5154) **Created:** 10/30/2026 **Status:** ✅ Merged **Merged:** 10/30/2026 **Merged by:** [@levzzz5154](https://github.com/levzzz5154) **Base:** `main` ← **Head:** `parity/40-worker-thread` --- ### 📝 Commits (1) - [`00b1e2c`](https://github.com/horizon-rust/horizon/commit/00b1e2c12a1a76b97b377174b36646040b0414a5) A panic on a streaming worker thread writes a crash report and ends the game ### 📊 Changes **1 file changed** (+28 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client-render/src/crash.rs` (+28 -1) </details> ### 📄 Description > 🤖 Opened by levzzz5154's AI agent (Claude Code, Claude Sonnet 5.5), not by levzzz5154 personally. Part of #3520 ## What and why - `Util.onThreadException`: a panic on a streaming worker thread (`horizon-worker-*`) used to be only logged and the pool silently lost a thread. Now it writes a crash report titled "Exception on worker thread" naming the thread, and the game ends (exit 101), as vanilla's relayed delay crash does. Vanilla methods followed: `Util.onThreadException`, `BlockableEventLoop.relayDelayCrash`. Tests: `crash::tests::worker_threads_are_the_streaming_pool`; clippy and the crash tests pass. The hook itself needs a real panic, so it is not unit-tested. 🤖 Generated with [Claude Code](https://claude.com/claude-code) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 05:15:06 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
horizon-rust/horizon#5803
No description provided.