bigwheels icon indicating copy to clipboard operation
bigwheels copied to clipboard

vk_alloc has validation error "pAllocateInfo->allocationSize is 268435456 bytes from heap 2,but size of that heap is only 257949696 bytes"

Open footballhead opened this issue 11 months ago • 0 comments

I'm using Vulkan SDK 1.3.275 validation layers on Debian. In projects/vk_alloc/main.cpp, if I set enableDebug = true I get the following error:

*** VULKAN VALIDATION ERROR MESSAGE ***
Severity : ERROR
Type     : [VALIDATION]
Message  : Validation Error: [ VUID-vkAllocateMemory-pAllocateInfo-01713 ] | MessageID = 0xe9a2b96f | vkAllocateMemory(): pAllocateInfo->allocationSize is 268435456 bytes from heap 2,but size of that heap is only 257949696 bytes. The Vulkan spec states: pAllocateInfo->allocationSize must be less than or equal to VkPhysicalDeviceMemoryProperties::memoryHeaps[memindex].size where memindex = VkPhysicalDeviceMemoryProperties::memoryTypes[pAllocateInfo->memoryTypeIndex].heapIndex as returned by vkGetPhysicalDeviceMemoryProperties for the VkPhysicalDevice that device was created from (https://vulkan.lunarg.com/doc/view/1.3.275.0/linux/1.3-extensions/vkspec.html#VUID-vkAllocateMemory-pAllocateInfo-01713)

If I'm compiling with -DCMAKE_BUILD_TYPE=Debug then the program crashes.

Here's the log: ppx.log

footballhead avatar Mar 15 '24 20:03 footballhead