Skip to content
This repository has been archived by the owner on Jul 19, 2018. It is now read-only.

Assertion failure when only some ICDs have VK_KHR_surface support #2186

Open
polarina opened this issue Nov 6, 2017 · 0 comments
Open

Assertion failure when only some ICDs have VK_KHR_surface support #2186

polarina opened this issue Nov 6, 2017 · 0 comments
Assignees
Labels
Milestone

Comments

@polarina
Copy link
Contributor

polarina commented Nov 6, 2017

Two ICDs are installed, one exposes support for the VK_KHR_surface instance extension and the other doesn't.

From the application's perspective, the loader says it supports VK_KHR_surface since there's at least one ICD that supports it, however, when calling vkGetPhysicalDeviceSurfaceFormatsKHR on a VkPhysicalDevice from the non-surface-supporting ICD, the loader hits an assertion.

vulkaninfo: /home/polarina/projects/Vulkan-LoaderAndValidationLayers/loader/wsi.c:306: terminator_GetPhysicalDeviceSurfaceFormatsKHR: Assertion `false && "loader: null GetPhysicalDeviceSurfaceFormatsKHR ICD pointer"' failed.

Program received signal SIGABRT, Aborted.
0x00007ffff6e678a0 in raise () from /usr/lib/libc.so.6
(gdb) bt
#0  0x00007ffff6e678a0 in raise () from /usr/lib/libc.so.6
#1  0x00007ffff6e68f09 in abort () from /usr/lib/libc.so.6
#2  0x00007ffff6e600dc in __assert_fail_base () from /usr/lib/libc.so.6
#3  0x00007ffff6e60153 in __assert_fail () from /usr/lib/libc.so.6
#4  0x00007ffff763ea19 in terminator_GetPhysicalDeviceSurfaceFormatsKHR (physicalDevice=0x5555557757a0, surface=0x5555563155f0, 
    pSurfaceFormatCount=0x7fffffffdd44, pSurfaceFormats=0x0)
    at /home/polarina/projects/Vulkan-LoaderAndValidationLayers/loader/wsi.c:306
#5  0x00007ffff763e902 in vkGetPhysicalDeviceSurfaceFormatsKHR (physicalDevice=0x5555557e2c50, surface=0x5555563155f0, 
    pSurfaceFormatCount=0x7fffffffdd44, pSurfaceFormats=0x0)
    at /home/polarina/projects/Vulkan-LoaderAndValidationLayers/loader/wsi.c:278
#6  0x0000555555558745 in AppDumpSurfaceFormats (inst=0x7fffffffde00, gpu=0x5555557d3ad0, out=0x7ffff71e55a0 <_IO_2_1_stdout_>)
    at /home/polarina/projects/Vulkan-LoaderAndValidationLayers/demos/vulkaninfo.c:1146
#7  0x000055555555f349 in main (argc=1, argv=0x7fffffffe118)
    at /home/polarina/projects/Vulkan-LoaderAndValidationLayers/demos/vulkaninfo.c:2480
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants