luxonis / depthai-core

DepthAI C++ Library
MIT License
238 stars 128 forks source link

[BUG] {I met complicated error when I use the example I built} #628

Open JimXu1989 opened 2 years ago

JimXu1989 commented 2 years ago

I run the example I build from source, and it shows this, whatever example I tried: xss@xss-AERO-15-X9:~/SoftWare/depthai-core/build/examples$ ./depth_crop_control depth_crop_control: /home/xss/SoftWare/depthai-core/src/utility/Resources.cpp:301: dai::getLazyTarXzFunction(MTX&, CV&, BOOL&, PATH, LIST&, MAP&) [with CV = std::condition_variable; BOOL = bool; MTX = std::mutex; PATH = const char; LIST = const std::array<const char, 6>; MAP = std::unordered_map<std::cxx11::basic_string, std::vector >]::<lambda()>: Assertion size >= 0' failed. 已放弃 (核心已转储) xss@xss-AERO-15-X9:~/SoftWare/depthai-core/build/examples$ ./edge_detector edge_detector: /home/xss/SoftWare/depthai-core/src/utility/Resources.cpp:301: dai::getLazyTarXzFunction(MTX&, CV&, BOOL&, PATH, LIST&, MAP&) [with CV = std::condition_variable; BOOL = bool; MTX = std::mutex; PATH = const char*; LIST = const std::array<const char*, 6>; MAP = std::unordered_map<std::__cxx11::basic_string<char>, std::vector<unsigned char> >]::<lambda()>: Assertionsize >= 0' failed. 已放弃 (核心已转储) xss@xss-AERO-15-X9:~/SoftWare/depthai-core/build/examples$ ./stereo_depth_video stereo_depth_video: /home/xss/SoftWare/depthai-core/src/utility/Resources.cpp:301: dai::getLazyTarXzFunction(MTX&, CV&, BOOL&, PATH, LIST&, MAP&) [with CV = std::condition_variable; BOOL = bool; MTX = std::mutex; PATH = const char; LIST = const std::array<const char, 6>; MAP = std::unordered_map<std::cxx11::basic_string, std::vector >]::<lambda()>: Assertion `size >= 0' failed. 已放弃 (核心已转储)

themarpe commented 2 years ago

@JimXu1989 Are you using latest main branch? Also, which VS / MSVC version did you use to compile the library & examples?