Closed rushvora closed 1 year ago
Ugh. Looks like another way X.org can raise an error that I didn't anticipate and catch.
This sort of thing really makes me wonder if I should rewrite QuickTile in Rust so I can just see the potential error returns in the function signatures.
I haven't double-checked the code yet but, purely from the backtrace and your description, it looks like a race condition where QuickTile is erroring out if it tries to gather information on space reserved by panels at the wrong moment during your desktop's startup process and getting slapped with an error along the lines of "the window you asked for information on went away after you looked up its ID but before you queried it".
This is a pretty busy time for me, so I'm not sure when I'll get to this, but leave the bug open and I'll try to find time eventually.
@ssokolow Understood. This bug doesn't happen often enough to be an annoyance, and when it does happen, I can just run quicktile --daemonize
and get it working perfectly fine.
If it helps anyone I had this error when I put quicktile --daemonize & disown
in ~/.bashrc.
I fixed it by adding the Quicktile application to my distro's "Apps to start at login".
Sorry for taking so long to get to this. It looks like it's probably a race condition where QuickTile gets a list of open windows and then tries to query each one to see if it's reserved any space for panels (because there's no standard workarea thing the WM sets that works properly with non-rectangular multi-monitor desktops), so I just added some code to catch the error and convert it into a "this is probably harmless" warning message.
Since I've never encountered this and race conditions are a huge pain to reproduce reliably, even if you are experiencing them, I'm going to assume this is fixed now. Please reopen if it still causes problems.
On booting into the OS, this crash dialog box came up. Screenshot below.
Quicktile fails to work at this moment, but I can successfully run
quicktile --daemonize
and everything works as expected. This error also does not happen consistently, it happens sporadically. Most of the time when I boot up, quicktile does not crash.OS details - EndeavourOS; Build ID: 2021.08.27
uname -r
=5.14.12-arch1-1
DE = Gnome 40.4.0 Windowing System - X11Display Config 1440p 144hz display (ASUS VG27AQ) 4K 60Hz display (LG 27UK650)
Fractional scaling is enabled, ASUS is the main display, 100% scaling, LG is the secondary display, 150% scaling.
Hardware AMD Ryzen 5600X ASUS TUF Gaming X570 Plus NVIDIA RTX 3080 FE 32GB 3600 CL16 RAM 1TB NVME SSD boot drive
The contents of the details section is as below
Do let me know if more details are needed.