Skip to content

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

Closed

Description

@Studio384

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

Activity

  1. tierninho commented on May 16, 2017

    @tierninho
    Contributor

    related to: #1436

  2. Studio384 commented on May 16, 2017

    @Studio384
    Author

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

  3. added
    bug
    on May 16, 2017
  4. shiftkey commented on May 16, 2017

    @shiftkey
    Member

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

  5. added
    investigation-needed
    on May 16, 2017
  6. Studio384 commented on May 17, 2017

    @Studio384
    Author

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

  7. changed the title [-]Togling Full screen off causes the app to crash and start in full screen afterwards[/-] [+]Toggling Full screen off causes the app to crash and start in full screen afterwards[/+] on May 17, 2017
  8. majacobs47 commented on May 22, 2017

    @majacobs47

    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.

  9. added
    windows
    on May 26, 2017
  10. Studio384 commented on Jun 6, 2017

    @Studio384
    Author

    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.

  11. tierninho commented on Jun 9, 2017

    @tierninho
    Contributor

    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

  12. illusive-man commented on Jun 12, 2017

    @illusive-man

    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!

  13. joshaber commented on Jun 13, 2017

    @joshaber
    Contributor

    It looks like electron/electron#9645 may fix this on the Electron side of life.

  14. LKarnai commented on Jun 17, 2017

    @LKarnai

    Same exact issue here.

    Windows 10 Pro
    1607 version
    14393.1358 build

  15. 9 remaining items

  16. shiftkey commented on Aug 28, 2017

    @shiftkey
    Member

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

  17. shiftkey commented on Sep 4, 2017

    @shiftkey
    Member

    There's a few intertwined setups here without good repros, and I've not been able to recreate the crash for a dual-monitor setup, but I've been able find one annoying bug when using fullscreen mode that might be close to the root cause.

    Here's my steps:

    • nuke whatever is in your %APPDATA%\GitHub Desktop\window-state.json
    • launch the app
    • F11 to maximise the app
    • close the app
    • relaunch the app - it'll fill the screen and should be maximised
    • F11 to try and restore the app

    I'm really not sure what's happened here but a black rectangle is definitely not what we want:

    In Electron 1.7.x (see #2582) and 1.8.0 (hot off the presses) this will restore the window state when using the primary monitor, but not when you do this on a secondary monitor (nothing is displayed, but you can F11 again to get the window back) so I'll probably follow up with this problem upstream once I know where it's lurking...

  18. sfc-gh-eraigosa commented on Oct 30, 2017

    @sfc-gh-eraigosa

    Thanks @shiftkey ! this got me worked around on my Mac.

    rm "$HOME/Library/Application Support/GitHub Desktop/window-state.json"
    
  19. removed
    windows
    on Oct 30, 2017
  20. joshaber commented on Oct 30, 2017

    @joshaber
    Contributor

    @wenlock sent me his window-state.json prior to clearing it:

    {
      "width": 960,
      "height": 660,
      "x": 412,
      "y": 325,
      "isMaximized": false,
      "isFullScreen": true,
      "displayBounds": {
        "x": -3440,
        "y": -390,
        "width": 3440,
        "height": 1440
      }
    }
  21. sfc-gh-eraigosa commented on Oct 30, 2017

    @sfc-gh-eraigosa

    image

    Screen shot for what it looks like.

  22. blosloos commented on Oct 31, 2017

    @blosloos

    Am now also facing a black GitHub Desktop window right away after the installation (identical to what is shown by shiftkey user above). Deleting the window-state.json or toggling is of no help; the app seems responsive, but just all blacked. Am on Win10 64bit, build 15063.674

  23. rnbwwlkr commented on Jul 17, 2018

    @rnbwwlkr

    Still having this issue and am therefore not able to use GitHub Desktop..

  24. shiftkey commented on Jul 17, 2018

    @shiftkey
    Member

    @blosloos @vladorepic please have a look at #3921 which talks about issues relating to hardware acceleration with certain graphics driver sets. We also have a workaround for these situations that might address the issue.

  25. locked as resolved and limited conversation to collaborators on Sep 15, 2018
  26. unlocked this conversation on Sep 27, 2018
  27. les113 commented on Mar 24, 2019

    @les113
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions