Toggling Full screen off causes the app to crash and start in full screen afterwards
Description
Hitting F11 will resize GitHub to use the full screen, however, hitting it again will cause the the app to resize but only show a black screen. Clicking will cause the app to crash but it will continue to run in the Task Manager, resulting in GitHub not opening.
Once the process is killed in the Task Manager, GitHub can be started again but will open in full screen. Repeat.
Version
GitHub Desktop version: 0.5.3
OS version: Windows 10 version 1703
Steps to Reproduce
- Open GitHub
- Toggle Full screen mode on
- Toggle Full screen mode off
Expected behaviour: GitHub shows a normal window again
Actual behaviour: The app becomes fully black, any further interaction with any window will cause the black window to disappear.
Reproduces how often: 100%
Logs
2017-05-16T17:52:20.724Z - error: Uncaught exception on main process
related to: https://github.com/desktop/desktop/issues/1436
@tierninho: Ha indeed, I only searched in the open issues. Either way, this is a real issue, didn't have anything to do with your VM.
@Studio384 there's probably some other information I need to reproduce this (probably needs to be fixed in Electron/Chromium, so bear with me).
What monitors and display drivers do you have configured?
I'm using a Surface Pro 4 with the latest driver installed.
I have the same issue. Windows 10 v1607 dell precision 5520 laptop. super high resolution - usually running to dual monitors but still occurs on laptop display.
tried uninstalling, but when reinstalled it retained the full screen mode so i went in and deleted the folders where it stores login info, settings etc and it opens normally, but if i go to fullscreen it repeats.
I have run into the same problem. Windows 10.014393 Build 14393 Dell Optiplex 7010 I also have a dual monitor setup
I tried uninstalling, but mine also retained the full screen mode. I did not try deleting the data manually. When I get this error, I have to go task manager and end the task in order to restart the program.
Just to let you all know that I'm unable to reproduce this again on version 0.5.9. Not sure in which version it got fixed for me, I have not tested ever since 0.5.3 (for obvious reasons) but accidentically toggled it just now, but i returned back to windowed-mode just fine.
So in v0.6.0, using Windows 10, this is still occurring for me. I noticed that when the user toggles away from full-screen mode, the Task Manager kills the Desktop in the Apps section and keeps all Desktop processes running in the Background. I imagine that Desktop in the Apps should still be running.
In this pic, the black screen is up for me. Notice, Desktop is missing from Apps:

Same behavior here. Exiting full screen mode crashes the app.
BTW I wonder why is there so much processes open by the app? Sometimes more than 10!
It looks like https://github.com/electron/electron/pull/9645 may fix this on the Electron side of life.
Same exact issue here.
Windows 10 Pro 1607 version 14393.1358 build
I have the same issue.
Windows 10 Home 1703 version 15063.413 build
This has probably been found awhile ago by most of you, but I'll comment just for reference. If your GitHub Desktop is stuck in the fullscreen "loop", it can be fixed by quite simply deleting the window-state.json file located in the GitHub Desktop folder. Mine was located at C:\Users\(home)\AppData\Roaming\GitHub Desktop. In case you couldn't tell, I stumbled upon the same issue accidentally.
GitHub Desktop Version 0.6.1 Windows 10 Home Version 1607 Build 14393.1358
The issue is back for me in version 0.6.1, Windows 10 Pro, version 1703. Which is weird because it first did work in this version on the same device, it only poped up after a reinstall of Windows.
If your GitHub Desktop is stuck in the fullscreen "loop", it can be fixed by quite simply deleting the window-state.json file located in the GitHub Desktop folder. Mine was located at C:\Users(home)\AppData\Roaming\GitHub Desktop. In case you couldn't tell, I stumbled upon the same issue accidentally.
This is a great clue @byerlyb20 - thanks for suggesting it! This file is related to electron-window-state - it uses this file as a backing store for it's configuration values between sessions. I think there's enough clues here to dig into whether it's something in our code or in the event handlers that electron-window-state creates that are to blame here...
@joshaber good point on that PR, I'll keep an eye on whether that makes it into a 1.6.x release.
This happening as well. I tried to install it, but had no GUI installation, it just magically appeared, then disappeared. Then I saw four Github Desktop.exe processes and AutoHotKey processes in TaskManager, but no GUI.
@darkn3rd please open a new issue with reproduction steps if you can create it consistently with the latest version
As it turns out, GH Desktop doesn't support the standard Windows taskbar windows management menu (Move, Resize, Minimize, etc.) in Win 10 1703. In my case (Dell Precision 5510, Xeon, 32G) the GHD window sticks in the position of the auxiliary monitor and is thus inaccessible if I undock and attempt to use the app. Deleting window-state.json as @byerlyb20 suggests above is the only way I've been able to recover the UI. Thanks for that!!
@WJJeske we talked about the lack of Windows taskbar features in #2311