I have a path tracer based program which crashes at some point, after a certain amount of frames.
I’m getting this error:
Unknown error (Details: Function "_rtContextLaunch2D" caught exception: Encountered a CUDA error: cudaDriver().CuEventSynchronize( m_event ) returned (700): Illegal address)
I figured this error is thrown from the launch function:
context->launch(0, camera.width(), camera.height());
So I wrapped it with a try - catch mechanism so it doesn’t crash the whole program.
Next, if I try to either launch the context again or run “context->destroy();” in order to redefine the context and run it again, I’m getting the following error:
Unknown error (Details: Function "_rtVariableSet1ui" caught exception: Assertion failed: "!m_launching", file: <internal>, line: 211)
So what I understand from this error is that because the context launch crashed, the “m_launching” flag hasn’t been turned off, and any attempt to reference either the context or the glfw window results in an immediate crash.
I’ve look nearly everywhere online and in the documentation and haven’t found any mention of the “m_launching” variable.
How can I resolve the issue or at least manage my exceptions properly?
Using Optix 6.0.0