Rectangle icon indicating copy to clipboard operation
Rectangle copied to clipboard

(mac monterey 12.0.1) Rectangle unresponsive after afk induced logout

Open braxtonowens opened this issue 4 years ago • 18 comments

  • [x] This is a new bug that hasn't been documented in a closed issue or in the Readme.

Forgive me if I am just an idiot, but ever since the recent mac update I have noticed that after being afk for a long period of time mac will log out of my user account. Upon re-logging, box seems to be unresponsive to drag snapping. When attempting to force a snap via the menu bar icon, I hear the mac error clicking sound. The only fix seems to be a reboot.

macOS version: Monterey 12.0.1 Rectangle version: 0.49 (54) Logs if applicable (In Rectangle menu, hold option, "View Logging..."):

braxtonowens avatar Nov 16 '21 15:11 braxtonowens

Does this happen every time?

rxhanson avatar Nov 17 '21 01:11 rxhanson

I can confirm that the same behavior is also occurring on my machine. Every time my MacBook Pro wakes-up to the login screen after going to sleep/being afk for a while. To be clear, the Rectangle app itself is still running and available in the menu bar.

According to the logs, there seems to be an issue with the window id (see below). I can also recreate the same issue with other window-managers as well (e.g. Magnet).

macOS version: Monterey 12.0.1 Rectangle version: 0.49 (54) Logs if applicable (In Rectangle menu, hold option, "View Logging..."): Unable to obtain window id

janwaechter avatar Nov 18 '21 09:11 janwaechter

Unfortunately, this appears to be a macOS issue. I’ll think about adding a restart on wake option to Rectangle, but that’s kind of an annoying workaround.

rxhanson avatar Nov 19 '21 02:11 rxhanson

It’s not super inconvenient, just thought if would be good to have this documented. Thanks for the fantastic software!

On Thu, Nov 18, 2021 at 7:38 PM Ryan Hanson @.***> wrote:

Unfortunately, this appears to be a macOS issue. I’ll think about adding a restart on wake option to Rectangle, but that’s kind of an annoying workaround.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/rxhanson/Rectangle/issues/640#issuecomment-973674126, or unsubscribe https://github.com/notifications/unsubscribe-auth/AKYFBPNLODV5KWMLFJ7TDEDUMW2A3ANCNFSM5IER6Q5A .

braxtonowens avatar Nov 19 '21 02:11 braxtonowens

I have the same problem, but I found that you can get it working without a reboot, you just have to lock the screen (command + control + Q), then push escape to turn off the screen, and then you can just wake the mac again and rectangle will work.

macOS version: Monterey 12.0.1 Rectangle version: 0.49 (54) Logs if applicable (In Rectangle menu, hold option, "View Logging..."): Unable to obtain window id

alexarraiza avatar Nov 22 '21 17:11 alexarraiza

I have the same problem, but I found that you can get it working without a reboot, you just have to lock the screen (command + control + Q), then push escape to turn off the screen, and then you can just wake the mac again and rectangle will work.

This worked for me! Thank you!

mortenbm avatar Nov 25 '21 07:11 mortenbm

Unfortunately, this appears to be a macOS issue. I’ll think about adding a restart on wake option to Rectangle, but that’s kind of an annoying workaround.

You don't need to do that, a reboot of rectangle does not fix it. What @alexarraiza recommends, works.

Big thanks to you both!

elmanolito avatar Dec 08 '21 08:12 elmanolito

I have the same problem, but I found that you can get it working without a reboot, you just have to lock the screen (command + control + Q), then push escape to turn off the screen, and then you can just wake the mac again and rectangle will work.

macOS version: Monterey 12.0.1 Rectangle version: 0.49 (54) Logs if applicable (In Rectangle menu, hold option, "View Logging..."): Unable to obtain window id

Doesn't work for me, Monterey 12.4 M1 Air 2020. Other suggestions?

henrith avatar Sep 05 '22 12:09 henrith

Having this issue as well, but I don't think it's unique to Rectangle as I quit rectangle completely and enabled Window Snapping in Better Touch Tool and experienced the same issue.

itsbrex avatar Sep 14 '22 22:09 itsbrex

Commenting because I started having this problem recently, and to confirm that restarting Rectangle does not fix the problem, and https://github.com/rxhanson/Rectangle/issues/640#issuecomment-975741643 does.

ericmburgess avatar Sep 21 '22 15:09 ericmburgess

I cannot remember the exact cause but it's related to some macOS accessibility security that when the machine wakes up, macOS security fails to be removed when it should be. Locking the screen and then unlocking the screen will fix this issue. Happens for HyperSwitch app too.

kaitrek avatar Oct 14 '22 22:10 kaitrek

Just to confirm, the problem remains on macOS Ventura as well, with the fix of locking and unlocking the screen as suggested in https://github.com/rxhanson/Rectangle/issues/640#issuecomment-975741643 still working.

lyrixderaven avatar Oct 26 '22 11:10 lyrixderaven

The workaround proposed above by @alexarraiza does not work for me, but I am on a machine managed with Mosyle.

cpierson-pison avatar Nov 02 '22 13:11 cpierson-pison

Hi all, am I having another issue or is this behavior still happening as of July 2023?

Valappi avatar Jul 30 '23 06:07 Valappi

I have the same problem, but I found that you can get it working without a reboot, you just have to lock the screen (command + control + Q), then push escape to turn off the screen, and then you can just wake the mac again and rectangle will work.

macOS version: Monterey 12.0.1 Rectangle version: 0.49 (54) Logs if applicable (In Rectangle menu, hold option, "View Logging..."): Unable to obtain window id

This worked! Thanks!

siimsams avatar Aug 02 '23 06:08 siimsams

Same issue here for new MAC OS Sonoma, but I never got the issue in previous OSs.

lbrobinho avatar Oct 15 '23 18:10 lbrobinho

@lbrobinho Thanks for letting me know. Do you know of anything else that might have changed with your system at the same time (like other apps that run in the background, etc)?

rxhanson avatar Oct 18 '23 04:10 rxhanson

I have the same problem, but I found that you can get it working without a reboot, you just have to lock the screen (command + control + Q), then push escape to turn off the screen, and then you can just wake the mac again and rectangle will work.

macOS version: Monterey 12.0.1 Rectangle version: 0.49 (54) Logs if applicable (In Rectangle menu, hold option, "View Logging..."): Unable to obtain window id

After more than two years, this solution still works 👏👏

atabakd avatar Jan 17 '24 11:01 atabakd