fancywm icon indicating copy to clipboard operation
fancywm copied to clipboard

Unlocking device with multiple monitors results in FancyWM closing

Open DaJoTo opened this issue 2 years ago • 4 comments

FancyWM crashes after device gets unlocked - Win11

Steps to reproduce the behavior:

  1. Multi monitor arrangement
  2. Set out some windows
  3. Allow device to lock
  4. Unlock device
  5. See FancyWM become unresponsive then close

Expected behavior It can restore itself and managed windows when unlocking a device connected to another monitor

Desktop (please complete the following information):

  • OS: Win 11 Pro
  • Version 21H2

Additional context

Program is not producing exceptions or any crash logs, opening the UI you will see it become unresponsive and then it just closes. If you leave it long enough without opening the UI the icon will just disappear from the system tray.

DaJoTo avatar Sep 27 '22 12:09 DaJoTo

Just an update to try and give more detail on this issue.

I noticed that if the device is locked only briefly this problem doesn't occur, there is a bit of shuffling around while the monitor reconnects but it recovers all the window positions nicely.

If it's left locked for a longer period then it appears to arrange all the windows on the main monitor and becomes unresponsive. Once it's unresponsive (determined by trying to access the UI) the windows maintain their shapes but no snap to size when moved.

DaJoTo avatar Sep 28 '22 13:09 DaJoTo

So with the recently updated app, it now occasionally crashes and leaves a log. It is failing to find an appropriate location for multiple windows. There is often a 1-2 second delay in the monitor reconnecting, so I'm going to assume it's attempting to resume before the monitor is present. Not sure if this can be handled, like an attempt & wait pattern with a timeout?

DaJoTo avatar Oct 12 '22 08:10 DaJoTo

This happens for me as well. I have a number of crash logs, only one of which seems to show an exception, but the reset are labeled as crashes as well... fancywm-crash-20221017T135250.log fancywm-crash-20221017T150631.log fancywm-crash-20221017T181650.log fancywm-crash-20221018T104237.log fancywm-crash-20221018T125206.log fancywm-crash-20221018T153842.log fancywm-crash-20221019T152207.log

craiggwilson avatar Oct 19 '22 20:10 craiggwilson

This issue is stale because it has been open for 14 days with no activity.

github-actions[bot] avatar Apr 04 '24 02:04 github-actions[bot]

This issue was closed because it has been inactive for 14 days since being marked as stale.

github-actions[bot] avatar Apr 19 '24 02:04 github-actions[bot]