Nsight Systems: Cannot mix incompatible Qt library

Bug #1996459 reported by Alexander Lieret
20
This bug affects 4 people
Affects Status Importance Assigned to Milestone
nvidia-cuda-toolkit (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Nsight systems does not start with the following error message:
$ nsys-ui
OpenGL version: "3.1 Mesa 22.0.5"
Cannot mix incompatible Qt library (5.15.3) with this library (5.15.2)

This crash happens on both of my Ubuntu 22.04 machines and on a fresh VM with Ubuntu 22.10 (different Qt versions).

Further information:

$ lsb_release -rd
Description: Ubuntu 22.04.1 LTS
Release: 22.04

$ apt-cache policy nvidia-cuda-toolkit
nvidia-cuda-toolkit:
  Installed: 11.5.1-1ubuntu1
  Candidate: 11.5.1-1ubuntu1
  Version table:
 *** 11.5.1-1ubuntu1 500
        500 http://de.archive.ubuntu.com/ubuntu jammy/multiverse amd64 Packages
        100 /var/lib/dpkg/status

$ apt-cache policy nsight-systems
nsight-systems:
  Installed: 2021.3.3.2~11.5.1-1ubuntu1
  Candidate: 2021.3.3.2~11.5.1-1ubuntu1
  Version table:
 *** 2021.3.3.2~11.5.1-1ubuntu1 500
        500 http://de.archive.ubuntu.com/ubuntu jammy/multiverse amd64 Packages
        100 /var/lib/dpkg/status

Revision history for this message
Alexander Lieret (alexander-lieret) wrote :

Nsight compute is affected too.

$ ncu-ui
Cannot mix incompatible Qt library (5.15.3) with this library (5.15.2)

$ apt-cache policy nsight-compute
nsight-compute:
  Installed: 2021.3.1.4~11.5.1-1ubuntu1
  Candidate: 2021.3.1.4~11.5.1-1ubuntu1
  Version table:
 *** 2021.3.1.4~11.5.1-1ubuntu1 500
        500 http://de.archive.ubuntu.com/ubuntu jammy/multiverse amd64 Packages
        100 /var/lib/dpkg/status

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in nvidia-cuda-toolkit (Ubuntu):
status: New → Confirmed
Revision history for this message
KestasJK (kestas-j-k) wrote :

I had this issue also. I was able to work around it by linking against the right library in pip, which is a nasty hack but it gets it working (and it has been almost a year):

pip install pyqt5==5.15.2
export LD_LIBRARY_PATH=/home/username/miniconda3/lib/python3.7/site-packages/PyQt5/Qt5/lib/

Revision history for this message
Michael T (michaeltandy) wrote :

I've also encountered this bug. It's crash report e174023a-4cc2-11ee-a5c8-fa163e993415 for people with the power to view crash reports.

After checking with strace, it would appear that almost every Qt library is loaded from /usr/lib/nsight-compute/host/linux-desktop-glibc_2_11_3-x64/ with the exception of libQt5Network.so which is loaded from /usr/lib/x86_64-linux-gnu/libQt5Network.so.5.15.3 (and is provided by the package libqt5network5)

And it would appear the version of Qt bundled with nsight-compute is version 5.15.2 - while the OS package provides version 5.15.3.

I was able to work around the issue by obtaining a copy of libQt5Network.so.5.15.2 and copying it to /usr/lib/nsight-compute/host/linux-desktop-glibc_2_11_3-x64/libQt5Network.so.5

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.