Skip to content

GPU compositing bug on arm64 #14246

Closed
Closed

Description

@boazsender

Expected Behavior
Electron should be able to boot on it's default asar without crashing.

Actual behavior
When you boot electron on the target hardware it hangs and seems to be unable to do GPU compositing. When you disable GPU compositing, the system is able to start. Chromium 61 on the same board is able to GPU composite without issue. Just launching chromium 61 demonstrates this, but you can also see GPU rendering in action at https://get.webgl.org, for example.

To Reproduce

  1. Get an arm 64 single board computer (we're using the rock 960)
  2. Install the debian stretch for armhf (32 bit) image
  3. open electron with it's default asar and watch it hang.

While we're using the rock960 (arm 64) board with the armhf build of debian stretch, we think this is reproducible on other arm64 boards running armhf. So far we've heard of this same bug reproducing with the same armhf build of debian stretch on a Odroid XU4.

Additional Information
We realize that this may not be an electron bug, but rather an OS driver or other integration bug. We thought we should open this issue here in case this sounds familiar to anyone, or if there is anyone in the electron community who is able to help us further diagnose this issue.

Thank you for reading and for contributing to or maintaining the electron project! We really appreciate all your hard work, and are thankful for how great electron is for distributing node and chromium, and bringing the web platform to more places. Thanks again!

Activity

  1. welcome commented on Aug 21, 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. aburio commented on Aug 22, 2018

    @aburio

    Looks like the same problem as #12937

  3. jkleinsc commented on Aug 22, 2018

    @jkleinsc
    Member

    @boazsender given that you are using an arm 64 computer have you tried using the arm64 build of Electron with arm64 debian stretch?

  4. added
    blocked/need-info ❌
    on Aug 22, 2018
  5. boazsender commented on Aug 22, 2018

    @boazsender
    Author

    @Burnich
    Thanks, it looks like #12937 is related. We tried out 1.7 and it is able to composite! That's a big relief for us, but we'd still like to be able to run 3.0. we are seeing some other GPU bugs, which we can potentially hack around, but a 3.0/latest release seems much stabler.

    @jkleinsc
    We have not been able to find a arm64 distro with x. I think that might be related. We can keep looking, or poke around configuring our own windowing setup and test that, but getting armhf working would be great for us.

    Thanks y'all for taking a look at this!

  6. boazsender commented on Aug 27, 2018

    @boazsender
    Author

    Hi @sofianguy, thank you for triaging this issue. What further information do you need to unblock this issue?

  7. added and removed
    blocked/need-info ❌
    on Aug 30, 2018
  8. nmenke commented on Sep 4, 2018

    @nmenke

    Hi,
    iam using a Raspberry Pi 3B (64-bit) with DietPi (32-bit Raspbian Stretch). I have installed the x-server and built the current versions of libdrm and mesa. Following this electron starts up with enabled hardware acceleration . But i haven't noticed any performance improvements.

  9. boazsender commented on Oct 9, 2018

    @boazsender
    Author

    Awesome to hear @LemonAndroid. As far as I know, no critical work. Has been done. I have not heard from @denimx2 since they started the bug.

    Let me know how I can help.

  10. boazsender commented on Oct 9, 2018

    @boazsender
    Author

    You will likely be able to reproduce on raspberry pi, or another less expensive arm device running debian stretch armhf, but for this bug, we'd prefer to match the exact device just in case. If you need us to, we can ship you the device, though you ordering it directly is probably fastest.

    You can use the email in my profile.

    Thank you!

  11. anszom commented on Nov 13, 2018

    @anszom
    Contributor

    Perhaps it isn't clear on BountySource, but the work here is almost done. I've made a fix and submitted a PR (see above) which is awaiting Electron developers' approval.

  12. modrobert commented on Nov 14, 2018

    @modrobert

    Perhaps it isn't clear on BountySource, but the work here is almost done. I've made a fix and submitted a PR (see above) which is awaiting Electron developers' approval.

    Yes, apparently open pull requests aren't shown at Bountysource, maybe they need to be closed on GitHub first?

    I will look into this anyway, the rock960 is interesting, if nothing else for the learning process.

  13. iloseall commented on Nov 20, 2018

    @iloseall

    I got the same problem.
    Electron 3.0.10 and Electron 3.0.4
    on raspberry pi 3B+
    with OS RASPBIAN STRETCH
    OS Version:November 2018
    Kernel version:4.14

  14. modrobert commented on Nov 22, 2018

    @modrobert

    If I start electron using this command it seems to run fine without patch:
    ./electron 2>error.log

  15. anszom commented on Nov 22, 2018

    @anszom
    Contributor

    Yes, this bug is manifested only when some of the standard file descriptors (0,1,2) point to a tty. Redirecting to a file or /dev/null is a verified workaround. A fix has already been commited to master, and is awaiting a merge to the 3.0 and 4.0 branch. I would assume that the fix will be included in the next release, but this depends on electron's release cycle, which I'm not familiar with.

  16. nornagon commented on Nov 26, 2018

    @nornagon
    Contributor

    Fixed by #15555, will be released with the next 3.0.x / 4.0.0 beta

  17. gnarf commented on Dec 18, 2018

    @gnarf

    @nornagon is this released in a version I can test from npm yet?

  18. jkleinsc commented on Dec 18, 2018

    @jkleinsc
    Member

    @gnarf it was released in 4.0.0-beta.8 and 3.0.11. So if you install electron@latest or electron@beta (or the specific versions above) the fix is there

  19. gnarf commented on Dec 18, 2018

    @gnarf

    cheers thanks

  20. gev commented on Apr 11, 2019

    @gev

    Just tested on version 3.1.8. Have a black screen after random time on worked application. Have same config too:

    Raspberry pi 3B+
    with OS RASPBIAN STRETCH
    OS Version:November 2018
    Kernel version:4.14

    Will try ./electron 2>error.log

  21. gev commented on Apr 11, 2019

    @gev

    I'd Add ./electron 2>error.lo. Also run all child processes with option { stdio: 'ignore' }. All works as well. Will watch

  22. gev commented on Apr 16, 2019

    @gev

    black screen is happenning still! l have spawn child process and sometimes have black screen after kill one

  23. gnarf commented on Apr 16, 2019

    @gnarf

    The provided PR totally fixed the OP bug for us - so sorry @gev but I don't think your issue was a dupe of this one :(

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