Danai Tri
Danai Tri

Reputation: 119

Unhandled exception error with OpenCV

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!

Upvotes: 2

Views: 2616

Answers (2)

CrimsonCross
CrimsonCross

Reputation: 1

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

Upvotes: 0

Saleh
Saleh

Reputation: 667

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

Upvotes: 5

Related Questions