[GH-ISSUE #3784] World moving to trash crashes launcher #1081

Closed
opened 2026-11-02 15:44:07 +07:00 by bsakaguchi · 3 comments
Owner

Originally created by @kira-horizon[bot] on GitHub (Oct 29, 2026).
Original GitHub issue: https://github.com/horizon-rust/horizon/issues/3784

Version: 0.2.26 launcher; 0.2.97 game (Nightly 2026-10-29 · 45ecf7b) · OS: WIndows 11 Pro, Ryzen 5 7500F, RTX 2060 Super (copied from the report)

What I did: I opened the game launcher, clicked the “delete” button, and then clicked the “move to trash” button.
What happened: The launcher c​losed, but the world didn't remove.
What I expected: The world will be deleted.
Horizon version: 0.2.26 launcher; 0.2.97 game (Nightly 2026-10-29 · 45ecf7b)
OS, CPU, GPU: WIndows 11 Pro, Ryzen 5 7500F, RTX 2060 Super

Reported on Discord by Майонезштурмфюрер (#Трицератопс) in #horizon-bugs · Discord thread
Tags: crash

Opened by Kira from Discord. Replies from the reporter in the thread are added here as comments.

Originally created by @kira-horizon[bot] on GitHub (Oct 29, 2026). Original GitHub issue: https://github.com/horizon-rust/horizon/issues/3784 **Version:** 0.2.26 launcher; 0.2.97 game (Nightly 2026-10-29 · 45ecf7b) · **OS:** WIndows 11 Pro, Ryzen 5 7500F, RTX 2060 Super <sub>(copied from the report)</sub> > What I did: I opened the game launcher, clicked the “delete” button, and then clicked the “move to trash” button. > What happened: The launcher c​losed, but the world didn't remove. > What I expected: The world will be deleted. > Horizon version: 0.2.26 launcher; 0.2.97 game (Nightly 2026-10-29 · 45ecf7b) > OS, CPU, GPU: WIndows 11 Pro, Ryzen 5 7500F, RTX 2060 Super Reported on Discord by **Майонезштурмфюрер (#Трицератопс)** in #horizon-bugs · [Discord thread](https://discord.com/channels/1559227979002028052/1565395155819823204) Tags: crash <sub>Opened by Kira from Discord. Replies from the reporter in the thread are added here as comments.</sub><!-- kira -->
bsakaguchi 2026-11-02 15:44:07 +07:00
Author
Owner

@kira-horizon[bot] commented on GitHub (Oct 29, 2026):

Also reported on Discord by Kaito: Discord thread

What I did: I created a copy of a world in the launcher without launching the game. I also tried to delete a world without starting the game. When I click the "move to trash" button, the launcher c​loses. Upon reopening it, the world is still in the list.
What happened: The launcher crashes; the world has not been deleted.
What I expected: The launcher won't c​lose, but the world will be deleted and disappear from the list of available worlds.
Horizon version: Launcher version 0.2.26
OS, CPU, GPU: windows, Intel Core i7-9700, Nvidia GeForce RTX 4070

<!-- gh-comment-id:6502068668 --> @kira-horizon[bot] commented on GitHub (Oct 29, 2026): Also reported on Discord by **Kaito**: [Discord thread](https://discord.com/channels/1559227979002028052/1565398518955380922) > **What I did:** I created a copy of a world in the launcher without launching the game. I also tried to delete a world without starting the game. When I click the "move to trash" button, the launcher c​loses. Upon reopening it, the world is still in the list. > **What happened:** The launcher crashes; the world has not been deleted. > **What I expected:** The launcher won't c​lose, but the world will be deleted and disappear from the list of available worlds. > **Horizon version:** Launcher version 0.2.26 > OS, CPU, GPU: windows, Intel Core i7-9700, Nvidia GeForce RTX 4070 <!-- kira -->
Author
Owner

@DenisHumen commented on GitHub (Oct 29, 2026):

🤖 Agent: comment by DenisHumen's AI agent (Claude Code, Opus 5.5), not by DenisHumen personally.

Taking this one. Likely cause: GPUI calls OleInitialize on the window thread (single-threaded COM), and the trash crate (default feature coinit_multithreaded) then calls CoInitializeEx(MULTITHREADED) on the same thread, gets RPC_E_CHANGED_MODE and panics by design, which closes the launcher. The CLI (world delete) has no window, so it works. Reproducing and fixing on Windows now.

<!-- gh-comment-id:6506786989 --> @DenisHumen commented on GitHub (Oct 29, 2026): 🤖 Agent: comment by DenisHumen's AI agent (Claude Code, Opus 5.5), not by DenisHumen personally. Taking this one. Likely cause: GPUI calls `OleInitialize` on the window thread (single-threaded COM), and the `trash` crate (default feature `coinit_multithreaded`) then calls `CoInitializeEx(MULTITHREADED)` on the same thread, gets `RPC_E_CHANGED_MODE` and panics by design, which closes the launcher. The CLI (`world delete`) has no window, so it works. Reproducing and fixing on Windows now.
Author
Owner

@DenisHumen commented on GitHub (Oct 29, 2026):

🤖 Agent: comment by DenisHumen's AI agent (Claude Code, Opus 5.5), not by DenisHumen personally.

Confirmed and fixed in #3927: the crash log showed exactly the CoInitializeEx / RPC_E_CHANGED_MODE panic, on a GPUI thread-pool worker (world deletion runs in the background executor), which aborts the process.

<!-- gh-comment-id:6508301813 --> @DenisHumen commented on GitHub (Oct 29, 2026): 🤖 Agent: comment by DenisHumen's AI agent (Claude Code, Opus 5.5), not by DenisHumen personally. Confirmed and fixed in #3927: the crash log showed exactly the `CoInitializeEx` / `RPC_E_CHANGED_MODE` panic, on a GPUI thread-pool worker (world deletion runs in the background executor), which aborts the process.
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#1081
No description provided.