Skip to content
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

Couldn't find VkSurfaceKHR Object #3

Open
asafran opened this issue Mar 13, 2021 · 5 comments
Open

Couldn't find VkSurfaceKHR Object #3

asafran opened this issue Mar 13, 2021 · 5 comments

Comments

@asafran
Copy link

asafran commented Mar 13, 2021

Hello!
I get the following error when I try to run on kde neon (20.04) this example:

VUID-vkGetPhysicalDeviceSurfaceSupportKHR-surface-parameter(ERROR / SPEC): msgNum: -2145442690 - Validation Error: [ VUID-vkGetPhysicalDeviceSurfaceSupportKHR-surface-parameter ] Object 0: VK_NULL_HANDLE, type = VK_OBJECT_TYPE_INSTANCE; | MessageID = 0x801f247e | Invalid VkSurfaceKHR Object 0x555555f00560. The Vulkan spec states: surface must be a valid VkSurfaceKHR handle (https://vulkan.lunarg.com/doc/view/1.2.170.0~rc2/linux/1.2-extensions/vkspec.html#VUID-vkGetPhysicalDeviceSurfaceSupportKHR-surface-parameter)
    Objects: 1
        [0] 0, type: 1, name: NULL
UNASSIGNED-Threading-Info(ERROR / SPEC): msgNum: 1567320034 - Validation Error: [ UNASSIGNED-Threading-Info ] Object 0: handle = 0x555555f00560, type = VK_OBJECT_TYPE_SURFACE_KHR; | MessageID = 0x5d6b67e2 | Couldn't find VkSurfaceKHR Object 0x555555f00560. This should not happen and may indicate a bug in the application.
    Objects: 1
        [0] 0x555555f00560, type: 1000000000, name: NULL
Thread 0, Frame 0:
vkGetPhysicalDeviceSurfaceSupportKHR(physicalDevice, queueFamilyIndex, surface, pSupported) returns VkResult

I try to build with Qt5.15.2 and Qt6.0.2. It looks like qt created an invalid surface. What Qt5 version are you using? Have you tried to run it on Linux?

I found a similar case on the qt forum: https://forum.qt.io/topic/123435/invalid-vksurface-from-qwidget
Is this a Qt bug?

@d-phaz
Copy link

d-phaz commented Apr 28, 2021

Hello,

For the record, almost the same here on Win10 using Qt6.1.0 :

VUID-vkGetPhysicalDeviceSurfaceSupportKHR-surface-parameter(ERROR / SPEC): msgNum: -2145442690 - Validation Error: [ VUID-vkGetPhysicalDeviceSurfaceSupportKHR-surface-parameter ] Object 0: VK_NULL_HANDLE, type = VK_OBJECT_TYPE_INSTANCE; | MessageID = 0x801f247e | Invalid VkSurfaceKHR Object 0x224e7753a20. The Vulkan spec states: surface must be a valid VkSurfaceKHR handle (https://vulkan.lunarg.com/doc/view/1.2.170.0/windows/1.2-extensions/vkspec.html#VUID-vkGetPhysicalDeviceSurfaceSupportKHR-surface-parameter)
     Objects: 1
        [0]  0, type: 1, name: NULL
 UNASSIGNED-Threading-Info(ERROR / SPEC): msgNum: 1567320034 - Validation Error: [ UNASSIGNED-Threading-Info ] Object 0: handle = 0x224e7753a20, type = VK_OBJECT_TYPE_SURFACE_KHR; | MessageID = 0x5d6b67e2 | Couldn't find VkSurfaceKHR Object 0x224e7753a20. This should not happen and may indicate a bug in the application.
     Objects: 1
       [0]  0x224e7753a20, type: 1000000000, name: NULL

@anormann1974
Copy link
Owner

I try to build with Qt5.15.2 and Qt6.0.2. It looks like qt created an invalid surface. What Qt5 version are you using? Have you tried to run it on Linux?

No, I currently have only a windows development computer.

@anormann1974
Copy link
Owner

Hello,

For the record, almost the same here on Win10 using Qt6.1.0 :

VUID-vkGetPhysicalDeviceSurfaceSupportKHR-surface-parameter(ERROR / SPEC): msgNum: -2145442690 - Validation Error: [ VUID-vkGetPhysicalDeviceSurfaceSupportKHR-surface-parameter ] Object 0: VK_NULL_HANDLE, type = VK_OBJECT_TYPE_INSTANCE; | MessageID = 0x801f247e | Invalid VkSurfaceKHR Object 0x224e7753a20. The Vulkan spec states: surface must be a valid VkSurfaceKHR handle (https://vulkan.lunarg.com/doc/view/1.2.170.0/windows/1.2-extensions/vkspec.html#VUID-vkGetPhysicalDeviceSurfaceSupportKHR-surface-parameter)
     Objects: 1
        [0]  0, type: 1, name: NULL
 UNASSIGNED-Threading-Info(ERROR / SPEC): msgNum: 1567320034 - Validation Error: [ UNASSIGNED-Threading-Info ] Object 0: handle = 0x224e7753a20, type = VK_OBJECT_TYPE_SURFACE_KHR; | MessageID = 0x5d6b67e2 | Couldn't find VkSurfaceKHR Object 0x224e7753a20. This should not happen and may indicate a bug in the application.
     Objects: 1
       [0]  0x224e7753a20, type: 1000000000, name: NULL

Ok, I have to install Qt 6.x to test it. Currently I am using Qt 5.15.3.

@d-phaz
Copy link

d-phaz commented Apr 28, 2021

Hello,
For the record, almost the same here on Win10 using Qt6.1.0 :

VUID-vkGetPhysicalDeviceSurfaceSupportKHR-surface-parameter(ERROR / SPEC): msgNum: -2145442690 - Validation Error: [ VUID-vkGetPhysicalDeviceSurfaceSupportKHR-surface-parameter ] Object 0: VK_NULL_HANDLE, type = VK_OBJECT_TYPE_INSTANCE; | MessageID = 0x801f247e | Invalid VkSurfaceKHR Object 0x224e7753a20. The Vulkan spec states: surface must be a valid VkSurfaceKHR handle (https://vulkan.lunarg.com/doc/view/1.2.170.0/windows/1.2-extensions/vkspec.html#VUID-vkGetPhysicalDeviceSurfaceSupportKHR-surface-parameter)
     Objects: 1
        [0]  0, type: 1, name: NULL
 UNASSIGNED-Threading-Info(ERROR / SPEC): msgNum: 1567320034 - Validation Error: [ UNASSIGNED-Threading-Info ] Object 0: handle = 0x224e7753a20, type = VK_OBJECT_TYPE_SURFACE_KHR; | MessageID = 0x5d6b67e2 | Couldn't find VkSurfaceKHR Object 0x224e7753a20. This should not happen and may indicate a bug in the application.
     Objects: 1
       [0]  0x224e7753a20, type: 1000000000, name: NULL

Ok, I have to install Qt 6.x to test it. Currently I am using Qt 5.15.3.

Ok I have done further investigations on my side, so far just to keep you updated :

  • I put teapot.vsgt in a models directory, taking it from vsgExamples/data/models (not present currently in the git of the projet do not know if related but just to be sure it's not related)
  • I got logs indicating interactions with another FLOSS : OBS for broadcasting : "failed to start pipe" so uninstalled it to avoid interaction.

Now I manage to have a windows working and I'm able to Clear color ... via Customize, so the previous error is not showing up again. Got a new error when I try to reopen teapot.vsgt file via the Menu, will do further investigation on it.

@sbrkopac
Copy link

sbrkopac commented Sep 5, 2021

Did anybody do anymore investigating into this? I'm having the same issue on Win10 with Qt 5.15.2:

> VUID-vkGetPhysicalDeviceSurfaceSupportKHR-surface-parameter(ERROR / SPEC): msgNum: -2145442690 - Validation Error: [ VUID-vkGetPhysicalDeviceSurfaceSupportKHR-surface-parameter ] Object 0: VK_NULL_HANDLE, type = VK_OBJECT_TYPE_INSTANCE; | MessageID = 0x801f247e | Invalid VkSurfaceKHR Object 0x1bbf1847c90. The Vulkan spec states: surface must be a valid VkSurfaceKHR handle (https://vulkan.lunarg.com/doc/view/1.2.182.0/windows/1.2-extensions/vkspec.html#VUID-vkGetPhysicalDeviceSurfaceSupportKHR-surface-parameter)
    Objects: 1
       [0]  0, type: 1, name: NULL
UNASSIGNED-Threading-Info(ERROR / SPEC): msgNum: 1567320034 - Validation Error: [ UNASSIGNED-Threading-Info ] Object 0: handle = 0x1bbf1847c90, type = VK_OBJECT_TYPE_SURFACE_KHR; | MessageID = 0x5d6b67e2 | Couldn't find VkSurfaceKHR Object 0x1bbf1847c90. This should not happen and may indicate a bug in the application.
    Objects: 1
       [0]  0x1bbf1847c90, type: 1000000000, name: NULL
Exception thrown at 0x00007FFACBE9C712 (vulkan-1.dll) in vsgQtViewer.exe: 0xC0000005: Access violation reading location 0x0000000000000040.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants