Getting "Error launching work to RTX" when calling optixLaunch

After doing some refactoring of my OptiX based program, i have started getting the error “Error launching work to RTX” when calling optixLaunch.

My program is way to large to post the code here, but i would appreciate any hints on where to start debugging as i am not sure what the error actually means.

I initially thought there could be something wrong with my how i create the Raygen record or the raygen program group, but i cant see anything wrong with that when i step through the code.

1 Like

I was able to find the error.
Turns out i was reading the width and height of the launch from uninitialized memory. Causing the launch dimensions to be extremely large.

Perhaps a more descriptive error message would be useful in this case.

1 Like