-
Notifications
You must be signed in to change notification settings - Fork 956
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can not run bevy project #2428
Comments
Could you please run wgpu's examples with |
|
Could you please install Vulkan Validation Layers and try again, providing the log? It should tell us more. |
Having the exact same issue, also in Bevy. Here's my log with the aforementioned env: |
@a-b-c-1-2-3 what exactly are you seeing? I'm not seeing any errors in your log. |
The error given was |
This is a totally separate issue. |
Hm. Okay, I'll open a separate issue. Sorry for the inconvenience. |
I am also having the same issue with the Bevy examples, and although the same error shows up in the wgpu examples, it does not crash. |
This comment was marked as outdated.
This comment was marked as outdated.
@stillonearth that looks like a bevy bug, they are just mixing formats up |
Confirming an issue with bevy, though PR fixing this is merged. Correct way of initializing a TextureDescriptor format is TextureDescriptor {
label: None,
size,
dimension: TextureDimension::D2,
format: TextureFormat::bevy_default(),
mip_level_count: 1,
sample_count: 1,
usage: TextureUsages::TEXTURE_BINDING
| TextureUsages::COPY_DST
| TextureUsages::RENDER_ATTACHMENT,
} |
I'm actually going to close this issue as this looks like a driver problem, if the original issue is still a problem, please re-file on the latest version. |
* [wgsl-in] Fail on repeated attributes Fixes #2425. * [wgsl-in] Use ParsedAttribute to keep track of parsed attributes
Description
When I run a bevy program, window opened and program crashed wgpu errors.
Repro steps
Run any bevy example projects with bevy 0.6.0 and program crashed with error
Expected vs observed behavior
Expected: run project and show a window.
Observed: run project and show a window and program crashed with wgpu errors.
Extra materials
Code:
`use bevy::prelude::*;
fn main(){
App::new().add_plugins(DefaultPlugins).run();
}
(bevy 0.6.0) Error: devlaq@devlaq-15U560-RN70L:~/IdeaProjects/Bevy/bevy_chess$ cargo run Finished dev [unoptimized + debuginfo] target(s) in 0.13s Running
target/debug/bevy_chess`2022-01-28T16:43:42.134246Z INFO winit::platform_impl::platform::x11::window: Guessed window scale factor: 1
MESA-INTEL: warning: Performance support disabled, consider sysctl dev.i915.perf_stream_paranoid=0
2022-01-28T16:43:42.224825Z ERROR wgpu_hal::vulkan::adapter: get_physical_device_surface_present_modes: Initialization of a object has failed
2022-01-28T16:43:42.224905Z ERROR wgpu_hal::vulkan::adapter: get_physical_device_surface_formats: Initialization of a object has failed
2022-01-28T16:43:42.235137Z INFO bevy_render::renderer: AdapterInfo { name: "GeForce 940M", vendor: 4318, device: 4935, device_type: DiscreteGpu, backend: Vulkan }
2022-01-28T16:43:42.524355Z ERROR wgpu_hal::vulkan::adapter: get_physical_device_surface_present_modes: Initialization of a object has failed
2022-01-28T16:43:42.524917Z ERROR wgpu_hal::vulkan::adapter: get_physical_device_surface_formats: Initialization of a object has failed
thread 'main' panicked at 'Error in Surface::configure: requested format Bgra8UnormSrgb is not in list of supported formats: []', /home/devlaq/.cargo/registry/src/github.aaakk.us.kg-1ecc6299db9ec823/wgpu-0.12.0/src/backend/direct.rs:214:9
note: run with
RUST_BACKTRACE=1
environment variable to display a backtracePlatform
Ubuntu 21.10, wgpu 0.12.0, GeForce 940M, Vulkan.
The text was updated successfully, but these errors were encountered: