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
{{ message }}
Repository navigation
v3.0.0 fails to create a working renderer on Linux #14697
Output of node_modules/.bin/electron --version: v3.0.0
Operating System (Platform and Version): Debian GNU/Linux 9.5 x86_64
Output of node_modules/.bin/electron --version on last known working Electron version (if applicable): v2.0.10
Expected Behavior
My previously working application, not concerned by any of the breaking changes, still works fine after upgrading Electron to v3.
Actual behavior
The renderer window shows a frozen view of what was underneath it when it opened. Hitting the usual keyboard shortcut to open the devtools doesn't work. Rolling back to the latest v2.x and everything works fine again.
To Reproduce
Simply launch electron v3.0 without any arguments (or -d), even the default bundled app doesn't work.
Screenshots
On the left is the working default app on v2. On the right is v3. I blurred the window for privacy reasons, the point is it's showing a frozen view of my desktop.
Additional Information
Debian 9.5 x86_64.
Kernel is 4.9.0-8-amd64.
Integrated GPU is Intel HD Graphics 4600 on an i5-4200H Haswell chip.
2nd GPU is Nvidia GeForce 850M.
Intel driver: xserver-xorg-video-intel2:2.99.917+git20161206-1 amd64 (latest in stretch) aka default xorg handler for integrated GPUs
Nvidia driver: nvidia-driver384.130-1 amd64 (also latest in stretch) aka latest closed source driver from nvidia
Side note: I'm using bumblebee to handle the Optimus logic and switching between GPUs.
👋 Thanks for opening your first issue here! If you're reporting a 🐞 bug, please make sure you include steps to reproduce it. We get a lot of issues on this repo, so please be patient and we will get back to you as soon as we can.
To help make it easier for us to investigate your issue, please follow the contributing guidelines.
@nornagon Using --disable-gpu seems to fix this issue. I'm having this on an Optimus-enabled laptop (aka intel integrated gpu + discrete nvidia card). It should be using the integrated gpu.
Edit: Also forgot to mention i'm running the vendor drivers from nvidia and intel, not open-source alternatives.
In order to do any sort of debugging, we'll need to know the exact model of graphics card you're using. Chromium has very specific GPU blocklists which change frequently, and it's possible your issue was caught in a later version of Chromium than Electron v3 is running. We may be able to backport a fix or a blocklist change, but we won't be able to determine the right course of action without more information.
Would you be willing to try building current master to see if the issue still happens with Chromium 67? (Unfortunately nightlies aren't yet working again after the switch to GN)
Kernel is 4.9.0-8-amd64 (that rules out your first link i'm afraid).
Intel driver: xserver-xorg-video-intel2:2.99.917+git20161206-1 amd64 (latest in stretch) aka default xorg handler for integrated GPUs
Nvidia driver: nvidia-driver384.130-1 amd64 (also latest in stretch) aka latest closed source driver from nvidia
I don't normally use Chrome but i installed the latest stable release and everything works fine. I was able to load webglreport.com and everything was OK with a Mesa DRI Intel(R) Haswell Mobile renderer.
I might do some more in-depth testing, including building Electron, tomorrow afternoon. I will need a bit of time for this though.
The linked chromium bug suggests that the desktop is only showing for a moment, though, not persistently. I'm curious to know if resizing the window changes the content at all?
@nornagon It seems like resizing the window activates a hidden barcode-generating feature.
Anyway, I also planned to get back to you with testing results but i'm used to run thin on resources and after messing around a bit it turns out i don't have enough HDD space left to build Electron.
I'm gonna figure out a way to get some, but i wanted to keep this thread updated.
@u4aew Your issue seems unrelated - i think? - since the renderer actually works in your case. Freezing after an action and total absence of video output is not the same deal afaik.
Nice one finding #13624, it seems to be the same issue (?), everything "works" like described in this thread (piping electron to /dev/null fixes the issue among other things).
I don't really understand why i wasn't affected with this prior to v3 if the bug itself exists since v2.
Activity
welcome commentedon Sep 19, 2018
👋 Thanks for opening your first issue here! If you're reporting a 🐞 bug, please make sure you include steps to reproduce it. We get a lot of issues on this repo, so please be patient and we will get back to you as soon as we can.
To help make it easier for us to investigate your issue, please follow the contributing guidelines.
💥 Rollback electron to v2 - see electron#14697
nornagon commentedon Sep 19, 2018
What graphics card/drivers are you using? Do you see the behaviour still when running with
--disable-gpu?GitSquared commentedon Sep 19, 2018
@nornagon Using
--disable-gpuseems to fix this issue. I'm having this on an Optimus-enabled laptop (aka intel integrated gpu + discrete nvidia card). It should be using the integrated gpu.Edit: Also forgot to mention i'm running the vendor drivers from nvidia and intel, not open-source alternatives.
nornagon commentedon Sep 19, 2018
In order to do any sort of debugging, we'll need to know the exact model of graphics card you're using. Chromium has very specific GPU blocklists which change frequently, and it's possible your issue was caught in a later version of Chromium than Electron v3 is running. We may be able to backport a fix or a blocklist change, but we won't be able to determine the right course of action without more information.
nornagon commentedon Sep 19, 2018
yes.
GitSquared commentedon Sep 20, 2018
@nornagon OK, GPU is
Intel® HD Graphics 4600integrated in ai5-4200HHaswell processor.Just in case, the second GPU is a Nvidia
Geforce 850M.nornagon commentedon Sep 20, 2018
Hmm, what kernel are you running on (
uname -r) and what version of the intel/nvidia drivers?Looks like some Haswell drivers are disabled in some cases, e.g. https://chromium.googlesource.com/chromium/src/gpu/+/master/config/software_rendering_list.json#907 and there are some other (different) issues on similar graphics cards in the chrome bug tracker, e.g. https://bugs.chromium.org/p/chromium/issues/detail?id=824963#c11.
Do you see the same issue with Chrome?
Would you be willing to try building current
masterto see if the issue still happens with Chromium 67? (Unfortunately nightlies aren't yet working again after the switch to GN)GitSquared commentedon Sep 20, 2018
Kernel is
4.9.0-8-amd64(that rules out your first link i'm afraid).Intel driver:
xserver-xorg-video-intel2:2.99.917+git20161206-1 amd64(latest in stretch) aka default xorg handler for integrated GPUsNvidia driver:
nvidia-driver384.130-1 amd64(also latest in stretch) aka latest closed source driver from nvidiaI don't normally use Chrome but i installed the latest stable release and everything works fine. I was able to load webglreport.com and everything was OK with a
Mesa DRI Intel(R) Haswell Mobilerenderer.I might do some more in-depth testing, including building Electron, tomorrow afternoon. I will need a bit of time for this though.
nornagon commentedon Sep 21, 2018
I found https://bugs.chromium.org/p/chromium/issues/detail?id=554008, which looks like a similar issue to yours. They're using the same intel driver as yours (2.99.917) and a similar kernel (4.1.0 instead of 4.9.0). That patch was first released in Chrome 68, so it's possible that when #14677 lands the bug will be fixed :)
The linked chromium bug suggests that the desktop is only showing for a moment, though, not persistently. I'm curious to know if resizing the window changes the content at all?
u4aew commentedon Sep 21, 2018
@nornagon A similar problem appeared in 2 versions of the electron #14430
GitSquared commentedon Sep 21, 2018
@nornagon It seems like resizing the window activates a hidden barcode-generating feature.
Anyway, I also planned to get back to you with testing results but i'm used to run thin on resources and after messing around a bit it turns out i don't have enough HDD space left to build Electron.
I'm gonna figure out a way to get some, but i wanted to keep this thread updated.
@u4aew Your issue seems unrelated - i think? - since the renderer actually works in your case. Freezing after an action and total absence of video output is not the same deal afaik.
nornagon commentedon Sep 21, 2018
Thanks for the update! Perhaps you could pivot to be a barcode-generating company? ;)
#13624 also seems like it might be related?
GitSquared commentedon Sep 21, 2018
@nornagon Hehe, wouldn't complain 'bout it.
Nice one finding #13624, it seems to be the same issue (?), everything "works" like described in this thread (piping electron to /dev/null fixes the issue among other things).
I don't really understand why i wasn't affected with this prior to v3 if the bug itself exists since v2.
GitSquared commentedon Sep 22, 2018
@nornagon I compiled
v4.0.0-nightly.20180905.If i use
> /dev/nullor--disable-gpu, everything works fine, but without it i don't even get a window.I don't have any error messages, even with
--enable-logging.anszom commentedon Nov 2, 2018
Try running the app without any connection to the tty (./electron (args) < /dev/null >/dev/null 2>/dev/null). If this helps, then see the above PR.
GitSquared commentedon Nov 4, 2018
@anszom This works. Good luck with the PR.
GitSquared commentedon Nov 19, 2018
Closed as #15555 has been merged.