OpenCV Error: Assertion failed (tlsSlots.size() > slotIdx) in releaseSlot
Hello everyone ;
I can ask a little question.
My code ;
#include <iostream>
#include "opencv2/opencv.hpp"
#include <opencv2/core/cuda.hpp>
using namespace cv;
int main()
{
//cv::cuda::GpuMat h1;
Mat h;
h = imread("s.png");
if (h.empty())
{
std::cout << "!!! Failed imread(): image not found" << std::endl;
}
return 0;
}
This is err;
OpenCV Error: Assertion failed (tlsSlots.size() > slotIdx) in releaseSlot, file /build/opencv-XDqSFW/opencv-3.2.0+dfsg/modules/core/src/system.cpp, line 1092
terminate called after throwing an instance of 'cv::Exception'
what(): /build/opencv-XDqSFW/opencv-3.2.0+dfsg/modules/core/src/system.cpp:1092: error: (-215) tlsSlots.size() > slotIdx in function releaseSlot
Aborted (core dumped)
outdated, also looks like something prebuilt from some ppm, it won't have any cuda support
please build 3.4.9 or resp. master + contrib from src, cuda sdk
I have a warn ;
My CMakeList;
How can I fix it ?
please uninstall opencv3.2, or, at least, stick with a single opencv version.
then, noone can help with ros problems here....