Plasmashell CPU usage increases to 100% of one core when opening "System Settings" and "Icons" or "Workspace Theme"

kde-plasma

(Nuno Santos) #1
Hardware information
$ hwinfo --short
cpu:                                                            
                       Intel(R) Core(TM)2 CPU         T5500  @ 1.66GHz, 1505 MHz
                       Intel(R) Core(TM)2 CPU         T5500  @ 1.66GHz, 1539 MHz
keyboard:
  /dev/input/event4    AT Translated Set 2 keyboard
mouse:
  /dev/input/mice      SynPS/2 Synaptics TouchPad
graphics card:
                       Intel Mobile 945GM/GMS/GME, 943/940GML Express Integrated Graphics Controller
                       Intel 945 GM
sound:
                       Lenovo 3000 C200 audio [Realtek ALC861VD]
storage:
                       Intel 82801GBM/GHM (ICH7 Family) SATA IDE Controller
network:
  wlp3s0               Intel ThinkPad R60e/X60s
  enp5s1               Realtek RTL-8139/8139C/8139C+
network interface:
  lo                   Loopback network interface
  wlp3s0               Ethernet network interface
  enp5s1               Ethernet network interface
disk:
  /dev/sda             KINGSTON SA400S3
partition:
  /dev/sda1            Partition
cdrom:
  /dev/sr0             HL-DT-ST DVDRAM GMA-4082N
usb controller:
                       Intel 82801G (ICH7 Family) USB UHCI Controller #4
                       Intel 82801G (ICH7 Family) USB UHCI Controller #2
                       Intel 82801G (ICH7 Family) USB UHCI Controller #3
                       Intel 82801G (ICH7 Family) USB UHCI Controller #1
                       Intel 82801G (ICH7 Family) USB2 EHCI Controller
bios:
                       BIOS
bridge:
                       Intel 82801G (ICH7 Family) PCI Express Port 1
                       Intel 82801GBM (ICH7-M) LPC Interface Bridge
                       Intel 82801 Mobile PCI Bridge
                       Intel Mobile 945GM/PM/GMS, 943/940GML and 945GT Express Memory Controller Hub
                       ENE CB1410 Cardbus Controller
                       Intel 82801G (ICH7 Family) PCI Express Port 2
hub:
                       Linux 4.18.12-1-CHAKRA uhci_hcd UHCI Host Controller
                       Linux 4.18.12-1-CHAKRA uhci_hcd UHCI Host Controller
                       Linux 4.18.12-1-CHAKRA ehci_hcd EHCI Host Controller
                       Linux 4.18.12-1-CHAKRA uhci_hcd UHCI Host Controller
                       Linux 4.18.12-1-CHAKRA uhci_hcd UHCI Host Controller
memory:
                       Main Memory
firewire controller:
                       Ricoh R5C832 IEEE 1394 Controller
unknown:
                       FPU
                       DMA controller
                       PIC
                       Keyboard controller
                       Ricoh xD-Picture Card Controller
                       Ricoh R5C822 SD/SDIO/MMC/MS/MSPro Host Adapter
                       Intel 82801G (ICH7 Family) SMBus Controller
                       Ricoh R5C592 Memory Stick Bus Host Adapter

When I open systemsettings and go into the “icons” or “workspace theme”, one of my cores gets 100% usage and it slows down my system.

I had this problem in last July, when upgrading systemsettings and plasma-workspace packages.

At the time I downgraded the packages to the 5.12.5-2 version and solved it. But I forgot about this issue and kept upgrading to the latest versions of all packages.

Now I wanted to change my wallpaper and right-clicked my mouse to configure my desktop and things got really slow. I opened systemsettings and tried to go around but in those 2 options I mentioned I got the same effect of slowing down.

I tried to downgrade but the packages are no longer available in my system.

So I decided to open this thread to tackle the issue. If it’s not an issue to any of you it shouldn’t be an issue for me neither.

I’m sure that there must exist a solution for this or a reason for this issue.

When I run systemsettings5 from the console, I get this:

$ systemsettings5 QCoreApplication::arguments: Please instantiate the QApplication object first WARNING: viewBackgroundColor is deprecated, use backgroundColor with colorSet: Theme.View instead WARNING: viewBackgroundColor is deprecated, use backgroundColor with colorSet: Theme.View instead KActivities: Database connection: "kactivities_db_resources_140558435948608_readonly" query_only: QVariant(qlonglong, 1) journal_mode: QVariant(QString, "wal") wal_autocheckpoint: QVariant(qlonglong, 100) synchronous: QVariant(qlonglong, 0) Nothing to load - the client id is empty Nothing to load - the client id is empty


(Luca Giambonini) #2

very hard to identify the problem, I never saw this kind of problem. The console log does not help.
Suggestion: try to create a new user and see if you can replicate the problem.


(Nuno Santos) #3

I took 2 screenshots.

While I was doing that, Plasmashell crashed and it generated this report.

Application: plasmashell (5.14.4)

Qt Version: 5.11.2
Frameworks Version: 5.52.0
Operating System: Linux 4.18.12-1-CHAKRA x86_64
Distribution: "Chakra"

-- Information about the crash:
<In detail, tell us what you were doing  when the application crashed.>

-- Backtrace:
Application: Plasma (plasmashell), signal: Segmentation fault
Using host libthread_db library "/usr/lib/libthread_db.so.1".
[Current thread is 1 (Thread 0x7effbac5eec0 (LWP 476))]

Thread 6 (Thread 0x7eff744ab700 (LWP 719)):
#0  0x00007effb420a00b in poll () at /usr/lib/libc.so.6
#1  0x00007effabce757e in  () at /usr/lib/libglib-2.0.so.0
#2  0x00007effabce764c in g_main_context_iteration () at /usr/lib/libglib-2.0.so.0
#3  0x00007effb4b22d7b in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Core.so.5
#4  0x00007effb4acfb0b in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Core.so.5
#5  0x00007effb491ed16 in QThread::exec() () at /usr/lib/libQt5Core.so.5
#6  0x00007eff76e4f347 in KCupsConnection::run() () at /usr/lib/libkcupslib.so
#7  0x00007effb49288e7 in  () at /usr/lib/libQt5Core.so.5
#8  0x00007effb17f3523 in start_thread () at /usr/lib/libpthread.so.0
#9  0x00007effb421448f in clone () at /usr/lib/libc.so.6

Thread 5 (Thread 0x7eff872df700 (LWP 662)):
#0  0x00007effb420a00b in poll () at /usr/lib/libc.so.6
#1  0x00007effabce757e in  () at /usr/lib/libglib-2.0.so.0
#2  0x00007effabce764c in g_main_context_iteration () at /usr/lib/libglib-2.0.so.0
#3  0x00007effb4b22d7b in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Core.so.5
#4  0x00007effb4acfb0b in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Core.so.5
#5  0x00007effb491ed16 in QThread::exec() () at /usr/lib/libQt5Core.so.5
#6  0x00007effb8a860a6 in  () at /usr/lib/libQt5Quick.so.5
#7  0x00007effb49288e7 in  () at /usr/lib/libQt5Core.so.5
#8  0x00007effb17f3523 in start_thread () at /usr/lib/libpthread.so.0
#9  0x00007effb421448f in clone () at /usr/lib/libc.so.6

Thread 4 (Thread 0x7eff9bbf1700 (LWP 604)):
#0  0x00007effabc96dc9 in g_mutex_lock () at /usr/lib/libglib-2.0.so.0
#1  0x00007effabce604c in g_main_context_check () at /usr/lib/libglib-2.0.so.0
#2  0x00007effabce7520 in  () at /usr/lib/libglib-2.0.so.0
#3  0x00007effabce764c in g_main_context_iteration () at /usr/lib/libglib-2.0.so.0
#4  0x00007effb4b22d7b in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Core.so.5
#5  0x00007effb4acfb0b in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Core.so.5
#6  0x00007effb491ed16 in QThread::exec() () at /usr/lib/libQt5Core.so.5
#7  0x00007effb86021d5 in  () at /usr/lib/libQt5Qml.so.5
#8  0x00007effb49288e7 in  () at /usr/lib/libQt5Core.so.5
#9  0x00007effb17f3523 in start_thread () at /usr/lib/libpthread.so.0
#10 0x00007effb421448f in clone () at /usr/lib/libc.so.6

Thread 3 (Thread 0x7effa22d8700 (LWP 504)):
#0  0x00007effb4b230fa in  () at /usr/lib/libQt5Core.so.5
#1  0x00007effabce6e49 in g_main_context_prepare () at /usr/lib/libglib-2.0.so.0
#2  0x00007effabce74a3 in  () at /usr/lib/libglib-2.0.so.0
#3  0x00007effabce764c in g_main_context_iteration () at /usr/lib/libglib-2.0.so.0
#4  0x00007effb4b22d7b in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Core.so.5
#5  0x00007effb4acfb0b in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Core.so.5
#6  0x00007effb491ed16 in QThread::exec() () at /usr/lib/libQt5Core.so.5
#7  0x00007effb5b31a35 in  () at /usr/lib/libQt5DBus.so.5
#8  0x00007effb49288e7 in  () at /usr/lib/libQt5Core.so.5
#9  0x00007effb17f3523 in start_thread () at /usr/lib/libpthread.so.0
#10 0x00007effb421448f in clone () at /usr/lib/libc.so.6

Thread 2 (Thread 0x7effa4236700 (LWP 485)):
#0  0x00007effb420a00b in poll () at /usr/lib/libc.so.6
#1  0x00007effb96cb922 in  () at /usr/lib/libxcb.so.1
#2  0x00007effb96cd727 in xcb_wait_for_event () at /usr/lib/libxcb.so.1
#3  0x00007effa63937b9 in  () at /usr/lib/libQt5XcbQpa.so.5
#4  0x00007effb49288e7 in  () at /usr/lib/libQt5Core.so.5
#5  0x00007effb17f3523 in start_thread () at /usr/lib/libpthread.so.0
#6  0x00007effb421448f in clone () at /usr/lib/libc.so.6

Thread 1 (Thread 0x7effbac5eec0 (LWP 476)):
[KCrash Handler]
#6  0x0000000000000080 in  ()
#7  0x00007effb5070b26 in QGuiApplicationPrivate::processActivatedEvent(QWindowSystemInterfacePrivate::ActivatedWindowEvent*) () at /usr/lib/libQt5Gui.so.5
#8  0x00007effb5070f3d in QGuiApplicationPrivate::processWindowSystemEvent(QWindowSystemInterfacePrivate::WindowSystemEvent*) () at /usr/lib/libQt5Gui.so.5
#9  0x00007effb504b1db in QWindowSystemInterface::sendWindowSystemEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Gui.so.5
#10 0x00007effa642608b in  () at /usr/lib/libQt5XcbQpa.so.5
#11 0x00007effb4acfb0b in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Core.so.5
#12 0x00007effb4ad7c82 in QCoreApplication::exec() () at /usr/lib/libQt5Core.so.5
#13 0x000055cadf8280fb in  ()
#14 0x00007effb41404be in __libc_start_main () at /usr/lib/libc.so.6
#15 0x000055cadf82857a in _start ()

Report to https://bugs.kde.org/

(Nuno Santos) #4

I opened the terminal and ran systemsettings5

The output was this:

$ systemsettings5
QCoreApplication::arguments: Please instantiate the QApplication object first
WARNING: viewBackgroundColor is deprecated, use backgroundColor with colorSet: Theme.View instead
file:///usr/lib/qt5/qml/QtQuick/Controls.2/org.kde.desktop/TextField.qml:57:5: Unable to assign [undefined] to QQmlComponent*
file:///usr/lib/qt5/qml/QtQuick/Controls.2/org.kde.desktop/private/MobileTextActionsToolBar.qml:48: TypeError: Cannot read property 'height' of null
file:///usr/lib/qt5/qml/QtQuick/Controls.2/org.kde.desktop/private/MobileTextActionsToolBar.qml:37: TypeError: Cannot read property 'width' of null
WARNING: viewBackgroundColor is deprecated, use backgroundColor with colorSet: Theme.View instead
KActivities: Database connection:  "kactivities_db_resources_140355761494080_readonly" 
    query_only:          QVariant(qlonglong, 1) 
    journal_mode:        QVariant(QString, "wal") 
    wal_autocheckpoint:  QVariant(qlonglong, 100) 
    synchronous:         QVariant(qlonglong, 0)
Nothing to load - the client id is empty
Nothing to load - the client id is empty
file:///usr/lib/qt5/qml/QtQuick/Controls.2/org.kde.desktop/TextField.qml:57:5: Unable to assign [undefined] to QQmlComponent*
WARNING: viewBackgroundColor is deprecated, use backgroundColor with colorSet: Theme.View instead
"translations.desktop"
file:///usr/share/kpackage/genericqml/org.kde.systemsettings.sidebar/contents/ui/introPage.qml:90:21: Unable to assign [undefined] to QString

Then I clicked on Workspace Theme - Look and Feel and things got slow with the following output in the terminal:

org.kde.kcoreaddons: Error loading plugin "kcm_lookandfeel" "The shared library was not found." 
Plugin search paths are ("/usr/lib/kde4/plugins", "/usr/lib/qt/plugins", "/usr/lib/qt5/plugins", "/usr/bin") 
The environment variable QT_PLUGIN_PATH might be not correctly set
file:///usr/lib/qt5/qml/org/kde/kirigami.2/templates/AbstractApplicationHeader.qml:113: TypeError: Cannot read property 'globalToolBarItem' of null

Then I switched to the Desktop Theme and things kept slow. This is the output

file:///usr/lib/qt5/qml/QtQuick/Controls.2/org.kde.desktop/TextField.qml:57:5: Unable to assign [undefined] to QQmlComponent*
WARNING: viewBackgroundColor is deprecated, use backgroundColor with colorSet: Theme.View instead
KActivitiesStats( 0x556986c2d0f0 ) ResultModelPrivate::onResultScoreUpdated  result added: "kcm:kcm_lookandfeel.desktop" score: 3.62144 last: 1547120916 first: 1523225610
org.kde.kcoreaddons: Error loading plugin "kcm_desktoptheme" "The shared library was not found." 
Plugin search paths are ("/usr/lib/kde4/plugins", "/usr/lib/qt/plugins", "/usr/lib/qt5/plugins", "/usr/bin") 
The environment variable QT_PLUGIN_PATH might be not correctly set
file:///usr/lib/qt5/qml/org/kde/kirigami.2/templates/AbstractApplicationHeader.qml:113: TypeError: Cannot read property 'globalToolBarItem' of null
qt.svg: link #XMLID_5_ is undefined!
qt.svg: <input>:663: Could not resolve property: radialGradient3118
qt.svg: <input>:663: Could not resolve property: radialGradient3112
qt.svg: <input>:663: Could not resolve property: radialGradient3118
qt.svg: <input>:663: Could not resolve property: radialGradient3112
qt.svg: <input>:663: Could not resolve property: radialGradient3321
qt.svg: <input>:663: Could not resolve property: radialGradient3321
qt.svg: <input>:663: Could not resolve property: radialGradient3327
qt.svg: <input>:663: Could not resolve property: radialGradient3327
qt.svg: <input>:663: Could not resolve property: radialGradient3085
qt.svg: <input>:663: Could not resolve property: radialGradient3101
qt.svg: <input>:663: Could not resolve property: radialGradient3139
qt.svg: <input>:663: Could not resolve property: radialGradient3133
qt.svg: <input>:663: Could not resolve property: radialGradient3499
qt.svg: <input>:663: Could not resolve property: radialGradient3505
qt.svg: <input>:663: Could not resolve property: radialGradient3047
qt.svg: <input>:663: Could not resolve property: radialGradient3041
qt.svg: <input>:663: Could not resolve property: radialGradient3079
qt.svg: <input>:663: Could not resolve property: radialGradient3073
qt.svg: <input>:663: Could not resolve property: radialGradient3499
qt.svg: <input>:663: Could not resolve property: radialGradient3505
qt.svg: link #XMLID_5_ is undefined!
qt.svg: <input>:663: Could not resolve property: radialGradient3118
qt.svg: <input>:663: Could not resolve property: radialGradient3112
qt.svg: <input>:663: Could not resolve property: radialGradient3118
qt.svg: <input>:663: Could not resolve property: radialGradient3112
qt.svg: <input>:663: Could not resolve property: radialGradient3321
qt.svg: <input>:663: Could not resolve property: radialGradient3321
qt.svg: <input>:663: Could not resolve property: radialGradient3327
qt.svg: <input>:663: Could not resolve property: radialGradient3327
qt.svg: <input>:663: Could not resolve property: radialGradient3085
qt.svg: <input>:663: Could not resolve property: radialGradient3101
qt.svg: <input>:663: Could not resolve property: radialGradient3139
qt.svg: <input>:663: Could not resolve property: radialGradient3133
qt.svg: <input>:663: Could not resolve property: radialGradient3499
qt.svg: <input>:663: Could not resolve property: radialGradient3505
qt.svg: <input>:663: Could not resolve property: radialGradient3047
qt.svg: <input>:663: Could not resolve property: radialGradient3041
qt.svg: <input>:663: Could not resolve property: radialGradient3079
qt.svg: <input>:663: Could not resolve property: radialGradient3073
qt.svg: <input>:663: Could not resolve property: radialGradient3499
qt.svg: <input>:663: Could not resolve property: radialGradient3505
file:///usr/lib/qt5/qml/QtQuick/Controls.2/org.kde.desktop/ToolTip.qml:45: TypeError: Cannot read property 'hovered' of null
KActivitiesStats( 0x556986c2d0f0 ) ResultModelPrivate::onResultScoreUpdated  result added: "kcm:kcm_desktoptheme.desktop" score: 3.60148 last: 1547120949 first: 1523225615

(totte) #5

I second this.

Also see if enabling and disabling compositor on startup (reboot inbetween) has any effect when logging in as your ordinary user, and the new user.


(Nuno Santos) #6

Enabling the Compositor on startup doen’t help on this cpu usage issue. But it gives me the old behaviour after clicking on the group of windows. So I will post it as something that helps solve the problem on the other thread.

I already created a new user and this CPU thing happens the same way.


(Luca Giambonini) #7

very, very strange! I suggest to:

  1. wait the new kf/plasma/apps packages in [testing] (tomorrow should be ready)
  2. try to reproduce the problem with a the live ISO?

(Nuno Santos) #8
  1. I’ll wait for sure. It’s not a problem that affects me that much but still is an abnormality. And trying to solve it is a way of learning a bit more.

  2. I will. I think that there’s a peculiarity in making the usb bootable for Chakra, isn’t it? It’s been long months since I installed Chakra through an usb pendrive and I think I had to do something for it to boot up.

Don’t you find anything wrong with the output in Konsole related to this problem?


(totte) #9

I’ll second that.

Using Rufus and Unetbootin will most likely not work. See this part of the installation tutorial - I prefer using dd.

No.

You might try renaming the files ~/.config/plasma-org.kde.plasma.desktop-appletsrc and ~/.config/plasmashellrc to add a suffix, e.g. “.original” or “.backup”, then run plasmashell --replace.

According to your hardware information, this looks like a laptop, am I correct? How does it behave when you connect or disconnect it from external monitors (and take the steps described in post #4)? Does it matter if you use the DVI, DisplayPort, or HDMI output? Can you change the primary display to that of the laptop itself?

Try finding the PID of plasmashell from the Process Table in the System Monitor, follow the steps described in post #4, run gdb -p $PID, and when you get the (gdb) prompt, type bt (backtrace).


(Nuno Santos) #10

Hi there!

It is a laptop, yes. But I never connected an external monitor. I’ll get one and I will try it.

Ran gdb, followed your steps and it says “no stack”.


(Gm30) #11

I recommend reinstalling Chakra, with an ext4 partition and a swap of size equal to the amount of RAM you have.

Then, if the problem continues we can analyze it better, since it is under a clean system.


(Nuno Santos) #12

Hi @totte

When I connect an external monitor I get this from Konsole

$ systemsettings5
QCoreApplication::arguments: Please instantiate the QApplication object first
WARNING: viewBackgroundColor is deprecated, use backgroundColor with colorSet: Theme.View instead
file:///usr/lib/qt5/qml/QtQuick/Controls.2/org.kde.desktop/TextField.qml:57:5: Unable to assign [undefined] to QQmlComponent*
file:///usr/lib/qt5/qml/QtQuick/Controls.2/org.kde.desktop/private/MobileTextActionsToolBar.qml:48: TypeError: Cannot read property 'height' of null
file:///usr/lib/qt5/qml/QtQuick/Controls.2/org.kde.desktop/private/MobileTextActionsToolBar.qml:37: TypeError: Cannot read property 'width' of null
WARNING: viewBackgroundColor is deprecated, use backgroundColor with colorSet: Theme.View instead
KActivities: Database connection:  "kactivities_db_resources_139955918309440_readonly" 
    query_only:          QVariant(qlonglong, 1) 
    journal_mode:        QVariant(QString, "wal") 
    wal_autocheckpoint:  QVariant(qlonglong, 100) 
    synchronous:         QVariant(qlonglong, 0)
Nothing to load - the client id is empty
Nothing to load - the client id is empty
file:///usr/lib/qt5/qml/QtQuick/Controls.2/org.kde.desktop/TextField.qml:57:5: Unable to assign [undefined] to QQmlComponent*
WARNING: viewBackgroundColor is deprecated, use backgroundColor with colorSet: Theme.View instead
file:///usr/lib/qt5/qml/QtQuick/Controls.2/org.kde.desktop/TextField.qml:57:5: Unable to assign [undefined] to QQmlComponent*
WARNING: viewBackgroundColor is deprecated, use backgroundColor with colorSet: Theme.View instead
KActivitiesStats( 0x55e4c9afe080 ) ResultModelPrivate::onResultScoreUpdated  result added: "kcm:kcm_kscreen.desktop" score: 16.4089 last: 1547743761 first: 1523225579

I only have a VGA port.

When I switch the primary display to the external monitor I get this added to the message I posted above…

kscreen: Requesting missing EDID for outputs (66, 68)
kscreen: Requesting missing EDID for outputs (66, 68)

Doing this doesn’t slow down the pc.

EDIT: I downgraded packages one by one. They were still in the cache folder and using Octopi I managed to downgrade these packages:

plasma-nm-5.12.5-2-x86_64.pkg.tar.xz

plasma-integration-5.12.5-3-x86_64.pkg.tar.xz

plasma-desktop-5.12.5-2-x86_64.pkg.tar.xz

plasma-workspace-5.12.5-2-x86_64.pkg.tar.xz

systemsettings-5.12.5-2-x86_64.pkg.tar.xz

I’ll keep investigating how to create an exception for pacman about these packages because, otherwise, I won’t be able to update the system selectively.

EDIT 2: from the 4 packages mentioned above, I downgraded

desktop-5.12.5-2-x86_64.pkg.tar.xz

and

plasma-workspace-5.12.5-2-x86_64.pkg.tar.xz

but systemsettings wouldn’t start. So I also had to downgrade

systemsettings-5.12.5-2-x86_64.pkg.tar.xz

So far I haven’t found any glitch related to this downgrade.