google / google/bigwheels

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

Open
#447 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
C++
Stars
107
Forks
42
PR merge metrics
No merged PRs in 30d

Description

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](https://github.com/google/bigwheels/files/14620611/ppx.log)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.