Crashing application when starting video stream through hub

Hello,
(jetson orin with 4.2.2 with latest hub)
our application runs fine, but when we open the video page on hub the application crashes.
following backtrace:
0x0000fffff3fc8428 in std::_Optional_base::_M_is_engaged() const () from /usr/local/sl_hub/lib/libsl_hub.so
(gdb) bt
#0 0x0000fffff3fc8428 in std::_Optional_base::_M_is_engaged() const ()
at /usr/local/sl_hub/lib/libsl_hub.so
#1 0x0000fffff3fc8410 in std::optional::has_value() const () at /usr/local/sl_hub/lib/libsl_hub.so
#2 0x0000fffff3fc83c0 in rtc::RtpPacketizationConfig::setStartTime(double, rtc::RtpPacketizationConfig::EpochStart, std::optional) () at /usr/local/sl_hub/lib/libsl_hub.so
#3 0x0000fffff3f31570 in sl_webrtc::CommunicatorWebRTC::addToStream(std::shared_ptr<sl_webrtc::Client>, bool) ()
at /usr/local/sl_hub/lib/libsl_hub.so
#4 0x0000fffff3f31868 in std::_Function_handler<void (), sl_webrtc::CommunicatorWebRTC::createStreamClient(rtc::Configuration const&, std::weak_ptrrtc::WebSocket, std::__cxx11::basic_string<char, std::char_traits, std::allocator >, std::vector<std::__cxx11::basic_string<char, std::char_traits, std::allocator >, std::allocator<std::__cxx11::basic_string<char, std::char_traits, std::allocator > > >)::{lambda()#6}>::_M_invoke(std::_Any_data const&) () at /usr/local/sl_hub/lib/libsl_hub.so
#5 0x0000fffff3f681ec in std::function<void ()>::operator()() const () at /usr/local/sl_hub/lib/libsl_hub.so
#6 0x0000fffff3f6bf00 in rtc::synchronized_callback<>::call() const () at /usr/local/sl_hub/lib/libsl_hub.so
#7 0x0000fffff3f6be94 in rtc::synchronized_stored_callback<>::call() const () at /usr/local/sl_hub/lib/libsl_hub.so
#8 0x0000fffff3fea094 in rtc::synchronized_callback<>::operator()() const () at /usr/local/sl_hub/lib/libsl_hub.so
#9 0x0000fffff3fe921c in rtc::impl::Channel::triggerOpen() () at /usr/local/sl_hub/lib/libsl_hub.so
#10 0x0000fffff406adec in rtc::impl::Track::open(std::shared_ptrrtc::impl::DtlsSrtpTransport) ()
at /usr/local/sl_hub/lib/libsl_hub.so
#11 0x0000fffff40045b0 in rtc::impl::PeerConnection::openTracks()::{lambda(std::shared_ptrrtc::impl::Track const&)#1}::operator()(std::shared_ptrrtc::impl::Track const&) const () at /usr/local/sl_hub/lib/libsl_hub.so
#12 0x0000fffff400a68c in std::_Function_handler<void (std::shared_ptrrtc::impl::Track), rtc::impl::PeerConnection::openTracks()::{lambda(std::shared_ptrrtc::impl::Track const&)#1}>::_M_invoke(std::_Any_data const&, std::shared_ptrrtc::impl::Track&&) () at /usr/local/sl_hub/lib/libsl_hub.so
#13 0x0000fffff40175dc in std::function<void (std::shared_ptrrtc::impl::Track)>::operator()(std::shared_ptrrtc::impl::Track) const () at /usr/local/sl_hub/lib/libsl_hub.so
#14 0x0000fffff400438c in rtc::impl::PeerConnection::iterateTracks(std::function<void (std::shared_ptrrtc::impl::Track)>) () at /usr/local/sl_hub/lib/libsl_hub.so
#15 0x0000fffff40047c8 in rtc::impl::PeerConnection::openTracks() () at /usr/local/sl_hub/lib/libsl_hub.so
#16 0x0000fffff402f2ac in void std::__invoke_impl<void, void (rtc::impl::PeerConnection::&)(), std::shared_ptrrtc::impl::PeerConnection&>(std::__invoke_memfun_deref, void (rtc::impl::PeerConnection::&)(), std::shared_ptrrtc::impl::PeerConnection&) () at /usr/local/sl_hub/lib/libsl_hub.so
#17 0x0000fffff4028b1c in std::__invoke_result<void (rtc::impl::PeerConnection::&)(), std::shared_ptrrtc::impl::PeerConnection&>::type std::__invoke<void (rtc::impl::PeerConnection::&)(), std::shared_ptrrtc::impl::PeerConnection&>(void (rtc::impl::PeerConnection::*&)(), std::shared_ptrrtc::impl::PeerConnection&) () at /usr/local/sl_hub/lib/libsl_hub.so

what can we do to fix this instead of disabling hub functionality?

also building the hub tutorial_02 and testing it will result in the same behaivor.

Hi @Martijn,

I apologize for the issue, we will take a look at this and investigate the cause of the issue.

Hello Mattrouss,

Is there any update on this streaming issue? We really need this live video streaming and now it is useless.

Hi @Martijn,

Sorry for the delay, I have indeed been able to reproduce the issue with ZED SDK 4.2.2, and the latest edge agent, and I will continue to investigate the issue further.

Streaming with the ZED SDK 4.2.1 seems functional however. This version is included in Camera Manager 0.1.6, can you confirm that you have a stream using this version of the app?

I try to install Camera Manager 0.1.6 but get the following error:

[Info] [2025/01/Tu 08:24:26 am] Waiting for device to start the operation…
[Info] [2025/01/Tu 08:24:27 am] Application Camera Manager 0.1.6 downloaded successfully.
[Error] [2025/01/Tu 08:24:27 am] Cannot deploy application. L4T R36.3 is not supported by the application

I also wanted to download the ZED SDK 4.2.1 to build and test myself but can’t find them anymore on the website, can only download 4.2.2 or 4.1.4

so what can I do?

I am preparing a new version of Camera Manager compatible with L4T36.3 for you to test, it will be released tomorrow

Hi @Martijn,

I have updated Camera Manager to version 0.1.7, which includes ZED SDK 4.2.1. I have tested on Ubuntu 22.04 and L4T35.1, I will try it additionally on L4T36.3

Hello,

I tested your release and first time building had some troubles. I removed it and deployed again and after some time it was working.
then I saw the jpeg page every 2-3 seconds camera update… but when i clicked on it to get the webrtc stream, it crashed directly.
so simulair behaivor with my own build application on sdk 4.2.2

I updated the zed SDK to 4.2.3 and re-test the situation, but the application crashes also as soon as we start the web rtc video stream. Any update on when this issue is fixed?