Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

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)