ROS + OpenCV 4.5.2 Color correction model SIGSEGV


I’m trying to get this example to work inside a ROS node, but when I get to the line; the process dies.
If I set up the color correction in a separate project, it works fine. Any idea what might cause this?