Page 1 of 1

High CPU usage/runaway process by MXPI after closing.

Posted: Fri Apr 18, 2025 9:30 am
by retroD0d0
Hello everyone!

Noticed since a week or two back that I am having high CPU usage in MXPI after closing the program. Only a restart fixes. Anyone any ideas?

edit(new info): The problem only occurs when I close MXPI after performing no action at all. Also this is happening on 3 installations across 2 separate systems and also on a fully-updated but otherwise completely stock (down to the wallpaper) XFCE 64bit 23.6 live usb.

edit: sorry killing/stopping the process works too :P
(edited title slightly to improve accuracy.)

Code: Select all

2025-04-17 02:23:46.502 DBG: mx-packageinstaller version: 25.5.01
2025-04-17 02:23:46.546 DBG: +++ void MainWindow::setup() +++
2025-04-17 02:23:46.552 DBG: apt-get update --print-uris | grep -m1 -qE '/mx/testrepo/dists/bookworm/test/'
2025-04-17 02:23:46.644 DBG: +++ void MainWindow::loadPmFiles() +++
2025-04-17 02:23:46.730 DBG: +++ void MainWindow::refreshPopularApps() +++
2025-04-17 02:23:46.731 DBG: +++ QMap<QString, PackageInfo> MainWindow::listInstalled() +++
2025-04-17 02:23:46.731 DBG: LANG=C dpkg-query -W -f='${db:Status-Abbrev} ${Package} ${Version} ${binary:Synopsis}\n'
2025-04-17 02:23:46.782 DBG: +++ void MainWindow::displayPopularApps() const +++
2025-04-17 02:23:46.803 DBG: apt-config shell APTOPT APT::Install-Recommends/b
2025-04-17 02:23:46.817 DBG: "APTOPT='false'"
2025-04-17 02:23:47.535 DBG: +++ void MainWindow::displayPackages() +++
2025-04-17 02:23:49.270 DBG: +++ void MainWindow::tabWidget_currentChanged(int) +++
2025-04-17 02:23:49.272 DBG: +++ void MainWindow::setCurrentTree() +++
2025-04-17 02:23:49.273 DBG: +++ void MainWindow::setCurrentTree() +++
2025-04-17 02:23:49.273 DBG: +++ void MainWindow::displayWarning(const QString&) +++
2025-04-17 02:23:49.273 DBG: +++ void MainWindow::listFlatpakRemotes() const +++
2025-04-17 02:23:49.273 DBG: flatpak remote-list --system | cut -f1
2025-04-17 02:24:09.306 DBG: +++ void MainWindow::displayFlatpaks(bool) +++
2025-04-17 02:24:09.313 DBG: +++ void MainWindow::listFlatpakRemotes() const +++
2025-04-17 02:24:09.314 DBG: flatpak remote-list --system | cut -f1
2025-04-17 02:24:09.361 DBG: +++ QStringList MainWindow::listFlatpaks(const QString&, const QString&) const +++
2025-04-17 02:24:09.361 DBG: flatpak remote-ls --system flathub-verified --arch=x86_64 --columns=ver,ref,installed-size 2>/dev/null
2025-04-17 02:24:16.296 DBG: flatpak list --system 2>/dev/null --app --columns=ref
2025-04-17 02:24:16.336 DBG: "com.brave.Browser/x86_64/stable\ncom.github.ADBeveridge.Raider/x86_64/stable\ncom.github.PintaProject.Pinta/x86_64/stable\ncom.github.tchx84.Flatseal/x86_64/stable\nio.freetubeapp.FreeTube/x86_64/stable\nio.github.ferraridamiano.ConverterNOW/x86_64/stable\norg.fedoraproject.MediaWriter/x86_64/stable\norg.gnome.gitlab.somas.Apostrophe/x86_64/stable\norg.gnucash.GnuCash/x86_64/stable\norg.mozilla.firefox/x86_64/stable\norg.qbittorrent.qBittorrent/x86_64/stable"
2025-04-17 02:24:16.342 DBG: flatpak list --system 2>/dev/null --runtime --columns=ref
2025-04-17 02:24:16.378 DBG: "org.freedesktop.Platform/x86_64/24.08\norg.freedesktop.Platform.GL.default/x86_64/23.08\norg.freedesktop.Platform.GL.default/x86_64/23.08-extra\norg.freedesktop.Platform.GL.default/x86_64/24.08\norg.freedesktop.Platform.GL.default/x86_64/24.08extra\norg.freedesktop.Platform.openh264/x86_64/2.2.0\norg.freedesktop.Platform.openh264/x86_64/2.5.1\norg.gnome.Platform/x86_64/47\norg.gnome.Platform/x86_64/48\norg.kde.Platform/x86_64/6.7\norg.kde.Platform/x86_64/6.8"
2025-04-17 02:24:16.409 DBG: +++ void MainWindow::listSizeInstalledFP() +++
2025-04-17 02:24:16.409 DBG: flatpak list --system --columns app,size
2025-04-17 02:24:16.451 DBG: "com.brave.Browser\t435.2 MB\ncom.github.ADBeveridge.Raider\t282.1 kB\ncom.github.PintaProject.Pinta\t118.1 MB\ncom.github.tchx84.Flatseal\t1.3 MB\nio.freetubeapp.FreeTube\t291.0 MB\nio.github.ferraridamiano.ConverterNOW\t28.0 MB\norg.fedoraproject.MediaWriter\t2.9 MB\norg.freedesktop.Platform\t675.8 MB\norg.freedesktop.Platform.GL.default\t538.1 MB\norg.freedesktop.Platform.GL.default\t538.1 MB\norg.freedesktop.Platform.GL.default\t463.2 MB\norg.freedesktop.Platform.GL.default\t463.2 MB\norg.freedesktop.Platform.openh264\t790.0 kB\norg.freedesktop.Platform.openh264\t789.5 kB\norg.gnome.Platform\t1.0 GB\norg.gnome.Platform\t1.0 GB\norg.gnome.gitlab.somas.Apostrophe\t168.7 MB\norg.gnucash.GnuCash\t334.7 MB\norg.kde.Platform\t932.7 MB\norg.kde.Platform\t1.0 GB\norg.mozilla.firefox\t275.3 MB\norg.qbittorrent.qBittorrent\t18.1 MB"
2025-04-17 02:24:16.537 DBG: +++ void MainWindow::filterChanged(const QString&) +++
2025-04-17 02:24:16.537 DBG: +++ void MainWindow::updateInterface() const +++
2025-04-17 02:24:16.538 DBG: +++ QStringList MainWindow::listFlatpaks(const QString&, const QString&) const +++
2025-04-17 02:24:16.538 DBG: flatpak remote-ls --system flathub-verified --arch=x86_64 --columns=ver,ref,installed-size --app 2>/dev/null
2025-04-17 02:24:23.251 DBG: +++ void MainWindow::displayFilteredFP(QStringList, bool) +++
2025-04-17 02:24:25.783 DBG: +++ void MainWindow::pushUpgradeFP_clicked() +++
2025-04-17 02:24:25.786 DBG: +++ void MainWindow::tabWidget_currentChanged(int) +++
2025-04-17 02:24:25.788 DBG: socat SYSTEM:'flatpak update --system ',pty STDIO
2025-04-17 02:24:25.832 DBG: "Looking for updates…"
2025-04-17 02:24:31.446 DBG: "\u001B[1m        ID                 Branch   Op  Remote            Download\u001B[22m\r\n 1.     org.kde.Platform   6.7      u   flathub-verified  < 336.1 MB"
2025-04-17 02:24:31.450 DBG: "Proceed with these changes to the system installation? [Y/n]:"
2025-04-17 02:24:45.171 DBG: +++ void MainWindow::pushCancel_clicked() +++
2025-04-17 02:24:46.796 DBG: +++ void MainWindow::cleanup() +++
2025-04-17 02:24:46.799 DBG: Command "/bin/bash" ("-c", "socat SYSTEM:'flatpak update --system ',pty STDIO") terminated true

Code: Select all

Snapshot created on: 20250325_0350
System:
  Kernel: 5.10.230-antix.1-amd64-smp arch: x86_64 bits: 64 compiler: gcc v: 12.2.0
    parameters: BOOT_IMAGE=/boot/vmlinuz-5.10.230-antix.1-amd64-smp root=UUID=<filter> ro quiet
    splash
  Desktop: Xfce v: 4.20.0 tk: Gtk v: 3.24.38 info: xfce4-panel wm: xfwm v: 4.20.0 vt: 7
    dm: LightDM v: 1.32.0 Distro: MX-23.6_x64 Libretto May 19  2024 base: Debian GNU/Linux 12
    (bookworm)
Machine:
  Type: Desktop Mobo: ASUSTeK model: M4A78-VM v: Rev X.0x serial: <superuser required>
    BIOS: American Megatrends v: 0601 date: 04/08/2009
CPU:
  Info: model: AMD Phenom II X2 545 bits: 64 type: MCP arch: K10 level: v1 built: 2009-13
    process: AMD 45nm family: 0x10 (16) model-id: 4 stepping: 2 microcode: 0x10000DB
  Topology: cpus: 1x cores: 2 smt: <unsupported> cache: L1: 256 KiB desc: d-2x64 KiB; i-2x64 KiB
    L2: 1024 KiB desc: 2x512 KiB L3: 6 MiB desc: 1x6 MiB
  Speed (MHz): avg: 3000 min/max: 800/3000 boost: disabled scaling: driver: acpi-cpufreq
    governor: ondemand cores: 1: 3000 2: 3000 bogomips: 12034
  Flags: ht lm nx pae sse sse2 sse3 sse4a svm
  Vulnerabilities:
  Type: gather_data_sampling status: Not affected
  Type: itlb_multihit status: Not affected
  Type: l1tf status: Not affected
  Type: mds status: Not affected
  Type: meltdown status: Not affected
  Type: mmio_stale_data status: Not affected
  Type: reg_file_data_sampling status: Not affected
  Type: retbleed status: Not affected
  Type: spec_rstack_overflow status: Not affected
  Type: spec_store_bypass status: Not affected
  Type: spectre_v1 mitigation: usercopy/swapgs barriers and __user pointer sanitization
  Type: spectre_v2 mitigation: Retpolines, STIBP: disabled, RSB filling, PBRSB-eIBRS: Not
    affected
  Type: srbds status: Not affected
  Type: tsx_async_abort status: Not affected
Graphics:
  Device-1: AMD Caicos PRO [Radeon HD 7450] vendor: PC Partner / Sapphire driver: radeon v: kernel
    arch: TeraScale-2 code: Evergreen process: TSMC 32-40nm built: 2009-15 pcie: gen: 1
    speed: 2.5 GT/s lanes: 16 link-max: gen: 2 speed: 5 GT/s ports: active: HDMI-A-1
    empty: DVI-D-1,VGA-1 bus-ID: 01:00.0 chip-ID: 1002:677b class-ID: 0300 temp: 48.0 C
  Display: x11 server: X.Org v: 1.21.1.7 compositor: xfwm v: 4.20.0 driver: X: loaded: radeon
    unloaded: fbdev,modesetting,vesa dri: r600 gpu: radeon display-ID: :0.0 screens: 1
  Screen-1: 0 s-res: 1920x1080 s-dpi: 96 s-size: 509x286mm (20.04x11.26") s-diag: 584mm (22.99")
  Monitor-1: HDMI-A-1 mapped: HDMI-0 model: FPDAS---J1 serial: <filter> built: 2011
    res: 1920x1080 hz: 60 dpi: 305 gamma: 1.2 size: 160x90mm (6.3x3.54") diag: 184mm (7.2")
    ratio: 16:9 modes: max: 1920x1080i min: 720x400
  API: OpenGL v: 4.5 Mesa 22.3.6 renderer: AMD CAICOS (DRM 2.50.0 / 5.10.230-antix.1-amd64-smp
    LLVM 15.0.6) direct-render: Yes
Audio:
  Device-1: AMD SBx00 Azalia vendor: ASUSTeK driver: snd_hda_intel v: kernel bus-ID: 00:14.2
    chip-ID: 1002:4383 class-ID: 0403
  Device-2: AMD Caicos HDMI Audio [Radeon HD 6450 / 7450/8450/8490 OEM R5 230/235/235X OEM]
    vendor: PC Partner / Sapphire driver: snd_hda_intel v: kernel pcie: gen: 1 speed: 2.5 GT/s
    lanes: 16 link-max: gen: 2 speed: 5 GT/s bus-ID: 01:00.1 chip-ID: 1002:aa98 class-ID: 0403
  API: ALSA v: k5.10.230-antix.1-amd64-smp status: kernel-api tools: alsamixer,amixer
  Server-1: PipeWire v: 1.0.0 status: active with: 1: pipewire-pulse status: active
    2: wireplumber status: active 3: pipewire-alsa type: plugin 4: pw-jack type: plugin
    tools: pactl,pw-cat,pw-cli,wpctl
Network:
  Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet vendor: ASUSTeK driver: r8169
    v: kernel pcie: gen: 1 speed: 2.5 GT/s lanes: 1 port: e800 bus-ID: 03:00.0 chip-ID: 10ec:8168
    class-ID: 0200
  IF: eth0 state: up speed: 100 Mbps duplex: full mac: <filter>
  Device-2: Qualcomm Atheros AR922X Wireless Network Adapter driver: ath9k v: kernel modules: wl
    bus-ID: 04:07.0 chip-ID: 168c:0029 class-ID: 0280
  IF: wlan0 state: down mac: <filter>
Drives:
  Local Storage: total: 223.57 GiB used: 170.65 GiB (76.3%)
  SMART Message: Unable to run smartctl. Root privileges required.
  ID-1: /dev/sda maj-min: 8:0 vendor: Toshiba model: Q300. size: 223.57 GiB block-size:
    physical: 512 B logical: 512 B speed: 3.0 Gb/s type: SSD serial: <filter> rev: 12.3 scheme: MBR
Partition:
  ID-1: / raw-size: 223.57 GiB size: 219 GiB (97.96%) used: 170.65 GiB (77.9%) fs: ext4
    dev: /dev/sda1 maj-min: 8:1
Swap:
  Kernel: swappiness: 15 (default 60) cache-pressure: 100 (default)
  ID-1: swap-1 type: file size: 3 GiB used: 0 KiB (0.0%) priority: -2 file: /swap/swap
Sensors:
  System Temperatures: cpu: 61.0 C mobo: 44.0 C gpu: radeon temp: 48.0 C
  Fan Speeds (RPM): cpu: 2177 psu: 0 case-1: 1411
  Power: 12v: 11.94 5v: N/A 3.3v: 3.09 vbat: N/A
Repos:
  Packages: 2157 pm: dpkg pkgs: 2135 libs: 1025 tools: apt,apt-get,aptitude,nala,synaptic pm: rpm
    pkgs: 0 pm: flatpak pkgs: 22
  No active apt repos in: /etc/apt/sources.list
  Active apt repos in: /etc/apt/sources.list.d/debian-stable-updates.list
    1: deb http://deb.debian.org/debian bookworm-updates main contrib non-free non-free-firmware
  Active apt repos in: /etc/apt/sources.list.d/debian.list
    1: deb http://deb.debian.org/debian bookworm main contrib non-free non-free-firmware
    2: deb http://security.debian.org/debian-security bookworm-security main contrib non-free non-free-firmware
  Active apt repos in: /etc/apt/sources.list.d/megasync.list
    1: deb [signed-by=/usr/share/keyrings/meganz-archive-keyring.gpg] https://mega.nz/linux/repo/Debian_12/ ./
  Active apt repos in: /etc/apt/sources.list.d/mx.list
    1: deb https://mxlinux.mirror.liquidtelecom.com/packages/mx/repo/ bookworm main non-free
  Active apt repos in: /etc/apt/sources.list.d/onlyoffice.list
    1: deb https://download.onlyoffice.com/repo/debian squeeze main
Info:
  Processes: 213 Uptime: 3h 5m wakeups: 3 Memory: 7.76 GiB used: 1.88 GiB (24.2%) Init: SysVinit
  v: 3.06 runlevel: 5 default: graphical tool: systemctl Compilers: gcc: 12.2.0 alt: 12
  Client: shell wrapper v: 5.2.15-release inxi: 3.3.26
Boot Mode: BIOS (legacy, CSM, MBR)
Image

Re: High CPU usage by MXPI even after closing

Posted: Fri Apr 18, 2025 10:34 am
by CharlesV
You might try clearing the apt cache ( MX Cleanup or Stacer ).

Re: High CPU usage by MXPI even after closing

Posted: Fri Apr 18, 2025 7:03 pm
by retroD0d0
HI CharlesV, thanks for the suggestion. Have done a clean of ALL apt cache files and rebooted (old windows habit). I will let you know if the problem persists or not.

edit : sadly the problem persists. :frown:

Re: High CPU usage by MXPI even after closing

Posted: Fri Apr 25, 2025 10:07 pm
by retroD0d0
Ok, so i updated another installation of MX on a completely separate installation to 23.6 (from 23.5) and I am getting the exact same problem! I can't be the only one with this issue?!

edit: OK I tried on a third installation of MX(Yes I really love MX) running on a separate ssd of the same system as below, this was still on 23.5 and the problem is still there, so it is nothing to do with 23.6. It must have started with a recent update of MXPI perhaps? It's a very recent thing, has been working fine since install. I have a process viewer on my conky since install so I can keep an eye on my CPU.

Code: Select all

Snapshot created on: 20250426_0521
System:
  Kernel: 5.10.230-antix.1-amd64-smp arch: x86_64 bits: 64 compiler: gcc v: 12.2.0
    parameters: BOOT_IMAGE=/boot/vmlinuz-5.10.230-antix.1-amd64-smp root=UUID=<filter> ro quiet
    splash
  Desktop: Xfce v: 4.20.0 tk: Gtk v: 3.24.38 info: xfce4-panel wm: xfwm v: 4.20.0 vt: 7
    dm: LightDM v: 1.32.0 Distro: MX-23.6_x64 Libretto May 19  2024 base: Debian GNU/Linux 12
    (bookworm)
Machine:
  Type: Desktop Mobo: MAXSUN model: MS-HDZ A10 Quad V2.0 serial: <superuser required>
    UEFI: American Megatrends v: 4.6.5 date: 08/31/2022
CPU:
  Info: model: AMD A8-7200P Radeon R5 8 Compute Cores 4C+4G bits: 64 type: MT MCP arch: Steamroller
    level: v2 built: 2014 process: GF 28nm family: 0x15 (21) model-id: 0x30 (48) stepping: 1
    microcode: 0x6003106
  Topology: cpus: 1x cores: 4 smt: enabled cache: L1: 256 KiB desc: d-4x16 KiB; i-2x96 KiB
    L2: 4 MiB desc: 2x2 MiB
  Speed (MHz): avg: 1975 high: 2211 min/max: 1400/2400 boost: enabled scaling:
    driver: acpi-cpufreq governor: ondemand cores: 1: 1951 2: 2211 3: 1786 4: 1953 bogomips: 19164
  Flags: avx ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm
  Vulnerabilities:
  Type: gather_data_sampling status: Not affected
  Type: itlb_multihit status: Not affected
  Type: l1tf status: Not affected
  Type: mds status: Not affected
  Type: meltdown status: Not affected
  Type: mmio_stale_data status: Not affected
  Type: reg_file_data_sampling status: Not affected
  Type: retbleed mitigation: untrained return thunk; SMT vulnerable
  Type: spec_rstack_overflow status: Not affected
  Type: spec_store_bypass mitigation: Speculative Store Bypass disabled via prctl and seccomp
  Type: spectre_v1 mitigation: usercopy/swapgs barriers and __user pointer sanitization
  Type: spectre_v2 mitigation: Retpolines, STIBP: disabled, RSB filling, PBRSB-eIBRS: Not
    affected
  Type: srbds status: Not affected
  Type: tsx_async_abort status: Not affected
Graphics:
  Device-1: AMD Kaveri [Radeon R5 Graphics] driver: radeon v: kernel alternate: amdgpu arch: GCN-2
    code: Sea Islands process: GF/TSMC 16-28nm built: 2013-17 ports: active: HDMI-A-1,VGA-1
    empty: none bus-ID: 00:01.0 chip-ID: 1002:130e class-ID: 0300
  Display: x11 server: X.Org v: 1.21.1.7 compositor: xfwm v: 4.20.0 driver: X: loaded: radeon
    unloaded: fbdev,modesetting,vesa dri: radeonsi gpu: radeon display-ID: :0.0 screens: 1
  Screen-1: 0 s-res: 2944x1080 s-dpi: 96 s-size: 779x286mm (30.67x11.26") s-diag: 830mm (32.67")
  Monitor-1: HDMI-A-1 mapped: HDMI-0 pos: primary,left model: Sony TV serial: <filter>
    built: 2010 res: 1920x1080 hz: 60 dpi: 30 gamma: 1.2 size: 1600x900mm (62.99x35.43")
    diag: 1836mm (72.3") ratio: 16:9 modes: max: 1920x1080 min: 640x480
  Monitor-2: VGA-1 mapped: VGA-0 pos: right res: 1024x768 hz: 60 size: N/A modes: max: 1024x768
    min: 640x480
  API: OpenGL v: 4.5 Mesa 22.3.6 renderer: KAVERI ( LLVM 15.0.6 DRM 2.50
    5.10.230-antix.1-amd64-smp) direct-render: Yes
Audio:
  Device-1: AMD Kaveri HDMI/DP Audio driver: snd_hda_intel v: kernel bus-ID: 00:01.1
    chip-ID: 1002:1308 class-ID: 0403
  Device-2: AMD FCH Azalia vendor: Conexant Systems driver: snd_hda_intel v: kernel
    bus-ID: 00:14.2 chip-ID: 1022:780d class-ID: 0403
  API: ALSA v: k5.10.230-antix.1-amd64-smp status: kernel-api tools: alsamixer,amixer
  Server-1: PipeWire v: 1.0.0 status: active with: 1: pipewire-pulse status: active
    2: wireplumber status: active 3: pipewire-alsa type: plugin 4: pw-jack type: plugin
    tools: pactl,pw-cat,pw-cli,wpctl
Network:
  Device-1: Intel Wireless 7260 driver: iwlwifi v: kernel modules: wl pcie: gen: 1 speed: 2.5 GT/s
    lanes: 1 bus-ID: 01:00.0 chip-ID: 8086:08b1 class-ID: 0280
  IF: wlan0 state: down mac: <filter>
  Device-2: Realtek RTL810xE PCI Express Fast Ethernet driver: r8169 v: kernel pcie: gen: 1
    speed: 2.5 GT/s lanes: 1 port: e000 bus-ID: 05:00.0 chip-ID: 10ec:8136 class-ID: 0200
  IF: eth0 state: up speed: 100 Mbps duplex: full mac: <filter>
Drives:
  Local Storage: total: 953.88 GiB used: 128.19 GiB (13.4%)
  SMART Message: Unable to run smartctl. Root privileges required.
  ID-1: /dev/nvme0n1 maj-min: 259:0 vendor: KingSpec model: NE-512 2280 size: 476.94 GiB
    block-size: physical: 512 B logical: 512 B speed: 31.6 Gb/s lanes: 4 type: SSD serial: <filter>
    rev: VC3S500H temp: 50.9 C scheme: GPT
  ID-2: /dev/sda maj-min: 8:0 vendor: Netac model: SSD 512GB size: 476.94 GiB block-size:
    physical: 512 B logical: 512 B speed: 6.0 Gb/s type: SSD serial: <filter> rev: 9A0 scheme: MBR
Partition:
  ID-1: / raw-size: 476.69 GiB size: 468.13 GiB (98.21%) used: 128.19 GiB (27.4%) fs: ext4
    dev: /dev/sda2 maj-min: 8:2
  ID-2: /boot/efi raw-size: 256 MiB size: 252 MiB (98.46%) used: 274 KiB (0.1%) fs: vfat
    dev: /dev/sda1 maj-min: 8:1
Swap:
  Kernel: swappiness: 15 (default 60) cache-pressure: 100 (default)
  ID-1: swap-1 type: file size: 3 GiB used: 2.2 MiB (0.1%) priority: -2 file: /swap/swap
Sensors:
  System Temperatures: cpu: 51.4 C mobo: N/A gpu: radeon temp: 52.0 C
  Fan Speeds (RPM): N/A
Repos:
  Packages: 2243 pm: dpkg pkgs: 2225 libs: 1101 tools: apt,apt-get,aptitude,nala,synaptic pm: rpm
    pkgs: 0 pm: flatpak pkgs: 18
  No active apt repos in: /etc/apt/sources.list
  No active apt repos in: /etc/apt/sources.list.d/brave-browser-release.list
  Active apt repos in: /etc/apt/sources.list.d/debian-stable-updates.list
    1: deb http://deb.debian.org/debian/ bookworm-updates non-free-firmware non-free contrib main
  Active apt repos in: /etc/apt/sources.list.d/debian.list
    1: deb http://deb.debian.org/debian/ bookworm main contrib non-free non-free-firmware
    2: deb http://security.debian.org/debian-security/ bookworm-security main contrib non-free non-free-firmware
  Active apt repos in: /etc/apt/sources.list.d/megasync.list
    1: deb [signed-by=/usr/share/keyrings/meganz-archive-keyring.gpg] https://mega.nz/linux/repo/Debian_12/ ./
  Active apt repos in: /etc/apt/sources.list.d/mx.list
    1: deb https://mxlinux.mirror.liquidtelecom.com/packages/mx/repo/ bookworm main non-free
Info:
  Processes: 205 Uptime: 1h 11m wakeups: 1 Memory: 14.6 GiB used: 1.15 GiB (7.9%) Init: SysVinit
  v: 3.06 runlevel: 5 default: graphical tool: systemctl Compilers: gcc: 12.2.0 alt: 12
  Client: shell wrapper v: 5.2.15-release inxi: 3.3.26
Boot Mode: UEFI

Re: High CPU usage by MXPI even after closing

Posted: Fri Apr 25, 2025 10:56 pm
by siamhie
retroD0d0 wrote: Fri Apr 25, 2025 10:07 pm Ok, so i updated another installation of MX on a completely separate installation to 23.6 (from 23.5) and I am getting the exact same problem! I can't be the only one with this issue?!

Code: Select all

Snapshot created on: 20250426_0521
Maybe there's something wrong with the snapshots?
Boot up the live ISO, then update it and see if it still persists.

Re: High CPU usage by MXPI even after closing

Posted: Sun Apr 27, 2025 9:34 pm
by retroD0d0

Maybe there's something wrong with the snapshots?
Boot up the live ISO, then update it and see if it still persists.
Hi Siamhe

I'm a little confused as to why QSI includes that statement on the first line. Both installations are from fresh installs. The snapshot I made is just an iso sitting in my snapshot folder, not sure what relevance that has :confused:

Siamhe, just to check , are you asking me to test a fresh MX live USB? (as opposed to my own system snapshot liveUSB)

Some new info! I have remarked that the phenomena only seems to occur when I start MXPI and close it after performing no action. If I refresh package lists, check flatpak updates, any sort of action I think, the MXPI process terminates as normal upon closing.

Re: High CPU usage by MXPI even after closing

Posted: Wed May 07, 2025 2:00 pm
by retroD0d0
siamhie wrote: Fri Apr 25, 2025 10:56 pm
retroD0d0 wrote: Fri Apr 25, 2025 10:07 pm Ok, so i updated another installation of MX on a completely separate installation to 23.6 (from 23.5) and I am getting the exact same problem! I can't be the only one with this issue?!

Code: Select all

Snapshot created on: 20250426_0521
Maybe there's something wrong with the snapshots?
Boot up the live ISO, then update it and see if it still persists.
Sorry for the delay, finally freed up a USB drive to test this. I updated the OP to reflect this. Yes, the problem persists on a stock live USB, fully updated. Each time I open and close MXPI after doing no task, it starts a single instance runway process which takes up roughly a single core (The scheduler periodically rotates it across cores I think). So opening/closing twice leaves two runaway processes, roughly 50% CPU time on my 4 core system.

Code: Select all

System:
  Kernel: 6.1.0-33-amd64 [6.1.133-1] arch: x86_64 bits: 64 compiler: gcc v: 12.2.0
    parameters: BOOT_IMAGE=/antiX/vmlinuz quiet splasht nosplash p_static_root grubsave
  Desktop: Xfce v: 4.20.0 tk: Gtk v: 3.24.38 info: xfce4-panel wm: xfwm v: 4.20.0 vt: 7
    dm: LightDM v: 1.32.0 Distro: MX-23.6_x64 Libretto April 13  2025 base: Debian GNU/Linux 12
    (bookworm)
Machine:
  Type: Desktop Mobo: MAXSUN model: MS-HDZ A10 Quad V2.0 serial: <superuser required>
    UEFI: American Megatrends v: 4.6.5 date: 08/31/2022
CPU:
  Info: model: AMD A8-7200P Radeon R5 8 Compute Cores 4C+4G bits: 64 type: MT MCP arch: Steamroller
    level: v2 built: 2014 process: GF 28nm family: 0x15 (21) model-id: 0x30 (48) stepping: 1
    microcode: 0x6003106
  Topology: cpus: 1x cores: 4 smt: enabled cache: L1: 256 KiB desc: d-4x16 KiB; i-2x96 KiB
    L2: 4 MiB desc: 2x2 MiB
  Speed (MHz): avg: 1397 high: 1400 min/max: 1400/2400 boost: enabled scaling:
    driver: acpi-cpufreq governor: ondemand cores: 1: 1397 2: 1400 3: 1396 4: 1397 bogomips: 19164
  Flags: avx ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm
  Vulnerabilities:
  Type: gather_data_sampling status: Not affected
  Type: itlb_multihit status: Not affected
  Type: l1tf status: Not affected
  Type: mds status: Not affected
  Type: meltdown status: Not affected
  Type: mmio_stale_data status: Not affected
  Type: reg_file_data_sampling status: Not affected
  Type: retbleed mitigation: untrained return thunk; SMT vulnerable
  Type: spec_rstack_overflow status: Not affected
  Type: spec_store_bypass mitigation: Speculative Store Bypass disabled via prctl
  Type: spectre_v1 mitigation: usercopy/swapgs barriers and __user pointer sanitization
  Type: spectre_v2 mitigation: Retpolines; STIBP: disabled; RSB filling; PBRSB-eIBRS: Not
    affected; BHI: Not affected
  Type: srbds status: Not affected
  Type: tsx_async_abort status: Not affected
Graphics:
  Device-1: AMD Kaveri [Radeon R5 Graphics] driver: radeon v: kernel alternate: amdgpu arch: GCN-2
    code: Sea Islands process: GF/TSMC 16-28nm built: 2013-17 ports: active: HDMI-A-1 empty: VGA-1
    bus-ID: 00:01.0 chip-ID: 1002:130e class-ID: 0300
  Display: x11 server: X.Org v: 1.21.1.7 compositor: xfwm v: 4.20.0 driver: X: loaded: radeon
    unloaded: fbdev,modesetting,vesa dri: radeonsi gpu: radeon display-ID: :0.0 screens: 1
  Screen-1: 0 s-res: 1920x1080 s-dpi: 96 s-size: 509x286mm (20.04x11.26") s-diag: 584mm (22.99")
  Monitor-1: HDMI-A-1 mapped: HDMI-0 model: Sony TV serial: <filter> built: 2010 res: 1920x1080
    hz: 60 dpi: 30 gamma: 1.2 size: 1600x900mm (62.99x35.43") diag: 1836mm (72.3") ratio: 16:9 modes:
    max: 1920x1080 min: 640x480
  API: OpenGL v: 4.5 Mesa 22.3.6 renderer: KAVERI ( LLVM 15.0.6 DRM 2.50 6.1.0-33-amd64)
    direct-render: Yes
Audio:
  Device-1: AMD Kaveri HDMI/DP Audio driver: snd_hda_intel v: kernel bus-ID: 00:01.1
    chip-ID: 1002:1308 class-ID: 0403
  Device-2: AMD FCH Azalia vendor: Conexant Systems driver: snd_hda_intel v: kernel
    bus-ID: 00:14.2 chip-ID: 1022:780d class-ID: 0403
  API: ALSA v: k6.1.0-33-amd64 status: kernel-api tools: alsamixer,amixer
  Server-1: PipeWire v: 1.0.0 status: active with: 1: pipewire-pulse status: active
    2: wireplumber status: active 3: pipewire-alsa type: plugin 4: pw-jack type: plugin
    tools: pactl,pw-cat,pw-cli,wpctl
Network:
  Device-1: Intel Wireless 7260 driver: iwlwifi v: kernel modules: wl pcie: gen: 1 speed: 2.5 GT/s
    lanes: 1 bus-ID: 01:00.0 chip-ID: 8086:08b1 class-ID: 0280
  IF: wlan0 state: down mac: <filter>
  Device-2: Realtek RTL810xE PCI Express Fast Ethernet driver: r8169 v: kernel pcie: gen: 1
    speed: 2.5 GT/s lanes: 1 port: e000 bus-ID: 05:00.0 chip-ID: 10ec:8136 class-ID: 0200
  IF: eth0 state: up speed: 100 Mbps duplex: full mac: <filter>
Drives:
  Local Storage: total: 1011.57 GiB used: 10.43 GiB (1.0%)
  SMART Message: Unable to run smartctl. Root privileges required.
  ID-1: /dev/nvme0n1 maj-min: 259:0 vendor: KingSpec model: NE-512 2280 size: 476.94 GiB
    block-size: physical: 512 B logical: 512 B speed: 31.6 Gb/s lanes: 4 type: SSD serial: <filter>
    rev: VC3S500H temp: 46.9 C scheme: GPT
  ID-2: /dev/sda maj-min: 8:0 vendor: Netac model: SSD 512GB size: 476.94 GiB block-size:
    physical: 512 B logical: 512 B speed: 6.0 Gb/s type: SSD serial: <filter> rev: 9A0 scheme: MBR
  ID-3: /dev/sdb maj-min: 8:16 type: USB vendor: Toshiba model: KIOXIA TransMemory
    size: 57.69 GiB block-size: physical: 512 B logical: 512 B type: N/A serial: <filter> scheme: MBR
  SMART Message: Unknown USB bridge. Flash drive/Unsupported enclosure?
Partition:
  Message: No partition data found.
Swap:
  Kernel: swappiness: 15 (default 60) cache-pressure: 100 (default)
  ID-1: swap-1 type: file size: 4 GiB used: 0 KiB (0.0%) priority: -2
    file: /live/boot-dev/swap-file
Sensors:
  System Temperatures: cpu: 47.9 C mobo: N/A gpu: radeon temp: 47.0 C
  Fan Speeds (RPM): N/A
Repos:
  Packages: pm: dpkg pkgs: 2134 libs: 1061 tools: apt,apt-get,aptitude,nala,synaptic pm: rpm
    pkgs: 0 pm: flatpak pkgs: 0
  No active apt repos in: /etc/apt/sources.list
  Active apt repos in: /etc/apt/sources.list.d/debian-stable-updates.list
    1: deb http://deb.debian.org/debian bookworm-updates main contrib non-free non-free-firmware
  Active apt repos in: /etc/apt/sources.list.d/debian.list
    1: deb http://deb.debian.org/debian bookworm main contrib non-free non-free-firmware
    2: deb http://security.debian.org/debian-security bookworm-security main contrib non-free non-free-firmware
  Active apt repos in: /etc/apt/sources.list.d/mx.list
    1: deb https://mxrepo.com/mx/repo/ bookworm main non-free
Info:
  Processes: 219 Uptime: 1h 48m wakeups: 0 Memory: 14.59 GiB used: 1.61 GiB (11.1%) Init: SysVinit
  v: 3.06 runlevel: 5 default: graphical tool: systemctl Compilers: gcc: 12.2.0 alt: 12
  Client: shell wrapper v: 5.2.15-release inxi: 3.3.26
Boot Mode: UEFI
Not the end of the world, I know how to avoid it happening now, but I am completely baffled as to why no one else is having this issue given I can recreate this on several installations across 2 completely different systems. I will try a third system shortly using a stock live usb


Image

Re: High CPU usage/runaway process by MXPI after closing.

Posted: Wed Sep 10, 2025 10:31 am
by turfymiler
I have exactly the same problem as retroDOdo. After I close MX Package Installer (MXPI) each instance I opened in that session hangs on to 25% of CPU after I close it.
I became aware of this in last week or so because fans were on and I knew I wasn't doing anything intensive. My fix is to stop or kill the unwanted MXPI process/s in Task Manager.
I haven't noticed this problem until recently. MX is the only OS I've used in last 5 years.
To check I was still getting the problem today, after a restart I opened MXPI, switched to the Enabled Repo and MX Test Repo tabs and closed MPXPI. There was no immediate increase in CPU use but after a couple of minutes I heard the fans start and MXPI CPU was at 25%.
Hoping there is a fix for this issue.

Code: Select all

Snapshot created on: 20250816_2130
System:
  Kernel: 6.1.0-39-amd64 [6.1.148-1] arch: x86_64 bits: 64 compiler: gcc v: 12.2.0
    parameters: BOOT_IMAGE=/boot/vmlinuz-6.1.0-39-amd64 root=UUID=<filter> ro quiet splash
  Desktop: Xfce v: 4.20.0 tk: Gtk v: 3.24.38 info: xfce4-panel wm: xfwm v: 4.20.0 vt: 7
    dm: LightDM v: 1.32.0 Distro: MX-23.6_x64 Libretto July 31  2023 base: Debian GNU/Linux 12
    (bookworm)
Machine:
  Type: Laptop System: LENOVO product: 20AWS1DA00 v: ThinkPad T440p serial: <superuser required>
    Chassis: type: 10 serial: <superuser required>
  Mobo: LENOVO model: 20AWS1DA00 v: 0B98401 PRO serial: <superuser required> UEFI: LENOVO
    v: GLETA2WW (2.56 ) date: 07/16/2021
Battery:
  ID-1: BAT0 charge: 35.3 Wh (78.1%) condition: 45.2/56.2 Wh (80.5%) volts: 11.9 min: 10.8
    model: LGC 45N1147 type: Li-ion serial: <filter> status: not charging
CPU:
  Info: model: Intel Core i7-4600M bits: 64 type: MT MCP arch: Haswell gen: core 4 level: v3
    note: check built: 2013-15 process: Intel 22nm family: 6 model-id: 0x3C (60) stepping: 3
    microcode: 0x28
  Topology: cpus: 1x cores: 2 tpc: 2 threads: 4 smt: enabled cache: L1: 128 KiB
    desc: d-2x32 KiB; i-2x32 KiB L2: 512 KiB desc: 2x256 KiB L3: 4 MiB desc: 1x4 MiB
  Speed (MHz): avg: 1040 high: 1078 min/max: 800/3600 scaling: driver: intel_cpufreq
    governor: ondemand cores: 1: 1078 2: 1054 3: 1073 4: 956 bogomips: 23146
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3
  Vulnerabilities:
  Type: gather_data_sampling status: Not affected
  Type: indirect_target_selection status: Not affected
  Type: itlb_multihit status: KVM: VMX unsupported
  Type: l1tf mitigation: PTE Inversion
  Type: mds mitigation: Clear CPU buffers; SMT vulnerable
  Type: meltdown mitigation: PTI
  Type: mmio_stale_data status: Unknown: No mitigations
  Type: reg_file_data_sampling status: Not affected
  Type: retbleed status: Not affected
  Type: spec_rstack_overflow status: Not affected
  Type: spec_store_bypass mitigation: Speculative Store Bypass disabled via prctl
  Type: spectre_v1 mitigation: usercopy/swapgs barriers and __user pointer sanitization
  Type: spectre_v2 mitigation: Retpolines; IBPB: conditional; IBRS_FW; STIBP: conditional; RSB
    filling; PBRSB-eIBRS: Not affected; BHI: Not affected
  Type: srbds mitigation: Microcode
  Type: tsa status: Not affected
  Type: tsx_async_abort status: Not affected
Graphics:
  Device-1: Intel 4th Gen Core Processor Integrated Graphics vendor: Lenovo ThinkPad T440p
    driver: i915 v: kernel arch: Gen-7.5 process: Intel 22nm built: 2013 ports: active: eDP-1
    empty: DP-1, DP-2, HDMI-A-1, HDMI-A-2, VGA-1 bus-ID: 00:02.0 chip-ID: 8086:0416 class-ID: 0300
  Device-2: Bison SunplusIT Integrated Camera type: USB driver: uvcvideo bus-ID: 3-12:7
    chip-ID: 5986:0268 class-ID: 0e02
  Display: x11 server: X.Org v: 1.21.1.7 compositor: xfwm v: 4.20.0 driver: X:
    loaded: modesetting unloaded: fbdev,vesa dri: crocus gpu: i915 display-ID: :0.0 screens: 1
  Screen-1: 0 s-res: 1600x900 s-dpi: 96 s-size: 424x239mm (16.69x9.41") s-diag: 487mm (19.16")
  Monitor-1: eDP-1 model: LG Display 0x040a built: 2013 res: 1600x900 dpi: 132 gamma: 1.2
    size: 309x175mm (12.17x6.89") diag: 355mm (14") ratio: 16:9 modes: 1920x1080
  API: OpenGL v: 4.6 Mesa 22.3.6 renderer: Mesa Intel HD Graphics 4600 (HSW GT2)
    direct-render: Yes
Audio:
  Device-1: Intel Xeon E3-1200 v3/4th Gen Core Processor HD Audio vendor: Lenovo ThinkPad T440p
    driver: snd_hda_intel v: kernel bus-ID: 00:03.0 chip-ID: 8086:0c0c class-ID: 0403
  Device-2: Intel 8 Series/C220 Series High Definition Audio vendor: Lenovo ThinkPad T440p
    driver: snd_hda_intel v: kernel bus-ID: 00:1b.0 chip-ID: 8086:8c20 class-ID: 0403
  API: ALSA v: k6.1.0-39-amd64 status: kernel-api tools: alsamixer,amixer
  Server-1: PipeWire v: 1.0.0 status: active with: 1: pipewire-pulse status: active
    2: wireplumber status: active 3: pipewire-alsa type: plugin 4: pw-jack type: plugin
    tools: pactl,pw-cat,pw-cli,wpctl
Network:
  Device-1: Intel Ethernet I217-LM vendor: Lenovo ThinkPad T440p driver: e1000e v: kernel
    port: 3080 bus-ID: 00:19.0 chip-ID: 8086:153a class-ID: 0200
  IF: eth0 state: down mac: <filter>
  Device-2: Intel Wireless 7260 driver: iwlwifi v: kernel modules: wl pcie: gen: 1
    speed: 2.5 GT/s lanes: 1 bus-ID: 03:00.0 chip-ID: 8086:08b2 class-ID: 0280
  IF: wlan0 state: down mac: <filter>
  Device-3: Apple Ethernet Adapter [A1277] type: USB driver: asix bus-ID: 3-1:2
    chip-ID: 05ac:1402 class-ID: ff00 serial: <filter>
  IF: eth1 state: up speed: 100 Mbps duplex: full mac: <filter>
Bluetooth:
  Device-1: Intel Bluetooth wireless interface type: USB driver: btusb v: 0.8 bus-ID: 3-11:6
    chip-ID: 8087:07dc class-ID: e001
  Report: hciconfig ID: hci0 rfk-id: 6 state: down bt-service: N/A rfk-block: hardware: no
    software: no address: <filter>
  Info: acl-mtu: 1021:5 sco-mtu: 96:5 link-policy: rswitch hold sniff
    link-mode: peripheral accept
Drives:
  Local Storage: total: 465.76 GiB used: 156.21 GiB (33.5%)
  SMART Message: Unable to run smartctl. Root privileges required.
  ID-1: /dev/sda maj-min: 8:0 vendor: Crucial model: CT500MX500SSD1 size: 465.76 GiB block-size:
    physical: 4096 B logical: 512 B speed: 6.0 Gb/s type: SSD serial: <filter> rev: 043 scheme: GPT
Partition:
  ID-1: / raw-size: 27.93 GiB size: 27.32 GiB (97.83%) used: 20.76 GiB (76.0%) fs: ext4
    dev: /dev/sda2 maj-min: 8:2
  ID-2: /boot/efi raw-size: 256 MiB size: 252 MiB (98.46%) used: 274 KiB (0.1%) fs: vfat
    dev: /dev/sda1 maj-min: 8:1
  ID-3: /home raw-size: 437.58 GiB size: 429.64 GiB (98.19%) used: 135.45 GiB (31.5%) fs: ext4
    dev: /dev/sda3 maj-min: 8:3
Swap:
  Kernel: swappiness: 15 (default 60) cache-pressure: 100 (default)
  ID-1: swap-1 type: file size: 3 GiB used: 17.4 MiB (0.6%) priority: -2 file: /swap/swap
Sensors:
  System Temperatures: cpu: 57.0 C mobo: N/A
  Fan Speeds (RPM): fan-1: 2722
Repos:
  Packages: pm: dpkg pkgs: 2195 libs: 1108 tools: apt,apt-get,aptitude,nala,synaptic pm: rpm
    pkgs: 0 pm: flatpak pkgs: 0
  No active apt repos in: /etc/apt/sources.list
  Active apt repos in: /etc/apt/sources.list.d/brave-browser-release.list
    1: deb [arch=amd64 signed-by=/usr/share/keyrings/brave-browser-archive-keyring.gpg] https://brave-browser-apt-release.s3.brave.com/ stable main
  Active apt repos in: /etc/apt/sources.list.d/debian-stable-updates.list
    1: deb http://deb.debian.org/debian bookworm-updates main contrib non-free non-free-firmware
  Active apt repos in: /etc/apt/sources.list.d/debian.list
    1: deb http://deb.debian.org/debian bookworm main contrib non-free non-free-firmware
    2: deb http://security.debian.org/debian-security bookworm-security main contrib non-free non-free-firmware
  Active apt repos in: /etc/apt/sources.list.d/mx.list
    1: deb https://mirrors.ukfast.co.uk/sites/MX_antiX_packages/mx/repo/ bookworm main non-free
  Active apt repos in: /etc/apt/sources.list.d/vivaldi.list
    1: deb [arch=amd64] https://repo.vivaldi.com/stable/deb/ stable main
  Active apt repos in: /etc/apt/sources.list.d/zotero.list
    1: deb [signed-by=/usr/share/keyrings/zotero-archive-keyring.gpg by-hash=force] https://zotero.retorque.re/file/apt-package-archive ./
  Active apt repos in: /etc/apt/sources.list.d/extrepo_librewolf.sources
    1: deb [arch=amd64 arm64] https://repo.librewolf.net librewolf main
Info:
  Processes: 241 Uptime: 8h 22m wakeups: 64 Memory: 7.64 GiB used: 3.01 GiB (39.4%) Init: SysVinit
  v: 3.06 runlevel: 5 default: graphical tool: systemctl Compilers: gcc: 12.2.0 alt: 12
  Client: shell wrapper v: 5.2.15-release inxi: 3.3.26
Boot Mode: UEFI

Re: High CPU usage/runaway process by MXPI after closing.

Posted: Wed Sep 10, 2025 11:27 am
by CharlesV
turfymiler wrote: Wed Sep 10, 2025 10:31 am I have exactly the same problem as retroDOdo. After I close MX Package Installer (MXPI) each instance I opened in that session hangs on to 25% of CPU after I close it.
I became aware of this in last week or so because fans were on and I knew I wasn't doing anything intensive. My fix is to stop or kill the unwanted MXPI process/s in Task Manager.
I haven't noticed this problem until recently. MX is the only OS I've used in last 5 years.
To check I was still getting the problem today, after a restart I opened MXPI, switched to the Enabled Repo and MX Test Repo tabs and closed MPXPI. There was no immediate increase in CPU use but after a couple of minutes I heard the fans start and MXPI CPU was at 25%.
Hoping there is a fix for this issue.
What version of package installer are you running?

Any chance your closing the application before it gives you results in the tab ?

I have tried several times to reproduce this issue, both in the past and also today ( 3 different machines) and I cannot get anything like this to happen.

Re: High CPU usage/runaway process by MXPI after closing.

Posted: Wed Sep 10, 2025 12:17 pm
by turfymiler
I'm running Version: 25.09 of Package Installer.

I'm definitely letting the results load fully in each tab before closing the application.

In getting the version number for this reply I opened Package Installer, clicked About, copied version number, then closed the application. A couple of minutes later I hear the fans spin up and Task Manager is showing Package installer using 25% CPU.

Hope this helps.

Re: High CPU usage/runaway process by MXPI after closing.

Posted: Wed Sep 10, 2025 12:53 pm
by CharlesV
Hmm... in your ~/.config folder there is an MX-Linux folder with the mx-packageinstaller.conf file - Possible rename that to z_mx-packageinstaller.con ( or move it to a backup location some place ) and then retest.

Re: High CPU usage/runaway process by MXPI after closing.

Posted: Wed Sep 10, 2025 2:11 pm
by turfymiler
I renamed mx-packageinstaller.conf as suggested and re-tested. Unfortunately it made no difference. I opened Package Installer, clicked About, then closed the application. After a couple of minutes it was using 25% CPU again despite being closed.

I see reference to Flatpaks in the .conf file. I don't use them and think I turned off something relating to Flatpaks somewhere in MX in the past. Can't recall where now. Mentioning in case it might have any bearing on this issue.

Re: High CPU usage/runaway process by MXPI after closing.

Posted: Thu Sep 11, 2025 6:24 am
by retroD0d0
Specifically this happens when you open MXPI, perform no task and then close it. I have tested across 5 23.6 installations on 5 separate systems and with the live .iso. Same thing. Including Fluxbox, XFCE and KDE and even the Minimal spin. My workaround is to make sure I get MXPI to 'do something' before I close it, such as updating the package lists.

Re: High CPU usage/runaway process by MXPI after closing.

Posted: Thu Sep 11, 2025 9:06 am
by Adrian
retroD0d0 wrote: Thu Sep 11, 2025 6:24 am Specifically this happens when you open MXPI, perform no task and then close it. I have tested across 5 23.6 installations on 5 separate systems and with the live .iso. Same thing. Including Fluxbox, XFCE and KDE and even the Minimal spin. My workaround is to make sure I get MXPI to 'do something' before I close it, such as updating the package lists.
Not sure, I don't see that happening, one clarification, MXPI is not meant to be opened and closed immediately, it loads stuff in its cache, it loads the Debian package info, it loads the flatpak stuff, so when you click on the next tab it would be responsive and you don't have to wait for everything to populate. But that should not take more than a few seconds. Do you see the problem if you open MXPI, leave it on for let's say 30 seconds and then close it? How do you test this?

Re: High CPU usage/runaway process by MXPI after closing.

Posted: Thu Sep 11, 2025 1:05 pm
by turfymiler
Tested again just now. I opened MXPI, selected Enabled Repo tab, clicked Refresh List, waited for one minute, then closed MXPI. As before the fans came on after a couple of minutes and Task Manager showed MXPI process using 25% CPU.

It does not seem to matter what I do in MXPI, every time I close it the MXPI process in Task Manager its CPU use goes up to 25%. I timed it this last time and the MXPI process which remained in Task Manager at 0% after I closed it went up to 25% after 1 minute 20 seconds.

Re: High CPU usage/runaway process by MXPI after closing.

Posted: Thu Sep 11, 2025 1:08 pm
by Eadwine Rose
Start the test again, this time start it from the terminal. Paste the output if any.

Re: High CPU usage/runaway process by MXPI after closing.

Posted: Thu Sep 11, 2025 1:56 pm
by turfymiler
I did the same test as in my previous post but this time started MXPI from Terminal. Same result, CPU use for MXPI went up to 25% after a minute or so.

After I close MXPI the line for its process remains in Task Manager showing 0% CPU. Shouldn't the MXPI line disappear after it's closed?

Terminal output:

Code: Select all

$ mx-packageinstaller
mx-packageinstaller version: 25.09
+++ void MainWindow::setup() +++
apt-get update --print-uris | grep -m1 -qE '/mx/testrepo/dists/bookworm/test/'
+++ void MainWindow::loadPmFiles() +++
+++ void MainWindow::refreshPopularApps() +++
+++ QHash<QString, PackageInfo> MainWindow::listInstalled() +++
LANG=C dpkg-query -W -f='${db:Status-Abbrev} ${Package} ${Version} ${binary:Synopsis}\n'
+++ void MainWindow::displayPopularApps() const +++
apt-config shell APTOPT APT::Install-Recommends/b
"APTOPT='false'"
+++ void MainWindow::displayPackages() +++
+++ void MainWindow::tabWidget_currentChanged(int) +++
+++ void MainWindow::setCurrentTree() +++
+++ bool MainWindow::buildPackageLists(bool) +++
+++ void MainWindow::clearUi() +++
+++ bool MainWindow::downloadPackageList(bool) +++
+++ bool MainWindow::readPackageList(bool) +++
+++ void MainWindow::displayPackages() +++
+++ QHash<QString, VersionNumber> MainWindow::listInstalledVersions() +++
+++ void MainWindow::filterChanged(const QString&) +++
+++ void MainWindow::updateInterface() const +++
LANG=C apt-get --dry-run autoremove | grep -Po '^Remv \K[^ ]+'
+++ bool MainWindow::buildPackageLists(bool) +++
+++ void MainWindow::clearUi() +++
+++ bool MainWindow::downloadPackageList(bool) +++
+++ bool MainWindow::updateApt() +++
pid=$(fuser /var/lib/dpkg/lock 2>/dev/null); [[ -n "$pid" ]] && ps --no-headers -o comm -p $pid
"Get:1 http://security.debian.org/debian-security bookworm-security InRelease [48.0 kB]"
"Hit:2 http://deb.debian.org/debian bookworm-updates InRelease"
"Hit:3 http://deb.debian.org/debian bookworm InRelease"
"Hit:4 https://brave-browser-apt-release.s3.brave.com stable InRelease"
"Hit:5 https://mirrors.ukfast.co.uk/sites/MX_antiX_packages/mx/repo bookworm InRelease"
"Ign:6 https://repo.vivaldi.com/stable/deb stable InRelease"
"Hit:7 https://repo.vivaldi.com/stable/deb stable Release"
"Hit:8 https://repo.librewolf.net librewolf InRelease"
"Get:9 http://security.debian.org/debian-security bookworm-security/main i386 Packages [271 kB]"
"Get:10 http://security.debian.org/debian-security bookworm-security/main amd64 Packages [278 kB]"
"Get:11 https://zotero.retorque.re/file/apt-package-archive ./ InRelease [2,153 B]"
"Fetched 598 kB in 1s (660 kB/s)\nReading package lists..."
""
sources updated OK
+++ bool MainWindow::readPackageList(bool) +++
+++ void MainWindow::displayPackages() +++
+++ QHash<QString, VersionNumber> MainWindow::listInstalledVersions() +++
+++ void MainWindow::updateInterface() const +++
LANG=C apt-get --dry-run autoremove | grep -Po '^Remv \K[^ ]+'
+++ void MainWindow::pushCancel_clicked() +++
+++ void MainWindow::cleanup() +++

Re: High CPU usage/runaway process by MXPI after closing.

Posted: Thu Sep 11, 2025 3:31 pm
by Adrian
Does it get stuck in terminal at "cleanup()" stage or returns the prompt?

I really cannot replicate what you are seeing, do you see that if you run a clean ISO (release with up-to-date mx-packageinstaller)?

Do you reliable get the elevation prompt when you install/remove something? Do you have pkexec installed on your system?

Re: High CPU usage/runaway process by MXPI after closing.

Posted: Fri Sep 12, 2025 3:19 am
by turfymiler
Yes, it does get stuck in the Terminal. It doesn't return the prompt. I do get the prompt back when I kill the process in Task Manager.

I downloaded a clean ISO for 23.6 Xfce. When I boot from USB stick I don't get the problem. When I close MXPI the process disappears from Task Manager.

Sorry, I don't know what you mean by " elevation prompt when you install/remove something".

Yes, pkexec is installed on my system.

Re latest version of MXPI, I am running the latest version available to me in MXPI, the Enabled Repo tab says both Repo and Installed versions are 25.09. I update my system whenever MX Updater prompts me too.

I noticed that when I ran MXPI from the ISO on USB stick it had both Repo and Installed versions as 25.09.01. I guess that may be why you think I don't have latest version on my system. I'd install 25.09.01 but I can't see it in MXPI, MX Test Repo only has 25.09 too.

Re: High CPU usage/runaway process by MXPI after closing.

Posted: Fri Sep 12, 2025 5:11 am
by retroD0d0
Adrian wrote: Thu Sep 11, 2025 9:06 am Not sure, I don't see that happening, one clarification, MXPI is not meant to be opened and closed immediately, it loads stuff in its cache, it loads the Debian package info, it loads the flatpak stuff, so when you click on the next tab it would be responsive and you don't have to wait for everything to populate. But that should not take more than a few seconds. Do you see the problem if you open MXPI, leave it on for let's say 30 seconds and then close it? How do you test this?
Hi, I think you are dead right, if I wait a long enough time (around 40 seconds on tested system), it shuts down correctly! If I close MXPI too quickly, then the runaway process starts about 5-10 seconds after closing. Whatever process it is, it consumes a single core per instance, so 50% on my dual core system for example. I started from terminal as Eadwine suggested and I get a similar output to turfymiler, it hangs on "cleanup" if I close too quickly, the process exiting only when I manually sigterm.

Code: Select all

$ mx-packageinstaller
mx-packageinstaller version: 25.09
+++ void MainWindow::setup() +++
apt-get update --print-uris | grep -m1 -qE '/mx/testrepo/dists/bookworm/test/'
+++ void MainWindow::loadPmFiles() +++
+++ void MainWindow::refreshPopularApps() +++
+++ QHash<QString, PackageInfo> MainWindow::listInstalled() +++
LANG=C dpkg-query -W -f='${db:Status-Abbrev} ${Package} ${Version} ${binary:Synopsis}\n'
+++ void MainWindow::displayPopularApps() const +++
apt-config shell APTOPT APT::Install-Recommends/b
"APTOPT='false'"
+++ void MainWindow::displayPackages() +++
+++ void MainWindow::pushCancel_clicked() +++
+++ void MainWindow::cleanup() +++
It wasn't like this before however, I'm pretty sure this anomaly was introduced in an update this year, but I can't be more precise sadly.

edit: After @turfymiler test with a clean .iso, I just did a sanity check with the latest clean, freshly downloaded XFCE August Snapshot, running Live w/persistence, with solely the MXPI package updated to latest 25.9.1 The issue is still there for me!

The problem is that this issue is quite insidious by nature. It will quietly eat CPU cycles. Restarting MXPI and this time performing a successful shutdown doesn't terminate the original runaway instance.

Re: High CPU usage/runaway process by MXPI after closing.

Posted: Sat Sep 13, 2025 4:32 am
by turfymiler
25.09.1 appeared in MX Updater for me today. I installed it but the problem is still with me. The package Installer process doesn't stop when I close the application and suddenly takes up 25% of CPU after a couple of minutes. Each time I open MXPI again in a session another 25% of CPU gets used.

Re: High CPU usage/runaway process by MXPI after closing.

Posted: Sat Sep 13, 2025 4:58 am
by wdscharff
I've tried every variation mentioned here, from opening and immediately closing the program to doing nothing and waiting, to doing something and quitting/or waiting and quitting later.
No matter what I do, after 1-3 seconds the memory is freed, MXPI disappears from the System Monitor, and my PC displays the usual idle values.

Since Conky is configured on my system so that I can directly monitor the memory requirements and utilization of all cores, including the top 5 (or 10 if needed) applications, I would have noticed this behavior immediately.

Re: High CPU usage/runaway process by MXPI after closing.

Posted: Sun Sep 14, 2025 2:36 am
by turfymiler
I've found what was causing my problem with MX Package Installer. I use OpenSnitch and had set it to deny /usr/bin/flatpak as I don't use flatpaks. In an earlier post I mentioned that I thought I'd turned off flatpaks somewhere. Just occurred to me this morning that OpenSnitch is where I'd done that.

I changed /usr/bin/flatpak in OpenSnitch from 'Always deny' to 'Always allow', started MXPI from Terminal and closed it. This time I got the prompt back in Terminal and the MXPI process in Task Manager disappeared.

My problem is resolved. I guess not many others use OpenSnitch and decide to deny /usr/bin/flatpak without realising the consequence for MXPI.

@retroD0d0 - could this be the cause of your problem too?

Re: High CPU usage/runaway process by MXPI after closing.

Posted: Sun Sep 14, 2025 3:01 am
by Eadwine Rose
Wow.. good that you found the problem! Please click the checkmark in the top right set of buttons of the post that holds the solution to mark the topic solved, this way readers will be taken directly to the solution. Thanks :)

Re: High CPU usage/runaway process by MXPI after closing.

Posted: Sun Sep 14, 2025 5:16 am
by retroD0d0
@turfymiler No, I don't use OpenSnitch. Hmmm, this certainly explains why a clean .iso works for you. Glad you managed to resolve the issue your end. It does seem @Adrian was onto something, the MXPI initialisation process, including package list updates, is not meant to be interrupted, manually in my case or by another application in yours. The cleanup function is what appears to hang.

Thanks @wdscharff for taking the time to test on your end for us. As I said, for me, it is every iso, every system, live or installed. The only common factor I can think of between my various installations is my geographic location (Indian Ocean), I was thinking it may be something to do with the way my local repos are configured, but on my fresh/clean/ live iso the default US repos are still configured. Unless it is something else geo-based? System time/region seems correctly configured across installations.

The only other common factor is that my systems are relatively low-spec, my most powerful system is an Intel N100! They all run mx dreamily though, generally speaking, including KDE except for my puny AMD E-350 (Fluxbox to the rescue!)

Personally, it is an issue I can live, now that I am aware, but I would hate for other users to have the issue and not know, it mercilessly gobbles cpu cycles and electricity.

Re: High CPU usage/runaway process by MXPI after closing.

Posted: Mon Sep 15, 2025 3:16 am
by turfymiler
@Eadwine Rose - Yes, it's good to have resolved my issue but @retroD0d0 is the original poster and still has their issue. So it wouldn't be right for to mark this topic as solved.

Thank you to all who've posted to help me with the issue I had.

Re: High CPU usage/runaway process by MXPI after closing.

Posted: Mon Sep 15, 2025 8:06 am
by Adrian
turfymiler wrote: Mon Sep 15, 2025 3:16 am @Eadwine Rose - Yes, it's good to have resolved my issue but @retroD0d0 is the original poster and still has their issue. So it wouldn't be right for to mark this topic as solved.

Thank you to all who've posted to help me with the issue I had.
Agreed. BTW, you can also uninstall flatpak, you don't need to block it on the firewall...