[PR #7222] [MERGED] Crash reports list the build's native mods #7424

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

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/7222
Author: @arismoko
Created: 11/2/2026
Status: ✅ Merged
Merged: 11/2/2026
Merged by: @ludovic111

Base: main ← Head: v2/ses_01M6BECNQ499TYMMBQBDF00VJ5-crash-mods


📝 Commits (1)

  • c029313 Crash reports list the build's native mods

📊 Changes

2 files changed (+33 additions, -5 deletions)

View changed files

📝 crates/horizon-client/src/game/mods.rs (+31 -4)
📝 docs/native-mods.md (+2 -1)

📄 Description

🤖 Opened by Aria's agent swarm, Dyna, not by Aria.

Crash reports now list the native mods a game was built with. This is the first half of #6452's "Panic attribution" item. The second half, naming the mod in a panic, comes in a follow-up PR.

What changes

The launcher already writes native-mods.json beside a game it builds with native mods: their ids and versions under mods. The game already reads that file at start (start_mods), to know it was built with mods.

It now also adds a detail line to its crash reports:

Native Mods: machine_sample 0.1.0, pipes 2.0

A release or Nightly has no file, and a build without mods has an empty list. Neither adds the line.

The line stays in the local report only. Crash telemetry keeps only the details in its allowlist (CRASH_DETAILS), and this isn't one of them.

docs/native-mods.md says so in the build's Install step.

NeoForge counterpart: crash reports carry the mod list (CrashReportExtender.extendSystemReport, public javadoc).

Test

the_crash_report_lists_the_builds_native_mods covers three cases:

  • the line for two mods, from the launcher's JSON;
  • nothing for a release, which has no file;
  • nothing for an empty list.

Tested in game

The bundle was the sample's trait mod, built through the launcher at this head with native-build --trust-native-code. The bundle id was panic-proof, version 1.0.0. Throwaway panics forced the crash reports.

Where What showed
Window, a panic in a key hook The crash report's details include Native Mods: panic-proof 1.0.0
Dedicated server export (native-build --server-output, then --dedicated), a panic in level_tick_pre The crash report's details include Native Mods: panic-proof 1.0.0
Single-player server thread, the same tick panic The panic is logged (the integrated server panicked), and no crash report is written there, as before this PR. So the line has nowhere to show.

The recommended end-to-end route for native mods is horizon-machine-sample. It was used here: its trait-mod bundle (trait-api-example), built through the launcher at this head, with a throwaway panic to force a crash report.

pr_ready

pr_ready (tools/pr_ready.py --quick --base 9eb0e230e34836c8c1e567593bc7123e66475f66 on 41201d7ed189, against 9eb0e230e3 at 9eb0e230e, 1 min 23 s)

Check Result
Scope ✅ 2 files, +33 −5
Cargo.lock ✅ unchanged
Public tree ✅
Python tests ✅ 612 passed (47 s)
rustfmt ✅ (10 s)
clippy ✅ (1 s)
tests: horizon-client ✅ 678 passed (1 s)
doc tests ✅ 0 passed (2 s)
content root tests ➖ content root untouched
mod API up to date ✅ (22 s)
tokens.css up to date ➖ theme untouched
launcher rustfmt ➖ launcher untouched
launcher clippy ➖ launcher untouched
launcher tests ➖ launcher untouched
Parity ➖ not run (--quick): CI's parity job picks the affected harnesses
Label player-facing: feature if players get something new, no label for a fix (release-now if urgent)

🤖 Generated with Dyna.


🔄 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/7222 **Author:** [@arismoko](https://github.com/arismoko) **Created:** 11/2/2026 **Status:** ✅ Merged **Merged:** 11/2/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `v2/ses_01M6BECNQ499TYMMBQBDF00VJ5-crash-mods` --- ### 📝 Commits (1) - [`c029313`](https://github.com/horizon-rust/horizon/commit/c029313d6ca83e1fbe89077f4b3aa913a1c260ef) Crash reports list the build's native mods ### 📊 Changes **2 files changed** (+33 additions, -5 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game/mods.rs` (+31 -4) 📝 `docs/native-mods.md` (+2 -1) </details> ### 📄 Description > 🤖 Opened by Aria's agent swarm, Dyna, not by Aria. Crash reports now list the native mods a game was built with. This is the first half of #6452's "Panic attribution" item. The second half, naming the mod in a panic, comes in a follow-up PR. ## What changes The launcher already writes `native-mods.json` beside a game it builds with native mods: their ids and versions under `mods`. The game already reads that file at start (`start_mods`), to know it was built with mods. It now also adds a detail line to its crash reports: ``` Native Mods: machine_sample 0.1.0, pipes 2.0 ``` A release or Nightly has no file, and a build without mods has an empty list. Neither adds the line. The line stays in the local report only. Crash telemetry keeps only the details in its allowlist (`CRASH_DETAILS`), and this isn't one of them. `docs/native-mods.md` says so in the build's Install step. NeoForge counterpart: crash reports carry the mod list (`CrashReportExtender.extendSystemReport`, public javadoc). ## Test `the_crash_report_lists_the_builds_native_mods` covers three cases: - the line for two mods, from the launcher's JSON; - nothing for a release, which has no file; - nothing for an empty list. ## Tested in game The bundle was the sample's trait mod, built through the launcher at this head with `native-build --trust-native-code`. The bundle id was `panic-proof`, version `1.0.0`. Throwaway panics forced the crash reports. | Where | What showed | | --- | --- | | Window, a panic in a `key` hook | The crash report's details include `Native Mods: panic-proof 1.0.0` | | Dedicated server export (`native-build --server-output`, then `--dedicated`), a panic in `level_tick_pre` | The crash report's details include `Native Mods: panic-proof 1.0.0` | | Single-player server thread, the same tick panic | The panic is logged (`the integrated server panicked`), and no crash report is written there, as before this PR. So the line has nowhere to show. | The recommended end-to-end route for native mods is [horizon-machine-sample](https://github.com/arismoko/horizon-machine-sample). It was used here: its trait-mod bundle (`trait-api-example`), built through the launcher at this head, with a throwaway panic to force a crash report. ## pr_ready **pr_ready** (`tools/pr_ready.py --quick --base 9eb0e230e34836c8c1e567593bc7123e66475f66` on 41201d7ed189, against 9eb0e230e34836c8c1e567593bc7123e66475f66 at 9eb0e230e, 1 min 23 s) | Check | Result | | --- | --- | | Scope | ✅ 2 files, +33 −5 | | Cargo.lock | ✅ unchanged | | Public tree | ✅ | | Python tests | ✅ 612 passed (47 s) | | rustfmt | ✅ (10 s) | | clippy | ✅ (1 s) | | tests: horizon-client | ✅ 678 passed (1 s) | | doc tests | ✅ 0 passed (2 s) | | content root tests | ➖ content root untouched | | mod API up to date | ✅ (22 s) | | tokens.css up to date | ➖ theme untouched | | launcher rustfmt | ➖ launcher untouched | | launcher clippy | ➖ launcher untouched | | launcher tests | ➖ launcher untouched | | Parity | ➖ not run (--quick): CI's parity job picks the affected harnesses | | Label | player-facing: `feature` if players get something new, no label for a fix (`release-now` if urgent) | 🤖 Generated with Dyna. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 06:39:19 +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#7424
No description provided.