bevyengine / bevyengine/bevy

Crash due to wgpu during startup on Wayland

Open
#14,494 8 comments 0 reactions 0 assignees View on GitHub
A-Rendering C-Bug C-Startup I-Crash O-Linux O-Vulkan
Dominant language
Rust
Stars
48.2k
Forks
4.8k
Avg merge
3d 16h
Merged PRs (30d)
171

Description

## Bevy version

v0.14.0

## Relevant system information

- **Rust:** v1.82.0-nightly (5f6b9a922 2024-07-19)
- **OS:** Arch Linux with kernel v6.10.1-arch1-1

## What you did

```rust
App::new().add_plugins(DefaultPlugins).run()
```

## What went wrong

```
2024-07-26T21:40:39.730796Z ERROR wgpu_hal::vulkan::instance: GENERAL [Loader Message (0x0)]
setup_loader_term_phys_devs: Failed to detect any valid GPUs in the current config
2024-07-26T21:40:39.730807Z ERROR wgpu_hal::vulkan::instance: objects: (type: INSTANCE, hndl: 0x5d5f80d8b9d0, name: ?)
2024-07-26T21:40:39.730810Z ERROR wgpu_hal::vulkan::instance: enumerate_adapters: Initialization of an object has failed
2024-07-26T21:40:39.731380Z INFO bevy_render::renderer: AdapterInfo { name: "NV172", vendor: 65541, device: 0, device_type: Other, driver: "OpenGL", driver_info: "4.3 (Compatibility Profile) Mesa 24.1.4-arch1.2", backend: Gl }
2024-07-26T21:40:39.780780Z WARN bevy_pbr::ssao: ScreenSpaceAmbientOcclusionPlugin not loaded. GPU lacks support: TextureFormat::R16Float does not support TextureUsages::STORAGE_BINDING.
2024-07-26T21:40:39.780925Z INFO bevy_winit::system: Creating new window "App" (Entity { index: 0, generation: 1 })
2024-07-26T21:40:39.781217Z INFO winit::platform_impl::linux::x11::window: Guessed window scale factor: 1
2024-07-26T21:40:39.791330Z ERROR wgpu_core::device::global: surface configuration failed: incompatible window kind
```

## Additional information

```
description: VGA compatible controller
product: GA102 [GeForce RTX 3080 Ti]
vendor: NVIDIA Corporation
physical id: 0
bus info: pci@0000:01:00.0
logical name: /dev/fb0
version: a1
width: 64 bits
clock: 33MHz
capabilities: pm msi pciexpress vga_controller bus_master cap_list rom fb
configuration: depth=32 driver=nouveau latency=0 mode=2560x1440 resolution=2560,1440 visual=truecolor xres=2560 yres=1440
resources: iomemory:400-3ff iomemory:440-43f irq:243 memory:84000000-84ffffff memory:4000000000-43ffffffff memory:4400000000-4401ffffff ioport:5000(size=128) memory:85000000-8507ffff
```

Let me know if anything else is needed!

Contributor guide

Open the contributing guide

Research direction

Start with the minimal Rust entry point using App::new().add_plugins(DefaultPlugins).run() and reproduce the startup failure on the listed Arch Linux setup. Read the wgpu and Bevy log entries around adapter detection, window creation, and surface configuration; done means the application starts successfully on the affected Wayland environment without the incompatible window error.

Written by the indexing model from the issue text.

Assessment

Tech stack
linux, rust
Domain
computer-graphics, operating-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.