Skip to content

v3.0.0 fails to create a working renderer on Linux #14697

Closed

Description

@GitSquared
  • 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
electron_bug
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-intel 2:2.99.917+git20161206-1 amd64 (latest in stretch) aka default xorg handler for integrated GPUs
Nvidia driver: nvidia-driver 384.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.

Activity

  1. welcome commented on Sep 19, 2018

    @welcome

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

  2. nornagon commented on Sep 19, 2018

    @nornagon
    Contributor

    What graphics card/drivers are you using? Do you see the behaviour still when running with --disable-gpu?

  3. GitSquared commented on Sep 19, 2018

    @GitSquared
    Author

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

  4. nornagon commented on Sep 19, 2018

    @nornagon
    Contributor

    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.

  5. added
    blocked/need-info ❌
    on Sep 19, 2018
  6. nornagon commented on Sep 19, 2018

    @nornagon
    Contributor

    yes.

  7. GitSquared commented on Sep 20, 2018

    @GitSquared
    Author

    @nornagon OK, GPU is Intel® HD Graphics 4600 integrated in a i5-4200H Haswell processor.

    Just in case, the second GPU is a Nvidia Geforce 850M.

  8. nornagon commented on Sep 20, 2018

    @nornagon
    Contributor

    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 master to see if the issue still happens with Chromium 67? (Unfortunately nightlies aren't yet working again after the switch to GN)

  9. GitSquared commented on Sep 20, 2018

    @GitSquared
    Author

    Kernel is 4.9.0-8-amd64 (that rules out your first link i'm afraid).

    Intel driver: xserver-xorg-video-intel 2:2.99.917+git20161206-1 amd64 (latest in stretch) aka default xorg handler for integrated GPUs
    Nvidia driver: nvidia-driver 384.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.

  10. nornagon commented on Sep 21, 2018

    @nornagon
    Contributor

    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?

  11. u4aew commented on Sep 21, 2018

    @u4aew

    @nornagon A similar problem appeared in 2 versions of the electron #14430

  12. GitSquared commented on Sep 21, 2018

    @GitSquared
    Author

    @nornagon It seems like resizing the window activates a hidden barcode-generating feature.

    barcode

    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.

  13. nornagon commented on Sep 21, 2018

    @nornagon
    Contributor

    Thanks for the update! Perhaps you could pivot to be a barcode-generating company? ;)

    #13624 also seems like it might be related?

  14. GitSquared commented on Sep 21, 2018

    @GitSquared
    Author

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

  15. GitSquared commented on Sep 22, 2018

    @GitSquared
    Author

    @nornagon I compiled v4.0.0-nightly.20180905.
    If i use > /dev/null or --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.

  16. anszom commented on Nov 2, 2018

    @anszom
    Contributor

    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.

  17. GitSquared commented on Nov 4, 2018

    @GitSquared
    Author

    @anszom This works. Good luck with the PR.

  18. GitSquared commented on Nov 19, 2018

    @GitSquared
    Author

    Closed as #15555 has been merged.

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

    3-0-xblocked/need-info ❌bug 🪲platform/linux

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions