You are not logged in.
Hello all,
This has eventually happened in every Arch installation I've done. The programs will work absolutely fine and then after a few upgrades or package installations seemingly loads of applications will suddenly take a good 15-25 seconds to load compared to 1-2 seconds that all my other applications take.
I'm running my Arch installation off an SSD and most applications will just launch instantly but in my current install so far pavucontrol, nautilus and lutris are all taking the same long amount of time to load.
I'm not even sure where to start looking. When I run lutris from the terminal with debugging, the output seems normal except that it pauses for around 25 seconds before continuing to launch, same with nautilus.
If it helps I'm running i3 on my system using an Ryzen 1700 and an RX580 (Primary) RX560 (Plugged in but not in use).
If anyone could point me in the right direction of what logs I should be looking at I would greatly appreciate it.
Last edited by NarcoticNoble (2021-04-27 22:13:42)
Offline
How are you starting your WM/DE? If you use startx post the contents of your ~/.xinitrc
Also the output of...
hostnamectlOffline
I'm starting my WM using startx
.profile:
#!/bin/sh
# Profile file. Runs on login.
# Variables
#export TERMINAL="st"
export EDITOR="vim"
export PATH="$PATH:$HOME/.scripts:$HOME/.local/bin"
# Start graphical server if i3 is not already running.
#if [ "$(tty)" = "/dev/tty1" ]; then
# pgrep -x i3 || exec startx
#fi
if [ -z "${DISPLAY}" ] && [ "${XDG_VTNR}" -eq 1 ] && [ "$(tty)" = "/dev/tty1" ]; then
exec startx
fi.xinitrc:
# Add this to your .xinitrc or whatever file starts programs on startup.
wal -nR
nitrogen --restore &
exec i3output of hostnamectl:
Static hostname: neutron
Icon name: computer-desktop
Chassis: desktop
Machine ID: 78fccf5e83e14d22855f55e94e1f9439
Boot ID: 02622e60bc07469bb2b0ac3321f6286c
Operating System: Arch Linux
Kernel: Linux 5.11.16-arch1-1
Architecture: x86-64
Hardware Vendor: Gigabyte Technology Co., Ltd.
Hardware Model: X470 AORUS ULTRA GAMINGOffline
That is the common bug (mostly wlroots / sway) with xdg-desktop-portal not starting correctly and timing out. That causes gtk3 to hang.
The issue is your xinitrc, it is missing the boilerplate to source /etc/X11/xinit/xinitrc.d
Copy the file from /etc/X11/xinit/xinitrc and only change the last few lines from "twm ..." to "exec ..." (and maybe delete some empty lines to make it more readable)
Last edited by progandy (2021-04-27 21:32:21)
| alias CUTF='LANG=en_XX.UTF-8@POSIX ' |
Offline
Your ~/.xinitrc is incorrect. Read...
https://wiki.archlinux.org/index.php/Xinit#xinitrc
Offline
You guys are amazing - thank you so much!
In future how would I go about debugging this? progandy you said it caused GTK3 to hang, are there any logs I could look out for in similar situations in future?
Thanks again everyone - marking as solved.
Offline