Build Error MingW 18 GNU 11.2.0 With Code blocks. Generated with Cmake 3.27.8 #1043
-
Error: vsg::Win32_Window::Win32_Window(...) failed to create Window, screenNum is out of range.", VK_ERROR_INVALID_EXTERNAL_HANDLE}; I'm new and beginner so, if you guys can help me. My device is Quadro K620 vulkan 1.3 supported GPU. 16GB RAM Hexa Core CPU. Using Windows 10 pro 21H2. 1080p 60z monitor. Vulkan SDK installed 1.2.189.0. I found something in code |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 42 replies
-
I don't use Windows myself byt my best guess is your have a driver issue an the Vulkan driver is reporting that there are no available devices to use. Could you run vsgdeviceselection example found in vsgExamples: vsgdeviceselection --list This is what I see on my Kubuntu 22.04 system that currently has a Geforce 2060 installed: $ vsgdeviceselection --list
vkEnumerateInstanceVersion() 4206860
VK_API_VERSION = 1.3.268.0
physicalDevices.size() = 2
matched ref_ptr<vsg::PhysicalDevice>(vsg::PhysicalDevice 0x7f85830bbc40) NVIDIA GeForce RTX 2060, deviceType = 2, apiVersion = 1.3.242, driverVersion = 23.516.192
QueueFamilyProperties 4
VkQueueFamilyProperties[0] queueFlags = GRAPHICS | COMPUTE | TRANSFER | PARSE_BINDING, queueCount = 16, timestampValidBits = 64, minImageTransferGranularity = {1, 1, 1}
VkQueueFamilyProperties[1] queueFlags = TRANSFER | PARSE_BINDING, queueCount = 2, timestampValidBits = 64, minImageTransferGranularity = {1, 1, 1}
VkQueueFamilyProperties[2] queueFlags = COMPUTE | TRANSFER | PARSE_BINDING, queueCount = 8, timestampValidBits = 64, minImageTransferGranularity = {1, 1, 1}
VkQueueFamilyProperties[3] queueFlags = TRANSFER | PARSE_BINDING | VIDEO_DECODE, queueCount = 1, timestampValidBits = 32, minImageTransferGranularity = {1, 1, 1}
matched ref_ptr<vsg::PhysicalDevice>(vsg::PhysicalDevice 0x7f85830bc0b0) llvmpipe (LLVM 15.0.7, 256 bits), deviceType = 4, apiVersion = 1.3.238, driverVersion = 0.0.1
QueueFamilyProperties 1
VkQueueFamilyProperties[0] queueFlags = GRAPHICS | COMPUTE | TRANSFER, queueCount = 1, timestampValidBits = 64, minImageTransferGranularity = {1, 1, 1} |
Beta Was this translation helpful? Give feedback.
-
CMakeCache.txt |
Beta Was this translation helpful? Give feedback.
-
Thanks looks your compiler is throwing issues that other compilers aren't.
I am to pub right now. Will look into it tomorrow.
…On Sat, 2 Dec 2023, 16:19 IndieDev99, ***@***.***> wrote:
||=== Build: all in vsg (compiler: GNU GCC Compiler) ===|
D:\Devlopement\C++\Vulkan Scene
Graph\VulkanSceneGraph-1.0.9\VulkanSceneGraph-1.0.9\include\vsg\platform\win32\Win32_Window.h|191|warning:
type qualifiers ignored on function return type [-Wignored-qualifiers]|
D:\Devlopement\C++\Vulkan Scene
Graph\VulkanSceneGraph-1.0.9\VulkanSceneGraph-1.0.9\src\vsg\platform\win32\Win32_Window.cpp||In
constructor 'vsgWin32::Win32Surface::Win32Surface(vsg::Instance*, HWND)':|
D:\Devlopement\C++\Vulkan Scene
Graph\VulkanSceneGraph-1.0.9\VulkanSceneGraph-1.0.9\src\vsg\platform\win32\Win32_Window.cpp|47|warning:
unused variable 'result' [-Wunused-variable]|
D:\Devlopement\C++\Vulkan Scene
Graph\VulkanSceneGraph-1.0.9\VulkanSceneGraph-1.0.9\src\vsg\platform\win32\Win32_Window.cpp||In
constructor
'vsgWin32::Win32_Window::Win32_Window(vsg::ref_ptrvsg::WindowTraits)':|
D:\Devlopement\C++\Vulkan Scene
Graph\VulkanSceneGraph-1.0.9\VulkanSceneGraph-1.0.9\src\vsg\platform\win32\Win32_Window.cpp|364|warning:
comparison of integer expressions of different signedness: 'int32_t' {aka
'int'} and 'std::vector<_DISPLAY_DEVICEA>::size_type' {aka 'long long
unsigned int'} [-Wsign-compare]|
.||Error: vsg::Win32_Window::Win32_Window(...) failed to create Window,
screenNum is out of range.", VK_ERROR_INVALID_EXTERNAL_HANDLE};|
D:\Devlopement\C++\Vulkan Scene
Graph\VulkanSceneGraph-1.0.9\VulkanSceneGraph-1.0.9\src\vsg\platform\win32\Win32_Window.cpp||In
member function 'LRESULT vsgWin32::Win32_Window::handleWin32Messages(UINT,
WPARAM, LPARAM)':|
D:\Devlopement\C++\Vulkan Scene
Graph\VulkanSceneGraph-1.0.9\VulkanSceneGraph-1.0.9\src\vsg\platform\win32\Win32_Window.cpp|640|warning:
declaration of 'event_time' shadows a previous local [-Wshadow]|
D:\Devlopement\C++\Vulkan Scene
Graph\VulkanSceneGraph-1.0.9\VulkanSceneGraph-1.0.9\src\vsg\platform\win32\Win32_Window.cpp|533|note:
shadowed declaration is here|
D:\Devlopement\C++\Vulkan Scene
Graph\VulkanSceneGraph-1.0.9\VulkanSceneGraph-1.0.9\src\vsg\platform\win32\Win32_Window.cpp|645|warning:
declaration of 'event_time' shadows a previous local [-Wshadow]|
D:\Devlopement\C++\Vulkan Scene
Graph\VulkanSceneGraph-1.0.9\VulkanSceneGraph-1.0.9\src\vsg\platform\win32\Win32_Window.cpp|533|note:
shadowed declaration is here|
||=== Build finished: 1 error(s), 5 warning(s) (11 minute(s), 21
second(s)) ===|
—
Reply to this email directly, view it on GitHub
<#1043 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAKEGUCOBNCXKIR4AYBQEM3YHNIKDAVCNFSM6AAAAAA77OFXU6VHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM3TOMZYHAYDM>
.
You are receiving this because you were mentioned.Message ID:
***@***.***
com>
|
Beta Was this translation helpful? Give feedback.
-
The warning fixes passed the Windows automated build so I've gone ahead and merged with VSG master with PR #1048. |
Beta Was this translation helpful? Give feedback.
I had a look at your snippet of build warnings and believe Tim is correct, the snippet doesn't contain any actual compile errors, it's simply that one of the lines with a warning about comparing two different integer types just happens to have a runtime error message.
I can see that at the end of the snippet your have 1 build error and 5 warnings, but I can't spot anything other than the 5 warnings in the snippet, so my best guess is that you've run a build, one of the files has failed to compile but the compile has continued and the warnings have caused the compile error to scroll off the screen or something similar - something that can easily happen with a multi0threaded build.
We have …