# Wrong device address bound checking with Vulkan when using VK\_EXT\_validation\_features with gpu validation enabled

**URL:** <https://forums.developer.nvidia.com/t/wrong-device-address-bound-checking-with-vulkan-when-using-vk-ext-validation-features-with-gpu-validation-enabled/215998>\
**Category:** General Topics & Other SDKs\
**Tags:** vulkan-raytracing, nvbugs, vulkan, driver\
**Created:** [May 30, 2022, 2:36pm UTC](https://forums.developer.nvidia.com/t/wrong-device-address-bound-checking-with-vulkan-when-using-vk-ext-validation-features-with-gpu-validation-enabled/215998 "2022-05-30T14:36:51Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![edoardo.luciani](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@edoardo.luciani](https://forums.developer.nvidia.com/u/edoardo.luciani)\
**Post date:** [May 30, 2022, 2:36pm UTC](https://forums.developer.nvidia.com/t/wrong-device-address-bound-checking-with-vulkan-when-using-vk-ext-validation-features-with-gpu-validation-enabled/215998/1 "2022-05-30T14:36:51Z")

</div>

Hi everyone, while developing my Vulkan application I kept getting the error “Device address out of bounds” through the debug callback every time a shader accessed a buffer through a device address. From my findings, the error occurred when the buffer was accessed near the end, specifically when the last valid index was used. (i.e. buffer is 100 bytes, out of bounds error occurs when the buffer is accessed with index 99)

I checked manually and with Nvidia Nsight Graphics and everything was within bounds. Also, I did not get any device lost errors and the graphical output was correct.

I thought it was my mistake, so I modified the Nvidia’s nvpro-samples/vk\_raytracing\_tutorial\_KHR to add GPU assisted validation for the executable vk\_ray\_tracing\_\_simple\_KHR and surprise surprise the same error (Device address out of bounds) was reported through the debug callback.

You can grab a copy of the modified nvpro-samples via my cloned git repo ([GitHub - EdoardoLuciani/vk\_raytracing\_tutorial\_KHR: Ray tracing examples and tutorials using VK\_KHR\_ray\_tracing](https://github.com/EdoardoLuciani/vk_raytracing_tutorial_KHR)). And remember to execute vk\_ray\_tracing\_\_simple\_KHR as that is the only executable I modified by adding the extension.

OS: Fedora Linux 36  
GPU: NVIDIA GeForce RTX 2060 SUPER  
Driver version: 510.68.02
