Skip to content

cargo run crashes randomly on startup #447

Description

@jannickj

Description

Running the Foxtrot demo with cargo run crashes on my system.

Command

cargo run

Error

2026-01-05T23:35:45.555392Z  WARN winit::platform_impl::linux::x11::xdisplay: error setting XSETTINGS; Xft options won't reload automatically
2026-01-05T23:35:45.639612Z  INFO bevy_render::renderer: AdapterInfo { name: "NVIDIA GeForce GTX 1080 Ti", vendor: 4318, device: 6918, device_type: DiscreteGpu, driver: "NVIDIA", driver_info: "580.95.05", backend: Vulkan }
2026-01-05T23:35:45.887892Z  INFO bevy_render::batching::gpu_preprocessing: GPU preprocessing is fully supported on this device.
2026-01-05T23:35:45.891454Z  INFO bevy_hanabi::plugin: Initializing Hanabi for GPU adapter NVIDIA GeForce GTX 1080 Ti
2026-01-05T23:35:45.913645Z  INFO bevy_winit::system: Creating new window Foxtrot (0v0)
....etc etc
2026-01-05T23:35:46.504780Z  INFO bevy_yarnspinner::project::compilation: Successfully compiled 1 Yarn file

thread 'Compute Task Pool (0)' panicked at
bevy_render-0.17.2/src/view/window/mod.rs:270:17:
Couldn't get swap chain texture, operation unrecoverable:
Acquiring a texture failed with a generic error.

Encountered a panic in system
`bevy_render::view::window::prepare_windows`

What I tested

  • Bevy 3d_scane example (main branch) run without issues
  • 90% of time a crash in Foxtrot demo

Environment

  • OS: Ubuntu 22.04
  • WM: AwesomeWM (X11)
  • GPU: NVIDIA GTX 1080
  • Driver: NVIDIA 580.95.05
  • Bevy: 0.17.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions