[GH-ISSUE #6156] wgpu error: Validation Error #1997

Open
opened 2026-11-02 15:51:13 +07:00 by bsakaguchi · 3 comments
Owner

Originally created by @Systemd0 on GitHub (Nov 1, 2026).
Original GitHub issue: https://github.com/horizon-rust/horizon/issues/6156

Bug on macOS 27.2.

crash report:
---- Horizon Crash Report ----
// The game stopped here.

Time: 2026-11-01 11:34:05
Description: Unexpected error

panicked at /Users/levakmal/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/wgpu-30.0.1/src/backend/wgpu_core.rs:2678:18:
wgpu error: Validation Error

Caused by:
In a CommandEncoder, label = 'Section uploads'
In a draw command, kind: Draw
Index 299904 extends beyond limit 65536. Did you bind the correct index buffer?

at wgpu::backend::wgpu_core::default_error_handler
at <wgpu::backend::wgpu_core::ContextWgpuCore>::handle_error_inner
at <wgpu::backend::wgpu_core::ContextWgpuCore>::handle_error::<wgpu_core::command::CommandEncoderError>
at <wgpu::backend::wgpu_core::CoreCommandEncoder as wgpu::dispatch::CommandEncoderInterface>::finish
at <wgpu::api::command_encoder::CommandEncoder>::finish
at <horizon_client_render::gfx::Renderer>::draw_frame
at <horizon_client_render::gfx::Renderer>::render
at <horizon_client::game::Game>::render
at <horizon_client::game::Game>::handle_window_event::{closure#0}
at <horizon_client::game::Game>::handle_window_event
at <winit::event_loop::EventLoop<()>>::run_app::<horizon_client::game::App>::{closure#0}
at winit::platform_impl::macos::event_loop::map_user_event::<(), <winit::event_loop::EventLoop<()>>::run_app<horizon_client::game::App>::{closure#0}>::{closure#0}
at <winit::platform_impl::macos::app_state::ApplicationDelegate>::handle_event
at winit::platform_impl::macos::observer::control_flow_end_handler
at <unknown>
at <unknown>
at <unknown>
at <unknown>
at <unknown>
at <unknown>
at <unknown>
at <unknown>
at <unknown>
at <unknown>
at <unknown>
at <unknown>
at horizon_client::game::run
at horizon_client::main
at std::sys::backtrace::__rust_begin_short_backtrace::<fn(), ()>
at std::rt::lang_start::<()>::{closure#0}
at std::rt::lang_start_internal
at _main

A detailed walkthrough of the error, its code path and all known details is as follows:

-- Head --
Thread: Render thread

-- System Details --
Details:
Horizon Version: 0.1.0
Minecraft Version: 26.3
Operating System: macos (aarch64) version macOS 27.2
CPU: 10x Apple M4
Memory: 24576 MiB installed
Render Settings: render distance 12, simulation distance 8, graphics custom, FOV 70, max FPS 120, VSync on, fullscreen off, GUI scale auto, smooth lighting on, clouds fast, biome blend 1, mipmap levels 2
Resource Packs: vanilla
Graphics Adapter: Apple M4 (Metal, IntegratedGpu), driver
World: New World (/Users/levakmal/Downloads/horizon-launcher-0.2.32/saves/New World)

-- Last 30 log lines --
[11:33:50] [Render thread/INFO]: Horizon 0.1.0
[11:33:50] [Render thread/INFO]: Open file limit raised from Some(256) to Some(10240)
[11:33:50] [Render thread/INFO]: Horizon renderer: Apple M4 (Metal, IntegratedGpu)
[11:33:50] [Render thread/INFO]: Horizon renderer: requesting the device (driver unnamed) with features [TEXTURE_FORMAT_16BIT_NORM | TEXTURE_ADAPTER_SPECIFIC_FORMAT_FEATURES | MAPPABLE_PRIMARY_BUFFERS | VERTEX_WRITABLE_STORAGE | CLEAR_TEXTURE | TEXTURE_ATOMIC | SUBGROUP | TIMESTAMP_QUERY | INDIRECT_FIRST_INSTANCE | RG11B10UFLOAT_RENDERABLE | FLOAT32_BLENDABLE] and the adapter's limits (buffers up to 14302248960 bytes, storage bindings up to 14302248960 bytes, 2048 texture layers)
[11:33:50] [Render thread/INFO]: Horizon renderer: device ready; configuring the surface (2560x1440 Bgra8Unorm, Fifo)
[11:33:50] [Render thread/INFO]: Horizon renderer: HDR output HDR10 (PQ)
[11:33:50] [Render thread/INFO]: Horizon renderer: creating the pipelines
[11:33:50] [Render thread/INFO]: Horizon renderer: pipelines ready (multi-draw on, occlusion culling on, GPU timer on)
[11:33:50] [resource-loader/INFO]: Horizon: UI bundle ready after 234 ms
[11:33:50] [Render thread/INFO]: Horizon renderer: acquiring the first frame
[11:33:50] [Render thread/INFO]: Horizon: loading screen shown after 284 ms
[11:33:50] [Render thread/INFO]: Horizon: loading the title artwork after 319 ms
[11:33:50] [Render thread/INFO]: Horizon renderer: Apple M4 (Metal, IntegratedGpu)
[11:33:50] [resource-loader/INFO]: load core tables: 0.42s
[11:33:50] [resource-loader/INFO]: load pack tables: 0.43s
[11:33:50] [resource-loader/INFO]: Horizon: core-ready after 433 ms
[11:33:50] [resource-loader/INFO]: Horizon: handoff CPU resources prepared on worker in 43 ms
[11:33:50] [Render thread/INFO]: Horizon renderer: Apple M4 (Metal, IntegratedGpu)
[11:33:50] [Render thread/INFO]: Horizon: world renderer ready after 553 ms
[11:33:50] [unnamed/INFO]: load items: 0.59s
[11:33:50] [Render thread/INFO]: Horizon: audio output MacBook Air Speakers (48000 Hz, 2 channels, f32)
[11:33:50] [Render thread/INFO]: Horizon: startup handoff 126 ms (renderer 68 ms, start_game 3 ms)
[11:33:50] [Render thread/INFO]: Horizon: first frame after 20 ms
[11:33:50] [world-rest-loader/INFO]: Horizon: resources loaded in 0.8s; 35723 block states, 1658 items, 67 biomes; 9 worker threads
[11:33:50] [world-rest-loader/INFO]: Horizon: rest-ready after 770 ms
[11:34:04] [World data preload/INFO]: Horizon: worldgen data loaded in 141.189125ms
[11:34:05] [World initialization/INFO]: Horizon: live features ready in 20.988875ms
[11:34:05] [Server thread/INFO]: Systemd[/127.0.0.1:0] logged in with entity id 2 at (-9.5, 128.0, -8.5)
[11:34:05] [Server thread/INFO]: System chat: Systemd joined the game
[11:34:05] [Render thread/ERROR]: Handling wgpu errors as fatal by default

Originally created by @Systemd0 on GitHub (Nov 1, 2026). Original GitHub issue: https://github.com/horizon-rust/horizon/issues/6156 Bug on macOS 27.2. crash report: ---- Horizon Crash Report ---- // The game stopped here. Time: 2026-11-01 11:34:05 Description: Unexpected error panicked at /Users/levakmal/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/wgpu-30.0.1/src/backend/wgpu_core.rs:2678:18: wgpu error: Validation Error Caused by: In a CommandEncoder, label = 'Section uploads' In a draw command, kind: Draw Index 299904 extends beyond limit 65536. Did you bind the correct index buffer? at wgpu::backend::wgpu_core::default_error_handler at <wgpu::backend::wgpu_core::ContextWgpuCore>::handle_error_inner at <wgpu::backend::wgpu_core::ContextWgpuCore>::handle_error::<wgpu_core::command::CommandEncoderError> at <wgpu::backend::wgpu_core::CoreCommandEncoder as wgpu::dispatch::CommandEncoderInterface>::finish at <wgpu::api::command_encoder::CommandEncoder>::finish at <horizon_client_render::gfx::Renderer>::draw_frame at <horizon_client_render::gfx::Renderer>::render at <horizon_client::game::Game>::render at <horizon_client::game::Game>::handle_window_event::{closure#0} at <horizon_client::game::Game>::handle_window_event at <winit::event_loop::EventLoop<()>>::run_app::<horizon_client::game::App>::{closure#0} at winit::platform_impl::macos::event_loop::map_user_event::<(), <winit::event_loop::EventLoop<()>>::run_app<horizon_client::game::App>::{closure#0}>::{closure#0} at <winit::platform_impl::macos::app_state::ApplicationDelegate>::handle_event at winit::platform_impl::macos::observer::control_flow_end_handler at <unknown> at <unknown> at <unknown> at <unknown> at <unknown> at <unknown> at <unknown> at <unknown> at <unknown> at <unknown> at <unknown> at <unknown> at horizon_client::game::run at horizon_client::main at std::sys::backtrace::__rust_begin_short_backtrace::<fn(), ()> at std::rt::lang_start::<()>::{closure#0} at std::rt::lang_start_internal at _main A detailed walkthrough of the error, its code path and all known details is as follows: --------------------------------------------------------------------------------------- -- Head -- Thread: Render thread -- System Details -- Details: Horizon Version: 0.1.0 Minecraft Version: 26.3 Operating System: macos (aarch64) version macOS 27.2 CPU: 10x Apple M4 Memory: 24576 MiB installed Render Settings: render distance 12, simulation distance 8, graphics custom, FOV 70, max FPS 120, VSync on, fullscreen off, GUI scale auto, smooth lighting on, clouds fast, biome blend 1, mipmap levels 2 Resource Packs: vanilla Graphics Adapter: Apple M4 (Metal, IntegratedGpu), driver World: New World (/Users/levakmal/Downloads/horizon-launcher-0.2.32/saves/New World) -- Last 30 log lines -- [11:33:50] [Render thread/INFO]: Horizon 0.1.0 [11:33:50] [Render thread/INFO]: Open file limit raised from Some(256) to Some(10240) [11:33:50] [Render thread/INFO]: Horizon renderer: Apple M4 (Metal, IntegratedGpu) [11:33:50] [Render thread/INFO]: Horizon renderer: requesting the device (driver unnamed) with features [TEXTURE_FORMAT_16BIT_NORM | TEXTURE_ADAPTER_SPECIFIC_FORMAT_FEATURES | MAPPABLE_PRIMARY_BUFFERS | VERTEX_WRITABLE_STORAGE | CLEAR_TEXTURE | TEXTURE_ATOMIC | SUBGROUP | TIMESTAMP_QUERY | INDIRECT_FIRST_INSTANCE | RG11B10UFLOAT_RENDERABLE | FLOAT32_BLENDABLE] and the adapter's limits (buffers up to 14302248960 bytes, storage bindings up to 14302248960 bytes, 2048 texture layers) [11:33:50] [Render thread/INFO]: Horizon renderer: device ready; configuring the surface (2560x1440 Bgra8Unorm, Fifo) [11:33:50] [Render thread/INFO]: Horizon renderer: HDR output HDR10 (PQ) [11:33:50] [Render thread/INFO]: Horizon renderer: creating the pipelines [11:33:50] [Render thread/INFO]: Horizon renderer: pipelines ready (multi-draw on, occlusion culling on, GPU timer on) [11:33:50] [resource-loader/INFO]: Horizon: UI bundle ready after 234 ms [11:33:50] [Render thread/INFO]: Horizon renderer: acquiring the first frame [11:33:50] [Render thread/INFO]: Horizon: loading screen shown after 284 ms [11:33:50] [Render thread/INFO]: Horizon: loading the title artwork after 319 ms [11:33:50] [Render thread/INFO]: Horizon renderer: Apple M4 (Metal, IntegratedGpu) [11:33:50] [resource-loader/INFO]: load core tables: 0.42s [11:33:50] [resource-loader/INFO]: load pack tables: 0.43s [11:33:50] [resource-loader/INFO]: Horizon: core-ready after 433 ms [11:33:50] [resource-loader/INFO]: Horizon: handoff CPU resources prepared on worker in 43 ms [11:33:50] [Render thread/INFO]: Horizon renderer: Apple M4 (Metal, IntegratedGpu) [11:33:50] [Render thread/INFO]: Horizon: world renderer ready after 553 ms [11:33:50] [unnamed/INFO]: load items: 0.59s [11:33:50] [Render thread/INFO]: Horizon: audio output MacBook Air Speakers (48000 Hz, 2 channels, f32) [11:33:50] [Render thread/INFO]: Horizon: startup handoff 126 ms (renderer 68 ms, start_game 3 ms) [11:33:50] [Render thread/INFO]: Horizon: first frame after 20 ms [11:33:50] [world-rest-loader/INFO]: Horizon: resources loaded in 0.8s; 35723 block states, 1658 items, 67 biomes; 9 worker threads [11:33:50] [world-rest-loader/INFO]: Horizon: rest-ready after 770 ms [11:34:04] [World data preload/INFO]: Horizon: worldgen data loaded in 141.189125ms [11:34:05] [World initialization/INFO]: Horizon: live features ready in 20.988875ms [11:34:05] [Server thread/INFO]: Systemd[/127.0.0.1:0] logged in with entity id 2 at (-9.5, 128.0, -8.5) [11:34:05] [Server thread/INFO]: System chat: Systemd joined the game [11:34:05] [Render thread/ERROR]: Handling wgpu errors as fatal by default
Author
Owner

@ClickingMaster commented on GitHub (Nov 2, 2026):

🤖 Agent: /claim

<!-- gh-comment-id:6572906069 --> @ClickingMaster commented on GitHub (Nov 2, 2026): 🤖 Agent: /claim
Author
Owner

@ClickingMaster commented on GitHub (Nov 2, 2026):

🤖 Agent: unclaiming (Claude Code, Claude Sonnet 5.5). Notes from reading the code: the failing draw is a translucent/sorted-index draw (gfx.rs ~4570, Arena::binding in gfx/arena.rs). The reported limit 65536 equals a fresh sorted-index page (translucent_arenas, 1<<16 indices), while the draw's first index is 299904, so the draw list and the bound index page disagree (a page replaced/shrunk or a range moved between building the draws and recording them). I could not reproduce it without a macOS/Metal GPU, so I have no failing test. Leaving it open for someone who can.

<!-- gh-comment-id:6572928392 --> @ClickingMaster commented on GitHub (Nov 2, 2026): 🤖 Agent: unclaiming (Claude Code, Claude Sonnet 5.5). Notes from reading the code: the failing draw is a translucent/sorted-index draw (`gfx.rs` ~4570, `Arena::binding` in `gfx/arena.rs`). The reported limit 65536 equals a fresh sorted-index page (`translucent_arenas`, 1<<16 indices), while the draw's first index is 299904, so the draw list and the bound index page disagree (a page replaced/shrunk or a range moved between building the draws and recording them). I could not reproduce it without a macOS/Metal GPU, so I have no failing test. Leaving it open for someone who can.
Author
Owner

@ClickingMaster commented on GitHub (Nov 2, 2026):

🤖 Agent: /unclaim

Not working on this; releasing it so someone else can take it. (Claude Code, Claude Sonnet 5.5, ClickingMaster's AI agent)

<!-- gh-comment-id:6586085098 --> @ClickingMaster commented on GitHub (Nov 2, 2026): 🤖 Agent: /unclaim Not working on this; releasing it so someone else can take it. (Claude Code, Claude Sonnet 5.5, ClickingMaster's AI agent)
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#1997
No description provided.