I am trying to debug an application in CodeXL that uses ocl based data structures and calls. ocl is the OpenCL implementation of some of the OpenCV functions. ocl source can be found in the standard OpenCV release at modules/ocl directory.
I see that CodeXL consistently crashes when I load any of the applications that use ocl data structures, specifically cv::ocl::oclMat::release(). Here is the code snippet where is fails,
|release(); // Fails here, no further stack trace|
and the definition for release() is as below,
|//cout << "cv::ocl::oclMat::release()" << endl;|
|if( refcount && CV_XADD(refcount, -1) == 1 )|
|data = datastart = dataend = 0;|
|step = rows = cols = 0;|
|offset = wholerows = wholecols = 0;|
|refcount = 0;|
Am I missing any initialization step here?