Cannot profile Qt5 application on Jetson Orin Nano

I’m trying to profile my Qt5 (prebuilt 5.12.8 from apt) application running on my Jetson Orin Nano.

My host platform is an Ubuntu 20.04 machine with kernel 5.15.0-84 and Nsight Graphics (for embedded) version 2023.2.0.0

The target platform is a Jetson Orin Nano running Ubuntu 20.04.6 (kernel 5.10.120) installed this morning via SDK manager.

After starting the application and then pressing “Capture for live analysis” will always end up Qt5 application crash with following message “Connection error detected communicating with target application. Shutting down connection.”.

This topic is extremely similar to my case but does not solve my issue: https://forums.developer.nvidia.com/t/cannot-profile-qt5-application/70607

You can find attached a simple code that reproduces the issue on my system.
test_opengl_qt5.zip (3.7 KB)

When attaching gdb to running Qt5 application before starting live capture and then starting it, the gdb backtrace shows that the crash happens inside Nvidia driver libraries:

#0 0x0000ffff7b3c2e04 in ?? () from /usr/lib/aarch64-linux-gnu/tegra/libnvidia-glcore.so.35.4.1
#1 0x0000ffff7b38d1f0 in ?? () from /usr/lib/aarch64-linux-gnu/tegra/libnvidia-glcore.so.35.4.1
#2 0x0000ffff899720e0 in ?? () from /usr/lib/aarch64-linux-gnu/tegra/libGLX_nvidia.so.0
#3 0x0000ffff899ab448 in ?? () from /usr/lib/aarch64-linux-gnu/tegra/libGLX_nvidia.so.0
#4 0x0000ffff8e3eb5ac in ?? () from /lib/aarch64-linux-gnu/libGLX.so.0
#5 0x0000ffff8e3ed4e8 in ?? () from /lib/aarch64-linux-gnu/libGLX.so.0
#6 0x0000ffff9169303c in ?? () from /tmp/var/linux-v4l_l4t-nomad-t210-a64/libNvda.Graphics.Interception.so
#7 0x0000ffff924820fc in ?? () from /tmp/var/linux-v4l_l4t-nomad-t210-a64/libNvda.Graphics.Interception.so
#8 0x0000ffff90fbedf4 in ?? () from /tmp/var/linux-v4l_l4t-nomad-t210-a64/libNvda.Graphics.Interception.so
#9 0x0000ffff912ad040 in ?? () from /tmp/var/linux-v4l_l4t-nomad-t210-a64/libNvda.Graphics.Interception.so
#10 0x0000ffff9169b944 in ?? () from /tmp/var/linux-v4l_l4t-nomad-t210-a64/libNvda.Graphics.Interception.so
#11 0x0000ffff8a2b0fb0 in ?? () from /usr/lib/aarch64-linux-gnu/qt5/plugins/xcbglintegrations/libqxcb-glx-integration.so
#12 0x0000ffff8fa0a1f0 in QOpenGLContext::swapBuffers(QSurface*) () from /lib/aarch64-linux-gnu/libQt5Gui.so.5
#13 0x0000ffff8fc8b9b0 in QPlatformBackingStore::composeAndFlush(QWindow*, QRegion const&, QPoint const&, QPlatformTextureList*, bool) () from /lib/aarch64-linux-gnu/libQt5Gui.so.5
#14 0x0000ffff8bd19e48 in ?? () from /lib/aarch64-linux-gnu/libQt5XcbQpa.so.5
#15 0x0000ffff8ffb9430 in ?? () from /lib/aarch64-linux-gnu/libQt5Widgets.so.5
#16 0x0000ffff8ffbb068 in ?? () from /lib/aarch64-linux-gnu/libQt5Widgets.so.5
#17 0x0000ffff8ffbbda8 in ?? () from /lib/aarch64-linux-gnu/libQt5Widgets.so.5
#18 0x0000ffff8ffbc2e8 in ?? () from /lib/aarch64-linux-gnu/libQt5Widgets.so.5
#19 0x0000ffff8ffd4b44 in QWidgetPrivate::syncBackingStore() () from /lib/aarch64-linux-gnu/libQt5Widgets.so.5
#20 0x0000ffff8ffec924 in QWidget::event(QEvent*) () from /lib/aarch64-linux-gnu/libQt5Widgets.so.5
#21 0x0000ffff900f3430 in QMainWindow::event(QEvent*) () from /lib/aarch64-linux-gnu/libQt5Widgets.so.5
#22 0x0000ffff8ffaa4ac in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /lib/aarch64-linux-gnu/libQt5Widgets.so.5
#23 0x0000ffff8ffb3ad8 in QApplication::notify(QObject*, QEvent*) () from /lib/aarch64-linux-gnu/libQt5Widgets.so.5
#24 0x0000ffff8f5fac0c in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /lib/aarch64-linux-gnu/libQt5Core.so.5
#25 0x0000ffff8f5fdb80 in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () from /lib/aarch64-linux-gnu/libQt5Core.so.5
#26 0x0000ffff8f656d20 in ?? () from /lib/aarch64-linux-gnu/libQt5Core.so.5
#27 0x0000ffff8e64094c in g_main_context_dispatch () from /lib/aarch64-linux-gnu/libglib-2.0.so.0
#28 0x0000ffff8e640bbc in ?? () from /lib/aarch64-linux-gnu/libglib-2.0.so.0
#29 0x0000ffff8e640c5c in g_main_context_iteration () from /lib/aarch64-linux-gnu/libglib-2.0.so.0
#30 0x0000ffff8f6561cc in QEventDispatcherGlib::processEvents(QFlagsQEventLoop::ProcessEventsFlag) () from /lib/aarch64-linux-gnu/libQt5Core.so.5
#31 0x0000ffff8f5f93b8 in QEventLoop::exec(QFlagsQEventLoop::ProcessEventsFlag) () from /lib/aarch64-linux-gnu/libQt5Core.so.5
#32 0x0000ffff8f601a5c in QCoreApplication::exec() () from /lib/aarch64-linux-gnu/libQt5Core.so.5
#33 0x0000aaaac45fd090 in main (argc=1, argv=0xffffeb54bcd8) at

Hello,

Thank you for using Nsight Graphics and sorry the issue you ran into. We will try to using the zip file you provided to repro the issue.

Thanks
An

Hello,

We just repro the crash by using the zip file you attached, and an internal case have been created to track. I am sorry for any inconvenience you have meet and thanks for your feedback.

Thanks
An