desktop icon indicating copy to clipboard operation
desktop copied to clipboard

Toggling Full screen off causes the app to crash and start in full screen afterwards

Open Studio384 opened this issue 9 years ago • 28 comments

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

  1. Open GitHub
  2. Toggle Full screen mode on
  3. 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

Studio384 avatar May 16 '17 18:05 Studio384

related to: https://github.com/desktop/desktop/issues/1436

tierninho avatar May 16 '17 18:05 tierninho

@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 avatar May 16 '17 18:05 Studio384

@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?

shiftkey avatar May 16 '17 22:05 shiftkey

I'm using a Surface Pro 4 with the latest driver installed.

Studio384 avatar May 17 '17 06:05 Studio384

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.

ghost avatar May 22 '17 13:05 ghost

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.

majacobs47 avatar May 22 '17 17:05 majacobs47

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.

Studio384 avatar Jun 06 '17 18:06 Studio384

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: screen shot 2017-06-09 at 1 21 06 pm

tierninho avatar Jun 09 '17 17:06 tierninho

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!

illusive-man avatar Jun 12 '17 19:06 illusive-man

It looks like https://github.com/electron/electron/pull/9645 may fix this on the Electron side of life.

joshaber avatar Jun 13 '17 16:06 joshaber

Same exact issue here.

Windows 10 Pro 1607 version 14393.1358 build

LKarnai avatar Jun 17 '17 06:06 LKarnai

I have the same issue.

Windows 10 Home 1703 version 15063.413 build

NewBreed117 avatar Jun 18 '17 18:06 NewBreed117

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

byerlyb20 avatar Jun 21 '17 17:06 byerlyb20

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.

Studio384 avatar Jun 21 '17 23:06 Studio384

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...

shiftkey avatar Jun 22 '17 10:06 shiftkey

@joshaber good point on that PR, I'll keep an eye on whether that makes it into a 1.6.x release.

shiftkey avatar Jun 22 '17 10:06 shiftkey

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 avatar Jul 10 '17 06:07 darkn3rd

@darkn3rd please open a new issue with reproduction steps if you can create it consistently with the latest version

shiftkey avatar Jul 24 '17 20:07 shiftkey

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 avatar Aug 27 '17 18:08 WJJeske

@WJJeske we talked about the lack of Windows taskbar features in #2311

shiftkey avatar Aug 28 '17 08:08 shiftkey