Can not run the Nsight on host Drive 6.0.5 docker

Please provide the following info (tick the boxes after creating this topic):
Software Version
[*] DRIVE OS 6.0.5
DRIVE OS 6.0.4 (rev. 1)
DRIVE OS 6.0.4 SDK
other

Target Operating System
[*] Linux
QNX
other

Hardware Platform
DRIVE AGX Orin Developer Kit (940-63710-0010-D00)
DRIVE AGX Orin Developer Kit (940-63710-0010-C00)
[*] DRIVE AGX Orin Developer Kit (not sure its number)
other

SDK Manager Version
1.9.1.10844
other

Host Machine Version
native Ubuntu Linux 20.04 Host installed with SDK Manager
native Ubuntu Linux 20.04 Host installed with DRIVE OS Docker Containers
[*] native Ubuntu Linux 18.04 Host installed with DRIVE OS Docker Containers
other

I have issue to run Nsight on host (ubuntu18.04) SDK drive docker (6.0.5).

  1. Run drive os docker container :
    sudo docker run -it --privileged --net=host -v /dev/bus/usb:/dev/bus/usb -v /drive_sdk:/home/nvidia/ nvcr.io/drive/driveos-sdk/drive-agx-orin-linux-aarch64-sdk-build-x86:latest
  2. cd :/opt/nvidia/nsight-systems/2022.3.2/bin
  3. execute ./nsys-ui
    root@6.0.5.0-0003-build-linux-sdk:/opt/nvidia/nsight-systems/2022.3.2/bin# ./nsys-ui
    Warning: Failed to get OpenGL version. OpenGL version 2.0 or higher is required.
    OpenGL version is too low (0). Falling back to Mesa software rendering.
    qt.qpa.xcb: could not connect to display
    qt.qpa.plugin: Could not load the Qt platform plugin “xcb” in “” even though it was found.
    This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

Available platform plugins are: offscreen, wayland-egl, wayland, xcb.

################# ERROR: CrashReporter #################
CrashReporter

Qt initialization failed

Failed to load Qt platform plugin: “xcb”

  • Library path: /opt/nvidia/nsight-systems/2022.3.2/host-linux-x64/Plugins/platforms/libqxcb.so
    Application is going to abort
    sh: 1: xmessage: not found
    ./nsys-ui: line 52: 817 Aborted (core dumped) “$NV_AGORA_PATH/CrashReporter” --hide-stack “NVIDIA Nsight Systems” “NsightSystems” “2022.3.2 (Build 2022.3.2.34-3e5e9a1)” “$NV_QUADD_PATH” “$@”
    root@6.0.5.0-0003-build-linux-sdk:/opt/nvidia/nsight-systems/2022.3.2/bin# ./nsys-ui
    Warning: Failed to get OpenGL version. OpenGL version 2.0 or higher is required.
    OpenGL version is too low (0). Falling back to Mesa software rendering.
    qt.qpa.xcb: could not connect to display
    qt.qpa.plugin: Could not load the Qt platform plugin “xcb” in “” even though it was found.
    This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

Available platform plugins are: offscreen, wayland-egl, wayland, xcb.

################# ERROR: CrashReporter #################
CrashReporter

Qt initialization failed

Failed to load Qt platform plugin: “xcb”

  • Library path: /opt/nvidia/nsight-systems/2022.3.2/host-linux-x64/Plugins/platforms/libqxcb.so
    Application is going to abort
    sh: 1: xmessage: not found
    ./nsys-ui: line 52: 828 Aborted (core dumped) “$NV_AGORA_PATH/CrashReporter” --hide-stack “NVIDIA Nsight Systems” “NsightSystems” “2022.3.2 (Build 2022.3.2.34-3e5e9a1)” “$NV_QUADD_PATH” “$@”

4. try to update open GL to 2.0 or latest
root@6.0.5.0-0003-build-linux-sdk:/opt/nvidia/nsight-systems/2022.3.2/bin# sudo apt-get install freeglut3-dev
Reading package lists… Done
Building dependency tree
Reading state information… Done
freeglut3-dev is already the newest version (2.8.1-3).

Already latest

But Nsight still fail

root@6.0.5.0-0003-build-linux-sdk:/opt/nvidia/nsight-systems/2022.3.2/bin# ./nsys-ui
Warning: Failed to get OpenGL version. OpenGL version 2.0 or higher is required.
OpenGL version is too low (0). Falling back to Mesa software rendering.
qt.qpa.xcb: could not connect to display
qt.qpa.plugin: Could not load the Qt platform plugin “xcb” in “” even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

Available platform plugins are: offscreen, wayland-egl, wayland, xcb.

################# ERROR: CrashReporter #################
CrashReporter

Could you take a look at the relevant section in the document and see if it provides a solution?

Thank you!
But I did not find the folder named Script and the file install-dependencies.sh

I will follow up with our team to determine if this is a supported scenario and provide you with an update. Thank you for your patience.

1 Like

Thank you very much! Waiting for your good news!

I want to clarify that running GUI tools, including nsys-ui, within the DRIVE OS Docker environment is not officially supported by NVIDIA. It is recommended to run GUI tools on the host system instead. I hope this information helps. Let me know if you have any further questions.

Thank you for your suggestion!
Yes I can run nsight -sys on my host, but it is old version as 2021.2.4. It can not succesfully working with my target Orin. I think it is installed at the time I install my cuda 11.4 packege.
Now I have download the install file nsight-systems-2023.1.1_2023.1.1.127-1_amd64.deb
And reinstall the latest nsight.
But unfortunately, after installation it still point to my old version under the cuda 11.4

  1. how can I remove the old nsight?
  2. what is standard flow to upgrade my nsight to latest version.
    Thank you in advance!

Could you please try installing Nsight Systems and the necessary development environment using SDK Manager? This should automate the process and take care of all the required components.

I wish to, but my linux is older ubuntu 18.04. does not support orin drive and its components nsight sys…

As I mentioned earlier, running Nsight Systems within the DRIVE OS Docker environment is not officially supported. We will update you once we have any progress. For now, please consider upgrading to Ubuntu 20.04.

1 Like

Sometimes the version update is simple as you required.
For most cases, developer NOT just install the nvidia tool and match with nvidia requirement.
Lots other tools I used still need Ubuntu 18.04, can not support the latest ubuntu as 20.04.
Pls kindly think the solution a little bit more from customer point of the view. Thanks a lot!

Can you please provide more information on the obstacles you’re facing and which tools still require Ubuntu 18.04? This will help our team better understand the situation from a developer’s perspective and consider possible solutions. Thank you.

There is no update from you for a period, assuming this is not an issue any more.
Hence we are closing this topic. If need further support, please open a new one.
Thanks

Have you managed to get issue resolved or still need the support? Thanks