When encountering an error during context creation, the "OptiXDevice" constructor aborts early. This means the "cuda_stream" vector is never resized and the destructor iterated over non-existent data.
av_guess_frame_rate()