You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, I get an error related to the semaphore but I can not seem to find a fix for it.
Error:
VUID-vkAcquireNextImageKHR-semaphore-01779(ERROR / SPEC): msgNum: 1461184347 - Validation Error: [ VUID-vkAcquireNextImageKHR-semaphore-01779 ] | MessageID = 0x5717e75b | vkAcquireNextImageKHR(): Semaphore must not have any pending operations. The Vulkan spec states: If semaphore is not VK_NULL_HANDLE it must not have any uncompleted signal or wait operations pending (https://vulkan.lunarg.com/doc/view/1.3.280.0/windows/1.3-extensions/vkspec.html#VUID-vkAcquireNextImageKHR-semaphore-01779)
Objects: 0
** This is a Visual Studio 2022 C++ empty Project called "Vulkan" **
Cpp Language Standard: ISO C++17 Standard (/std:c++17)
Pictures to understand the settings:
Here we are in the Configuration Properties -> C/C++ -> General (Settings for the "Additional Include Directories):
32bit Configuration
64bit Configuration
Here we are in the Configuration Properties -> Linker -> General (Settings for the "Additional Library Directories):
32bit Configuration
64bit Configuration
Here we are in the Configuration Properties -> Linker -> Input (Settings for the "Additional Dependenciess):
All Platforms Configurations (so 32 and 64 bit Configuration settings together)
NOTE: In the Configuration of the Vulkan Project I added a Pre-Build Event (in Command Line) to run the runCompiler.bat file, so i do not have to manually run it every time I want to change the color of the Triangle.
Vulkan (Empty C++ Project)
(in the Vulkan Project folder)
main.cpp
shader.frag
shader.vert
vulkErrors.h
vulkHeaders.h
runCompiler.bat (not in the "Vulkan "project in VisualStudio itself, just located in the "Vulkan" folder, in the Windows explorer, so basically everything is in the "Vulkan" folder in the WIndows Explorer, on the same level)
Note:
I put the .h files in the "Header Files" filter
I put the main.cpp and shader.vert and shader.frag in the "Source Files" filter
The "Resource Files" filter is empty
(but that does not change anything in the "Vulkan" folder in the Windows Explorer)
(The runCompiler.bat code spits out 2 files that vulkan generated called "frag.spv" and "vert.spv" like you can see above in the picture of the Windows Explorer)
(Note that the VulkanSDK is not located on the C-Drive, where Windows is installed)
vulkHeader.h code
#pragma once
#defineVK_USE_PLATFORM_WIN32_KHR
#defineGLFW_INCLUDE_VULKAN
#pragma once
#include"vulkHeaders.h"
#defineASSERT_VULKAN(val)\
switch(val) {\
case VK_SUCCESS:\
break; \
case VK_NOT_READY:\
std::cout << "Vulkan error VK_NOT_READY: A resource (such as an image or buffer) is not yet ready for use! \n"; \
break; \
case VK_TIMEOUT:\
std::cout << "Vulkan error VK_TIMEOUT: An operation timed out! \n"; \
break; \
case VK_EVENT_SET:\
std::cout << "Vulkan error VK_EVENT_SET: An event object has been signaled (set) by another part of your application! \n"; \
break; \
case VK_EVENT_RESET:\
std::cout << "Vulkan error VK_EVENT_RESET: An event object has been reset! \n"; \
break; \
case VK_INCOMPLETE:\
std::cout << "Vulkan error VK_INCOMPLETE: The operation did not complete fully but made partial progress! \n"; \
break; \
case VK_ERROR_OUT_OF_HOST_MEMORY:\
std::cout << "Vulkan error VK_ERROR_OUT_OF_HOST_MEMORY: The implementation ran out of host (CPU) memory while trying to allocate resources! \n"; \
break; \
case VK_ERROR_OUT_OF_DEVICE_MEMORY:\
std::cout << "Vulkan error VK_ERROR_OUT_OF_DEVICE_MEMORY: The implementation ran out of device (GPU) memory while trying to allocate resources! \n"; \
break; \
case VK_ERROR_INITIALIZATION_FAILED:\
std::cout << "Vulkan error VK_ERROR_INITIALIZATION_FAILED: Failed to create an instance or device! \n"; \
break; \
case VK_ERROR_DEVICE_LOST:\
std::cout << "Vulkan error VK_ERROR_DEVICE_LOST: The physical device (GPU) has been lost or is no longer available! \n"; \
break; \
case VK_ERROR_MEMORY_MAP_FAILED:\
std::cout << "Vulkan error VK_ERROR_MEMORY_MAP_FAILED: Mapping memory failed (e.g., mapping a buffer or an image)! \n"; \
break; \
case VK_ERROR_LAYER_NOT_PRESENT:\
std::cout << "Vulkan error VK_ERROR_LAYER_NOT_PRESENT: A requested layer is not available! \n"; \
break; \
case VK_ERROR_EXTENSION_NOT_PRESENT:\
std::cout << "Vulkan error VK_ERROR_EXTENSION_NOT_PRESENT: A requested extension is not available! \n"; \
break; \
case VK_ERROR_FEATURE_NOT_PRESENT:\
std::cout << "Vulkan error VK_ERROR_FEATURE_NOT_PRESENT: A requested feature is not supported! \n"; \
break; \
case VK_ERROR_INCOMPATIBLE_DRIVER:\
std::cout << "Vulkan error VK_ERROR_INCOMPATIBLE_DRIVER: The installed Vulkan driver is incompatible with the application! \n"; \
break; \
case VK_ERROR_TOO_MANY_OBJECTS:\
std::cout << "Vulkan error VK_ERROR_TOO_MANY_OBJECTS: The maximum number of allowed Vulkan objects (e.g., descriptors, pipelines) has been exceeded! \n"; \
break; \
case VK_ERROR_FORMAT_NOT_SUPPORTED:\
std::cout << "Vulkan error VK_ERROR_FORMAT_NOT_SUPPORTED: A requested image or buffer format is not supported! \n"; \
break; \
case VK_ERROR_FRAGMENTED_POOL:\
std::cout << "Vulkan error VK_ERROR_FRAGMENTED_POOL: A memory pool became too fragmented, making it challenging to allocate memory efficiently! \n"; \
break; \
case VK_ERROR_UNKNOWN:\
std::cout << "Vulkan error VK_ERROR_UNKNOWN: Something went wrong, but the specific cause is not explicitly defined! \n"; \
break; \
case VK_ERROR_OUT_OF_POOL_MEMORY:\
std::cout << "Vulkan error VK_ERROR_OUT_OF_POOL_MEMORY: The implementation couldn’t allocate memory from a memory pool! \n"; \
break; \
case VK_ERROR_INVALID_EXTERNAL_HANDLE:\
std::cout << "Vulkan error VK_ERROR_INVALID_EXTERNAL_HANDLE: An external handle (such as a window or surface handle) is invalid or not recognized! \n"; \
break; \
case VK_ERROR_FRAGMENTATION:\
std::cout << "Vulkan error VK_ERROR_FRAGMENTATION: Fragmentation in memory allocation! \n"; \
break; \
case VK_ERROR_INVALID_OPAQUE_CAPTURE_ADDRESS:\
std::cout << "Vulkan error VK_ERROR_INVALID_OPAQUE_CAPTURE_ADDRESS: An invalid address was encountered when capturing opaque addresses (e.g., pointers) during debugging or profiling! \n"; \
break; \
case VK_PIPELINE_COMPILE_REQUIRED:\
std::cout << "Vulkan error VK_PIPELINE_COMPILE_REQUIRED: A pipeline needs to be recompiled due to changes in shaders or pipeline state! \n"; \
break; \
case VK_ERROR_SURFACE_LOST_KHR:\
std::cout << "Vulkan error VK_ERROR_SURFACE_LOST_KHR: A surface (used for rendering) is lost (e.g., due to window resizing or display changes)! \n"; \
break; \
case VK_ERROR_NATIVE_WINDOW_IN_USE_KHR:\
std::cout << "Vulkan error VK_ERROR_NATIVE_WINDOW_IN_USE_KHR: A native window (such as a platform-specific window handle) is already in use! \n"; \
break; \
case VK_SUBOPTIMAL_KHR:\
std::cout << "Vulkan error VK_SUBOPTIMAL_KHR: The swapchain (used for presenting images to the screen) is suboptimal but still usable (e.g., due to window resizing or something else)! \n"; \
break; \
case VK_ERROR_OUT_OF_DATE_KHR:\
std::cout << "Vulkan error VK_ERROR_OUT_OF_DATE_KHR: The swapchain is out of date. It’s essential to recreate the swapchain in response! \n"; \
break; \
case VK_ERROR_INCOMPATIBLE_DISPLAY_KHR:\
std::cout << "Vulkan error VK_ERROR_INCOMPATIBLE_DISPLAY_KHR: The display system is incompatible with Vulkan! \n"; \
break; \
case VK_ERROR_VALIDATION_FAILED_EXT:\
std::cout << "Vulkan error VK_ERROR_VALIDATION_FAILED_EXT: Validation layers checks failed during Vulkan operation! \n"; \
break; \
case VK_ERROR_INVALID_SHADER_NV:\
std::cout << "Vulkan error VK_ERROR_INVALID_SHADER_NV: An invalid shader is encountered (e.g., during shader compilation)! \n"; \
break; \
case VK_ERROR_IMAGE_USAGE_NOT_SUPPORTED_KHR:\
std::cout << "Vulkan error VK_ERROR_IMAGE_USAGE_NOT_SUPPORTED_KHR: Unsupported image usage flags (e.g., the image can not be used in this way)! \n"; \
break; \
case VK_ERROR_VIDEO_PICTURE_LAYOUT_NOT_SUPPORTED_KHR:\
std::cout << "Vulkan error VK_ERROR_VIDEO_PICTURE_LAYOUT_NOT_SUPPORTED_KHR: The video picture layout requested is not supported (e.g., during video decoding and presentation)! \n"; \
break; \
case VK_ERROR_VIDEO_PROFILE_OPERATION_NOT_SUPPORTED_KHR:\
std::cout << "Vulkan error VK_ERROR_VIDEO_PROFILE_OPERATION_NOT_SUPPORTED_KHR: The requested video profile operation is not supported (e.g., during video decoding and presentation)! \n"; \
break; \
case VK_ERROR_VIDEO_PROFILE_FORMAT_NOT_SUPPORTED_KHR:\
std::cout << "Vulkan error VK_ERROR_VIDEO_PROFILE_FORMAT_NOT_SUPPORTED_KHR: The requested video profile format is not supported (e.g., during video decoding and presentation)! \n"; \
break; \
case VK_ERROR_VIDEO_PROFILE_CODEC_NOT_SUPPORTED_KHR:\
std::cout << "Vulkan error VK_ERROR_VIDEO_PROFILE_CODEC_NOT_SUPPORTED_KHR: The specified video codec (e.g., H.264, VP9) is not supported! \n"; \
break; \
case VK_ERROR_VIDEO_STD_VERSION_NOT_SUPPORTED_KHR:\
std::cout << "Vulkan error VK_ERROR_VIDEO_STD_VERSION_NOT_SUPPORTED_KHR: The requested video standard version (e.g., MPEG-2, HEVC) is not supported! \n"; \
break; \
case VK_ERROR_INVALID_DRM_FORMAT_MODIFIER_PLANE_LAYOUT_EXT:\
std::cout << "Vulkan error VK_ERROR_INVALID_DRM_FORMAT_MODIFIER_PLANE_LAYOUT_EXT: Invalid format modifier (e.g. DRM (Direct Rendering Manager) format modifiers for plane layouts)! \n"; \
break; \
case VK_ERROR_NOT_PERMITTED_KHR:\
std::cout << "Vulkan error VK_ERROR_NOT_PERMITTED_KHR: An operation is not permitted (e.g., due to security restrictions)! \n"; \
break; \
case VK_ERROR_FULL_SCREEN_EXCLUSIVE_MODE_LOST_EXT:\
std::cout << "Vulkan error VK_ERROR_FULL_SCREEN_EXCLUSIVE_MODE_LOST_EXT: The full-screen exclusive mode is lost (e.g., due to focus changes or display mode switches)! \n"; \
break; \
case VK_THREAD_IDLE_KHR:\
std::cout << "Vulkan error VK_THREAD_IDLE_KHR: A thread is idle (not actively processing Vulkan commands)! \n"; \
break; \
case VK_THREAD_DONE_KHR:\
std::cout << "Vulkan error VK_THREAD_DONE_KHR: A thread has completed its Vulkan work! \n"; \
break; \
case VK_OPERATION_DEFERRED_KHR:\
std::cout << "Vulkan error VK_OPERATION_DEFERRED_KHR: An operation has been deferred (postponed) for later execution! \n"; \
break; \
case VK_OPERATION_NOT_DEFERRED_KHR:\
std::cout << "Vulkan error VK_OPERATION_NOT_DEFERRED_KHR: An operation cannot be deferred and must be executed immediately! \n"; \
break; \
case VK_ERROR_INVALID_VIDEO_STD_PARAMETERS_KHR:\
std::cout << "Vulkan error VK_ERROR_INVALID_VIDEO_STD_PARAMETERS_KHR: The specified video standard parameters (e.g., frame rate, resolution) are invalid! \n"; \
break; \
case VK_ERROR_COMPRESSION_EXHAUSTED_EXT:\
std::cout << "Vulkan error VK_ERROR_COMPRESSION_EXHAUSTED_EXT: The compression algorithm resources are exhausted! \n"; \
break; \
case VK_ERROR_INCOMPATIBLE_SHADER_BINARY_EXT:\
std::cout << "Vulkan error VK_ERROR_INCOMPATIBLE_SHADER_BINARY_EXT: A shader binary is incompatible!"; \
break; \
case VK_RESULT_MAX_ENUM:\
std::cout << "Vulkan error VK_RESULT_MAX_ENUM: This value represents the maximum possible value for a Vulkan result code! \n"; \
break; \
default:\
std::cout << "Vulkan error completely Unknown! \n"; \
break; \
}
The text was updated successfully, but these errors were encountered:
Please don't try to bypass the issue template, we asked for those additional details for a reason. Also if you're going to provide such a lengthy repro you should probably just upload a zip.
Ideally you should strive to provide a repro based on one of the official Dear ImGui examples. Right now you've provided so much code it'd take us a lot of effort to determine if it's even Dear ImGui's fault.
At first glance this looks like it might be a duplicate of #7236, which was fixed in v1.90.2.
Thank you for taking your time to read this message. I actually was able to solve it myself by rewatching the tutorial that I followed from the beginning. Thank you very much and I will close this topic now!
Additional Libraries:
Compiler, OS:
Windows
Details:
My Issue/Question:
Hello, I get an error related to the semaphore but I can not seem to find a fix for it.
Error:
VUID-vkAcquireNextImageKHR-semaphore-01779(ERROR / SPEC): msgNum: 1461184347 - Validation Error: [ VUID-vkAcquireNextImageKHR-semaphore-01779 ] | MessageID = 0x5717e75b | vkAcquireNextImageKHR(): Semaphore must not have any pending operations. The Vulkan spec states: If semaphore is not VK_NULL_HANDLE it must not have any uncompleted signal or wait operations pending (https://vulkan.lunarg.com/doc/view/1.3.280.0/windows/1.3-extensions/vkspec.html#VUID-vkAcquireNextImageKHR-semaphore-01779)
Objects: 0
Small Code View
###Steps to recreate the issue:
** This is a Visual Studio 2022 C++ empty Project called "Vulkan" **
Cpp Language Standard: ISO C++17 Standard (/std:c++17)
Pictures to understand the settings:
Here we are in the Configuration Properties -> C/C++ -> General (Settings for the "Additional Include Directories):
32bit Configuration
64bit Configuration
Here we are in the Configuration Properties -> Linker -> General (Settings for the "Additional Library Directories):
32bit Configuration
64bit Configuration
![VulkanLinkerAdditionalLibraryDirectories64](https://private-user-images.githubusercontent.com/145051936/316333865-86d770cb-21a5-4967-83ec-996c599ff573.PNG?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk4NTczMjEsIm5iZiI6MTczOTg1NzAyMSwicGF0aCI6Ii8xNDUwNTE5MzYvMzE2MzMzODY1LTg2ZDc3MGNiLTIxYTUtNDk2Ny04M2VjLTk5NmM1OTlmZjU3My5QTkc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjE4JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIxOFQwNTM3MDFaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1lZmZjYTY2MzhhOTgwYjJmNDFkNWNhYWQ0MDhkY2Q5MzI3MDdjOTg4NGZkMTBhZGMwNzdjZjI0NzEzY2VjYzNlJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.fEEFUyQ3j_q3YueH7vKebFpdZ2IuU1tQsfpe7G20N-Q)
Here we are in the Configuration Properties -> Linker -> Input (Settings for the "Additional Dependenciess):
All Platforms Configurations (so 32 and 64 bit Configuration settings together)
NOTE: In the Configuration of the Vulkan Project I added a Pre-Build Event (in Command Line) to run the runCompiler.bat file, so i do not have to manually run it every time I want to change the color of the Triangle.
(Vulkan Properties (All Platforms selected) --> Build Events --> Pre-Build Event)
Project Structure:
(in the Vulkan Project folder)
Note:
(but that does not change anything in the "Vulkan" folder in the Windows Explorer)
Complete and Verifiable Example code:
shader.frag file code
#version 460
#extension GL_ARB_separate_shader_objects : enable
#extension GL_EXT_debug_printf : enable
layout(location = 0) out vec4 outColor;
void main()
{
outColor = vec4(0.0, 1.0, 0.0, 1.0);
}
shader.vert file code
#version 460
#extension GL_ARB_separate_shader_objects : enable
#extension GL_EXT_debug_printf : enable
out gl_PerVertex {
vec4 gl_Position;
};
vec2 positions[3] = vec2[](
vec2(0.0, -0.5),
vec2(0.5, 0.5),
vec2(-0.5, 0.5)
);
void main()
{
gl_Position = vec4(positions[gl_VertexIndex], 0.0, 1.0);
}
runCompiler.bat file code
E:\VulkanSDK\1.3.280.0\Bin\glslangValidator.exe -V shader.vert
E:\VulkanSDK\1.3.280.0\Bin\glslangValidator.exe -V shader.frag
pause
(The runCompiler.bat code spits out 2 files that vulkan generated called "frag.spv" and "vert.spv" like you can see above in the picture of the Windows Explorer)
(Note that the VulkanSDK is not located on the C-Drive, where Windows is installed)
vulkHeader.h code
main.cpp code
vulkErrors.h code
The text was updated successfully, but these errors were encountered: