Driveworks exception thrown

We’re trying integrate opencv and ROS with driveworks libraries so that we can use gmsl cameras for other tasks. Basically there’s no error during compiling. However, when we rosrun the node, here’s an error saying:

Driveworks exception thrown: DW_NOT_AVAILABLE: StreamConsumerOpenGL: No gl context exists
terminate called after throwing an instance of ‘std::logic_error’
what(): basic_string::_M_construct null not valid
Aborted (core dumped)

Just wondering what type of error this might be?