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:

You can find attached a simple code that reproduces the issue on my system. (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/
#1 0x0000ffff7b38d1f0 in ?? () from /usr/lib/aarch64-linux-gnu/tegra/
#2 0x0000ffff899720e0 in ?? () from /usr/lib/aarch64-linux-gnu/tegra/
#3 0x0000ffff899ab448 in ?? () from /usr/lib/aarch64-linux-gnu/tegra/
#4 0x0000ffff8e3eb5ac in ?? () from /lib/aarch64-linux-gnu/
#5 0x0000ffff8e3ed4e8 in ?? () from /lib/aarch64-linux-gnu/
#6 0x0000ffff9169303c in ?? () from /tmp/var/linux-v4l_l4t-nomad-t210-a64/
#7 0x0000ffff924820fc in ?? () from /tmp/var/linux-v4l_l4t-nomad-t210-a64/
#8 0x0000ffff90fbedf4 in ?? () from /tmp/var/linux-v4l_l4t-nomad-t210-a64/
#9 0x0000ffff912ad040 in ?? () from /tmp/var/linux-v4l_l4t-nomad-t210-a64/
#10 0x0000ffff9169b944 in ?? () from /tmp/var/linux-v4l_l4t-nomad-t210-a64/
#11 0x0000ffff8a2b0fb0 in ?? () from /usr/lib/aarch64-linux-gnu/qt5/plugins/xcbglintegrations/
#12 0x0000ffff8fa0a1f0 in QOpenGLContext::swapBuffers(QSurface*) () from /lib/aarch64-linux-gnu/
#13 0x0000ffff8fc8b9b0 in QPlatformBackingStore::composeAndFlush(QWindow*, QRegion const&, QPoint const&, QPlatformTextureList*, bool) () from /lib/aarch64-linux-gnu/
#14 0x0000ffff8bd19e48 in ?? () from /lib/aarch64-linux-gnu/
#15 0x0000ffff8ffb9430 in ?? () from /lib/aarch64-linux-gnu/
#16 0x0000ffff8ffbb068 in ?? () from /lib/aarch64-linux-gnu/
#17 0x0000ffff8ffbbda8 in ?? () from /lib/aarch64-linux-gnu/
#18 0x0000ffff8ffbc2e8 in ?? () from /lib/aarch64-linux-gnu/
#19 0x0000ffff8ffd4b44 in QWidgetPrivate::syncBackingStore() () from /lib/aarch64-linux-gnu/
#20 0x0000ffff8ffec924 in QWidget::event(QEvent*) () from /lib/aarch64-linux-gnu/
#21 0x0000ffff900f3430 in QMainWindow::event(QEvent*) () from /lib/aarch64-linux-gnu/
#22 0x0000ffff8ffaa4ac in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /lib/aarch64-linux-gnu/
#23 0x0000ffff8ffb3ad8 in QApplication::notify(QObject*, QEvent*) () from /lib/aarch64-linux-gnu/
#24 0x0000ffff8f5fac0c in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /lib/aarch64-linux-gnu/
#25 0x0000ffff8f5fdb80 in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () from /lib/aarch64-linux-gnu/
#26 0x0000ffff8f656d20 in ?? () from /lib/aarch64-linux-gnu/
#27 0x0000ffff8e64094c in g_main_context_dispatch () from /lib/aarch64-linux-gnu/
#28 0x0000ffff8e640bbc in ?? () from /lib/aarch64-linux-gnu/
#29 0x0000ffff8e640c5c in g_main_context_iteration () from /lib/aarch64-linux-gnu/
#30 0x0000ffff8f6561cc in QEventDispatcherGlib::processEvents(QFlagsQEventLoop::ProcessEventsFlag) () from /lib/aarch64-linux-gnu/
#31 0x0000ffff8f5f93b8 in QEventLoop::exec(QFlagsQEventLoop::ProcessEventsFlag) () from /lib/aarch64-linux-gnu/
#32 0x0000ffff8f601a5c in QCoreApplication::exec() () from /lib/aarch64-linux-gnu/
#33 0x0000aaaac45fd090 in main (argc=1, argv=0xffffeb54bcd8) at


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.



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.