• DepthAI-v2
  • Terminate called after throwing an instance of 'std::system_error'

Hello!

Our product was running with an OAK-D-Pro-POE camera and the connection closed with an error we hadn't seen before. I couldn't find anything in the forums either. It seems like DepthAi.Device tried to call some gcc code which threw an error.

Any clues what happened or how to fix it? We're running a pretty complicated pipeline with stereo depth + rgb + some frame encoding, but this is the first time we've seen it. No idea how to reproduce it…

Here's the full log. We're running DepthAi v2.24

terminate called after throwing an instance of 'std::system_error'
  what():  Invalid argument
Stack trace (most recent call last) in thread 179931:
#31   Object "/home/user/project_root/.pyenv/versions/3.9.17/lib/libpython3.9.so.1.0", at 0x7f9ebb555fae, in _PyEval_EvalFrameDefault
#30   Object "/home/user/project_root/.pyenv/versions/3.9.17/lib/libpython3.9.so.1.0", at 0x7f9ebb54e40a, in
#29   Object "/home/user/project_root/.pyenv/versions/3.9.17/lib/libpython3.9.so.1.0", at 0x7f9ebb555fae, in _PyEval_EvalFrameDefault
#28   Object "/home/user/project_root/.pyenv/versions/3.9.17/lib/libpython3.9.so.1.0", at 0x7f9ebb5ad100, in
#27   Object "/home/user/project_root/.pyenv/versions/3.9.17/lib/python3.9/lib-dynload/_elementtree.cpython-39-x86_64-linux-gnu.so", at 0x7f9e708ba836, in
#26   Object "/home/user/project_root/.pyenv/versions/3.9.17/lib/python3.9/lib-dynload/_elementtree.cpython-39-x86_64-linux-gnu.so", at 0x7f9e708ba6ac, in
#25   Object "/home/user/project_root/.pyenv/versions/3.9.17/lib/python3.9/lib-dynload/pyexpat.cpython-39-x86_64-linux-gnu.so", at 0x7f9e7087b21f, in
#24   Object "/home/user/project_root/.pyenv/versions/3.9.17/lib/python3.9/lib-dynload/pyexpat.cpython-39-x86_64-linux-gnu.so", at 0x7f9e708849e2, in
#23   Object "/home/user/project_root/.pyenv/versions/3.9.17/lib/python3.9/lib-dynload/pyexpat.cpython-39-x86_64-linux-gnu.so", at 0x7f9e70880ee3, in
#22   Object "/home/user/project_root/.pyenv/versions/3.9.17/lib/python3.9/lib-dynload/pyexpat.cpython-39-x86_64-linux-gnu.so", at 0x7f9e70882e6b, in
#21   Object "/home/user/project_root/.pyenv/versions/3.9.17/lib/python3.9/lib-dynload/_elementtree.cpython-39-x86_64-linux-gnu.so", at 0x7f9e708be98e, in
#20   Object "/home/user/project_root/.pyenv/versions/3.9.17/lib/python3.9/lib-dynload/_elementtree.cpython-39-x86_64-linux-gnu.so", at 0x7f9e708be52a, in
#19   Object "/home/user/project_root/.pyenv/versions/3.9.17/lib/python3.9/lib-dynload/_elementtree.cpython-39-x86_64-linux-gnu.so", at 0x7f9e708ba1d5, in
#18   Object "/home/user/project_root/.pyenv/versions/3.9.17/lib/libpython3.9.so.1.0", at 0x7f9ebb6f9be6, in _PyObject_GC_New
#17   Object "/home/user/project_root/.pyenv/versions/3.9.17/lib/libpython3.9.so.1.0", at 0x7f9ebb6f99a3, in _PyObject_GC_Malloc
#16   Object "/home/user/project_root/.pyenv/versions/3.9.17/lib/libpython3.9.so.1.0", at 0x7f9ebb6f884d, in
#15   Object "/home/user/project_root/.pyenv/versions/3.9.17/lib/libpython3.9.so.1.0", at 0x7f9ebb6047c6, in
#14   Object "/home/user/project_root/.pyenv/versions/3.9.17/lib/libpython3.9.so.1.0", at 0x7f9ebb5dc1f3, in
#13   Object "/home/user/project_root/sub/.venv/lib/python3.9/site-packages/scipy/optimize/_pava_pybind.cpython-39-x86_64-linux-gnu.so", at 0x7f9eb4c6e900, in
#12   Object "/home/user/project_root/sub/.venv/lib/python3.9/site-packages/scipy/optimize/_pava_pybind.cpython-39-x86_64-linux-gnu.so", at 0x7f9eb4c6dc4d, in
#11   Object "/home/user/project_root/sub/.venv/lib/python3.9/site-packages/depthai.cpython-39-x86_64-linux-gnu.so", at 0x7f9ce8c279d6, in
#10   Object "/home/user/project_root/sub/.venv/lib/python3.9/site-packages/depthai.cpython-39-x86_64-linux-gnu.so", at 0x7f9ce8e5d848, in dai::Device::~Device()
#9    Object "/home/user/project_root/sub/.venv/lib/python3.9/site-packages/depthai.cpython-39-x86_64-linux-gnu.so", at 0x7f9ce8e5d433, in dai::Device::~Device()
#8    Object "/home/user/project_root/sub/.venv/lib/python3.9/site-packages/depthai.cpython-39-x86_64-linux-gnu.so", at 0x7f9ce8bdea64, in
#7    Object "/lib/x86_64-linux-gnu/libgcc_s.so.1", at 0x7f9eb8cf45b9, in _Unwind_Resume
#6    Object "/lib/x86_64-linux-gnu/libgcc_s.so.1", at 0x7f9eb8cf3bfe, in
#5    Object "/lib/x86_64-linux-gnu/libstdc++.so.6", at 0x7f9eb8da7d10, in __gxx_personality_v0
#4    Object "/lib/x86_64-linux-gnu/libstdc++.so.6", at 0x7f9eb8da7358, in
#3    Object "/lib/x86_64-linux-gnu/libstdc++.so.6", at 0x7f9eb8da837b, in
#2    Object "/lib/x86_64-linux-gnu/libstdc++.so.6", at 0x7f9eb8d9c8d0, in
#1    Object "/lib/x86_64-linux-gnu/libc.so.6", at 0x7f9ebb2f3858, in abort
#0    Object "/lib/x86_64-linux-gnu/libc.so.6", at 0x7f9ebb31400b, in gsignal
Aborted (Signal sent by tkill() 179447 1000)

Thank you for any help!!

  • Hi @AnthonyRomm
    I believe there were some fixes regarding this in 24-->25. Please upgrade to latest version and try again.

    Thanks,
    Jaka

Hi @AnthonyRomm
I believe there were some fixes regarding this in 24-->25. Please upgrade to latest version and try again.

Thanks,
Jaka