I actually found that using USB 3.0 cable for data communication resulting the above error, USB 2.0 was fine. XLinkStream::write / XLinkStream::read returns X_LINK_ERROR. I need some help @Luxonis-Adam
The call stack:
====================================================
libc.so.6!__pthread_kill_implementation(pthread_t threadid, int signo, int no_tid) (pthread_kill.c:44)
libc.so.6!__pthread_kill_internal(int signo, pthread_t threadid) (pthread_kill.c:78)
libc.so.6!__GI_raise(int sig) (raise.c:26)
libc.so.6!__GI_abort() (abort.c:79)
libstdc++.so.6!__gnu_cxx::__verbose_terminate_handler() (Unknown Source:0)
libstdc++.so.6![Unknown/Just-In-Time compiled code] (Unknown Source:0)
libstdc++.so.6!std::terminate() (Unknown Source:0)
libstdc++.so.6!__cxa_rethrow (Unknown Source:0)
libdepthai-core.so!dai::DeviceBase::init2(dai::DeviceBase * const this, dai::DeviceBase::Config cfg, const dai::Path & pathToMvcmd, tl::optional<dai::Pipeline const&> pipeline) (/home/jetson/develop/lyh/github/depthai-core/src/device/DeviceBase.cpp:914)
libdepthai-core.so!dai::DeviceBase::init(dai::DeviceBase * const this, dai::DeviceBase::Config config, dai::UsbSpeed maxUsbSpeed, const dai::Path & pathToMvcmd) (/home/jetson/develop/lyh/github/depthai-core/src/device/DeviceBase.cpp:667)
libdepthai-core.so!dai::DeviceBase::init(dai::DeviceBase * const this, dai::DeviceBase::Config config, dai::UsbSpeed maxUsbSpeed) (/home/jetson/develop/lyh/github/depthai-core/src/device/DeviceBase.cpp:489)
libdepthai-core.so!dai::DeviceBase::DeviceBase(dai::DeviceBase * const this, dai::DeviceBase::Config config, dai::UsbSpeed maxUsbSpeed) (/home/jetson/develop/lyh/github/depthai-core/src/device/DeviceBase.cpp:419)
libdepthai-core.so!dai::Device::Device(dai::Device * const this, const dai::Pipeline & pipeline, dai::UsbSpeed maxUsbSpeed) (/home/jetson/develop/lyh/github/depthai-core/src/device/Device.cpp:36)
main() (/home/jetson/develop/lyh/github/depthai-core/examples/ColorCamera/rgb_preview.cpp:28)