Skip to content

Black screen #3921

Closed
Closed

Description

@mjpalestina

Description

Program screen when black and had to exit out and reopen to see program.

Version

GitHub Desktop version: 1.0.13

OS version: Windows 10 Pro 1709 build 17083.1000

Steps to Reproduce

  1. Open program
  2. Make changes in a repository
  3. Add description and commit
  4. Enjoy black screen for the program

Expected behavior: Push changes to github

Actual behavior: Black screen

Reproduces how often: Have not tried to reproduce

Logs

Additional Information

Same issues appear in chrome, could be an issue with using hardware acceleration.

Activity

  1. added
    more-info-needed
    on Feb 2, 2018
  2. iAmWillShepherd commented on Feb 2, 2018

    @iAmWillShepherd
    Contributor

    Thanks for opening an issue!

    All new issues now require steps to reproduce (also called "repro steps") the
    problem or the behavior you wish to see on GitHub Desktop. We do this so we can
    be certain that we are understanding what it is you're describing and don't
    prematurely close the issue or implement the wrong feature. If you need help
    writing detailed repro steps, please see the How Can I Contribute? document.

  3. mjpalestina commented on Feb 2, 2018

    @mjpalestina
    Author

    Thank you for letting me know. I thought I put in the proper info under steps to reproduce. I tried to recreate after a system restart and seem to have something better pinned down.

    1. Play video in Chrome that is playing using html5 video
    2. Open github desktop
    3. Make changes to a repo, leave comment and commit.
    4. Program screen will go black in different places finally ending with whole window black.
    5. Closing and reopening the program fixes it but seems to randomly repeat.

    This is using an AMD GPU on Windows 10 with Radeon Software Version 18.1.1.

    Side note: The How Can I Contribute? link goes to a page not found. I think the page you were referencing was desktop/CONTRIBUTING.md

    Thank you.

  4. iAmWillShepherd commented on Feb 2, 2018

    @iAmWillShepherd
    Contributor

    @marcpalestina thanks for the steps to reproduce as I was not able to reproduce with your original steps. Also, I appreciate you pointing out that link issue. I use snippets and I had not updated it since our docs have changed.

  5. added
    investigation-needed
    and removed
    more-info-needed
    on Feb 2, 2018
  6. mjpalestina commented on Feb 2, 2018

    @mjpalestina
    Author

    @iAmWillShepherd Thank you for looking into it. If I am able to reproduce it better I will update the steps.

    One thing to look at is, as I made mention in the first post, I think this issue is related to an issue with Chromium which, unless I am mistaken, GitHub Desktop is built on. I had the same issue come up in Chrome and had to go into the settings and turn off "Use hardware acceleration when available". By the looks of things I do not see if there is a way for a user to do so. I maybe wrong if this is the actual case but it is discussed in this thread on productforums.google.com. I hope this helps with a solution and not just a random correlation or wrong assumption. Thank you again.

  7. shiftkey commented on Feb 3, 2018

    @shiftkey
    Member

    I had the same issue come up in Chrome and had to go into the settings and turn off "Use hardware acceleration when available".

    This is something that Electron also supports, through the app.disableHardwareAcceleration() API.

    Rather than making this a general option for users to manage, I'd design this to be an escape hatch without a UI to go with it. I say this because the Electron API needs to be invoked before the application is ready (i.e. the user can interact with the app).

    I'd recommend Desktop check for an environment variable named something like DESKTOP_DISABLE_HARDWARE_ACCELERATION (this is basically what the classic GitHub for Windows app did) and then calling the right Electron API. This means we'll also be able to support users who are unable to launch Desktop due to video card issues with hardware acceleration, if they're out there.

  8. NikolaTotev commented on Mar 9, 2018

    @NikolaTotev

    I just updated windows and the same bug happened. Even after full reinstall github desktop is just black.

  9. elliot-huffman commented on Mar 31, 2018

    @elliot-huffman

    I just updated to the latest release 1.1.1 and I am experiencing the same black screen issue.
    Everything is completely black but the interface still works as indicated by cursor changes. also the interface is interactive by the fact that I can press the maximize button and the close window button.

    I did not update windows, Github desktop was working, an application restart was requested for the github desktop application to update, I pressed restart, and the app relaunched, except this time it was a completely black UI.

    Pic:
    black window

    Steps to reproduce:
    Start application.

    Troubleshooting:
    Uninstall and reinstall the application,
    Update graphics drivers.
    Reboot computer.

    System Info (post driver update):

    OS Name	Microsoft Windows 10 Pro
    Version	10.0.16299 Build 16299
    Other OS Description 	Not Available
    OS Manufacturer	Microsoft Corporation
    System Name	ELLIOT-LAPTOP
    System Manufacturer	Dell Inc.
    System Model	Latitude E5470
    System Type	x64-based PC
    System SKU	06DE
    Processor	Intel(R) Core(TM) i7-6600U CPU @ 2.60GHz, 2801 Mhz, 2 Core(s), 4 Logical Processor(s)
    BIOS Version/Date	Dell Inc. 1.18.6, 12/8/2017
    SMBIOS Version	3.0
    Embedded Controller Version	255.255
    BIOS Mode	UEFI
    BaseBoard Manufacturer	Dell Inc.
    BaseBoard Model	Not Available
    BaseBoard Name	Base Board
    Platform Role	Mobile
    Secure Boot State	On
    PCR7 Configuration	Bound
    Windows Directory	C:\WINDOWS
    System Directory	C:\WINDOWS\system32
    Boot Device	\Device\HarddiskVolume2
    Locale	United States
    Hardware Abstraction Layer	Version = "10.0.16299.248"
    User Name	ELLIOT-LABS\elliot
    Time Zone	Eastern Daylight Time
    Installed Physical Memory (RAM)	16.0 GB
    Total Physical Memory	15.9 GB
    Available Physical Memory	11.8 GB
    Total Virtual Memory	18.2 GB
    Available Virtual Memory	14.0 GB
    Page File Space	2.38 GB
    Page File	C:\pagefile.sys
    Virtualization-based security	Running
    Virtualization-based security Required Security Properties	
    Virtualization-based security Available Security Properties	Base Virtualization Support, Secure Boot, DMA Protection, Secure Memory Overwrite, UEFI Code Readonly, SMM Security Mitigations 1.0
    Virtualization-based security Services Configured	
    Virtualization-based security Services Running	
    Device Encryption Support	Meets prerequisites
    A hypervisor has been detected. Features required for Hyper-V will not be displayed.
    

    DxDiag output:
    DxDiag.txt

    Thanks!

  10. elliot-huffman commented on Apr 1, 2018

    @elliot-huffman

    I was able to resolve it on my side by switching my rendering to the integrated graphics (Intel) instead of my discrete card (AMD).

    Power saving is on the Intel chipset where high performance is on the AMD chipset.

    intel
    working

  11. self-assigned this
    on Apr 9, 2018
  12. Aangbaeck commented on Apr 25, 2018

    @Aangbaeck

    This is very much still a problem. I was able to fix it with the help of this thread though. Thanks!

  13. iAmWillShepherd commented on Apr 25, 2018

    @iAmWillShepherd
    Contributor

    @Aangbaeck , would you mind sharing what worked for you?

  14. Aangbaeck commented on Apr 26, 2018

    @Aangbaeck

    I dropped alot of graphics settings (hardware acceleration and antialiasing etc) in the AMD graphics setttings dialogue on my computer. I did it specifically for this app and it solved the issue. Sorry that I can't be more specific.

  15. iAmWillShepherd commented on Apr 27, 2018

    @iAmWillShepherd
    Contributor

    Could you try re-enabling hardware acceleration to see if the problem comes back? I have a hunch that's the issue. Also, did adding this environment variable have any effect?

  16. danieldogeanu commented on Jun 11, 2018

    @danieldogeanu

    This is still a problem. I've done the same thing, I changed the graphics settings, to Power Saving and it worked. It doesn't work on High Performance. I guess this has something to do with AMD Radeon graphics cards. It was in the Not Assigned mode initially, and I guess that's set to High Performance by default.

    I haven't made any changes to any environment variables at all. Just reinstalled the app and got a black screen after restarting it.

    github_settings

  17. anisharya16 commented on Jul 7, 2018

    @anisharya16

    thanks for this, i changed to Power saving mode and it worked for me

  18. sabun123 commented on Jul 16, 2018

    @sabun123

    @danieldogeanu Just wanted to say thanks! Github Desktop was giving me a black screen on my Lenovo Thinkpad E560 on Windows 10 as well.

    Intel Core i7-6500U with an AMD Radeon R7 M370 dedicated GPU. Running on the AMD GPU would give me a black screen, swapping to the Intel HD graphics worked. AMD Settings driver version 2016.1108.1752.32147 for reference.

    Steps to replicate yours:

    1. Right click on desktop and click on AMD Radeon Settings.
      1
    2. Inside the AMD Radeon Settings tool, click on Preferences.
      2
    3. Click on the Radeon Additional Settings button.
      3
    4. On the left inside Radeon Additional Settings, click Switchable Graphics Application Settings.
      4
    5. With Github Desktop open, or recently closed, look for githubdesktop.exe in the list and set it to Power Saving. May have to close and re-open Github Desktop for the change to take effect.
      5

    Now it works! Wrote down the steps in case I forget what I did, or if someone else needs a step-by-step to get it working for themselves too.

  19. shiftkey commented on Jul 16, 2018

    @shiftkey
    Member

    @sabun123 thanks for the walkthrough of where to find the setting!

  20. locked as resolved and limited conversation to collaborators on Sep 14, 2018
  21. unlocked this conversation on Sep 27, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

investigation-needed

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions