#8450·egui

`egui-wgpu` panics with "Failed to create staging buffer for index data" during prolonged execution

Author: rustbasicCreated Aug 23, 2026Updated Sep 29, 2026
Labelsbug

egui-wgpu panics with "Failed to create staging buffer for index data" during prolonged execution

egui Version: main & All OS : Windows 10

Describe the bug

When running an application with the wgpu backend for several hours, a validation error occurred and the application panicked inside egui-wgpu::renderer.

Error Log / Stacktrace

WARN  [egui_wgpu] Dropped frame with error: Validation

thread 'main' panicked at egui-wgpu/src/renderer.rs:984:17:
Failed to create staging buffer for index data. Index count: 25200. Required index buffer size: 100800. Actual size 187200 and capacity: 187200 (bytes)
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

Context & Observations

  • Backend: wgpu (tested on Windows)
  • Trigger condition: Occurs intermittently after the application runs continuously for a long time (several hours) with active UI updates.
  • It looks like an issue related to buffer resizing, alignment, or staging buffer management when the index buffer size/count changes over time.