# Validation Message Improvement Suggestion

**URL:** <https://forums.developer.nvidia.com/t/validation-message-improvement-suggestion/251848>\
**Category:** OptiX\
**Created:** [April 30, 2023, 9:01pm UTC](https://forums.developer.nvidia.com/t/validation-message-improvement-suggestion/251848 "2023-04-30T21:01:25Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![m001](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@m001](https://forums.developer.nvidia.com/u/m001)\
**Post date:** [April 30, 2023, 9:01pm UTC](https://forums.developer.nvidia.com/t/validation-message-improvement-suggestion/251848/1 "2023-04-30T21:01:25Z")

</div>

Lately I encountered (on a modified version of my pathtracer project, which architecture is based on the [OptiX Apps 2018 samples](https://github.com/NVIDIA/OptiX_Apps)) this validation error:  
**[2][ERROR]: Validation mode caught builtin exception OPTIX\_EXCEPTION\_CODE\_TRAVERSAL\_INVALID\_HIT\_SBT**

The [online doc](https://raytracing-docs.nvidia.com/optix7/api/group __optix__ types.html#gga1ec063e4b0e5c2fbb876646069102205a5e641201b448aa005829d7e1f2208a6c) says:  
[…]The traversal hit SBT record index out of bounds.[…]  
I did not find one post here in the forum about this validation error and nothing on the search engine.

So it took me quite a while to figure out, how that error could happen.  
After searching a lot in my SBT setup without finding any error, I checked the pipeline settings.  
I use Hair Curves OPTIX\_PRIMITIVE\_TYPE\_FLAGS\_ROUND\_CATMULLROM, and all the GAS / IAS settings seemed to be ok, but I did not set the OptixPipelineCompileOptions.usesPrimitiveTypeFlags. It was zero. That caused it!  
The pipeline settings did not match the OptiX 7.1 Curve Primitive GAS  
primitive\_input.type = OPTIX\_BUILD\_INPUT\_TYPE\_CURVES; settings.  
and builtinISOptions.builtinISModuleType was also not set in my code due to respecting the invalid pipleline setting.

So the validation correctly told me, that something was wrong, but it was wrong in the pipeline and the inbuilt IS functions were missing but nothing wrong in the SBT-related code.  
Please improve the validation messages for such cases!

Thank you.

Project circumstances where I encountered it: see [this post](https://forums.developer.nvidia.com/t/streamout-rendertarget-to-fully-obtain-all-hair-vertices-for-nvidia-hairworks/251728)

My System:  
OptiX 7.6.0 SDK  
CUDA 11.8  
GTX 1050 2GB  
Win10PRO 64bit (version 21H1; build 19043.1237)  
device driver: 526.47 VS2019 v16.11.17 (toolkit v140 of VS2015)  
MDL SDK 2020.1.2  
Windows SDK 10.0.19041.0

---

<div class="post-metadata">

**Author:** ![dhart](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/dhart/32/14043_2.png) [@dhart](https://forums.developer.nvidia.com/u/dhart)\
**Post date:** [May 1, 2023, 9:10pm UTC](https://forums.developer.nvidia.com/t/validation-message-improvement-suggestion/251848/2 "2023-05-01T21:10:28Z")

</div>

Thanks that’s a good idea! I agree the SBT error is a bit unhelpful, I’ve filed a report to get it fixed.

–  
David.

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/system/32/68080_2.png) [@system](https://forums.developer.nvidia.com/u/system)\
**Post date:** [May 15, 2023, 9:11pm UTC](https://forums.developer.nvidia.com/t/validation-message-improvement-suggestion/251848/3 "2023-05-15T21:11:20Z")

</div>

Closed on May 15, 2023, 9:11pm UTC

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
