# terminate called after throwing an instance of 'std::system_error'

Source: https://forum.modalai.com/topic/768/terminate-called-after-throwing-an-instance-of-std-system_error
Category: VOXL SDK and Software (https://forum.modalai.com/category/47/voxl-sdk-and-software)
Posted: 2022-02-23 17:32:28 UTC by Aniket Gupta
Replies: 1 · Views: 925

## Aniket Gupta · 2022-02-23 17:32:28 UTC

Hey,
I am trying to build and test a custom code on the voxl-emulator. It uses OpenCV and MV. It compiles fine but whenever I try to run the output file, it throws this error:

terminate called after throwing an instance of 'std::system_error'
  what():  Resource deadlock avoided
Aborted (core dumped)

I even tried compiling an empty program with an empty main function and it still throws the same error. Can anyone point out what I am doing wrong ?

## Reply by Guest · 2022-02-23 22:48:49 UTC

The emulator is meant to be a build environment and not for running code, this is likely the source of the issue, does your code encounter this problem when running on a voxl?
