Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Solved] Plasma file save dialog - high CPU and memory usage
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
kvada
n00b
n00b


Joined: 11 Nov 2014
Posts: 15

PostPosted: Thu Mar 09, 2023 8:44 pm    Post subject: [Solved] Plasma file save dialog - high CPU and memory usage Reply with quote

I have installed kde-plasma/plasma-meta-5.26.5 and also for trying 5.27.2.
When i tried to save any file in qt-apps (flameshot, vlc, keepassxc, telegram, skanlite) this particular application freezes for about 3 seconds, then opens the save dialog and after clicking OK saves for about 10-12 seconds, while one of the CPU cores is loaded at 100%, the memory of this program begins to grow sharply to 4-5 GB (32GB in total).

These same programs worked fine with openbox before installing KDE. Now in the openbox session - the same behavior as with KDE Plasma.

Everything works fine with GTK programs.

I tried to run these applications in the terminal - there is nothing in the output that could find the problem.

Any suggestions?

Code:

emerge --info
Portage 3.0.44 (python 3.10.10-final-0, default/linux/amd64/17.1/desktop/plasma, gcc-12, glibc-2.36-r5, 6.1.12-gentoo-amdgpu x86_64)
=================================================================
System uname: Linux-6.1.12-gentoo-amdgpu-x86_64-AMD_Ryzen_5_5600X_6-Core_Processor-with-glibc2.36
KiB Mem:    32795836 total,  25054176 free
KiB Swap:    8191996 total,   8191996 free
Timestamp of repository farmboy0: Thu, 23 Feb 2023 13:47:10 +0000
Head commit of repository farmboy0: b68991f0b5c4b6429d57b8826061afaaef721a88

Timestamp of repository steam-overlay: Thu, 23 Feb 2023 13:47:16 +0000
Head commit of repository steam-overlay: 5dbabcc794ef909f45c8fb40eec07cebf569e0d1

Timestamp of repository vapoursynth: Fri, 03 Mar 2023 06:02:25 +0000
Head commit of repository vapoursynth: c0e8c2238cabc8e368c089944e43dd0ad3cfd8db

Timestamp of repository gentoo: Thu, 09 Mar 2023 16:17:02 +0000
Head commit of repository gentoo: 3b90e812ec92b8ccbde2a967ec506eeb3bd5cc3d

sh bash 5.1_p16-r2
ld GNU ld (Gentoo 2.39 p5) 2.39.0
ccache version 4.7.4 [disabled]
app-misc/pax-utils:        1.3.5::gentoo
app-shells/bash:           5.1_p16-r2::gentoo
dev-java/java-config:      2.3.1::gentoo
dev-lang/perl:             5.36.0-r1::gentoo
dev-lang/python:           3.10.10_p2::gentoo, 3.11.2_p1::gentoo
dev-lang/rust-bin:         1.66.1-r1::gentoo
dev-util/ccache:           4.7.4::gentoo
dev-util/cmake:            3.25.2::gentoo
dev-util/meson:            1.0.0::gentoo
sys-apps/baselayout:       2.13-r1::gentoo
sys-apps/openrc:           0.45.2-r2::gentoo
sys-apps/sandbox:          2.29::gentoo
sys-devel/autoconf:        2.71-r5::gentoo
sys-devel/automake:        1.16.5::gentoo
sys-devel/binutils:        2.39-r4::gentoo
sys-devel/binutils-config: 5.4.1::gentoo
sys-devel/clang:           15.0.7-r1::gentoo
sys-devel/gcc:             12.2.1_p20230121-r1::gentoo
sys-devel/gcc-config:      2.8::gentoo
sys-devel/libtool:         2.4.7-r1::gentoo
sys-devel/llvm:            15.0.7::gentoo
sys-devel/make:            4.3::gentoo
sys-kernel/linux-headers:  6.1::gentoo (virtual/os-headers)
sys-libs/glibc:            2.36-r5::gentoo
Repositories:

farmboy0
location: /var/db/repos/farmboy0
sync-type: git
sync-uri: https://github.com/gentoo-mirror/farmboy0.git
masters: gentoo
volatile: True

jg_overlay
location: /usr/local/portage
masters: gentoo
volatile: True

steam-overlay
location: /var/db/repos/steam-overlay
sync-type: git
sync-uri: https://github.com/gentoo-mirror/steam-overlay.git
masters: gentoo
volatile: True

vapoursynth
location: /var/db/repos/vapoursynth
sync-type: git
sync-uri: https://github.com/gentoo-mirror/vapoursynth.git
masters: gentoo
volatile: True

gentoo
location: /var/db/repos/gentoo
sync-type: git
sync-uri: https://github.com/gentoo-mirror/gentoo.git
priority: 1000
volatile: True

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=znver3 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/angband/gamedata/ /etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=znver3 -O2 -pipe"
DISTDIR="/home/data/linux/gentoo/distfiles"
EMERGE_DEFAULT_OPTS="--jobs=7 --load-average=12 --keep-going --autounmask"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GDK_PIXBUF_MODULE_FILE GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR XDG_STATE_HOME"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs buildpkg-live config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userprivusersandbox usersync"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="ru_RU.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LEX="flex"
LINGUAS="ru ru-RU"
MAKEOPTS="-j13 -l12"
PKGDIR="/home/data/linux/gentoo/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
RUSTFLAGS="-C target-cpu=znver3"
SHELL="/bin/fish"
USE="X a52 aac acl acpi activities alsa amd64 branding bzip2 cairo cli cpudetection crypt cups dbus declarative dri dts dvdr elogind encode exif ffmpeg flac fortran gdbm gif gpm gtk gui iconv icu jpeg kde lcms libglvnd libnotify libtirpc mad mp3 mp4 mpeg multilib ncurses nls nptl ogg openal opencl opengl openmp pam pango pcre pdf pgo pipewire plasma png policykit ppds pulseaudio qml qt5 readline sdl seccomp semantic-desktop sound spell split-usr ssl startup-notification svg test-rust threads tiff truetype udev udisks unicode upower usb vaapi vdpau vorbis vulkanwayland webp widgets wxwidgets x264 xattr xcb xft xml xv xvid zlib" ABI_X86="64" ADA_TARGET="gnat_2021" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 f16c fma3 mmx mmxext pclmul popcnt rdrandsha sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="efi-64 pc" INPUT_DEVICES="libinput" KERNEL="linux" L10N="ru" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LLVM_TARGETS="BPF NVPTX X86" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-4 php8-0" POSTGRES_TARGETS="postgres12 postgres13" PYTHON_SINGLE_TARGET="python3_10" PYTHON_TARGETS="python3_10" RUBY_TARGETS="ruby27" USERLAND="GNU" VIDEO_CARDS="amdgpu radeonsi" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq proto steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, LD, LFLAGS,LIBTOOL, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RANLIB, READELF, SIZE, STRINGS, STRIP, YACC, YFLAGS


Last edited by kvada on Fri Mar 10, 2023 11:57 am; edited 1 time in total
Back to top
View user's profile Send private message
kvada
n00b
n00b


Joined: 11 Nov 2014
Posts: 15

PostPosted: Fri Mar 10, 2023 8:17 am    Post subject: Reply with quote

The same problem with kid3-3.9.3, when I press the Open button, it crashes. Below is gdb output:
Code:
(gdb) run
Starting program: /usr/bin/kid3
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
[New Thread 0x7ffff1d616c0 (LWP 774)]
[New Thread 0x7fffe39ff6c0 (LWP 775)]
[New Thread 0x7fffe30bd6c0 (LWP 776)]
[New Thread 0x7fffe28bc6c0 (LWP 777)]
[New Thread 0x7fffe20bb6c0 (LWP 778)]
[New Thread 0x7fffe14ba6c0 (LWP 779)]
[Thread 0x7fffe14ba6c0 (LWP 779) exited]
[New Thread 0x7fffe14ba6c0 (LWP 780)]
QCommandLineParser: already having an option named "h"
QCommandLineParser: already having an option named "help-all"
QCommandLineParser: already having an option named "v"
[New Thread 0x7fffe0ab96c0 (LWP 781)]
[New Thread 0x7fffcb3ff6c0 (LWP 782)]
QML debugging is enabled. Only use this in a safe environment.
kf.i18n: KLocalizedString: Using an empty domain, fix the code. msgid: "Your emails" msgid_plural: "" msgctxt: "EMAIL OF TRANSLATORS"
kf.i18n: KLocalizedString: Using an empty domain, fix the code. msgid: "Your names" msgid_plural: "" msgctxt: "NAME OF TRANSLATORS"
kf.xmlgui: Shortcut for action  "open_directory" "Открыть &каталог..." set with QAction::setShortcut()! Use KActionCollection::setDefaultShortcut(s) instead.
kf.xmlgui: Shortcut for action  "reload" "О&бновить" set with QAction::setShortcut()! Use KActionCollection::setDefaultShortcut(s) instead.
[New Thread 0x7fffc9fff6c0 (LWP 783)]
[New Thread 0x7fffc97fe6c0 (LWP 784)]
[New Thread 0x7fffc8ffd6c0 (LWP 785)]
[New Thread 0x7fffbbfff6c0 (LWP 786)]
[Detaching after fork from child process 789]
[New Thread 0x7fffbb7fe6c0 (LWP 791)]
[New Thread 0x7fffbaffd6c0 (LWP 792)]

Thread 1 "kid3" received signal SIGSEGV, Segmentation fault.
0x00007ffff69e9658 in QTextEngine::shapeTextWithHarfbuzzNG(QScriptItem const&, unsigned short const*, int, QFontEngine*, QVector<unsigned int> const&, bool, bool) const () from /usr/lib64/libQt5Gui.so.5
Back to top
View user's profile Send private message
sam_
Developer
Developer


Joined: 14 Aug 2020
Posts: 1683

PostPosted: Fri Mar 10, 2023 8:19 am    Post subject: Reply with quote

Crashing doesn't sound like the same problem at all. It might be related, but it's also not obviously the same (it might be the same, but it's not clear that it is).

You've also seemingly cut off the backtrace output. We need more than the top function.
Back to top
View user's profile Send private message
kvada
n00b
n00b


Joined: 11 Nov 2014
Posts: 15

PostPosted: Fri Mar 10, 2023 11:56 am    Post subject: Reply with quote

Solved: there is a QtProject.conf file in ~/.config, which has grown to almost 700 MB. I killed him and that's it.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum