[GH-ISSUE #5624] Crash on loading with OpenGL backend: 'resource loader stopped before finishing' #1753

Open
opened 2026-11-02 15:49:25 +07:00 by bsakaguchi · 1 comment
Owner

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

Originally assigned to: @abit-foggy on GitHub.

Version: v0.2.97 · OS: Windows 10 (19044), Intel Family 6 Model 23 Stepping 10 (2 cores), 3.3 GB RAM, GeForce 9100M G (integrated), OpenGL 3.3 (copied from the report)

What I did:

  1. Start the Horizon client on Windows 10 with the OpenGL (Gl) backend (horizon-client.exe)
  2. Wait on the loading screen, about 25 seconds

What happened:
The game crashes with "Fatal error: resource loader stopped before finishing"
(render thread). The crash report is saved right after "rest-ready".
In the log, the world-rest-loader thread is still running when the error is
logged and finishes about 4 s later ("resources loaded in 18.7s"), so it looks
like a race between the render thread check and the resource-loader handoff
on a slow 2-core CPU.
Vulkan and DX12 start but are extremely laggy; OpenGL is very smooth but
crashes at load.

What I expected:
The game finishes loading and reaches the title screen.

Does it happen every time?
Yes (CHECK: write "Yes" only if it crashed every time you tried)

Horizon version: Horizon version: v0.2.97 (from the crash report; launcher version unknown)
OS, CPU, GPU: Windows 10 (19044), Intel Family 6 Model 23 Stepping 10 (2 cores),
3.3 GB RAM, GeForce 9100M G (integrated), OpenGL 3.3

Adapter limits from the log: storage bindings up to 0 bytes, multi-draw off,
occlusion culling off.
Attached: crash-2026-11-01_01.47.56-client.txt

Note: I know the GPU is very old and I'm not expecting good performance.
The OpenGL backend actually runs very smoothly on it, the only blocker is
this crash during loading. A slow CPU just seems to expose the timing issue
more easily.

Reported on Discord by Akrion in #horizon-bugs · Discord thread
Tags: crash, rendering

Attachments (Discord links expire after a while; the thread keeps them)

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 (Nov 1, 2026). Original GitHub issue: https://github.com/horizon-rust/horizon/issues/5624 Originally assigned to: @abit-foggy on GitHub. **Version:** v0.2.97 · **OS:** Windows 10 (19044), Intel Family 6 Model 23 Stepping 10 (2 cores), 3.3 GB RAM, GeForce 9100M G (integrated), OpenGL 3.3 <sub>(copied from the report)</sub> > What I did: > 1. Start the Horizon client on Windows 10 with the OpenGL (Gl) backend (horizon-client.exe) > 2. Wait on the loading screen, about 25 seconds > > What happened: > The game crashes with "Fatal error: resource loader stopped before finishing" > (render thread). The crash report is saved right after "rest-ready". > In the log, the world-rest-loader thread is still running when the error is > logged and finishes about 4 s later ("resources loaded in 18.7s"), so it looks > like a race between the render thread check and the resource-loader handoff > on a slow 2-core CPU. > Vulkan and DX12 start but are extremely laggy; OpenGL is very smooth but > crashes at load. > > What I expected: > The game finishes loading and reaches the title screen. > > Does it happen every time? > Yes (CHECK: write "Yes" only if it crashed every time you tried) > > Horizon version: Horizon version: v0.2.97 (from the crash report; launcher version unknown) > OS, CPU, GPU: Windows 10 (19044), Intel Family 6 Model 23 Stepping 10 (2 cores), > 3.3 GB RAM, GeForce 9100M G (integrated), OpenGL 3.3 > > Adapter limits from the log: storage bindings up to 0 bytes, multi-draw off, > occlusion culling off. > Attached: crash-2026-11-01_01.47.56-client.txt > > Note: I know the GPU is very old and I'm not expecting good performance. > The OpenGL backend actually runs very smoothly on it, the only blocker is > this crash during loading. A slow CPU just seems to expose the timing issue > more easily. Reported on Discord by **Akrion** in #horizon-bugs · [Discord thread](https://discord.com/channels/1559227979002028052/1566256389167521853) Tags: crash, rendering **Attachments** (Discord links expire after a while; the thread keeps them) - [crash-2026-11-01_01.47.56-client.txt](https://cdn.discordapp.com/attachments/1566256389167521853/1566256389859573850/crash-2026-11-01_01.47.56-client.txt?ex=6ae7e16e&is=6ae68fee&hm=82cb9d33a1507db6ac96e07fad9a4810c8892293da1f57799f8a1b81460819fe&) <sub>Opened by Kira from Discord. Replies from the reporter in the thread are added here as comments.</sub><!-- kira -->
Author
Owner

@abit-foggy commented on GitHub (Nov 1, 2026):

Traced this crash report (`v0.2.97`, tagged `a3acb5f0d` on Oct 28) against `main` — both the underlying OpenGL 3.3 failure and the misleading error message are already fixed on `main`:

  1. Actual failure at `01:47:56` (`gfx.rs:1077` in `v0.2.97`): The two earlier `loading_renderer` calls at `01:47:43` and `01:47:46` succeeded because they pass `layers = 1`. In `Loading::finish`, `build_renderer` passes `assets.texture_layers = 1291`, which hit `check_layers` against the GeForce 9100M G's `max_texture_array_layers = 512` limit and returned `Err("GPU supports 512 texture layers; 1291 required")` immediately after logging `describe_adapter`. This was fixed on `main` by #5670 (`475af9674`), which splits the 1,291 sprites across 3 arrays of 512 layers.
  2. Why `v0.2.97` logged `resource loader stopped before finishing`: Because `v0.2.97` predates #3649 (`9f28fe890`), the extra event-loop poll after `event_loop.exit()` ran `poll_menu_resources` against the already-completed `resource-loader` channel (`Disconnected`) and overwrote the `build_renderer` error, while the detached `world-rest-loader` thread continued logging for another 4 seconds.

This issue can be closed as resolved by #3649 and #5670.

<!-- gh-comment-id:6553775842 --> @abit-foggy commented on GitHub (Nov 1, 2026): Traced this crash report (\`v0.2.97\`, tagged \`a3acb5f0d\` on Oct 28) against \`main\` — both the underlying OpenGL 3.3 failure and the misleading error message are already fixed on \`main\`: 1. **Actual failure at \`01:47:56\` (\`gfx.rs:1077\` in \`v0.2.97\`):** The two earlier \`loading_renderer\` calls at \`01:47:43\` and \`01:47:46\` succeeded because they pass \`layers = 1\`. In \`Loading::finish\`, \`build_renderer\` passes \`assets.texture_layers = 1291\`, which hit \`check_layers\` against the GeForce 9100M G's \`max_texture_array_layers = 512\` limit and returned \`Err(\"GPU supports 512 texture layers; 1291 required\")\` immediately after logging \`describe_adapter\`. This was fixed on \`main\` by #5670 (\`475af9674\`), which splits the 1,291 sprites across 3 arrays of 512 layers. 2. **Why \`v0.2.97\` logged \`resource loader stopped before finishing\`:** Because \`v0.2.97\` predates #3649 (\`9f28fe890\`), the extra event-loop poll after \`event_loop.exit()\` ran \`poll_menu_resources\` against the already-completed \`resource-loader\` channel (\`Disconnected\`) and overwrote the \`build_renderer\` error, while the detached \`world-rest-loader\` thread continued logging for another 4 seconds. This issue can be closed as resolved by #3649 and #5670.
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#1753
No description provided.