You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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
Reacted by Filip Weiss, Mario, Christian Adams, Jorge Rodríguez, Olga Grabek, yogen-darji-hs, Evandro Barbosa, kidd808, Lewis Horwood, Wade Huang and 5 more
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.
Reacted by Johnny Rocketfingers, Kirk Roerig, Dan Ochiana, Paweł Szczepkowski, Jailson Pacagnan Santana, wicked-knife, Nathan P. Bombana, Helder Costa, Kamolphan Lewprasert and Vanessa Sochat
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"
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
initial load (spinner is implying over the wire retrieval)
when the spinner goes away & reflows, the view breaks
I originally assumed this was just an issue with the gpu being virtualized, but a small user base is reporting similar problems.
@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
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:
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.
Reacted by Bernard Vander Beken, Mario, Olga Grabek and Lewis Horwood
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.
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?
Reacted by Y, jiongzhi, Boris Berman and Jakub Rak
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.
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
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.
Activity
zcbenz commentedon Feb 15, 2016
Does Chrome browser have the same problem?
CharlieHess commentedon Feb 24, 2016
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-gpuargument fixes the issue.PetrJuricaProfiq commentedon Mar 3, 2016
Same thing happened to us on Windows 7 with AMD card.
ndoeberlein commentedon Mar 3, 2016
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-gputo
C:\Users\xxx\AppData\Local\slack\app-2.0.0\slack.exe --disable-gpuSolved the issue for us. We also had the best luck disabling "Launch app on login"
CharlieHess commentedon Mar 9, 2016
@ndoeberlein: Update.exe supports passing arguments, try this instead:
petrfelzmann commentedon Mar 11, 2016
We also have several customers who suffers from this issue.
petrfelzmann commentedon Mar 14, 2016
One configuration reported is
Windows 7 64b, ATI Radeon HD 5670
avoidwork commentedon Mar 14, 2016
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
initial load (spinner is implying over the wire retrieval)
when the spinner goes away & reflows, the view breaks
I originally assumed this was just an issue with the gpu being virtualized, but a small user base is reporting similar problems.
avoidwork commentedon Mar 14, 2016
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:
I've seen this black screen with ^0.34.0
CharlieHess commentedon Mar 16, 2016
Windows 7 + AMD Radeon X series; Chrome 49 didn't make a difference. 😞
32 remaining items
perlun commentedon Aug 29, 2018
@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-gpumight be the workaround for now.For reference:
bash_aliases: Workaround for spotify
huanhulan commentedon Aug 31, 2018
This issue also happened on my computer, which is win10 with integrated graphics
mariorodriguespt commentedon Jan 21, 2019
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:
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.
ArfyFR commentedon Jun 11, 2019
Hi,
For information, I face the same after upgrading video drivers @Home or @work with some electron clients like
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.
gengshenghong commentedon Mar 3, 2020
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
gengshenghong commentedon Mar 3, 2020
In the same VM, using Chrome, "chrome://gpu" show 3D accelerator is enabled. Why does Electron not support?
Nikit-Singh commentedon Apr 30, 2020
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?

teebu commentedon Jun 26, 2020
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:
BacnNguyen commentedon Sep 29, 2020
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
adespawn commentedon Nov 25, 2020
I have similar problems with electron apps on my computer with my Nvidia Gpu in linux after booting up from hibernation
electron-triage commentedon Mar 10, 2021
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!