vulkano icon indicating copy to clipboard operation
vulkano copied to clipboard

using the khr_display InstanceExtension causes a crash

Open Raz-Hemo opened this issue 4 years ago • 2 comments

I want to enumerate available resolutions on my monitor. AFAIK I need to enable the khr_display extension, but using it (specifically it - other extensions work) crashes my process with this error:

error: process didn't exit successfully (exit code: 0xc0000005, STATUS_ACCESS_VIOLATION)

using a debugger, the culprit is lib.rs:2745 (way inside the Instance::new function).

  • Version of vulkano: 0.18.0
  • OS: Windows 10 version 1903
  • GPU (the selected PhysicalDevice): NVidia GTX 1060
  • GPU Driver: 442.59

Here's how to create an instance and crash this way:

let instance = Instance::new(
            None,
            &InstanceExtensions {
                khr_display: true,
                .. vulkano_win::required_extensions()
            },
            None).expect("Failed to create Vulkan instance");

Raz-Hemo avatar Mar 17 '20 11:03 Raz-Hemo

How does your cpu memory usage look?

AustinJ235 avatar Apr 19 '20 19:04 AustinJ235

Does this crash still happen?

Rua avatar Aug 12 '22 13:08 Rua