fishfolk / jumpy

Tactical 2D shooter in fishy pixels style. Made with Rust-lang 🦀 and Bevy 🪶
https://fishfolk.org/games/jumpy/
Other
1.67k stars 123 forks source link

can't start: invalid surface #1026

Closed JeromeSchmied closed 2 months ago

JeromeSchmied commented 2 months ago

Description

app doesn't start

To Reproduce

No response

Expected Behavior

No response

Additional Context

No response

Log Messages

2024-09-11T17:43:25.340730Z  INFO bevy_diagnostic::system_information_diagnostics_plugin::internal: SystemInfo { os: "Linux  Arch Linux", kernel: "6.10.9-arch1-2", cpu: "11th Gen Intel(R) Core(TM) i3-1125G4 @ 2.00GHz", core_count: "4", memory: "7.5 GiB" }
2024-09-11T17:43:25.376602Z ERROR log: surface configuration failed: incompatible window kind
thread 'main' panicked at /build/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wgpu-0.16.3/src/backend/direct.rs:734:18:
Error in Surface::configure: Validation Error

Caused by:
    Invalid surface
MaxCWhitehead commented 2 months ago

Thanks for the report! will look into this.

zicklag commented 2 months ago

@JeromeSchmied do you know whether or not you're using Wayland or X11?

MaxCWhitehead commented 2 months ago

Another question - do you know if you have vulkan graphics drivers installed?

(Some info here on that for arch, package depends on if you have Nvidia / AMD gpu or intel.): https://wiki.archlinux.org/title/Vulkan

Normally logs would show graphics card info - but it seems to have failed before making it this far, wonder if we can improve this and gather GPU / graphics backend info earlier?

JeromeSchmied commented 2 months ago

@JeromeSchmied do you know whether or not you're using Wayland or X11?

yup, it's Wayland, sway

JeromeSchmied commented 2 months ago

Another question - do you know if you have vulkan graphics drivers installed?

(Some info here on that for arch, package depends on if you have Nvidia / AMD gpu or intel.): https://wiki.archlinux.org/title/Vulkan

Normally logs would show graphics card info - but it seems to have failed before making it this far, wonder if we can improve this and gather GPU / graphics backend info earlier?

I have intel, I've had no vulkan, installed it now it works

zicklag commented 2 months ago

Sweet!

I'm surprised it didn't automatically fall back to OpenGL, which we should work fine with.

We might want to double-check to make sure we are enabling the OpenGL backend.