I3 applications "disappear"

I have the same problem as this user (who never posted whether there was a solution):

Applications seem to "disappear" within containers, completely randomly. Happens with Spotify and RStudio, for example. The application keeps running fine, but I can't see it or interact with it in any way. In this screenshot, Spotify is running in the left container:

Currently running the 5.4 kernel, but I've had the same issue under 5.3, 5.2, and 4.19.

Any thoughts on how I can debug this?

Have you checked compositor settings? Compton (picom by the new name). Maybe changing a few things there ...

Interesting. I swear that I've checked this before, but I killed Compton and opened up Spotify and Rstudio in different workspaces. I've been swapping between workspaces for a few minutes now, which normally be enough to replicate the error at some point... but so far, so good!

I had already written off the compositor as an issue, because I had tried debugging that previously, so thanks for the suggestion.

For any users who may read this in the future: I'll post an update if I continue to have problems, so if there is no update after this one, you can assume that running i3 without a compositor might be the answer for you.

Nope, that wasn't it. Just had the same thing happen again with Spotify, even though Compton isn't running.

Sometimes this happens or I lose some transparency seemingly randomly. I've always used $mod+t and then $mod+Ctrl+t to manually restart compton. Have you tried that?

Interesting, I'll give that a shot. Would you mind giving the full commands that you have linked to those key presses?

They came standard in my Manjaro-i3 version config. Check in the Start Applications section.

~/.i3/config

# Start Applications
bindsym $mod+t exec --no-startup-id pkill compton
bindsym $mod+Ctrl+t exec --no-startup-id compton -b

This ended up not working, either. I was just working in Rstudio and had the same freeze. Killing and restarting compton didn't work.

I've just had another crash, and I checked ~/.xession_errors right after... nothing even appears there at or even near the time of the crash.

Where else might be a good place to check for errors that might be causing this?

from terminal:
journalctl -b |grep fail
journalctl -b |grep error
or something of that
journalctl -b
and look for any suspicious line

Tried this for a freeze that happened just now. Nothing weird shows up. Even tried:

journalctl -b | tail -n 20

And the only line that shows up at that time isn't out of the ordinary:

Mar 13 10:34:15 chris-TP kernel: [UFW BLOCK] IN=wlp58s0 OUT= MAC=01:00:5e:00:00:01:a0:bd:cd:95:3c:a1:08:00 SRC=192.168.0.1 DST=224.0.0.1 LEN=32 TOS=0x00 PREC=0x00 TTL=1 ID=0 DF PROTO=2 

That looks like a rule in UFW. Not sure what does that and why you have it. Without it, is the system performing better, are you on a public wifi?
sudo ufw allow in from 192.168.0.1 to 224.0.0.1
You can undo that if is not ok with the UFW rules for you.

I don't remember adding it explicitly, but I may have at some point. I'm on home wifi at the moment. I've added the rule, and I'll see if I still get the warning.

That didn't solve the problem, unfortunately. I just had a freeze again, with no messages at the time of the freeze in journalctl.

Can i see
inxi -Fxxxza --no-host
?

System:    Kernel: 5.5.7-1-MANJARO x86_64 bits: 64 compiler: gcc v: 9.2.1 
           parameters: BOOT_IMAGE=/boot/vmlinuz-5.5-x86_64 
           root=UUID=64e46dec-d46f-409c-ae06-59ba5d7c7f95 rw quiet 
           Desktop: i3 4.18 info: i3bar dm: LightDM 1.30.0 Distro: Manjaro Linux 
Machine:   Type: Laptop System: LENOVO product: 20HGS5TB00 v: ThinkPad T470s serial: <filter> 
           Chassis: type: 10 serial: <filter> 
           Mobo: LENOVO model: 20HGS5TB00 v: SDK0J40697 WIN serial: <filter> UEFI [Legacy]: LENOVO 
           v: N1WET48W (1.27 ) date: 05/28/2018 
Battery:   ID-1: BAT0 charge: 19.5 Wh condition: 19.5/23.5 Wh (83%) volts: 12.8/11.2 
           model: SANYO 00HW022 type: Li-poly serial: <filter> status: Full cycles: 628 
           ID-2: BAT1 charge: 16.6 Wh condition: 17.0/26.1 Wh (65%) volts: 12.5/11.5 
           model: SMP 01AV406 type: Li-poly serial: <filter> status: Unknown cycles: 411 
CPU:       Topology: Dual Core model: Intel Core i5-7200U bits: 64 type: MT MCP arch: Amber Lake 
           family: 6 model-id: 8E (142) stepping: 9 microcode: CA L2 cache: 3072 KiB 
           flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx bogomips: 21607 
           Speed: 600 MHz min/max: 400/3100 MHz Core speeds (MHz): 1: 600 2: 600 3: 600 4: 600 
           Vulnerabilities: Type: itlb_multihit status: KVM: Split huge pages 
           Type: l1tf mitigation: PTE Inversion; VMX: conditional cache flushes, SMT vulnerable 
           Type: mds mitigation: Clear CPU buffers; SMT vulnerable 
           Type: meltdown mitigation: PTI 
           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: Full generic retpoline, IBPB: conditional, IBRS_FW, STIBP: 
           conditional, RSB filling 
           Type: tsx_async_abort status: Not affected 
Graphics:  Device-1: Intel HD Graphics 620 vendor: Lenovo driver: i915 v: kernel bus ID: 00:02.0 
           chip ID: 8086:5916 
           Display: x11 server: X.Org 1.20.7 driver: intel unloaded: modesetting 
           alternate: fbdev,vesa compositor: compton resolution: 2560x1440~60Hz 
           OpenGL: renderer: Mesa DRI Intel HD Graphics 620 (Kaby Lake GT2) v: 4.6 Mesa 19.3.4 
           compat-v: 3.0 direct render: Yes 
Audio:     Device-1: Intel Sunrise Point-LP HD Audio vendor: Lenovo driver: snd_hda_intel v: kernel 
           bus ID: 00:1f.3 chip ID: 8086:9d71 
           Sound Server: ALSA v: k5.5.7-1-MANJARO 
Network:   Device-1: Intel Ethernet I219-V vendor: Lenovo driver: e1000e v: 3.2.6-k port: efa0 
           bus ID: 00:1f.6 chip ID: 8086:15d8 
           IF: enp0s31f6 state: down mac: <filter> 
           Device-2: Intel Wireless 8265 / 8275 driver: iwlwifi v: kernel port: efa0 
           bus ID: 3a:00.0 chip ID: 8086:24fd 
           IF: wlp58s0 state: up mac: <filter> 
Drives:    Local Storage: total: 596.44 GiB used: 298.85 GiB (50.1%) 
           ID-1: /dev/nvme0n1 vendor: Intel model: SSDPEKKF512G7L size: 476.94 GiB block size: 
           physical: 512 B logical: 512 B speed: 31.6 Gb/s lanes: 4 serial: <filter> rev: 123P 
           scheme: MBR 
           ID-2: /dev/sda type: USB vendor: Samsung model: Flash Drive FIT size: 119.50 GiB 
           block size: physical: 512 B logical: 512 B serial: <filter> rev: 1100 scheme: MBR 
Partition: ID-1: / raw size: 476.93 GiB size: 468.45 GiB (98.22%) used: 298.85 GiB (63.8%) fs: ext4 
           dev: /dev/nvme0n1p1 
Sensors:   System Temperatures: cpu: 43.0 C mobo: N/A 
           Fan Speeds (RPM): cpu: 0 
Info:      Processes: 182 Uptime: 1d 2h 45m Memory: 19.19 GiB used: 6.51 GiB (34.0%) Init: systemd 
           v: 242 Compilers: gcc: 9.2.1 clang: 9.0.1 Shell: bash v: 5.0.16 running in: urxvtd 
           inxi: 3.0.37 

Also please show:
mhwd -li

> Installed PCI configs:
--------------------------------------------------------------------------------
                  NAME               VERSION          FREEDRIVER           TYPE
--------------------------------------------------------------------------------
           video-linux            2018.05.04                true            PCI


Warning: No installed USB configs!

Seems there is a new BIOS for that Lenovo model
https://pcsupport.lenovo.com/us/en/products/laptops-and-netbooks/thinkpad-t-series-laptops/thinkpad-t470s/downloads/driver-list/component?name=BIOS%2FUEFI

This might be useful
https://wiki.archlinux.org/index.php/Lenovo_ThinkPad_T470s

And i would make sure that i use this (is not so on your install)
https://wiki.archlinux.org/index.php/Intel_graphics#Enable_early_KMS

Then i would try this

And even tho is not a requirement, a swapfile or systemd-swap might not be a bad idea ...

Awesome, thank you so much for your help. This gives me a lot to look into. I'll update later with progress (and hopefully a solution!)

Forum kindly sponsored by