Can not run on RISC-V platform, surface configuration failed: incompatible window
- Dominant language
- Rust
- Stars
- 48.2k
- Forks
- 4.8k
- Avg merge
- 3d 22h
- Merged PRs (30d)
- 161
Description
Soc: SpacemiT Key Stone K1
GPU: PowerVR B-Series BXE-2-32
surface configuration failed: incompatible window kind
wgpu error: Validation Error
In Surface::configure
Invalid surface
```bash
dsoe1024@M1-MUSE-BOOK:~/bevy$ RUST_BACKTRACE=full WINIT_UNIX_BACKEND=wayland WGPU_BACKEND=gl cargo run --example breakout
warning: implicit autoref creates a reference to the dereference of a raw pointer
--> crates/bevy_mikktspace/src/generated.rs:759:25
|
759 | bStillSame = if (*pg1).pTriMembers[i] == (*pg2).pTriMembers[i] {
| ^^^^^^^^^^^^^^^^^^^^^
|
= note: creating a reference requires the pointer target to be valid and imposes aliasing requirements
= note: `#[warn(dangerous_implicit_autorefs)]` on by default
help: try using a raw pointer method instead; or if this reference is intentional, make it explicit
|
759 | bStillSame = if (&(*pg1).pTriMembers)[i] == (*pg2).pTriMembers[i] {
| ++ +
warning: implicit autoref creates a reference to the dereference of a raw pointer
--> crates/bevy_mikktspace/src/generated.rs:759:50
|
759 | bStillSame = if (*pg1).pTriMembers[i] == (*pg2).pTriMembers[i] {
| ^^^^^^^^^^^^^^^^^^^^^
|
= note: creating a reference requires the pointer target to be valid and imposes aliasing requirements
help: try using a raw pointer method instead; or if this reference is intentional, make it explicit
|
759 | bStillSame = if (*pg1).pTriMembers[i] == (&(*pg2).pTriMembers)[i] {
| ++ +
warning: `bevy_mikktspace` (lib) generated 2 warnings
Finished `dev` profile [unoptimized + debuginfo] target(s) in 2.52s
Running `target/debug/examples/breakout`
2025-09-28T04:54:35.070931Z INFO bevy_diagnostic::system_information_diagnostics_plugin::internal: SystemInfo { os: "Linux (Bianbu 3.0.1)", kernel: "6.6.63", cpu: "Spacemit(R) X60", core_count: "8", memory: "7.7 GiB" }
2025-09-28T04:54:35.268662Z INFO bevy_render::renderer: AdapterInfo { name: "PowerVR B-Series BXE-2-32", vendor: 0, device: 0, device_type: Other, driver: "", driver_info: "OpenGL ES 3.2 build 24.2@6603887", backend: Gl }
2025-09-28T04:54:39.228614Z INFO bevy_render::batching::gpu_preprocessing: Some GPU preprocessing are limited on this device.
2025-09-28T04:54:39.325084Z WARN bevy_pbr::ssao: ScreenSpaceAmbientOcclusionPlugin not loaded. GPU lacks support: TextureFormat::R16Float does not support TextureUsages::STORAGE_BINDING.
2025-09-28T04:54:39.342033Z INFO bevy_winit::system: Creating new window App (0v1)
2025-09-28T04:54:39.342789Z INFO winit::platform_impl::linux::x11::window: Guessed window scale factor: 1
2025-09-28T04:54:39.353114Z INFO breakout::stepping: Bevy was compiled without stepping support. Run with `--features=bevy_debug_stepping` to enable stepping.
2025-09-28T04:54:40.816307Z ERROR wgpu_core::device::global: surface configuration failed: incompatible window kind
2025-09-28T04:54:40.816534Z ERROR wgpu::backend::wgpu_core: Handling wgpu errors as fatal by default
thread 'Compute Task Pool (3)' panicked at /home/dsoe1024/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/wgpu-24.0.5/src/backend/wgpu_core.rs:3432:18:
wgpu error: Validation Error
Caused by:
In Surface::configure
Invalid surface
stack backtrace:
0: 0x2ab0ce6ed6 - std::backtrace_rs::backtrace::libunwind::trace::h1139eb3926bb2a2a
at /rustc/6b00bc3880198600130e1cf62b8f8a93494488cc/library/std/src/../../backtrace/src/backtrace/libunwind.rs:117:9
1: 0x2ab0ce6ed6 - std::backtrace_rs::backtrace::trace_unsynchronized::hc36c3dbe86c9c0ea
at /rustc/6b00bc3880198600130e1cf62b8f8a93494488cc/library/std/src/../../backtrace/src/backtrace/mod.rs:66:14
2: 0x2ab0ce6ed6 - std::sys::backtrace::_print_fmt::h155e6f3ac72c1900
at /rustc/6b00bc3880198600130e1cf62b8f8a93494488cc/library/std/src/sys/backtrace.rs:66:9
3: 0x2ab0ce6ed6 - ::fmt::h0b3ef8c37cd1a1d4
at /rustc/6b00bc3880198600130e1cf62b8f8a93494488cc/library/std/src/sys/backtrace.rs:39:26
4: 0x2ab0d0a2e0 - core::fmt::rt::Argument::fmt::h83bdd45283267e42
at /rustc/6b00bc3880198600130e1cf62b8f8a93494488cc/library/core/src/fmt/rt.rs:181:76
5: 0x2ab0d0a2e0 - core::fmt::write::h18c6928f241d53c4
at /rustc/6b00bc3880198600130e1cf62b8f8a93494488cc/library/core/src/fmt/mod.rs:1446:25
6: 0x2ab0ce35ce - std::io::default_write_fmt::hf8be4622d99ea035
at /rustc/6b00bc3880198600130e1cf62b8f8a93494488cc/library/std/src/io/mod.rs:639:11
7: 0x2ab0ce35ce - std::io::Write::write_fmt::h8b21596828f7ee1d
at /rustc/6b00bc3880198600130e1cf62b8f8a93494488cc/library/std/src/io/mod.rs:1914:13
8: 0x2ab0ce6d7c - std::sys::backtrace::BacktraceLock::print:
```
Contributor guide
Assessment
This issue has not been assessed yet.