Repository navigation
Description
- Electron Version: electron-v3.0.0-beta.5-linux-armv7l
- Operating System (Platform and Version): debian stretch for armhf on a 64 bit arm single board computer
- Target hardware: rock960
- Last known working Electron version: none
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
- Get an arm 64 single board computer (we're using the rock 960)
- Install the debian stretch for armhf (32 bit) image
- 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
welcome commentedon Aug 21, 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.
aburio commentedon Aug 22, 2018
Looks like the same problem as #12937
jkleinsc commentedon Aug 22, 2018
@boazsender given that you are using an arm 64 computer have you tried using the arm64 build of Electron with arm64 debian stretch?
boazsender commentedon Aug 22, 2018
@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!
boazsender commentedon Aug 27, 2018
Hi @sofianguy, thank you for triaging this issue. What further information do you need to unblock this issue?
nmenke commentedon Sep 4, 2018
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.
boazsender commentedon Oct 9, 2018
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.
boazsender commentedon Oct 9, 2018
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!
anszom commentedon Nov 13, 2018
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.
modrobert commentedon Nov 14, 2018
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.
iloseall commentedon Nov 20, 2018
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
modrobert commentedon Nov 22, 2018
If I start electron using this command it seems to run fine without patch:
./electron 2>error.loganszom commentedon Nov 22, 2018
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.
nornagon commentedon Nov 26, 2018
Fixed by #15555, will be released with the next 3.0.x / 4.0.0 beta
gnarf commentedon Dec 18, 2018
@nornagon is this released in a version I can test from npm yet?
jkleinsc commentedon Dec 18, 2018
@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
gnarf commentedon Dec 18, 2018
cheers thanks
gev commentedon Apr 11, 2019
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
gev commentedon Apr 11, 2019
I'd Add ./electron 2>error.lo. Also run all child processes with option { stdio: 'ignore' }. All works as well. Will watch
gev commentedon Apr 16, 2019
black screen is happenning still! l have spawn child process and sometimes have black screen after kill one
gnarf commentedon Apr 16, 2019
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 :(