-
-
Notifications
You must be signed in to change notification settings - Fork 96
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Crashes on Windows 10 after system woke up from sleep #34
Crashes on Windows 10 after system woke up from sleep #34
Comments
I could not reproduce this. Does it happen every time? Anyone else have this problem? |
I actually installed Win 10 on my second laptop last night, and found this issue doesn't happen on that machine. I'm closing this for now |
I can confirm this still happens more often than not after the computer resumes sleep, on a laptop too. |
Not sure if this is related (I very strongly suspect it may be), but windows 8.1 and windows 10 have some odd display re-sizing issues on sleep. I'm using 2x4k monitors and it constantly re-sizes open windows (e.g. chrome, explorer, etc.) when the monitors go to sleep. It has to do with a simulated display setting in the registry (specifically a mismatch in the simulated resolution when no monitor is detected I believe). To reproduce the issue, you have to have a different resolution on the simulated desktop space (and it seems to me like changing the simulated resolutions have fixed the issue on my computer). The relevant keys are under : HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\GraphicsDrivers\Configuration There are a couple of keys prefixed "SIMULATED..." and the relevant entries are a couple of other entries (00 and another nested 00). The names of the relevant keys are: (in the first 00) (in the nested 00) if you change the keys to match your specific desktop resolution it seems to fix the issue. I'm not an expert in windows internals, but I'm guessing this is a failure case that @stefansundin hasn't been able to reproduce because he doesn't use a monitor that uses HDMI or DisplayPort (which are the only displays on which I've been able to reproduce the issue, any earlier connectors seem to function fine). I'm not sure if the SIMULATED displays are ever used absent HDMI/DisplayPort (again, this isn't my area of expertise!). |
Just wanted to briefly update - this doesn't seem to perfectly fix the issue, but it seems to occur much less frequently. |
My computer doesn't have those keys in the registry, but the issue also happens when i connect a new screen, so it seems to indeed be related to the display settings. |
I'm also having this issue. I'm on a laptop with an external monitor. Along with the crash I see other issues (unrelated to AltDrag) when the monitors turn off like my windows all getting moved to the top left of my screen. Is there a crashlog or any other information I can provide? |
AltDrag does not have a crashlog, unfortunately. Do the DPI scaling change around the same time AltDrag is crashing? |
It might yeah, my primary screen (external monitor) is a normal screen and the laptop has a retina screen, so when it's turning off screens it may report one value vs the other. |
With only the laptop monitor, if I change the dpi from 100% to 125% AltDrag will crash, yes. |
I was able to resolve this issue by setting DPI using control panel (not through windows settings universal app) |
Can confirm, the dpi was set to 125% in the control panel, even though it was set to 100% in the universal app. This solved the AltDrag issues, plus some mouse/keyboard problems I had when resuming from sleep and connecting displays (I think were related to AutoHotKey, having the same cause). |
I'm still having this issue with AltDrag v1.1. I'm using a Windows 10 laptop with two attached 1920x1200 screens (one in landscape orientation, one in portrait mode). DPI scaling is set to 100% (Change the size of text, apps, and other items). Any update on the issue? |
@tuok From your description, I think you have set DPI in the universal settings app (which is triggered by pressing Win+I or select "All settings" from notification center. Why don't you try setting DPI using control panel (right click on start -> "Control panel" -> "Display" -> "set a custom scaling level" (in the middle of the text in upper center) ). I'm not sure if it does matter to sync both DPI, but I have set them (from universal app and control panell) synced to 100%, and the issue has gone ever since. |
@keighrim Thanks for your suggestion, but unfortunately custom scaling level in Control Panel was already set to 100%. I just started to investigate the issue, so I'm not sure when and how the problem exactly appears. I tried to reconnect both external monitors, but it didn't make any difference, at least for now. |
I'm also having this problem. I suspect my issue is related to sethbc's. I have a high resolution screen (3840 x 2160) connected by DisplayPort, and Windows often does weird resizing & position of windows when the computer returns from sleep. I tried the registry setttings but it doesn't resolve the issue, unfortunately. Windows still get re-positioned and resized (not AltDrag's problem, obviously), and AltDrag stops working. |
I have the problem - for several weeks, I think it also happens after screen lock - and I definitely see it on resume, though I frequently connect/disconnect mini displayport. As a work around, I do taskkill as admin, then restart it manually as admin... really hoping you're able to figure it out soon. |
I have this issue every day now for weeks and it's getting really annoying. I have to go in the task manager and kill altgrab and then restart it every time the computer goes into power saving. Any news on this issue? |
I get this issue regularly just when my monitor configuration changes (but it's not always easily reproducible). I'm on Dell Precision 5510 with a Dell USB-C WD15 dock. Simply unplugging the thunderbolt 3 (USB-C) and plugging back in will cause it to gray out. I do have a 4K display on my laptop and sometimes I wonder if the temporary flashing into 4K resolution (scaled up) back down and etc (even on the main laptop monitor as I don't utilize full resolution) has something to do with it. It's easy to tell if it crashed too by looking at the icon. I tried to get it to crash with no luck, so I'll post screenshots later when it happens again! |
Ok, I was finally able to reproduce it consistently. I believe I have traced it down scaling in Windows 10. See the Settings area (Windows + I), then go to System -> Display and under "Change the size of text, apps and other items". If you adjust it that, AltDrag will instantly crash 100% of the time. This has become a common enough issue for me to create a quick batch script for it to restart AltDrag: @echo off
taskkill /F /T /IM AltDrag.exe
start "" "C:\path\to\AltDrag.exe" |
I still experience this same issue when waking from sleep (generally after attaching or detaching from other monitors). Have to kill the AltDrag process and manually restart it. |
For reference, still experiencing this on Win10 with AltDrag version 1.1. Script by @patricknelson works well to resolve, embedded as AHK hotkey. Still, AltDrag remains one of the best little tools I've come across - thanks @stefansundin . :-) |
Can you share your AHK script that launches this? Do you mean you set it up on an actual hotkey combo (like win+alt+A or something like that?) Right now I have just a "restart_altdrag.bat" file on my desktop with @patricknelson's script, wondering if there's a way to automate it upon the laptop waking up. |
@jDally987 you can create a "Scheduled Task" that activates when resuming from sleep: https://superuser.com/a/149924 |
Just FYI, I'm hitting this issue as well. If I have my external display connected, and walk away from my laptop for long enough for the monitor to turn off (and hence for the desktop to lock), then upon returning/unlocking, AltDrag is non-functional and the system tray icon is black. |
I fixed this problem on my fork. @pablospe @warnerAWESOMEmoore and @benley This should also fix your issue #107 with screen resolution change. |
Great! Thanks a lot! Is there a Pull Request of your code for this repo? I would say many people won't know about your independent changes, and it would be nice to merge your great changes to the main repo. |
The code is very heavily modified and completely refactored. I made a separate repositorry |
That's understandable. But it would be good if Stefan could make that statement and have his point to yours as the successor.
…________________________________
From: RamonUnch <notifications@github.com>
Sent: Monday, February 8, 2021 12:51 PM
To: stefansundin/altdrag <altdrag@noreply.github.com>
Cc: Sean Ahern <Sean.Ahern@ansys.com>; Comment <comment@noreply.github.com>
Subject: Re: [stefansundin/altdrag] Crashes on Windows 10 after system woke up from sleep (#34)
[External Sender]
The code is very heavily modified and completely refactored. I made a separate repositorry
Stefan Sundin is really no more working on this project, not even to the point of merging any pull request anyway. Look at celynw pull request about fixing Win10 invisible border bug.
dsjstc proposed Stefan to push my fork on the readme.md or the official page but, I think Stefan has really no more time for this project.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub<https://nam10.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fstefansundin%2Faltdrag%2Fissues%2F34%23issuecomment-775326374&data=04%7C01%7Csean.ahern%40ansys.com%7C83b59e0f7aac43d29af108d8cc5a2597%7C34c6ce6715b84eff80e952da8be89706%7C0%7C0%7C637484034844154638%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=PBr8kvD4sKSaYAqw3T5CetqDFfq3FTOkgEveFyf3xvA%3D&reserved=0>, or unsubscribe<https://nam10.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAAMSVFE54ZJ4AQSMKRVYCW3S6AQBTANCNFSM4BMN5MJQ&data=04%7C01%7Csean.ahern%40ansys.com%7C83b59e0f7aac43d29af108d8cc5a2597%7C34c6ce6715b84eff80e952da8be89706%7C0%7C0%7C637484034844154638%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=pVgqm1CfILI6ilbg1LYSPW48o4QUBodsBiESTh0BsBU%3D&reserved=0>.
|
If Stefan has abandoned AltDrag he could transfer the repo to Ramon or perhaps add a link to Ramon's version. |
Maybe an AltDrag organization could be created and all the contributors can help to move this project forward. Also people for reviewing code, etc., so it is not only one. So the repo would be something like: |
If anyone wants to participate to my fork, he is welcome to submit pull requests. |
The app stops working after system sleep.
App icon in tray loses its white border and becomes not responding at all.
As a workaround, killing the task and re-run works.
The text was updated successfully, but these errors were encountered: