Vulkan crash when running simple example
- Dominant language
- Rust
- Stars
- 48.2k
- Forks
- 4.8k
- Avg merge
- 3d 16h
- Merged PRs (30d)
- 171
Description
## Bevy version
Bevy version 0.6.0
## Operating system & version
OS: Windows 10
GPU: NVIDIA GeForce GTX 1080 Ti (latest drivers when the report was issued)
## What you did
Ran simple example. This is the code:
`use bevy::DefaultPlugins;
use bevy::input::system::exit_on_esc_system;
use bevy::prelude::{App, Msaa, WindowDescriptor};
fn main() {
App::new()
// Set antialiasing to use 4 samples
.insert_resource(Msaa { samples: 4 })
// Set WindowDescriptor Resource to change title and size
.insert_resource(WindowDescriptor {
title: "Rhythm!".to_string(),
width: 800.,
height: 600.,
..Default::default()
})
.add_plugins(DefaultPlugins)
.add_system(exit_on_esc_system)
.run();
}
`
## What you expected to happen
Open a simple window
## What actually happened
ERROR wgpu_hal::vulkan::instance: VALIDATION [VUID-VkSemaphoreTypeCreateInfoKHR-timelineSemaphore-03252 (0x0)]
VkCreateSemaphore: timelineSemaphore feature is not enabled, can not create timeline semaphores The Vulkan spec states: If the timelineSemaphore feature is not enabled, semaphoreType must not equal VK_SEMAPHORE_TYPE_TIMELINE_KHR (https://www.khronos.org/registry/vulkan/specs/1.1-extensions/html/vkspec.html#VUID-VkSemaphoreTypeCreateInfoKHR-timelineSemaphore-03252)
2022-01-27T07:25:44.409393Z ERROR wgpu_hal::vulkan::instance: objects: (type: SEMAPHORE, hndl: 0x0, name: ?)
2022-01-27T07:25:44.632225Z ERROR wgpu_hal::vulkan::instance: VALIDATION [VUID-VkFramebufferCreateInfo-flags-03189 (0x0)]
vkCreateFramebuffer(): VkFramebufferCreateInfo flags includes VK_FRAMEBUFFER_CREATE_IMAGELESS_BIT_KHR, but the imagelessFramebuffer feature is not enabled. The Vulkan spec states: If the imageless framebuffer feature is not enabled, flags must not include VK_FRAMEBUFFER_CREATE_IMAGELESS_BIT_KHR (https://www.khronos.org/registry/vulkan/specs/1.1-extensions/html/vkspec.html#VUID-VkFramebufferCreateInfo-flags-03189)
2022-01-27T07:25:44.632273Z ERROR wgpu_hal::vulkan::instance: objects: (type: UNKNOWN, hndl: 0x0, name: ?)
2022-01-27T07:25:44.632454Z ERROR wgpu_hal::vulkan::instance: VALIDATION [VUID-VkRenderPassBeginInfo-framebuffer-03209 (0x0)]
VkRenderPassBeginInfo: Image view #0 created from an image with flags set as 0x400, but image info #0 used to create the framebuffer had flags set as 0x0 The Vulkan spec states: If framebuffer was created with a VkFramebufferCreateInfo::flags value that included VK_FRAMEBUFFER_CREATE_IMAGELESS_BIT_KHR, each element of the pAttachments member of a VkRenderPassAttachmentBeginInfoKHR structure included in the pNext chain must be a VkImageView of an image created with a value of VkImageCreateInfo::flags equal to the flags member of the corresponding element of VkFramebufferAttachmentsCreateInfoKHR::pAttachments used to create framebuffer (https://www.khronos.org/registry/vulkan/specs/1.1-extensions/html/vkspec.html#VUID-VkRenderPassBeginInfo-framebuffer-03209)
2022-01-27T07:25:44.632487Z ERROR wgpu_hal::vulkan::instance: objects: (type: RENDER_PASS, hndl: 0x364d940000000031, name: ?)
2022-01-27T07:25:44.633030Z ERROR wgpu_hal::vulkan::instance: VALIDATION [VUID-VkSubmitInfo-pSignalSemaphores-03244 (0x0)]
VkQueueSubmit: VkQueue 0x207134f0b00[] contains timeline sempahore VkSemaphore 0x6dc7200000000005[] that sets its wait value with a margin greater than maxTimelineSemaphoreValueDifference The Vulkan spec states: For each element of pSignalSemaphores created with a VkSemaphoreTypeKHR of VK_SEMAPHORE_TYPE_TIMELINE_KHR the corresponding element of VkTimelineSemaphoreSubmitInfoKHR::pSignalSemaphoreValues must have a value which does not differ from the current value of the semaphore or the value of any outstanding semaphore wait or signal operation on that semaphore by more than maxTimelineSemaphoreValueDifference. (https://www.khronos.org/registry/vulkan/specs/1.1-extensions/html/vkspec.html#VUID-VkSubmitInfo-pSignalSemaphores-03244)
2022-01-27T07:25:44.633063Z ERROR wgpu_hal::vulkan::instance: objects: (type: SEMAPHORE, hndl: 0x6dc7200000000005, name: ?)
error: process didn't exit successfully: `target\debug\test_render.exe` (exit code: 0xc000041d)
Process finished with exit code -1073740771 (0xC000041D)
## Additional information
This happens with 0.5 version of bevy as well but the crash is without a stacktrace, just a process didn't exit successfully error with an exit code. so it seems related to something specific on my end but I don't know where to go from here in terms of debugging.
I'm using rustc 1.58.1 and the project is using 2021 edition
I've ran bevy projects before both with 0.5 and 0.6 and they worked, this suddenly happened yesterday and I can't figure out what changed. **I've attached a file with the vulkan info**.
[Vulkan Info.txt](https://github.com/bevyengine/bevy/files/7948553/Vulkan.Info.txt)
Contributor guide
Research direction
Start by reproducing the simple Bevy example on Windows 10 with Bevy 0.6.0 and the reported GTX 1080 Ti setup, then compare the Vulkan validation output with the attached Vulkan Info.txt. Done means identifying the cause of the process crash and confirming that the example opens successfully without the reported validation errors.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- computer-graphics, game-dev
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100