Skip to content

Black screen with an Nvidia GPU #4380

Closed

Description

@Jerska

Hi there,

I've recently forced my computer to always use my GPU instead of automatically choosing between the chipset and the GPU.
When I did that, the Slack application started rendering only a black window.
I've submitted a bug report to Slack and Nvidia.

Then I discovered the webview engine for Slack is electron, so to confirm my thoughts, I went ahead and downloaded Atom: same issue.

Imgur

I'm using the latest Nvidia drivers, so I'm unsure if it comes from them or electron which is why I've submitted the bug report at both places.

Information:

  • Electron version : Unknown, the one used in latest released Atom and Slack
  • OS: Windows 10
  • GPU: GTX 870M

Activity

  1. added
    blocked/need-info ❌
    on Feb 15, 2016
  2. zcbenz commented on Feb 15, 2016

    @zcbenz
    Contributor

    Does Chrome browser have the same problem?

  3. CharlieHess commented on Feb 24, 2016

    @CharlieHess
    Contributor

    We have a couple more users hitting this. It's not exclusive to Nvidia as this user had a Matrox GPU: DxDiag.txt.

    Furthermore, starting the Slack app with the --disable-gpu argument fixes the issue.

  4. PetrJuricaProfiq commented on Mar 3, 2016

    @PetrJuricaProfiq

    Same thing happened to us on Windows 7 with AMD card.

  5. ndoeberlein commented on Mar 3, 2016

    @ndoeberlein

    We have found that with the Matrox GPUs, the update.exe app is actually the culprit. --disable-gpu does not have any effect and still shows the black screen.

    Changing the shortcut target from the default
    C:\Users\xxx\AppData\Local\slack\Update.exe --processStart slack.exe --disable-gpu
    to
    C:\Users\xxx\AppData\Local\slack\app-2.0.0\slack.exe --disable-gpu

    Solved the issue for us. We also had the best luck disabling "Launch app on login"

  6. added and removed
    blocked/need-info ❌
    on Mar 6, 2016
  7. CharlieHess commented on Mar 9, 2016

    @CharlieHess
    Contributor

    @ndoeberlein: Update.exe supports passing arguments, try this instead:

    C:\Users\xxx\AppData\Local\slack\Update.exe --processStart slack.exe --process-start-args --disable-gpu
    
  8. petrfelzmann commented on Mar 11, 2016

    @petrfelzmann
    Contributor

    We also have several customers who suffers from this issue.

  9. petrfelzmann commented on Mar 14, 2016

    @petrfelzmann
    Contributor

    One configuration reported is
    Windows 7 64b, ATI Radeon HD 5670

  10. avoidwork commented on Mar 14, 2016

    @avoidwork

    Hi,

    I've come across this many times over the last few months of building an electron app. When I run the app in a Windows 7 VM with the following settings the window goes black after the app writes to disk (repeatable; sometimes the whole window, sometimes just a part during a reflow). For me, it's always on a DOM reflow.

    settings

    screen shot 2016-03-14 at 9 44 35 am

    initial load (spinner is implying over the wire retrieval)

    screen shot 2016-03-14 at 9 45 52 am

    when the spinner goes away & reflows, the view breaks

    screen shot 2016-03-14 at 9 46 00 am

    I originally assumed this was just an issue with the gpu being virtualized, but a small user base is reporting similar problems.

  11. avoidwork commented on Mar 14, 2016

    @avoidwork

    The VM I'm using is from https://dev.windows.com/en-us/microsoft-edge/tools/vms/mac/

    The machine I'm using is does have an nvidia gpu:

    screen shot 2016-03-14 at 9 50 59 am

    I've seen this black screen with ^0.34.0

  12. CharlieHess commented on Mar 16, 2016

    @CharlieHess
    Contributor

    Windows 7 + AMD Radeon X series; Chrome 49 didn't make a difference. 😞

    .

  13. 32 remaining items

  14. perlun commented on Aug 29, 2018

    @perlun

    @akayami I am seeing the exact same problem as you - all Chromium-based apps (Chrome, Slack, Spotify) dies on suspend. I also have an nVidia card and the nouveau drivers are not an option for me unfortunately, so --disable-gpu might be the workaround for now.

    For reference:

    $ uname -a
    Linux alladin 4.17.0-3-amd64 #1 SMP Debian 4.17.17-1 (2018-08-18) x86_64 GNU/Linux
    $ dpkg -l nvidia-driver
    Desired=Unknown/Install/Remove/Purge/Hold
    | Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
    |/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
    ||/ Name                          Version             Architecture        Description
    +++-=============================-===================-===================-===============================================================
    ii  nvidia-driver                 396.51-1            amd64               NVIDIA metapackage
    
  15. added a commit that references this issue on Aug 29, 2018
  16. huanhulan commented on Aug 31, 2018

    @huanhulan

    This issue also happened on my computer, which is win10 with integrated graphics

  17. mariorodriguespt commented on Jan 21, 2019

    @mariorodriguespt

    This issue is annoying.
    After opening my laptop lid, every Electron based app crashes. Sometimes it's a black screen, sometime the app stills runs but fails to render the UI correctly.

    Google Chrome works fine without any issue.
    Screenshot of vscode:
    screenshot from 2019-01-21 19-20-13

    in case you're wondering: The entire UI doesn't work, I can not open a file on even scroll. Only fix is to reopen the app again.

  18. ArfyFR commented on Jun 11, 2019

    @ArfyFR

    Hi,
    For information, I face the same after upgrading video drivers @Home or @work with some electron clients like

    • Visual studio code in the console
    • Hyper console
    • Mudlet client
      after a video driver update.

    Usually NVIDIA GPU update.
    But this morning on my DELL XPS 15 9570 also with the Intel video driver update.

  19. gengshenghong commented on Mar 3, 2020

    @gengshenghong

    Any update/fix on this issue (except disable gpu fully always)? I've also got black screen in Windows 7 installed in Parralls Desktop in MacBook air, with 3D accelerator off, it works. Also, when I am using VirtualBox with the same Windows 7 image, it work with/without 3D accelerator. Chrome always work in the same VM.

    Thanks,
    Shenghong

  20. gengshenghong commented on Mar 3, 2020

    @gengshenghong

    In the same VM, using Chrome, "chrome://gpu" show 3D accelerator is enabled. Why does Electron not support?

  21. Nikit-Singh commented on Apr 30, 2020

    @Nikit-Singh

    Not a black screen issue but this issue keeps happening with electron based apps on my windows machine with Nvidia GPU. Any suggestions on how to fix this?
    Error

  22. teebu commented on Jun 26, 2020

    @teebu

    My VS Code also having issues, when I have a lot of tabs open in chrome. Whole computer goes black after a few minutes I can recover but, VS freezes, all chrome windows go black. When hardware acceleration is enabled.

    Graphics card: Nvidia RTX 2070 Super, driver: 446.14

    From VS Code:

    Version: 1.46.1 (system setup)
    Commit: cd9ea6488829f560dc949a8b2fb789f3cdc05f5d
    Date: 2020-06-17T21:13:20.174Z
    Electron: 7.3.1
    Chrome: 78.0.3904.130
    Node.js: 12.8.1
    V8: 7.8.279.23-electron.0
    OS: Windows_NT x64 10.0.19041
    
  23. BacnNguyen commented on Sep 29, 2020

    @BacnNguyen

    I have the same problem with VS on my PC. I have a GTX card and driver but no monitor. Then I connected to a monitor. It worked fine. Maybe VS needs displayed in a monitor and have GPU/CPU. Hope this help

  24. adespawn commented on Nov 25, 2020

    @adespawn

    I have similar problems with electron apps on my computer with my Nvidia Gpu in linux after booting up from hibernation

  25. electron-triage commented on Mar 10, 2021

    @electron-triage

    The Electron version reported on this issue is no longer supported. See our supported versions documentation.

    If you're still experiencing this issue on a supported version, please open a new issue with an updated repro - a Fiddle is very appreciated.

    Electron has a large issues backlog. To help our team prioritize, we're closing older issues and asking for new issues with updated repro steps if it affects a supported version. This helps sort what issues are still relevant and helps us fix them more quickly.

    Thanks for your patience and understanding!

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions