You are not logged in.
Hello.
Since few months ago, I noticed a serious problem that keeps happening each time I'm using a Qt-based program ; in simple words, when I open a file browsing subwindow, this one is very low and keeps lagging until I'm forced to kill the whole process. Also, during this lag, it doesn't render properly, here's an example at the window creation time: https://i.imgur.com/5MIVEsy.png
I didn't notice any debug message in the terminal when using it to launch the program, so I guess it's a performance problem. That's really frustrating because it means there's many Qt programs I can't use properly without getting this damn lag.
My kernel and my whole distro are obviously up-to-date, I hoped the updates released after first time I notice this problem would solve it, but I hoped too much.
Last edited by byjove01 (2022-10-08 14:55:54)
Offline
Can you write more about your hardware and desktop setup (Xserver or Wayland, what DE)?
Offline
KDE Plasma 5.25, X11, Arch Linux 5.19.12-arch1-1 64bits, Qt 5.15.6.
Offline
And what hardware: Intel or AMD CPU, what graphic card? Post output of 'lspci -nnk' .
Offline
CPU: Ryzen 5 3600. GPU: AMD Radeon RX 5700 XT.
00:00.0 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Starship/Matisse Root Complex [1022:1480]
Subsystem: Micro-Star International Co., Ltd. [MSI] Device [1462:7c02]
00:00.2 IOMMU [0806]: Advanced Micro Devices, Inc. [AMD] Starship/Matisse IOMMU [1022:1481]
Subsystem: Micro-Star International Co., Ltd. [MSI] Device [1462:7c02]
00:01.0 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Starship/Matisse PCIe Dummy Host Bridge [1022:1482]
00:01.3 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD] Starship/Matisse GPP Bridge [1022:1483]
Subsystem: Advanced Micro Devices, Inc. [AMD] Device [1022:1234]
Kernel driver in use: pcieport
00:02.0 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Starship/Matisse PCIe Dummy Host Bridge [1022:1482]
00:03.0 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Starship/Matisse PCIe Dummy Host Bridge [1022:1482]
00:03.1 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD] Starship/Matisse GPP Bridge [1022:1483]
Subsystem: Advanced Micro Devices, Inc. [AMD] Device [1022:1234]
Kernel driver in use: pcieport
00:04.0 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Starship/Matisse PCIe Dummy Host Bridge [1022:1482]
00:05.0 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Starship/Matisse PCIe Dummy Host Bridge [1022:1482]
00:07.0 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Starship/Matisse PCIe Dummy Host Bridge [1022:1482]
00:07.1 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD] Starship/Matisse Internal PCIe GPP Bridge 0 to bus[E:B] [1022:1484]
Subsystem: Advanced Micro Devices, Inc. [AMD] Starship/Matisse Internal PCIe GPP Bridge 0 to bus[E:B] [1022:1484]
Kernel driver in use: pcieport
00:08.0 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Starship/Matisse PCIe Dummy Host Bridge [1022:1482]
00:08.1 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD] Starship/Matisse Internal PCIe GPP Bridge 0 to bus[E:B] [1022:1484]
Subsystem: Advanced Micro Devices, Inc. [AMD] Starship/Matisse Internal PCIe GPP Bridge 0 to bus[E:B] [1022:1484]
Kernel driver in use: pcieport
00:08.2 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD] Starship/Matisse Internal PCIe GPP Bridge 0 to bus[E:B] [1022:1484]
Subsystem: Advanced Micro Devices, Inc. [AMD] Starship/Matisse Internal PCIe GPP Bridge 0 to bus[E:B] [1022:1484]
Kernel driver in use: pcieport
00:08.3 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD] Starship/Matisse Internal PCIe GPP Bridge 0 to bus[E:B] [1022:1484]
Subsystem: Advanced Micro Devices, Inc. [AMD] Starship/Matisse Internal PCIe GPP Bridge 0 to bus[E:B] [1022:1484]
Kernel driver in use: pcieport
00:14.0 SMBus [0c05]: Advanced Micro Devices, Inc. [AMD] FCH SMBus Controller [1022:790b] (rev 61)
Subsystem: Micro-Star International Co., Ltd. [MSI] Device [1462:7c02]
Kernel driver in use: piix4_smbus
Kernel modules: i2c_piix4, sp5100_tco
00:14.3 ISA bridge [0601]: Advanced Micro Devices, Inc. [AMD] FCH LPC Bridge [1022:790e] (rev 51)
Subsystem: Micro-Star International Co., Ltd. [MSI] Device [1462:7c02]
00:18.0 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Matisse/Vermeer Data Fabric: Device 18h; Function 0 [1022:1440]
00:18.1 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Matisse/Vermeer Data Fabric: Device 18h; Function 1 [1022:1441]
00:18.2 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Matisse/Vermeer Data Fabric: Device 18h; Function 2 [1022:1442]
00:18.3 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Matisse/Vermeer Data Fabric: Device 18h; Function 3 [1022:1443]
Kernel driver in use: k10temp
Kernel modules: k10temp
00:18.4 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Matisse/Vermeer Data Fabric: Device 18h; Function 4 [1022:1444]
00:18.5 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Matisse/Vermeer Data Fabric: Device 18h; Function 5 [1022:1445]
00:18.6 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Matisse/Vermeer Data Fabric: Device 18h; Function 6 [1022:1446]
00:18.7 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Matisse/Vermeer Data Fabric: Device 18h; Function 7 [1022:1447]
03:00.0 USB controller [0c03]: Advanced Micro Devices, Inc. [AMD] 400 Series Chipset USB 3.1 XHCI Controller [1022:43d5] (rev 01)
Subsystem: ASMedia Technology Inc. Device [1b21:1142]
Kernel driver in use: xhci_hcd
Kernel modules: xhci_pci
03:00.1 SATA controller [0106]: Advanced Micro Devices, Inc. [AMD] 400 Series Chipset SATA Controller [1022:43c8] (rev 01)
Subsystem: ASMedia Technology Inc. Device [1b21:1062]
Kernel driver in use: ahci
03:00.2 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD] 400 Series Chipset PCIe Bridge [1022:43c6] (rev 01)
Subsystem: ASMedia Technology Inc. Device [1b21:0201]
Kernel driver in use: pcieport
20:00.0 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD] 400 Series Chipset PCIe Port [1022:43c7] (rev 01)
Subsystem: ASMedia Technology Inc. Device [1b21:3306]
Kernel driver in use: pcieport
20:01.0 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD] 400 Series Chipset PCIe Port [1022:43c7] (rev 01)
Subsystem: ASMedia Technology Inc. Device [1b21:3306]
Kernel driver in use: pcieport
20:04.0 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD] 400 Series Chipset PCIe Port [1022:43c7] (rev 01)
Subsystem: ASMedia Technology Inc. Device [1b21:3306]
Kernel driver in use: pcieport
22:00.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller [10ec:8168] (rev 15)
Subsystem: Micro-Star International Co., Ltd. [MSI] Device [1462:7c02]
Kernel driver in use: r8169
Kernel modules: r8169
26:00.0 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD/ATI] Navi 10 XL Upstream Port of PCI Express Switch [1002:1478] (rev c1)
Kernel driver in use: pcieport
27:00.0 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD/ATI] Navi 10 XL Downstream Port of PCI Express Switch [1002:1479]
Subsystem: Advanced Micro Devices, Inc. [AMD/ATI] Navi 10 XL Downstream Port of PCI Express Switch [1002:1479]
Kernel driver in use: pcieport
28:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Navi 10 [Radeon RX 5600 OEM/5600 XT / 5700/5700 XT] [1002:731f] (rev c1)
Subsystem: Sapphire Technology Limited Sapphire Technology Limited Navi 10 [Radeon RX 5600 OEM/5600 XT / 5700/5700 XT] [1da2:e409]
Kernel driver in use: amdgpu
Kernel modules: amdgpu
28:00.1 Audio device [0403]: Advanced Micro Devices, Inc. [AMD/ATI] Navi 10 HDMI Audio [1002:ab38]
Subsystem: Advanced Micro Devices, Inc. [AMD/ATI] Navi 10 HDMI Audio [1002:ab38]
Kernel driver in use: snd_hda_intel
Kernel modules: snd_hda_intel
29:00.0 Non-Essential Instrumentation [1300]: Advanced Micro Devices, Inc. [AMD] Starship/Matisse PCIe Dummy Function [1022:148a]
Subsystem: Micro-Star International Co., Ltd. [MSI] Device [1462:7c02]
2a:00.0 Non-Essential Instrumentation [1300]: Advanced Micro Devices, Inc. [AMD] Starship/Matisse Reserved SPP [1022:1485]
Subsystem: Micro-Star International Co., Ltd. [MSI] Device [1462:7c02]
2a:00.1 Encryption controller [1080]: Advanced Micro Devices, Inc. [AMD] Starship/Matisse Cryptographic Coprocessor PSPCPP [1022:1486]
Subsystem: Micro-Star International Co., Ltd. [MSI] Device [1462:7c02]
Kernel driver in use: ccp
Kernel modules: ccp
2a:00.3 USB controller [0c03]: Advanced Micro Devices, Inc. [AMD] Matisse USB 3.0 Host Controller [1022:149c]
Subsystem: Micro-Star International Co., Ltd. [MSI] Device [1462:7c02]
Kernel driver in use: xhci_hcd
Kernel modules: xhci_pci
2a:00.4 Audio device [0403]: Advanced Micro Devices, Inc. [AMD] Starship/Matisse HD Audio Controller [1022:1487]
Subsystem: Micro-Star International Co., Ltd. [MSI] Device [1462:ec02]
Kernel driver in use: snd_hda_intel
Kernel modules: snd_hda_intel
30:00.0 SATA controller [0106]: Advanced Micro Devices, Inc. [AMD] FCH SATA Controller [AHCI mode] [1022:7901] (rev 51)
Subsystem: Micro-Star International Co., Ltd. [MSI] Device [1462:7c02]
Kernel driver in use: ahci
31:00.0 SATA controller [0106]: Advanced Micro Devices, Inc. [AMD] FCH SATA Controller [AHCI mode] [1022:7901] (rev 51)
Subsystem: Micro-Star International Co., Ltd. [MSI] Device [1462:7c02]
Kernel driver in use: ahciLast edited by byjove01 (2022-10-04 22:09:26)
Offline
Is it just with Qt windows? Which Qt applications are you running? Is there a specific application you might have opened that triggers this because it e.g. uses a custom Qt version? I remember seeing this issue in that form primarily with older versions of octave for example. Where octave would register itself in a way that blocked all other QtFileDialogs
Offline
https://aur.archlinux.org/packages/qarma-git
qarma --file-selection --filename=/tmp/Slow as well?
Does the path (--filename) matter?
strace -t -o /tmp/qarma.strace qarma --file-selection --filename=/tmp/might help to figure where it's hanging around.
Online
@V1del => Yep. Any Qt program using QFileDialog, but in my case, mostly Qt Creator.
@seth => Nope, qarma perfectly works, but Qt Creator still uses zenity when executed.
Last edited by byjove01 (2022-10-05 07:50:55)
Offline
but Qt Creator still uses zenity when executed.
Probably not zenity, but what about
QT_QPA_PLATFORMTHEME=gnarf qtcreatorOnline
Same problem happens. I don't see any change, like if it didn't do anything.
By the way, strace's result: https://mega.nz/file/u58znRDK#GTak2o85g … ksIMW_Q1SQ
Last edited by byjove01 (2022-10-05 08:46:23)
Offline
What makes you believe that "Qt Creator still uses zenity", does it distinctly look like a GTK dialog?
What desktop environment is this?
What happens in eg. an openbox session?
Did you test qarma w/ different filenames/paths (in particular "~/", I guess)?
Online
I maybe pushed it too far saying it was zenity ; when I use zenity and qarma as standalones with the --file-selection argument, the file selection subwindow is perfectly working and doesn't look like Qt Creator's one.
Here's what I got with these standalones, and also, another lot of Qt programs I'm using : https://i.imgur.com/Nxd02NY.png
Now compared with the first subwdw, that can't even render itself, this one is way better.
As said higher, I'm using KDE Plasma.
Offline
What happens in eg. an openbox session?
Did you compile qarma against qt5 or qt6?
Online
The openbox session doesn't solve anything, same program, same subwindow, same issue.
Not sure to understand what you mean by "build against Qt5 or 6"...
Offline
Online
[byjove@pchost-1 ~]$ ldd /usr/bin/qarma
linux-vdso.so.1 (0x00007fff9e341000)
libX11.so.6 => /usr/lib/libX11.so.6 (0x00007ffb42e80000)
libQt5Widgets.so.5 => /usr/lib/libQt5Widgets.so.5 (0x00007ffb42600000)
libQt5X11Extras.so.5 => /usr/lib/libQt5X11Extras.so.5 (0x00007ffb42e79000)
libQt5Gui.so.5 => /usr/lib/libQt5Gui.so.5 (0x00007ffb41e00000)
libQt5DBus.so.5 => /usr/lib/libQt5DBus.so.5 (0x00007ffb42df9000)
libQt5Core.so.5 => /usr/lib/libQt5Core.so.5 (0x00007ffb41800000))
libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x00007ffb41400000)
libgcc_s.so.1 => /usr/lib/libgcc_s.so.1 (0x00007ffb42dd7000)
libc.so.6 => /usr/lib/libc.so.6 (0x00007ffb41219000)
libxcb.so.1 => /usr/lib/libxcb.so.1 (0x00007ffb42dac000)
libm.so.6 => /usr/lib/libm.so.6 (0x00007ffb42cc4000)
libGL.so.1 => /usr/lib/libGL.so.1 (0x00007ffb4257a000)
libpng16.so.16 => /usr/lib/libpng16.so.16 (0x00007ffb42541000)
libz.so.1 => /usr/lib/libz.so.1 (0x00007ffb42527000)
libharfbuzz.so.0 => /usr/lib/libharfbuzz.so.0 (0x00007ffb41715000)
libmd4c.so.0 => /usr/lib/libmd4c.so.0 (0x00007ffb42511000)
libdbus-1.so.3 => /usr/lib/libdbus-1.so.3 (0x00007ffb424c0000)
libsystemd.so.0 => /usr/lib/libsystemd.so.0 (0x00007ffb41d23000)
libdouble-conversion.so.3 => /usr/lib/libdouble-conversion.so.3 (0x00007ffb424aa000)
libicui18n.so.71 => /usr/lib/libicui18n.so.71 (0x00007ffb40e00000)
libicuuc.so.71 => /usr/lib/libicuuc.so.71 (0x00007ffb40c01000)
libpcre2-16.so.0 => /usr/lib/libpcre2-16.so.0 (0x00007ffb41687000)
libzstd.so.1 => /usr/lib/libzstd.so.1 (0x00007ffb41170000)
libglib-2.0.so.0 => /usr/lib/libglib-2.0.so.0 (0x00007ffb40ac4000)
/lib64/ld-linux-x86-64.so.2 => /usr/lib64/ld-linux-x86-64.so.2 (0x00007ffb43041000)
libXau.so.6 => /usr/lib/libXau.so.6 (0x00007ffb424a5000)
libXdmcp.so.6 => /usr/lib/libXdmcp.so.6 (0x00007ffb4249d000)
libGLdispatch.so.0 => /usr/lib/libGLdispatch.so.0 (0x00007ffb40a0c000)
libGLX.so.0 => /usr/lib/libGLX.so.0 (0x00007ffb4246b000)
libfreetype.so.6 => /usr/lib/libfreetype.so.6 (0x00007ffb4093d000)
libgraphite2.so.3 => /usr/lib/libgraphite2.so.3 (0x00007ffb41665000)
libcap.so.2 => /usr/lib/libcap.so.2 (0x00007ffb41659000)
libgcrypt.so.20 => /usr/lib/libgcrypt.so.20 (0x00007ffb407f4000)
liblzma.so.5 => /usr/lib/liblzma.so.5 (0x00007ffb41146000)
liblz4.so.1 => /usr/lib/liblz4.so.1 (0x00007ffb41637000)
libicudata.so.71 => /usr/lib/libicudata.so.71 (0x00007ffb3ea00000)
libpcre2-8.so.0 => /usr/lib/libpcre2-8.so.0 (0x00007ffb40759000)
libbz2.so.1.0 => /usr/lib/libbz2.so.1.0 (0x00007ffb41133000)
libbrotlidec.so.1 => /usr/lib/libbrotlidec.so.1 (0x00007ffb4074b000)
libgpg-error.so.0 => /usr/lib/libgpg-error.so.0 (0x00007ffb40725000)
libbrotlicommon.so.1 => /usr/lib/libbrotlicommon.so.1 (0x00007ffb3e9dd000)Last edited by byjove01 (2022-10-05 13:53:11)
Offline
So Qt5 - since https://archlinux.org/packages/extra/x86_64/qtcreator/ uses Qt6 this might be the relevant difference.
Online
Tried reinstalling Qt Creator from official repos, but it unsurprisingly didn't work. I'm trying to compile it from source code, hoping to get the correct base, I'll give news about it later.
Offline
Tried reinstalling Qt Creator from official repos, but it unsurprisingly didn't work.
Hold on - what version do you currently have installed and why and how does installing it from the repos "not work"?
Online
Before this post, I had the official binaries downloaded from Arch Linux repos, nothing special, and I actually decided to install the github package in the (a bit blind, I must admit it) hope to get a Qt6-based version.
Just finished to compile the source code, and the problem is still here.
Last edited by byjove01 (2022-10-05 20:36:58)
Offline
The repo version of qtcreator alread is Qt6, but you compiled qarma against Qt5.
My suspicion was/is that actually Qt6 causes this trouble for you.
Online
So should I compile qarma or zenity AUR packages again? (I don't know the Qt environment, sorry if my questions looks dumb)
Offline
qarma, but you'll have to edit the PKGBUILD and replace "qt5" w/ "qt6" (notably for qmake-qt6)
Online
Here's the PKGBUILD code I edited in order to compile it with the correct dependencies. I didn't find anything like "qmake-qt6" so I considered "qmake" to be up-to-date by default ; same for x11extras for which there's non-qt5 equivalent.
pkgname=qarma-git
pkgver=85.6ee1a72
pkgrel=1
pkgdesc="A drop-in replacement clone for zenity, written in Qt, Qt5 build"
arch=('i686' 'x86_64')
url="https://github.com/luebking/qarma"
license=('GPL')
depends=('qt6-base' 'qt5-x11extras')
makedepends=('git')
provides=('qarma' 'zenity')
conflicts=('qarma' 'zenity')
source=("git+https://github.com/luebking/qarma")
md5sums=("SKIP")
pkgver() {
cd "${srcdir}/${pkgname/-git/}"
printf "%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build() {
cd "${srcdir}/${pkgname/-git/}"
qmake
make
}
package() {
cd "${srcdir}/${pkgname/-git/}"
install -Dm755 qarma -t "$pkgdir/usr/bin"
ln -s /usr/bin/qarma "$pkgdir/usr/bin/qarma-askpass"
ln -s /usr/bin/qarma "$pkgdir/usr/bin/zenity"
}It still didn't work, so I uninstalled everything including zenity and qarma packages (and also the Steam client btw...) before trying to install the package manually with "sudo pacman -F" (not sure if it was to install packages directly, I'm not familiar with these practices). It failed, so I've taken profit of all these packages being uninstalled to open QtC for a new try. The issue still happened, so at this point I just think it's integrated to the IDE binaries. Also, I just noticed from the AUR package info that qarma and zenity aren't part, or at least dependencies, of Qt Creator. Your opinion?
Last edited by byjove01 (2022-10-05 23:02:28)
Offline
Also, I thought it would be useful to use "strace" on Qt Creator whileas running it. Here is what I got: https://mega.nz/file/HwlRzJDY#V22hfRBcU … ujTHXjuG7w
It seems like the subwindow is struggling for a lot of icons, but I'm no expert at all.
Offline