ZED_Depth_Viewer crashing on SVO playback when ZED_Explorer works as expected with same SVO file

Hello,

I am running the ZED_Explorer on a recorded SVO files. It works as expected on my Ubuntu 22.04 laptop with ZED SDK 4.0.7 and CUDA 12.1.105.

However, when I try to run the ZED_Depth_Viewer and playback the same SVO file, it crashes the application. Below is the error:

$> ZED_Depth_Viewer
in bool ImageHandler::initialize(sl::Mat&) : Err [999]: unknown error.
Stack trace (most recent call last):
#31 Object β€œ/lib/x86_64-linux-gnu/libQt5Core.so.5”, at 0x7fc407ac0cf3, in QCoreApplication::exec()
#30 Object β€œ/lib/x86_64-linux-gnu/libQt5Core.so.5”, at 0x7fc407ab875a, in QEventLoop::exec(QFlagsQEventLoop::ProcessEventsFlag)
#29 Object β€œ/lib/x86_64-linux-gnu/libQt5Core.so.5”, at 0x7fc407b130b7, in QEventDispatcherGlib::processEvents(QFlagsQEventLoop::ProcessEventsFlag)
#28 Object β€œ/lib/x86_64-linux-gnu/libglib-2.0.so.0”, at 0x7fc4073193e2, in g_main_context_iteration
#27 Object β€œ/lib/x86_64-linux-gnu/libglib-2.0.so.0”, at 0x7fc407371257, in
#26 Object β€œ/lib/x86_64-linux-gnu/libglib-2.0.so.0”, at 0x7fc40731bd3a, in g_main_context_dispatch
#25 Object β€œ/lib/x86_64-linux-gnu/libQt5XcbQpa.so.5”, at 0x7fc402cf8d6d, in
#24 Object β€œ/lib/x86_64-linux-gnu/libQt5Gui.so.5”, at 0x7fc407f16a2b, in QWindowSystemInterface::sendWindowSystemEvents(QFlagsQEventLoop::ProcessEventsFlag)
#23 Object β€œ/lib/x86_64-linux-gnu/libQt5Gui.so.5”, at 0x7fc407f41306, in QGuiApplicationPrivate::processMouseEvent(QWindowSystemInterfacePrivate::MouseEvent*)
#22 Object β€œ/lib/x86_64-linux-gnu/libQt5Core.so.5”, at 0x7fc407ab9e39, in QCoreApplication::notifyInternal2(QObject*, QEvent*)
#21 Object β€œ/lib/x86_64-linux-gnu/libQt5Widgets.so.5”, at 0x7fc40876c712, in QApplicationPrivate::notify_helper(QObject*, QEvent*)
#20 Object β€œ/lib/x86_64-linux-gnu/libQt5Widgets.so.5”, at 0x7fc4087cbfd4, in
#19 Object β€œ/lib/x86_64-linux-gnu/libQt5Widgets.so.5”, at 0x7fc4087c8d3f, in
#18 Object β€œ/lib/x86_64-linux-gnu/libQt5Widgets.so.5”, at 0x7fc408772e46, in QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer&, bool, bool)
#17 Object β€œ/lib/x86_64-linux-gnu/libQt5Core.so.5”, at 0x7fc407ab9e39, in QCoreApplication::notifyInternal2(QObject*, QEvent*)
#16 Object β€œ/lib/x86_64-linux-gnu/libQt5Widgets.so.5”, at 0x7fc408774363, in QApplication::notify(QObject*, QEvent*)
#15 Object β€œ/lib/x86_64-linux-gnu/libQt5Widgets.so.5”, at 0x7fc40876c712, in QApplicationPrivate::notify_helper(QObject*, QEvent*)
#14 Object β€œ/lib/x86_64-linux-gnu/libQt5Widgets.so.5”, at 0x7fc4087af4ed, in QWidget::event(QEvent*)
#13 Object β€œ/lib/x86_64-linux-gnu/libQt5Widgets.so.5”, at 0x7fc408960d9d, in QToolButton::mouseReleaseEvent(QMouseEvent*)
#12 Object β€œ/lib/x86_64-linux-gnu/libQt5Widgets.so.5”, at 0x7fc4088641e6, in QAbstractButton::mouseReleaseEvent(QMouseEvent*)
#11 Object β€œ/lib/x86_64-linux-gnu/libQt5Widgets.so.5”, at 0x7fc408863fc3, in
#10 Object β€œ/lib/x86_64-linux-gnu/libQt5Widgets.so.5”, at 0x7fc40886239d, in
#9 Object β€œ/lib/x86_64-linux-gnu/libQt5Widgets.so.5”, at 0x7fc408862115, in QAbstractButton::clicked(bool)
#8 Object β€œ/lib/x86_64-linux-gnu/libQt5Core.so.5”, at 0x7fc407af17c7, in
#7 Object β€œZED_Depth_Viewer”, at 0x564a0d47f98e, in
#6 Object β€œZED_Depth_Viewer”, at 0x564a0d47807f, in
#5 Object β€œZED_Depth_Viewer”, at 0x564a0d477b94, in
#4 Object β€œZED_Depth_Viewer”, at 0x564a0d486103, in
#3 Object β€œZED_Depth_Viewer”, at 0x564a0d484c12, in
#2 Object β€œZED_Depth_Viewer”, at 0x564a0d4e652d, in
#1 Object β€œZED_Depth_Viewer”, at 0x564a0d4a270d, in
#0 Object β€œ/lib/x86_64-linux-gnu/libcuda.so.1”, at 0x7fc411b30b60, in
Segmentation fault (Signal sent by the kernel [(nil)])
Segmentation fault (core dumped)

Any ideas what might be casing this? Please see attached Zed_Diagnostic_results.json file.

I reviewed a few threads with the ZED_Depth_Viewer crashing but they were different stack traces than I am experiencing.

Thanks!
ZED_Diagnostic_Results.json (6.0 KB)

So after reading the related threads again, I was able to follow the steps here to resolve this issue on one of the computers:

https://support.stereolabs.com/hc/en-us/articles/8422008229143.

On the other computer running 22.04 this did not work, rather, after using the command

$ sudo prime-select query
nvidia

and seeing the correct output, I cannot see the correct output from

$ glxinfo | grep OpenGL
X Error of failed request:  BadValue (integer parameter out of range for operation)
  Major opcode of failed request:  152 (GLX)
  Minor opcode of failed request:  24 (X_GLXCreateNewContext)
  Value in failed request:  0x0
  Serial number of failed request:  66
  Current serial number in output stream:  67

and when running the ZED tools, I see

$ ZED_Explorer 
 ** [SVO] Hardware compression (NVENC) available **
Stack trace (most recent call last):
#20   Object "[0xffffffffffffffff]", at 0xffffffffffffffff, in 
#19   Object "ZED_Explorer", at 0x4893b4, in 
#18   Object "/lib/x86_64-linux-gnu/libc.so.6", at 0x7fba73029e3f, in __libc_start_main
#17   Object "/lib/x86_64-linux-gnu/libc.so.6", at 0x7fba73029d8f, in 
#16   Object "ZED_Explorer", at 0x47041e, in 
#15   Object "/lib/x86_64-linux-gnu/libQt5Core.so.5", at 0x7fba73ac0cf3, in QCoreApplication::exec()
#14   Object "/lib/x86_64-linux-gnu/libQt5Core.so.5", at 0x7fba73ab875a, in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>)
#13   Object "/lib/x86_64-linux-gnu/libQt5Core.so.5", at 0x7fba73b130b7, in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>)
#12   Object "/lib/x86_64-linux-gnu/libglib-2.0.so.0", at 0x7fba7291e3e2, in g_main_context_iteration
#11   Object "/lib/x86_64-linux-gnu/libglib-2.0.so.0", at 0x7fba72976257, in 
#10   Object "/lib/x86_64-linux-gnu/libglib-2.0.so.0", at 0x7fba72920d3a, in g_main_context_dispatch
#9    Object "/lib/x86_64-linux-gnu/libQt5Core.so.5", at 0x7fba73b12ceb, in 
#8    Object "/lib/x86_64-linux-gnu/libQt5Core.so.5", at 0x7fba73b123ea, in QTimerInfoList::activateTimers()
#7    Object "/lib/x86_64-linux-gnu/libQt5Core.so.5", at 0x7fba73ab9e39, in QCoreApplication::notifyInternal2(QObject*, QEvent*)
#6    Object "/lib/x86_64-linux-gnu/libQt5Widgets.so.5", at 0x7fba7476c712, in QApplicationPrivate::notify_helper(QObject*, QEvent*)
#5    Object "/lib/x86_64-linux-gnu/libQt5Core.so.5", at 0x7fba73ae733e, in QObject::event(QEvent*)
#4    Object "/lib/x86_64-linux-gnu/libQt5Core.so.5", at 0x7fba73af57fd, in QTimer::timeout(QTimer::QPrivateSignal)
#3    Object "/lib/x86_64-linux-gnu/libQt5Core.so.5", at 0x7fba73af17c7, in 
#2    Object "ZED_Explorer", at 0x4dd5da, in 
#1    Object "ZED_Explorer", at 0x4c45a4, in 
#0    Object "/lib/x86_64-linux-gnu/libQt5OpenGL.so.5", at 0x7fba74e45cee, in 
Segmentation fault (Address not mapped to object [(nil)])
Segmentation fault (core dumped)
1 Like

I updated the above post because this solution only worked on one of my two platforms.