[GH-ISSUE #2208] Renderer crashes with wgpu Out of Memory while reloading selected packs #616

Closed
opened 2026-11-02 15:40:33 +07:00 by bsakaguchi · 0 comments
Owner

Originally created by @Murilinho145SG on GitHub (Oct 26, 2026).
Original GitHub issue: https://github.com/horizon-rust/horizon/issues/2208

Filed by: contributor's AI agent (OpenAI Codex).

Summary

Horizon crashes with a fatal wgpu error: Out of Memory while creating a texture during renderer reconstruction after selected packs are reloaded.

Environment

  • GPU: NVIDIA GeForce GTX 1050 Ti (Vulkan, DiscreteGpu)
  • NVIDIA driver: 580.178.04
  • Surface: 1280x720, Bgra8Unorm, Mailbox
  • wgpu: 30.0.1
  • Linux / Wayland (from the backtrace)

Observed behavior

The game starts, enters a world, and runs for about a minute. At 10:49:53 the render thread reports Handling wgpu errors as fatal by default and panics with wgpu error: Out of Memory. The stack goes through DeviceExt::create_texture_with_data, Renderer::new, Game::reload_selected_packs, and Game::reload_packs, invoked while handling an options UI event.

Expected behavior

Reloading selected packs should complete, or report a recoverable error, without terminating the game.

Reproduction details

The supplied log suggests this happened while changing an option that reloads selected packs. The exact option, selected packs, and whether the reload was repeated were not included in the report.

Relevant log

Horizon renderer: NVIDIA GeForce GTX 1050 Ti (Vulkan, DiscreteGpu)
Horizon renderer: requesting the device (driver NVIDIA 580.178.04) with features [TEXTURE_FORMAT_16BIT_NORM | TEXTURE_ADAPTER_SPECIFIC_FORMAT_FEATURES | TIMESTAMP_QUERY_INSIDE_ENCODERS | MAPPABLE_PRIMARY_BUFFERS | SHADER_EARLY_DEPTH_TEST | TIMESTAMP_QUERY | INDIRECT_FIRST_INSTANCE | RG11B10UFLOAT_RENDERABLE] and the adapter's limits (buffers up to 4292870144 bytes, storage bindings up to 2147483644 bytes, 2048 texture layers)
Horizon renderer: device ready; configuring the surface (1280x720 Bgra8Unorm, Mailbox)
Horizon renderer: creating the pipelines
Horizon renderer: pipelines ready (multi-draw on, occlusion culling on, GPU timer on)
...
[Render thread/ERROR]: Horizon crashed: panicked at wgpu-30.0.1/src/backend/wgpu_core.rs:1637:26:
wgpu error: Out of Memory
	at wgpu::backend::wgpu_core::default_error_handler
	at <wgpu::backend::wgpu_core::ContextWgpuCore>::handle_error_inner
	at <wgpu::backend::wgpu_core::CoreDevice as wgpu::dispatch::DeviceInterface>::create_texture
	at <wgpu::api::device::Device as wgpu::util::device::DeviceExt>::create_texture_with_data
	at <horizon_client::gfx::Renderer>::new::{closure#0}
	at horizon_client::game::build_renderer
	at <horizon_client::game::Game>::reload_selected_packs
	at <horizon_client::game::Game>::reload_packs
	at <horizon_client::game::Game>::handle_option_events
	at <horizon_client::game::Game>::options_mouse

Could you include the option changed, the selected resource packs, and whether this reproduces reliably?}

Originally created by @Murilinho145SG on GitHub (Oct 26, 2026). Original GitHub issue: https://github.com/horizon-rust/horizon/issues/2208 Filed by: contributor's AI agent (OpenAI Codex). ## Summary Horizon crashes with a fatal `wgpu error: Out of Memory` while creating a texture during renderer reconstruction after selected packs are reloaded. ## Environment - GPU: NVIDIA GeForce GTX 1050 Ti (Vulkan, DiscreteGpu) - NVIDIA driver: 580.178.04 - Surface: 1280x720, Bgra8Unorm, Mailbox - wgpu: 30.0.1 - Linux / Wayland (from the backtrace) ## Observed behavior The game starts, enters a world, and runs for about a minute. At 10:49:53 the render thread reports `Handling wgpu errors as fatal by default` and panics with `wgpu error: Out of Memory`. The stack goes through `DeviceExt::create_texture_with_data`, `Renderer::new`, `Game::reload_selected_packs`, and `Game::reload_packs`, invoked while handling an options UI event. ## Expected behavior Reloading selected packs should complete, or report a recoverable error, without terminating the game. ## Reproduction details The supplied log suggests this happened while changing an option that reloads selected packs. The exact option, selected packs, and whether the reload was repeated were not included in the report. ## Relevant log ```text Horizon renderer: NVIDIA GeForce GTX 1050 Ti (Vulkan, DiscreteGpu) Horizon renderer: requesting the device (driver NVIDIA 580.178.04) with features [TEXTURE_FORMAT_16BIT_NORM | TEXTURE_ADAPTER_SPECIFIC_FORMAT_FEATURES | TIMESTAMP_QUERY_INSIDE_ENCODERS | MAPPABLE_PRIMARY_BUFFERS | SHADER_EARLY_DEPTH_TEST | TIMESTAMP_QUERY | INDIRECT_FIRST_INSTANCE | RG11B10UFLOAT_RENDERABLE] and the adapter's limits (buffers up to 4292870144 bytes, storage bindings up to 2147483644 bytes, 2048 texture layers) Horizon renderer: device ready; configuring the surface (1280x720 Bgra8Unorm, Mailbox) Horizon renderer: creating the pipelines Horizon renderer: pipelines ready (multi-draw on, occlusion culling on, GPU timer on) ... [Render thread/ERROR]: Horizon crashed: panicked at wgpu-30.0.1/src/backend/wgpu_core.rs:1637:26: wgpu error: Out of Memory at wgpu::backend::wgpu_core::default_error_handler at <wgpu::backend::wgpu_core::ContextWgpuCore>::handle_error_inner at <wgpu::backend::wgpu_core::CoreDevice as wgpu::dispatch::DeviceInterface>::create_texture at <wgpu::api::device::Device as wgpu::util::device::DeviceExt>::create_texture_with_data at <horizon_client::gfx::Renderer>::new::{closure#0} at horizon_client::game::build_renderer at <horizon_client::game::Game>::reload_selected_packs at <horizon_client::game::Game>::reload_packs at <horizon_client::game::Game>::handle_option_events at <horizon_client::game::Game>::options_mouse ``` Could you include the option changed, the selected resource packs, and whether this reproduces reliably?}
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#616
No description provided.