Intel® Distribution of OpenVINO™ Toolkit
Community assistance about the Intel® Distribution of OpenVINO™ toolkit, OpenCV, and all aspects of computer vision-related on Intel® platforms.

Stack overflow on LoadNetwork

Nemes__Adam
Beginner
1,327 Views

I have a model which throws stack overflow exception when I want to load using the loadNetwork method of inference engine.

Here are the errors:

CPU
Unhandled exception at 0x00007FF8D3BE3CAE (inference_engine_legacyd.dll) in MMRGround.exe: 0xC00000FD: Stack overflow (parameters: 0x0000000000000001, 0x0000004099603FE0).
GPU
Unhandled exception at 0x00007FF8EFCF1672 (ucrtbased.dll) in MMRGround.exe: 0xC00000FD: Stack overflow (parameters: 0x0000000000000001, 0x000000EF91803FF8).

All other models working fine but this one cant be loaded (however it calculates for a couple minutes)

I tried with model optimized for different batch size, same result.

Its a huge model  over 1300 layer can this cause the problem?

 

0 Kudos
2 Replies
Nemes__Adam
Beginner
1,327 Views

This only occur in DEBUG mode.

If i change to RELEASE the network can be loaded.

0 Kudos
Munesh_Intel
Moderator
1,327 Views

Hi Adam,

Stack overflow exception happens when a large array is allocated in the stack.

I would suggest that you try allocating the array in the heap.

 

Regards,

Munesh

0 Kudos
Reply