Overv / VulkanTutorial

Tutorial for the Vulkan graphics and compute API
https://vulkan-tutorial.com
Creative Commons Attribution Share Alike 4.0 International
3.18k stars 521 forks source link

validation layer is not working in 02_validation_layers.cpp #278

Open zuocebianpingmao opened 2 years ago

zuocebianpingmao commented 2 years ago

I commented out the call to DestroyDebugUtilsMessengerEXT in cleanup(), no errors. Why? output:

validation layer: loaderGetDeviceRegistryFiles: GUID for 24 is not SoftwareComponent skipping
validation layer: loaderAddLayerProperties: C:\VulkanSDK\1.3.204.1\Bin\VkLayer_khronos_profiles.json invalid layer manifest file version 1.2.1.  May cause errors.
validation layer: Searching for ICD drivers named .\nvoglv64.dll
validation layer: Build ICD instance extension list
validation layer: Instance Extension: VK_KHR_device_group_creation (C:\WINDOWS\System32\DriverStore\FileRepository\nv_dispi.inf_amd64_5292bbfbf575e2d2\.\nvoglv64.dll) version 0.0.1
validation layer: Instance Extension: VK_KHR_display (C:\WINDOWS\System32\DriverStore\FileRepository\nv_dispi.inf_amd64_5292bbfbf575e2d2\.\nvoglv64.dll) version 0.0.23
validation layer: Instance Extension: VK_KHR_external_fence_capabilities (C:\WINDOWS\System32\DriverStore\FileRepository\nv_dispi.inf_amd64_5292bbfbf575e2d2\.\nvoglv64.dll) version 0.0.1
validation layer: Instance Extension: VK_KHR_external_memory_capabilities (C:\WINDOWS\System32\DriverStore\FileRepository\nv_dispi.inf_amd64_5292bbfbf575e2d2\.\nvoglv64.dll) version 0.0.1
validation layer: Instance Extension: VK_KHR_external_semaphore_capabilities (C:\WINDOWS\System32\DriverStore\FileRepository\nv_dispi.inf_amd64_5292bbfbf575e2d2\.\nvoglv64.dll) version 0.0.1
validation layer: Instance Extension: VK_KHR_get_display_properties2 (C:\WINDOWS\System32\DriverStore\FileRepository\nv_dispi.inf_amd64_5292bbfbf575e2d2\.\nvoglv64.dll) version 0.0.1
validation layer: Instance Extension: VK_KHR_get_physical_device_properties2 (C:\WINDOWS\System32\DriverStore\FileRepository\nv_dispi.inf_amd64_5292bbfbf575e2d2\.\nvoglv64.dll) version 0.0.2
validation layer: Instance Extension: VK_KHR_get_surface_capabilities2 (C:\WINDOWS\System32\DriverStore\FileRepository\nv_dispi.inf_amd64_5292bbfbf575e2d2\.\nvoglv64.dll) version 0.0.1
validation layer: Instance Extension: VK_KHR_surface (C:\WINDOWS\System32\DriverStore\FileRepository\nv_dispi.inf_amd64_5292bbfbf575e2d2\.\nvoglv64.dll) version 0.0.25
validation layer: Instance Extension: VK_KHR_surface_protected_capabilities (C:\WINDOWS\System32\DriverStore\FileRepository\nv_dispi.inf_amd64_5292bbfbf575e2d2\.\nvoglv64.dll) version 0.0.1
validation layer: Instance Extension: VK_KHR_win32_surface (C:\WINDOWS\System32\DriverStore\FileRepository\nv_dispi.inf_amd64_5292bbfbf575e2d2\.\nvoglv64.dll) version 0.0.6
validation layer: Instance Extension: VK_EXT_debug_report (C:\WINDOWS\System32\DriverStore\FileRepository\nv_dispi.inf_amd64_5292bbfbf575e2d2\.\nvoglv64.dll) version 0.0.10
validation layer: Instance Extension: VK_EXT_debug_utils (C:\WINDOWS\System32\DriverStore\FileRepository\nv_dispi.inf_amd64_5292bbfbf575e2d2\.\nvoglv64.dll) version 0.0.2
validation layer: Instance Extension: VK_EXT_swapchain_colorspace (C:\WINDOWS\System32\DriverStore\FileRepository\nv_dispi.inf_amd64_5292bbfbf575e2d2\.\nvoglv64.dll) version 0.0.4
validation layer: Instance Extension: VK_NV_external_memory_capabilities (C:\WINDOWS\System32\DriverStore\FileRepository\nv_dispi.inf_amd64_5292bbfbf575e2d2\.\nvoglv64.dll) version 0.0.1
validation layer: Loading layer library C:\VulkanSDK\1.3.204.1\Bin\.\VkLayer_khronos_validation.dll
validation layer: Loading layer library D:\RivaTuner Statistics Server\Vulkan\.\RTSSVkLayer64.dll
validation layer: Loading layer library C:\WINDOWS\System32\DriverStore\FileRepository\nv_dispi.inf_amd64_5292bbfbf575e2d2\.\nvoglv64.dll
validation layer: Build ICD instance extension list
validation layer: Instance Extension: VK_KHR_device_group_creation (C:\WINDOWS\System32\DriverStore\FileRepository\nv_dispi.inf_amd64_5292bbfbf575e2d2\.\nvoglv64.dll) version 0.0.1
validation layer: Instance Extension: VK_KHR_display (C:\WINDOWS\System32\DriverStore\FileRepository\nv_dispi.inf_amd64_5292bbfbf575e2d2\.\nvoglv64.dll) version 0.0.23
validation layer: Instance Extension: VK_KHR_external_fence_capabilities (C:\WINDOWS\System32\DriverStore\FileRepository\nv_dispi.inf_amd64_5292bbfbf575e2d2\.\nvoglv64.dll) version 0.0.1
validation layer: Instance Extension: VK_KHR_external_memory_capabilities (C:\WINDOWS\System32\DriverStore\FileRepository\nv_dispi.inf_amd64_5292bbfbf575e2d2\.\nvoglv64.dll) version 0.0.1
validation layer: Instance Extension: VK_KHR_external_semaphore_capabilities (C:\WINDOWS\System32\DriverStore\FileRepository\nv_dispi.inf_amd64_5292bbfbf575e2d2\.\nvoglv64.dll) version 0.0.1
validation layer: Instance Extension: VK_KHR_get_display_properties2 (C:\WINDOWS\System32\DriverStore\FileRepository\nv_dispi.inf_amd64_5292bbfbf575e2d2\.\nvoglv64.dll) version 0.0.1
validation layer: Instance Extension: VK_KHR_get_physical_device_properties2 (C:\WINDOWS\System32\DriverStore\FileRepository\nv_dispi.inf_amd64_5292bbfbf575e2d2\.\nvoglv64.dll) version 0.0.2
validation layer: Instance Extension: VK_KHR_get_surface_capabilities2 (C:\WINDOWS\System32\DriverStore\FileRepository\nv_dispi.inf_amd64_5292bbfbf575e2d2\.\nvoglv64.dll) version 0.0.1
validation layer: Instance Extension: VK_KHR_surface (C:\WINDOWS\System32\DriverStore\FileRepository\nv_dispi.inf_amd64_5292bbfbf575e2d2\.\nvoglv64.dll) version 0.0.25
validation layer: Instance Extension: VK_KHR_surface_protected_capabilities (C:\WINDOWS\System32\DriverStore\FileRepository\nv_dispi.inf_amd64_5292bbfbf575e2d2\.\nvoglv64.dll) version 0.0.1
validation layer: Instance Extension: VK_KHR_win32_surface (C:\WINDOWS\System32\DriverStore\FileRepository\nv_dispi.inf_amd64_5292bbfbf575e2d2\.\nvoglv64.dll) version 0.0.6
validation layer: Instance Extension: VK_EXT_debug_report (C:\WINDOWS\System32\DriverStore\FileRepository\nv_dispi.inf_amd64_5292bbfbf575e2d2\.\nvoglv64.dll) version 0.0.10
validation layer: Instance Extension: VK_EXT_debug_utils (C:\WINDOWS\System32\DriverStore\FileRepository\nv_dispi.inf_amd64_5292bbfbf575e2d2\.\nvoglv64.dll) version 0.0.2
validation layer: Instance Extension: VK_EXT_swapchain_colorspace (C:\WINDOWS\System32\DriverStore\FileRepository\nv_dispi.inf_amd64_5292bbfbf575e2d2\.\nvoglv64.dll) version 0.0.4
validation layer: Instance Extension: VK_NV_external_memory_capabilities (C:\WINDOWS\System32\DriverStore\FileRepository\nv_dispi.inf_amd64_5292bbfbf575e2d2\.\nvoglv64.dll) version 0.0.1
validation layer: Unloading layer library C:\WINDOWS\System32\DriverStore\FileRepository\nv_dispi.inf_amd64_5292bbfbf575e2d2\.\nvoglv64.dll
validation layer: Unloading layer library C:\WINDOWS\System32\DriverStore\FileRepository\nv_dispi.inf_amd64_5292bbfbf575e2d2\.\nvoglv64.dll
validation layer: Unloading layer library D:\RivaTuner Statistics Server\Vulkan\.\RTSSVkLayer64.dll
validation layer: Unloading layer library D:\RivaTuner Statistics Server\Vulkan\.\RTSSVkLayer64.dll
validation layer: Unloading layer library C:\VulkanSDK\1.3.204.1\Bin\.\VkLayer_khronos_validation.dll
validation layer: Unloading layer library C:\VulkanSDK\1.3.204.1\Bin\.\VkLayer_khronos_validation.dll
Overv commented 2 years ago

This is probably why:

validation layer: loaderAddLayerProperties: C:\VulkanSDK\1.3.204.1\Bin\VkLayer_khronos_profiles.json invalid layer manifest file version 1.2.1. May cause errors.
JG-Adams commented 2 years ago

How do you fix that? I got it too.

Morakito commented 1 year ago

I got the same problem, at last I realized that my driver's loader is old. So update driver may can solve the problem.

krOoze commented 1 year ago

I seem to get validation error in the case saying there are outstanding objects on Instance destruction.

nikolajSOSIT commented 3 months ago

I have similar error to this:

validation layer: loader_add_layer_properties: 'layers' tag not supported until file version 1.0.1, but C:\Windows\System32\DriverStore\FileRepository\nvlti.inf_amd64_e4c2d764c82d2d50\nv-vk64.json is reporting version 1 validation layer: windows_get_device_registry_files: GUID for 4 is not SoftwareComponent skipping validation layer: Searching for ICD drivers named .\nvoglv64.dll validation layer: Searching for ICD drivers named .\igvk64.dll validation layer: Loading layer library D:\VulkanSDK\Bin\.\VkLayer_khronos_validation.dll validation layer: Loading layer library C:\Windows\System32\DriverStore\FileRepository\nvlti.inf_amd64_e4c2d764c82d2d50\.\nvoglv64.dll failed to open file!

The window loads, than is the white background waiting for the vert and frag to read and make triangle, but before it makes anything the window closes and the error above appear

If you found out It would be perfect!

xslendix commented 3 months ago

Have you guys tried to update your graphics drivers and if that doesn't fix it, re-install the Vulkan SDK?

HaroWana commented 3 months ago

I have this error as well "loader_add_layer_properties: 'layers' tag not supported until file version 1.0.1, but C:\Windows\System32\DriverStore\FileRepository\nvmdi.inf_amd64_206887a3f4130317\nv-vk64.json is reporting version 1". I have updated my graphics driver, reinstalled them, reinstalled the VulkanSDK. I went as far as resetting my whole computer (it was due) and do a clean install of everything again. And I'm still getting that error. Today I got a new development, after updating to the latest graphics driver (560.70, released today), my program still crashes after a short white screen, but now the difference is that the error message is not displayed in the terminal anymore...I'm a newbie and I'm confused.