Hello everyone,
Additionally to one problem I have with turning off RTX mode (see other topic), I’m having an issue with RTX mode enabled.
Version is OptiX 6.0, Windows 10, GTX 1080 with the latest Studio Driver and Cuda 10.1.
I’m often getting the following error:
OptiX Error: 'Unknown error (Details: Function "_rtContextLaunch2D" caught exception: Encountered a CUDA error: cudaDriver().CuEventSynchronize( m_event ) returned (719): Launch failed)'
And tracked it down to setting a too small trace depth.
if( tutorial_number < 8 )
context->setMaxTraceDepth( 5 );
else
context->setMaxTraceDepth( 5 );
In the tutorialSample, example 10, if I change the maxTraceDepth to 5 as shown, the program crashes with above error after throwing a couple of stack overflow exceptions:
...
Caught exception 0x3FC at launch index (622,45)
Caught exception 0x3FC at launch index (623,45)
Caught exception 0x3FC at launch index (621,46)
Caught exception 0x3FC at launch index (622,46)
Caught exception 0x3FC at launch index (623,46)
Caught exception 0x3FC at launch index (622,47)
Caught exception 0x3FC at launch index (623,47)
Caught exception 0x3FC at launch index (599,55)
Caught exception 0x3FC at launch index (600,55)
OptiX Error: 'Unknown error (Details: Function "_rtContextLaunch2D" caught exception: Encountered a CUDA error: cudaDriver().CuEventSynchronize( m_event ) returned (719): Launch failed)'
For a depth of e.g. 10, a lot of exceptions get thrown (as expected) but the actual program doesn’t crash.
This seems to be related to the previous topic by another user here:
https://devtalk.nvidia.com/default/topic/1048561/optix/problems-with-setmaxtracedepth/,
but sadly that never got resolved.
Is there any way to prevent this hard crash?
Thanks in advance,
David