Since update 2023-08-11 everything is frozen for a few seconds

Ever since the most recent update 2023-08-11 (which I just did a few days ago) I am experiencing a few seconds where everything is frozen, immediately after I login. I do not have hibernate or suspend activated.

Output of inxi --full --admin --filter --width is as follows:

System:
  Kernel: 6.4.9-1-MANJARO arch: x86_64 bits: 64 compiler: gcc v: 13.2.1
    parameters: BOOT_IMAGE=/boot/vmlinuz-6.4-x86_64
    root=UUID=982b845d-8dbc-495a-91e2-f372bb7dc22b rw quiet
  Desktop: GNOME v: 44.3 tk: GTK v: 3.24.38 wm: gnome-shell dm: GDM v: 44.1
    Distro: Manjaro Linux base: Arch Linux
Machine:
  Type: Desktop Mobo: Micro-Star model: MAG Z490 TOMAHAWK (MS-7C80) v: 1.0
    serial: <superuser required> BIOS: American Megatrends v: 1.C0
    date: 06/11/2022
CPU:
  Info: model: Intel Core i7-10700K bits: 64 type: MT MCP arch: Comet Lake
    gen: core 10 level: v3 note: check built: 2020 process: Intel 14nm family: 6
    model-id: 0xA5 (165) stepping: 5 microcode: 0xF8
  Topology: cpus: 1x cores: 8 tpc: 2 threads: 16 smt: enabled cache:
    L1: 512 KiB desc: d-8x32 KiB; i-8x32 KiB L2: 2 MiB desc: 8x256 KiB L3: 16 MiB
    desc: 1x16 MiB
  Speed (MHz): avg: 1292 high: 3800 min/max: 800/5100 scaling:
    driver: intel_pstate governor: powersave cores: 1: 1100 2: 1342 3: 1100
    4: 1100 5: 1100 6: 1100 7: 1100 8: 1101 9: 3800 10: 1098 11: 1100 12: 1101
    13: 1101 14: 1100 15: 1241 16: 1100 bogomips: 121639
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
  Vulnerabilities:
  Type: gather_data_sampling mitigation: Microcode
  Type: itlb_multihit status: KVM: Split huge pages
  Type: l1tf status: Not affected
  Type: mds status: Not affected
  Type: meltdown status: Not affected
  Type: mmio_stale_data mitigation: Clear CPU buffers; SMT vulnerable
  Type: retbleed mitigation: Enhanced IBRS
  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: Enhanced / Automatic IBRS, IBPB: conditional,
    RSB filling, PBRSB-eIBRS: SW sequence
  Type: srbds mitigation: Microcode
  Type: tsx_async_abort status: Not affected
Graphics:
  Device-1: NVIDIA GP104 [GeForce GTX 1060 6GB] vendor: Gigabyte driver: nvidia
    v: 535.98 alternate: nouveau,nvidia_drm non-free: 535.xx+
    status: current (as of 2023-07) arch: Pascal code: GP10x process: TSMC 16nm
    built: 2016-21 pcie: gen: 3 speed: 8 GT/s lanes: 16 bus-ID: 01:00.0
    chip-ID: 10de:1b83 class-ID: 0300
  Display: x11 server: X.Org v: 21.1.8 with: Xwayland v: 23.1.2
    compositor: gnome-shell driver: X: loaded: nvidia gpu: nvidia display-ID: :1
    screens: 1
  Screen-1: 0 s-res: 3840x1080 s-dpi: 96 s-size: 1016x286mm (40.00x11.26")
    s-diag: 1055mm (41.55")
  Monitor-1: DP-3 pos: left res: 1920x1080 hz: 60 dpi: 92
    size: 531x299mm (20.91x11.77") diag: 609mm (23.99") modes: N/A
  Monitor-2: HDMI-0 pos: primary,right res: 1920x1080 hz: 60 dpi: 82
    size: 598x336mm (23.54x13.23") diag: 686mm (27.01") modes: N/A
  API: OpenGL v: 4.6.0 NVIDIA 535.98 renderer: NVIDIA GeForce GTX 1060
    6GB/PCIe/SSE2 direct-render: Yes
Audio:
  Device-1: Intel Comet Lake PCH cAVS vendor: Micro-Star MSI
    driver: snd_hda_intel v: kernel alternate: snd_soc_skl,snd_sof_pci_intel_cnl
    bus-ID: 00:1f.3 chip-ID: 8086:06c8 class-ID: 0403
  Device-2: NVIDIA GP104 High Definition Audio vendor: Gigabyte
    driver: snd_hda_intel v: kernel pcie: gen: 3 speed: 8 GT/s lanes: 16
    bus-ID: 01:00.1 chip-ID: 10de:10f0 class-ID: 0403
  API: ALSA v: k6.4.9-1-MANJARO status: kernel-api with: aoss
    type: oss-emulator tools: alsactl,alsamixer,amixer
  Server-1: JACK v: 1.9.22 status: off tools: N/A
  Server-2: PipeWire v: 0.3.77 status: active with: 1: pipewire-pulse
    status: active 2: wireplumber status: active 3: pipewire-alsa type: plugin
    tools: pactl,pw-cat,pw-cli,wpctl
Network:
  Device-1: Intel Ethernet I219-V vendor: Micro-Star MSI driver: e1000e
    v: kernel port: N/A bus-ID: 00:1f.6 chip-ID: 8086:15bc class-ID: 0200
  IF: eno1 state: down mac: <filter>
  Device-2: Realtek RTL8125 2.5GbE vendor: Micro-Star MSI driver: r8169
    v: kernel pcie: gen: 2 speed: 5 GT/s lanes: 1 port: 3000 bus-ID: 05:00.0
    chip-ID: 10ec:8125 class-ID: 0200
  IF: enp5s0 state: down mac: <filter>
  Device-3: Intel Wireless 8260 driver: iwlwifi v: kernel pcie: gen: 1
    speed: 2.5 GT/s lanes: 1 bus-ID: 06:00.0 chip-ID: 8086:24f3 class-ID: 0280
  IF: wlp6s0 state: up mac: <filter>
  IF-ID-1: vboxnet0 state: up speed: 10 Mbps duplex: full mac: <filter>
  IF-ID-2: ztly55amij state: unknown speed: 10000 Mbps duplex: full
    mac: <filter>
Drives:
  Local Storage: total: 35.91 TiB used: 21.62 TiB (60.2%)
  SMART Message: Unable to run smartctl. Root privileges required.
  ID-1: /dev/nvme0n1 maj-min: 259:0 vendor: Western Digital
    model: WD BLACK SN770 1TB size: 931.51 GiB block-size: physical: 512 B
    logical: 512 B speed: 63.2 Gb/s lanes: 4 tech: SSD serial: <filter>
    fw-rev: 731100WD temp: 41.9 C scheme: MBR
  ID-2: /dev/sda maj-min: 8:0 vendor: Samsung model: SSD 870 EVO 1TB
    size: 931.51 GiB block-size: physical: 512 B logical: 512 B speed: 6.0 Gb/s
    tech: SSD serial: <filter> fw-rev: 2B6Q
  ID-3: /dev/sdb maj-min: 8:16 vendor: Samsung model: SSD 870 EVO 1TB
    size: 931.51 GiB block-size: physical: 512 B logical: 512 B speed: 6.0 Gb/s
    tech: SSD serial: <filter> fw-rev: 2B6Q scheme: GPT
  ID-4: /dev/sdc maj-min: 8:32 vendor: Western Digital
    model: WD161KFGX-68AFPN0 size: 14.55 TiB block-size: physical: 4096 B
    logical: 512 B speed: 6.0 Gb/s tech: HDD rpm: 7200 serial: <filter>
    fw-rev: 0A83
  ID-5: /dev/sdd maj-min: 8:48 vendor: Western Digital
    model: WD6003FZBX-00K5WB0 size: 5.46 TiB block-size: physical: 4096 B
    logical: 512 B speed: 6.0 Gb/s tech: HDD rpm: 7200 serial: <filter>
    fw-rev: 1A01
  ID-6: /dev/sde maj-min: 8:64 vendor: Western Digital
    model: WD101FZBX-00ATAA0 size: 9.1 TiB block-size: physical: 4096 B
    logical: 512 B speed: 6.0 Gb/s tech: HDD rpm: 7200 serial: <filter>
    fw-rev: 1A01 scheme: GPT
  ID-7: /dev/sdf maj-min: 8:80 vendor: Marvell model: Raid VD size: 3.64 TiB
    block-size: physical: 512 B logical: 512 B speed: 6.0 Gb/s tech: N/A
    serial: <filter> fw-rev: 00-0
  ID-8: /dev/sdg maj-min: 8:96 vendor: Geil model: ZENITH R3 480GB
    size: 447.13 GiB block-size: physical: 512 B logical: 512 B type: USB
    rev: 3.1 spd: 5 Gb/s lanes: 1 mode: 3.2 gen-1x1 tech: SSD serial: <filter>
    scheme: MBR
Partition:
  ID-1: / raw-size: 520.52 GiB size: 511.28 GiB (98.23%)
    used: 127.32 GiB (24.9%) fs: ext4 dev: /dev/nvme0n1p1 maj-min: 259:1
  ID-2: /home raw-size: 931.51 GiB size: 915.82 GiB (98.32%)
    used: 395.85 GiB (43.2%) fs: ext4 dev: /dev/sdb1 maj-min: 8:17
Swap:
  Kernel: swappiness: 5 (default 60) cache-pressure: 100 (default)
  ID-1: swap-1 type: partition size: 31.98 GiB used: 1.69 GiB (5.3%)
    priority: -2 dev: /dev/nvme0n1p2 maj-min: 259:2
Sensors:
  System Temperatures: cpu: 36.0 C pch: 41.0 C mobo: N/A gpu: nvidia temp: 51 C
  Fan Speeds (RPM): N/A gpu: nvidia fan: 50%
Info:
  Processes: 547 Uptime: 23h 6m wakeups: 0 Memory: total: 64 GiB
  available: 62.65 GiB used: 33.62 GiB (53.7%) Init: systemd v: 253
  default: graphical tool: systemctl Compilers: gcc: 13.2.1 alt: 12
  clang: 15.0.7 Packages: 2102 pm: pacman pkgs: 2066 libs: 524
  tools: pamac,trizen,yay pm: flatpak pkgs: 27 pm: snap pkgs: 9 Shell: Zsh
  v: 5.9 running-in: gnome-terminal inxi: 3.3.28

Please find some output from journalctl here (what I think is related to the issue): https://dpaste.com/HHM7XBHFV

Any suggestions would be greatly appreciated!!

EDIT: it seems this issue is also occurring while machine is in use, not just upon login. With the same errors as in the linked logs (- at this time/date in the logs):
Aug 16 14:33:16 luke-pc systemd-coredump[353948])

It seems that pamac-manager is the culprit in this case (which got an update last week - 11.6.0-0.1).
pamac-manager (or a process of it) is trying to execute code from an unmapped area (error 14), therefore the kernel throws a segault (segmentation fault) error.
The error more detailed: 01110b
bit 0: no page found
bit 1: write-access
bit 2: user-mode access
bit 3: use of reserved bit detected
bit 4: not interesting in this case
The cause was a user-mode write resulting in no page being found. A reserved bit was detected.

After that segfault it starts a core dump of the process (353830 - pamac manager) which takes around 3.1 seconds, as you pointed out.

Since I’m not at home, this is all that I currently can point out.

Edit: You could also check the log of pamac itself under /var/log/

Aug 16 14:33:29 luke-pc kernel: pamac-manager[353830]: segfault at 7f94b0ff8070 ip 00007f94b0ff8070 sp 00007ffd7c64f8a8 error 14 in libnss_mdns_minimal.so.2[7f94b1000000+1000] likely on CPU 4 (core 4, socket 0)
Aug 16 14:33:29 luke-pc kernel: Code: Unable to access opcode bytes at 0x7f94b0ff8046.
Aug 16 14:33:29 luke-pc systemd[1]: Started Process Core Dump (PID 354179/UID 0).
Aug 16 14:33:32 luke-pc systemd-coredump[354180]: [🡕] Process 353830 (pamac-manager) of user 1000 dumped core.
                                                  
                                                  Stack trace of thread 353830:
                                                  #0  0x00007f94b0ff8070 n/a (n/a + 0x0)
                                                  ELF object binary architecture: AMD x86-64
Aug 16 14:33:32 luke-pc systemd[1]: systemd-coredump@5-354179-0.service: Deactivated successfully.
Aug 16 14:33:32 luke-pc systemd[1]: systemd-coredump@5-354179-0.service: Consumed 3.107s CPU time.

Is Pamac working normal for you?

@MystikReasons Thanks for the reply, I assumed it was to do with the errors on bijiben-shell-s (which appears to do with gnome-notes) that are also listed in the logs, so I was looking at the wrong thing to start with.

Yeah pamac is working fine for me, no issues at all, I checked the pamac logs and everything seems to be in order, there are a couple of errors in there but to me they don’t look related, considering the issue only appeared a few days ago and some of these errors are from a couple of weeks ago.

[2023-08-05T14:59:11+0800] [ALPM-SCRIPTLET] depmod: ERROR: could not open directory /lib/modules/6.2.13-1-MANJARO: No such file or directory
[2023-08-05T14:59:11+0800] [ALPM-SCRIPTLET] depmod: FATAL: could not search modules: No such file or directory
[2023-08-05T15:10:53+0800] [ALPM-SCRIPTLET] ==> ERROR: '/lib/modules/6.2.13-1-MANJARO' is not a valid kernel module directory
[2023-08-05T15:10:53+0800] [ALPM-SCRIPTLET] ==> Building image from preset: /etc/mkinitcpio.d/linux62.preset: 'fallback'
[2023-08-05T15:10:53+0800] [ALPM-SCRIPTLET] ==> Using configuration file: '/etc/mkinitcpio.conf'
[2023-08-05T15:10:53+0800] [ALPM-SCRIPTLET]   -> -k /boot/vmlinuz-6.2-x86_64 -c /etc/mkinitcpio.conf -g /boot/initramfs-6.2-x86_64-fallback.img -S autodetect --microcode /boot/intel-ucode.img
[2023-08-05T15:10:53+0800] [ALPM-SCRIPTLET] ==> ERROR: '/lib/modules/6.2.13-1-MANJARO' is not a valid kernel module directory
[2023-08-14T16:32:34+0800] [ALPM-SCRIPTLET] ==> ERROR: '/lib/modules/6.2.13-1-MANJARO' is not a valid kernel module directory
[2023-08-14T16:32:34+0800] [ALPM-SCRIPTLET] ==> Building image from preset: /etc/mkinitcpio.d/linux62.preset: 'fallback'
[2023-08-14T16:32:34+0800] [ALPM-SCRIPTLET] ==> Using configuration file: '/etc/mkinitcpio.conf'
[2023-08-14T16:32:34+0800] [ALPM-SCRIPTLET]   -> -k /boot/vmlinuz-6.2-x86_64 -c /etc/mkinitcpio.conf -g /boot/initramfs-6.2-x86_64-fallback.img -S autodetect --microcode /boot/intel-ucode.img
[2023-08-14T16:32:34+0800] [ALPM-SCRIPTLET] ==> ERROR: '/lib/modules/6.2.13-1-MANJARO' is not a valid kernel module directory

EDIT: I believe you can ignore the above logs, I see why the above errors are in the pamac log file - kernel 6.2.13-1 is no longer available (I’m on 6.4.9-1 anyways) so this should be an non-issue.

Would it be unwise for me to reinstall pamac-cli and pamac-gtk to see if that helps?

If you have any further suggestions, I’m all ears!

Thanks

Could you create a separate thread?
This is not the right place for a longer error search ^^
It think it would be best in Support

Edit: Thank you @nikgnomic :slight_smile:

1 Like

You could definetly try to reinstall pamac, never tried it myself.
You could use this command in that case: pacman -S pkg
According to the wiki you only need to reinstall pamac-gtk, since it will automatically install -cli.

Both the GTK and Qt pamac packages will automatically install the CLI version as well
Pamac - Manjaro

Could you also post your pamac version? pamac --version

When was the last time the issue occured?
Is the log always showing the same section of failure (see below)?

Aug 16 14:33:29 luke-pc kernel: pamac-manager[353830]: segfault at 7f94b0ff8070 ip 00007f94b0ff8070 sp 00007ffd7c64f8a8 error 14 in libnss_mdns_minimal.so.2[7f94b1000000+1000] likely on CPU 4 (core 4, socket 0)
Aug 16 14:33:29 luke-pc kernel: Code: Unable to access opcode bytes at 0x7f94b0ff8046.
Aug 16 14:33:29 luke-pc systemd[1]: Started Process Core Dump (PID 354179/UID 0).
Aug 16 14:33:32 luke-pc systemd-coredump[354180]: [🡕] Process 353830 (pamac-manager) of user 1000 dumped core.
                                                  
                                                  Stack trace of thread 353830:
                                                  #0  0x00007f94b0ff8070 n/a (n/a + 0x0)
                                                  ELF object binary architecture: AMD x86-64
Aug 16 14:33:32 luke-pc systemd[1]: systemd-coredump@5-354179-0.service: Deactivated successfully.
Aug 16 14:33:32 luke-pc systemd[1]: systemd-coredump@5-354179-0.service: Consumed 3.107s CPU time.

I saw that above the pamac-manager error pamac-manager loaded appstream2/x86_64 from flathub.
Could you check if its always loading appstream2/x86_64 from flathub before pamac-manager crashes?

Aug 16 14:33:17 luke-pc pamac-manager[353830]: /var/tmp/flatpak-cache-B4MG91/repo-jFEfdu: Pulled appstream2/x86_64 from flathub
Aug 16 14:33:17 luke-pc dbus-daemon[819]: [system] Activating via systemd: service name='org.freedesktop.Flatpak.SystemHelper' unit='flatpak-system-helper.service' requested by ':1.161898' (uid=1000 pid=353830 comm="/usr/bin/pamac-manager --gapplication-service")
Aug 16 14:33:17 luke-pc systemd[1]: Starting flatpak system helper...
Aug 16 14:33:17 luke-pc dbus-daemon[819]: [system] Successfully activated service 'org.freedesktop.Flatpak.SystemHelper'
Aug 16 14:33:17 luke-pc systemd[1]: Started flatpak system helper.
Aug 16 14:33:18 luke-pc flatpak-system-helper[354016]: system: Pulled appstream2/x86_64 from /var/tmp/flatpak-cache-B4MG91/repo-jFEfdu
Aug 16 14:33:19 luke-pc dbus-daemon[2131]: [session uid=1000 pid=2131] Successfully activated service 'org.manjaro.pamac.manager'
Aug 16 14:33:21 luke-pc gnome-shell[3513]: Window manager warning: Buggy client sent a _NET_ACTIVE_WINDOW message with a timestamp of 0 for 0x5e00004
Aug 16 14:33:23 luke-pc systemd[1]: fprintd.service: Deactivated successfully.
Aug 16 14:33:26 luke-pc gnome-character[353836]: JS LOG: Characters Application exiting
1 Like

I would remove the orphaned entries in /etc/mkinitcpio.d and /boot.

Afterwards run

sudo mkinitcpio -P
sudo update-grub

Next time, install another kernel and remove previous kernel before becoming fully unsupported, it’s announced in Announcements.

2 Likes

Sorry for clogging up the update thread with this and sorry for the late reply I have not been in front of my pc for a while

I reinstalled pamac and am still getting those errors in relation to it, but they no longer coincide with the temp freezing of the system and they seem to have no effect on the function of pamac. Though further to your question, yes it is always loading appstream2/x86_64 from flathub before pamac-manager crashes.

 pamac-cli 11.6.0  -  libpamac 11.6.0

Now my logs are full of errors from calendar, even though it still seems to work - not that I use it. If you see the recent logs: https://dpaste.com/DA6PCQB9U

I entered my password and unlocked the screens a few seconds after 10:12 am (looks like it was around 10:12:09), the logs I included are for the entire minute 10:12 - 10:13.

@Wollie I did remove that kernel as soon as I realised that it was unsupported and I generally do try and keep up on the announcements, thanks for the advice I will remove those orphaned entries - it looks like there’s a few others in there as well even though I have removed the kernels ages ago with mhwd-kernel.

At the moment I have these kernels installed: linux515, linux 61, linux 64 but in my mkinitcpio.d directory there’s a number of others listed

EDIT: It seems as if this issue is caused by an extension. I disabled extensions all together and the problem disappeared, though I am yet to figure out which extension is specifically causing it as just disabling one extension at a time has no effect, the main extension toggle must be turned off for the issue to be resolved.
Not great as I rely on a few extensions for my workflow, but i’ll continue troubleshooting and hopefully find the culprit. Apologies for wasting your time looking at my logs and trying to help me, but also thank you for your time and assistance, I greatly appreciate it!

pamac has a gnome integration package - judging from the description is is for gtk3.

 $ pamac search pamac --no-aur
[...]
pamac-gnome-integration  11.6.0-0.1                                                                      extra
    Pamac GNOME integration (GTK3)
[...]

If it is present - perhaps it is causing interference - as the topic category is Gnome it would be safe to remove the package - thus relying only on GTK4?

1 Like

Thank you for the suggestion, unfortunately I don’t have that package installed. So I’ll keep playing around with the extensions and see if I can figure out a fix for it.

I’m assuming no, but would you expect me to have any issues if I were to uninstall all extensions (including the Built-in ones plus maybe gnome-shell-extensions and manjaro-gnome-extension-settings) and then reinstall one at a time to see if I can pinpoint the culprit?

I cannot say for sure - long time since I used Gnome - if it fix the issue when you disable extensions completely - I cannot see a problem if they are removed as well.

I would ensure the system is set to use Gnome default layout - the layout switcher depends on extensions so not setting the layout to Gnome default would likely cause issues when required extensions are removed.

I vaguely remember something about applying a vanilla Gnome layout - but I cannot remember where.

 $ pamac search manjaro-gnome-vanilla
manjaro-gnome-vanilla  0.5-1                                 extra
    Tool for revert easly Manjaro Gnome in a Manjaro Vanilla Gnome

The above appear to be and older topic …

1 Like

Thank you very much for that info, I definitely would have overlooked checking my layout, to be on the safe side I’ll ensure my system has a current backup before I go ahead.