Unhandled exception error with OpenCV

2

I am trying to run a program that uses the OpenCV library. The program is successfully compiled but when I try to run it I get the following error:

Unhandled exception at 0x00007FFA62F6A74A (igdrcl64.dll) in ConvNetUtil.exe: 0xC0000005: Access violation reading location 0x0000000000000994.

I get this error both in debug and release mode.

My code is really simple:

Mat nImage;
cv::resize(img, nImage, _sizes[i]);
vector<PyRect> v;

I am trying to resize a mat image that is read correctly from disk in previous lines.

I am using OpenCV version 3. Thank you!

c++
opencv
asked on Stack Overflow Nov 21, 2016 by Danai Tri • edited Nov 22, 2016 by Abhipso Ghosh

2 Answers

5

You can resolve this error by doing these steps;

Uninstall Intel Graphics Driver.
Restart
Remove the following files:

On 64-bit version of Windows OS:
C:\Windows\System32\igdbcl64.dll
C:\Windows\System32\igdfcl64.dll
C:\Windows\System32\igdrcl64.dll
C:\Windows\SysWOW64\igdbcl32.dll
C:\Windows\SysWOW64\igdfcl32.dll
C:\Windows\SysWOW64\igdrcl32.dll
On 32-bit version of Windows OS:
C:\Windows\System32\igdbcl32.dll
C:\Windows\System32\igdfcl32.dll
C:\Windows\System32\igdrcl32.dll
answered on Stack Overflow Dec 10, 2016 by Saleh
0

I encountered a similar problem today. I solved it by uninstalling Intel graphics driver, and rebuild the OpenCV library with WITH_OPENGL flag unchecked.

My CMake setting

answered on Stack Overflow Nov 19, 2019 by CrimsonCross

User contributions licensed under CC BY-SA 3.0