Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Josh43
Beginner
72 Views

OpenVino: Memory Access Exception in Release Build

Jump to solution

I've been developing a DLL library with the OpenVino distribution kit. Everything runs fine when in debug configuration. Once I attempt to run the library in a release build I get an access violation error:

Exception thrown at 0x00007FFDEB381283 (vcruntime140d.dll) in OpenVinoIntegration.exe: 0xC0000005: Access violation reading location 0x0000000000000005.

This happens after a (CNNNetwork) reader.getNetwork(); call is returned.

So far I have both the release and debug in my path. 

Josh43_0-1612827513222.png

Here's the Call stack:

Josh43_2-1612827996088.png

Any ideas why this is happening? Should I be using the libraries provided by GitHub? 

I'm using OpenVino 2019_R3.1. 

0 Kudos

Accepted Solutions
Josh43
Beginner
53 Views

Iffa,

Thanks for getting back to me.

I resolved the issue. It turns out the cpu_extension.dll I was using had a dependency on debug dll's.

  

View solution in original post

3 Replies
Iffa_Intel
Moderator
58 Views

Greetings,


First of all, please help to refer to this guide - "Inference Engine Developer Guide" https://docs.openvinotoolkit.org/latest/openvino_docs_IE_DG_Deep_Learning_Inference_Engine_DevGuide....

And especially the section "Integrate the Inference Engine with Your Application" - https://docs.openvinotoolkit.org/latest/openvino_docs_IE_DG_Integrate_with_customer_application_new_...

These pages describe recommended methods of how to use IE in a custom application.

 

Also, if you would like to further debug this use-case, I believe, you could build open-source version of OpenVINO in debug mode using a command like >cmake -DCMAKE_BUILD_TYPE=Debug -G "Visual Studio 16 2019" ..

Here's a Linux example for your reference on how to build OV from source - https://www.intel.com/content/www/us/en/support/articles/000057448/software/development-software.htm...

Or you could also try to debug this from MSVC side using https://docs.microsoft.com/en-us/visualstudio/debugger/?view=vs-2019 in order to understand where exactly the problem is.


Using library from Github should not be a problem if you used them correctly.

Besides, please help to use the latest OpenVINO version (current version is 2021.2)



Sincerely,

Iffa



Josh43
Beginner
54 Views

Iffa,

Thanks for getting back to me.

I resolved the issue. It turns out the cpu_extension.dll I was using had a dependency on debug dll's.

  

View solution in original post

Iffa_Intel
Moderator
45 Views

Hi,


Glad to know that you had solved the issue.


Intel will no longer monitor this thread since this issue has been resolved. If you need any additional information from Intel, please submit a new question. 


Sincerely,

Iffa