balena-io-experimental / balena-electronjs Goto Github PK
View Code? Open in Web Editor NEWelectronJS-based resin application template
Home Page: http://resin.io
License: Apache License 2.0
electronJS-based resin application template
Home Page: http://resin.io
License: Apache License 2.0
It's unclear why this is happening. This is on a push of the master branch as of today's date. Host's config.txt:
disable_splash=1
dtparam=i2c_arm=on
dtparam=spi=on
dtparam=audio=on
enable_uart=1
gpu_mem=160
Maybe just a newbie question, but is it supposed to be possible to operate the electron app on a Rasberry Pi 3 using a mouse / trackball?
I got my resin-electronjs based app running on the app but I don't see a mouse pointer anywhere on the screen. I tried two difference mice to no avail.
steps to reproduce
electron
to latest (1.8.4) at time of writingresult = blank white screen
expected = the hello world message with unicorn
log output from resin
24.04.18 13:56:55 (+0100) Installed application 'registry2.resin.io/v2/e82f07a02fcd0ea86ac979eb102db75a'
24.04.18 13:56:55 (+0100) Starting application 'registry2.resin.io/v2/e82f07a02fcd0ea86ac979eb102db75a'
24.04.18 13:56:56 (+0100) Started application 'registry2.resin.io/v2/e82f07a02fcd0ea86ac979eb102db75a'
24.04.18 13:56:56 (+0100) Systemd init system enabled.
24.04.18 13:56:57 (+0100) systemd 215 running in system mode. (+PAM +AUDIT +SELINUX +IMA +SYSVINIT +LIBCRYPTSETUP +GCRYPT +ACL +XZ -SECCOMP -APPARMOR)
24.04.18 13:56:57 (+0100) Detected virtualization 'other'.
24.04.18 13:56:57 (+0100) Detected architecture 'arm'.
24.04.18 13:56:57 (+0100) Set hostname to <4056ff1>.
24.04.18 13:56:59 (+0100) hostname: No address associated with hostname
24.04.18 13:56:59 (+0100) xauth: file /root/.Xauthority does not exist
24.04.18 13:56:59 (+0100) xauth: (stdin):1: bad display name "4056ff1:0" in "add" command
24.04.18 13:56:59 (+0100)
24.04.18 13:56:59 (+0100)
24.04.18 13:56:59 (+0100) X.Org X Server 1.18.4
24.04.18 13:56:59 (+0100) Release Date: 2016-07-19
24.04.18 13:56:59 (+0100) X Protocol Version 11, Revision 0
24.04.18 13:56:59 (+0100) Build Operating System: Linux 4.4.26-v7+ armv7l Raspbian
24.04.18 13:56:59 (+0100) Current Operating System: Linux 4056ff1 4.9.50 #2 SMP Wed Nov 1 16:03:39 UTC2017 armv7l
24.04.18 13:56:59 (+0100) Kernel command line: 8250.nr_uarts=0 bcm2708_fb.fbwidth=800 bcm2708_fb.fbheight=480 bcm2708_fb.fbdepth=16 bcm2708_fb.fbswap=1 vc_mem.mem_base=0x3f000000 vc_mem.mem_size=0x3f600000 dwc_otg.lpm_enable=0 console=null root=/dev/mmcblk0p2 rootfstype=ext4 rootwait vt.global_cursor_default=0
24.04.18 13:56:59 (+0100) Build Date: 11 November 2016 11:59:59AM
24.04.18 13:56:59 (+0100) xorg-server 2:1.18.4-2+rpi1 (https://www.debian.org/support)
24.04.18 13:56:59 (+0100) Current version of pixman: 0.33.3
24.04.18 13:56:59 (+0100) Before reporting problems, check http://wiki.x.org
24.04.18 13:56:59 (+0100) to make sure that you have the latest version.
24.04.18 13:56:59 (+0100) Markers: (--) probed, (**) from config file, (==) default setting,
24.04.18 13:56:59 (+0100) (++) from command line, (!!) notice, (II) informational,
24.04.18 13:56:59 (+0100) (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
24.04.18 13:56:59 (+0100) (==) Log file: "/var/log/Xorg.0.log", Time: Tue Apr 24 12:56:59 2018
24.04.18 13:56:59 (+0100) (==) Using system config directory "/usr/share/X11/xorg.conf.d"
24.04.18 13:57:05 (+0100) [200:0424/125705.905449:WARNING:audio_manager.cc(293)] Multiple instances ofAudioManager detected
24.04.18 13:57:05 (+0100) [200:0424/125705.905930:WARNING:audio_manager.cc(254)] Multiple instances ofAudioManager detected
When I deploy the code to a Raspberry Pi v1 or a Zero (with 64GB) I see in the Resin logs window X.org being launched and again and again and again at both devices with the same code. I did not alter the code of this repo, just pushed it to the Resin Git repo to deploy and see how it worked.
I see this over and over again:
30.09.16 14:19:05 [+0200] X.Org X Server 1.17.2
30.09.16 14:19:05 [+0200] Release Date: 2015-06-16
30.09.16 14:19:05 [+0200] X Protocol Version 11, Revision 0
30.09.16 14:19:05 [+0200] Build Operating System: Linux 3.8.11-2-ARCH armv7l Raspbian
30.09.16 14:19:05 [+0200] Current Operating System: Linux raspberrypi-f2686cf 4.1.21 #1 Fri Jul 29 13:32:46 UTC 2016 armv6l
30.09.16 14:19:05 [+0200] Kernel command line: dma.dmachans=0x7f35 bcm2708_fb.fbwidth=1824 bcm2708_fb.fbheight=984 bcm2708.boardrev=0x900093 bcm2708.serial=0xad78d864 smsc95xx.macaddr=B8:27:EB:78:D8:64 bcm2708_fb.fbswap=1 bcm2708.uart_clock=3000000 bcm2708.disk_led_gpio=47 vc_mem.mem_base=0x1ec00000 vc_mem.mem_size=0x20000000 dwc_otg.lpm_enable=0 console=null root=/dev/mmcblk0p2 rootfstype=ext4 rootwait
30.09.16 14:19:05 [+0200] Build Date: 11 January 2016 01:32:44PM
30.09.16 14:19:05 [+0200] xorg-server 2:1.17.2-1+rpi1 (http://www.debian.org/support)
30.09.16 14:19:05 [+0200] Current version of pixman: 0.33.3
30.09.16 14:19:05 [+0200] Before reporting problems, check http://wiki.x.org
30.09.16 14:19:05 [+0200] to make sure that you have the latest version.
30.09.16 14:19:05 [+0200] Markers: (--) probed, (**) from config file, (==) default setting,
30.09.16 14:19:05 [+0200] (++) from command line, (!!) notice, (II) informational,
30.09.16 14:19:05 [+0200] (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
30.09.16 14:19:05 [+0200] (==) Log file: "/var/log/Xorg.0.log", Time: Fri Sep 30 12:19:05 2016
30.09.16 14:19:05 [+0200] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
30.09.16 14:19:07 [+0200] xinit: connection to X server lost
30.09.16 14:19:08 [+0200]
30.09.16 14:19:08 [+0200] waiting for X server to shut down (II) Server terminated successfully (0). Closing log file.
Updating docker-prebuild did not matter anything, but is it Fluxbox, X.org?
The device is recognised (so it has Ethernet), shows on my TV ("Booted - check your dashboard") but does not show my application.
What can I try to fix this or is it a bug?
PS: Initially I also see a xauth: file /root/.Xauthority does not exist
popping up before the above message gets repeated.
I'm not able to launch the application. I've followed the instructions exactly as explained on the repo but when I boot the pi up, it doesn't seem to launch. This is on a raspberry pi zero.
Log:
18.07.17 05:12:16 (+0200) hostname: No address associated with hostname
18.07.17 05:12:16 (+0200) xauth: file /root/.Xauthority does not exist
18.07.17 05:12:16 (+0200) xauth: (stdin):1: bad display name "eab746c:0" in "add" command
18.07.17 05:12:16 (+0200)
18.07.17 05:12:16 (+0200)
18.07.17 05:12:16 (+0200) X.Org X Server 1.18.4
18.07.17 05:12:16 (+0200) Release Date: 2016-07-19
18.07.17 05:12:16 (+0200) X Protocol Version 11, Revision 0
18.07.17 05:12:16 (+0200) Build Operating System: Linux 4.4.26-v7+ armv7l Raspbian
18.07.17 05:12:16 (+0200) Current Operating System: Linux eab746c 4.4.50 #2 Tue Jul 4 20:41:20 UTC 2017 armv6l
18.07.17 05:12:16 (+0200) Kernel command line: bcm2708_fb.fbwidth=1280 bcm2708_fb.fbheight=1024 bcm2708_fb.fbdepth=16 bcm2708_fb.fbswap=1 dma.dmachans=0x7f35 bcm2708.boardrev=0x900093 bcm2708.serial=0x4b88cbc6 bcm2708.uart_clock=48000000 bcm2708.disk_led_gpio=47 smsc95xx.macaddr=B8:27:EB:88:CB:C6 vc_mem.mem_base=0x1fa00000 vc_mem.mem_size=0x20000000 dwc_otg.lpm_enable=0 console=tty1 console=ttyAMA0,115200 root=/dev/mmcblk0p2 rootfstype=ext4 rootwait
18.07.17 05:12:16 (+0200) Build Date: 11 November 2016 11:59:59AM
18.07.17 05:12:16 (+0200) xorg-server 2:1.18.4-2+rpi1 (https://www.debian.org/support)
18.07.17 05:12:16 (+0200) Current version of pixman: 0.33.3
18.07.17 05:12:16 (+0200) Before reporting problems, check http://wiki.x.org
18.07.17 05:12:16 (+0200) to make sure that you have the latest version.
18.07.17 05:12:16 (+0200) Markers: (--) probed, (**) from config file, (==) default setting,
18.07.17 05:12:16 (+0200) (++) from command line, (!!) notice, (II) informational,
18.07.17 05:12:16 (+0200) (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
18.07.17 05:12:16 (+0200) (==) Log file: "/var/log/Xorg.0.log", Time: Tue Jul 18 03:12:16 2017
18.07.17 05:12:16 (+0200) (==) Using system config directory "/usr/share/X11/xorg.conf.d"
18.07.17 05:12:22 (+0200) xinit: connection to X server lost
18.07.17 05:12:22 (+0200)
18.07.17 05:12:22 (+0200) waiting for X server to shut down (II) Server terminated successfully (0). Closing log file.
18.07.17 05:12:23 (+0200)
18.07.17 05:12:23 (+0200) xauth: (argv):1: bad display name "eab746c:0" in "remove" command
adopting Versionist would be a huge benefit for both the devs and the users struggling with poor changelogs and releases comments
Hello,
I've recently created template for resin electron vue base on this project and https://github.com/SimulatedGREG/electron-vue, and wanted suggest adding link to it in this project, so interested people could use it. https://github.com/imomaliev/resin-electron-vue
I'm running a test on a RaspberryPI 3. It runs fine in the beginning but after a while I get the following error:
../../third_party/tcmalloc/chromium/src/free_list.h:118] Memory corruption detected.
[270:0113/130440.122161:ERROR:sandbox_linux.cc(343)] InitializeSandbox() called with multiple threads in process gpu-process.
[270:0113/130441.464521:ERROR:gles2_cmd_decoder.cc(17403)] [.DisplayCompositor-0x50e0d80]GL ERROR :GL_INVALID_OPERATION : glCreateAndConsumeTextureCHROMIUM: invalid mailbox name
[270:0113/130441.620707:ERROR:gles2_cmd_decoder.cc(9636)] [.DisplayCompositor-0x50e0d80]RENDER WARNING: texture bound to texture unit 0 is not renderable. It maybe non-power-of-2 and have incompatible texture filtering.
Hi,
I couldn't find any way to clear the electron's data cache. It may be worth adding some configuration variable to "force reload" everything? For now, I log into the app, and remove the ~/.config/<app>/Cache
folder and restart.
The readme refers to http://snappin.io/img/resin_electron_love.png but that file is missing.
I'm experiencing an error whilst trying to run this on a Raspberry Pi 3, not sure if this is the same for the 2. The error I'm seeing is as follows:
13.04.16 21:51:10 [+0100] [75:0413/205110:ERROR:browser_main_loop.cc(217)] Running without the SUID sandbox! See https://chromium.googlesource.com/chromium/src/+/master/docs/linux_suid_sandbox_development.md for more information on developing with the sandbox on.
13.04.16 21:51:23 [+0100] [75:0413/205123:ERROR:browser_gpu_channel_host_factory.cc(145)] Failed to create channel.
Please let me know if there is any more information you need to debug this.
I need a list of devices that must be mapped through to allow electron to start so that I can segment off my other containers from interfering with the display. Screen buffer starts to break after containers reboot in the backend and lose control of the devices while a new container boots up.
Similar to #35
Get the following error when pushing to resin repo:
[Error] Build failed: Tag 6.9 not found in repository docker.io/resin/raspberry-pi-node
Removing version tag from Dockerfile template fixes the issue
Kiosk mode prevents 'ready-to-show' from firing. Also, it doesn't hide the top menu. I've tried modifying fluxbox settings with no luck... Any hints?
Hello,
I have been checking resin-electronjs today and I am not able to get any decent performance on a raspberry pi 3. I have tried with the master branch as well as with the framebuffer one. Also, I noticed that the image quality is not so good, it seems as if the graphics are quantized, i.e. running in maybe 16bits/pixel instead of 24. Do you have any advices? is it even possible to get an acceptable performance to play videos using electron on a rpi?
Got it to boot after changing some things around. Great work. For development, how would one enable the mouse in this interface? I'd like to use it until I hook up a touch-screen. ;)
Right now while the window gets rendered/loaded a blank background is showed. This can be avoided pre-rendering windows and showing only when ready.
official docs here
Hello,
I seem to be unable to fix this deployment error when trying to deploy this repo with no changes.
I'm deploying to a raspberry pi 3b.
I've tried changing the base image to
Output from the resin box
root@appteamdashboardpi:~# cat /etc/os-release ID="resin-os" NAME="Resin OS" VERSION="2.0.0-beta.1" VERSION_ID="2.0-beta.1" PRETTY_NAME="Resin OS 2.0.0-beta.1" RESIN_BOARD_REV=e623b9b META_RESIN_REV=5effa9e SLUG=raspberrypi3 MACHINE=raspberrypi3
Also tried with the generated image with resin 1.8.0 and getting the same problems
Error message
west@Oscars-MacBook-Pro:~/projects/resin-electronjs|master
⇒ git push resin master
The authenticity of host 'git.resin.io (54.165.162.194)' can't be established.
ECDSA key fingerprint is SHA256:*removed*.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'git.resin.io,54.165.162.194' (ECDSA) to the list of known hosts.
Counting objects: 289, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (128/128), done.
Writing objects: 100% (289/289), 497.27 KiB | 0 bytes/s, done.
Total 289 (delta 154), reused 287 (delta 153)
Starting build for oscar_west/appteamdashboardpi, user oscar_west
Building on 'local'
-----> Dockerfile template application detected
Step 1 : FROM resin/raspberrypi3-node:6.9.2
---> 772956e2bef9
Step 2 : RUN sed -i "s!httpredir.debian.org!'curl -s -D - http://httpredir.debian.org/demo/debian/ | awk '/^Link:/ { print $2 }' | sed -e 's@<http://\(.*\)/debian/>;@\1@g''!" /etc/apt/sources.list'
---> Running in b9478062d7d6
---> 1522c59a5950
Removing intermediate container b9478062d7d6
Step 3 : RUN apt-get update && apt-get install -y apt-utils clang xserver-xorg-core xserver-xorg-input-all xserver-xorg-video-fbdev xorg libdbus-1-dev libgtk2.0-dev libnotify-dev libgnome-keyring-dev libgconf2-dev libasound2-dev libcap-dev libcups2-dev libxtst-dev libxss1 libnss3-dev fluxbox libsmbclient libssh-4 fbset libexpat-dev && rm -rf /var/lib/apt/lists/*
---> Running in b9a02623623c
Ign http://mirror.math.princeton.edu jessie InRelease
Get:1 http://mirror.math.princeton.edu jessie-updates InRelease [145 kB]
Get:2 http://mirror.math.princeton.edu jessie Release.gpg [2373 B]
Get:3 http://mirror.math.princeton.edu jessie Release [148 kB]
Get:4 http://security.debian.org jessie/updates InRelease [63.1 kB]
Ign http://resin-packages.s3-website-us-east-1.amazonaws.com resin InRelease
Get:5 http://archive.raspbian.org jessie InRelease [14.9 kB]
Get:6 http://resin-packages.s3-website-us-east-1.amazonaws.com resin Release.gpg [801 B]
Get:7 http://mirror.math.princeton.edu jessie-updates/main armhf Packages [17.6 kB]
Get:8 http://resin-packages.s3-website-us-east-1.amazonaws.com resin Release [2258 B]
Get:9 http://mirror.math.princeton.edu jessie/main armhf Packages [8864 kB]
Get:10 http://archive.raspberrypi.org jessie InRelease [22.9 kB]
Get:11 http://security.debian.org jessie/updates/main armhf Packages [416 kB]
Get:12 http://archive.raspbian.org jessie/main armhf Packages [12.5 MB]
Ign http://resin-packages.s3-website-us-east-1.amazonaws.com resin Release
Get:13 http://resin-packages.s3-website-us-east-1.amazonaws.com resin/main armhf Packages [2633 B]
Get:14 http://archive.raspberrypi.org jessie/main armhf Packages [132 kB]
Get:15 http://archive.raspbian.org jessie/contrib armhf Packages [42.6 kB]
Get:16 http://archive.raspbian.org jessie/non-free armhf Packages [83.5 kB]
Get:17 http://archive.raspbian.org jessie/rpi armhf Packages [1297 B]
Get:18 http://archive.raspbian.org jessie/firmware armhf Packages [1203 B]
Fetched 22.4 MB in 10s (2050 kB/s)
Reading package lists...
W: GPG error: http://resin-packages.s3-website-us-east-1.amazonaws.com resin Release: The following signatures were invalid: KEYEXPIRED 1483758662 KEYEXPIRED 1483758662 KEYEXPIRED 1451428169 KEYEXPIRED 1483758662 KEYEXPIRED 1438561085 KEYEXPIRED 1483758662 KEYEXPIRED 1483758662 KEYEXPIRED 1483758662 KEYEXPIRED 1451428169 KEYEXPIRED 1483758662 KEYEXPIRED 1438561085
Reading package lists...
Building dependency tree...
Reading state information...
libexpat1-dev is already the newest version.
libexpat1-dev set to manually installed.
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
xserver-xorg-input-all : Depends: xserver-xorg-input-libinput but it is not installable
E: Unable to correct problems, you have held broken packages.
Removing intermediate container b9a02623623c
Build failed: BuildError: The command '/bin/sh -c apt-get update && apt-get install -y apt-utils clang xserver-xorg-core xserver-xorg-input-all xserver-xorg-video-fbdev xorg libdbus-1-dev libgtk2.0-dev libnotify-dev libgnome-keyring-dev libgconf2-dev libasound2-dev libcap-dev libcups2-dev libxtst-dev libxss1 libnss3-dev fluxbox libsmbclient libssh-4 fbset libexpat-dev && rm -rf /var/lib/apt/lists/*' returned a non-zero code: 100
remote: error: hook declined to update refs/heads/master
To [email protected]:oscar_west/appteamdashboardpi.git
! [remote rejected] master -> master (hook declined)
error: failed to push some refs to '[email protected]:oscar_west/appteamdashboardpi.git'
for example, see the current browserWindow declaration vs electron docs one
I.e. how to use lcd_rotate
, display_lcd_rotate
, display_hdmi_rotate
and other configs in config.txt
, as user was confused (tried to use the TFT_ROTATE
that is not the right one for that role.
I got this functionality working and have set the URL destination to my local home-assistant.io server (n.b. actually hass.io); however, I need to log into the site and cannot determine how to initial on-screen keyboard.
Any help?
On ODROID-XU4, the 1:7.7+7+b1
version of xserver-xorg-input-all
is not available in apt repositories leading to a docker build failure. This version was pinned by #26.
On which distro is resin/odroid-ux3-node:6.9.2
based ?
On my device(s) I need to access the microphone and output audio in kiosk mode. However, when I boot up the app it appears to be stucked and in the logs I see 2 messages:
04.09.16 12:18:31 [+0100] [104:0904/111831:INFO:CONSOLE(170)] "> ON EVENT", source: file:///app/app/app.js (170)
04.09.16 12:18:31 [+0100] [104:0904/111831:INFO:CONSOLE(171)] "1", source: file:///app/app/app.js (171)
04.09.16 12:18:31 [+0100] [104:0904/111831:INFO:CONSOLE(172)] "Waiting for approval to access your microphone ...", source: file:///app/app/app.js (172)
04.09.16 12:18:31 [+0100] [104:0904/111831:INFO:CONSOLE(163)] "> ON ERROR", source: file:///app/app/app.js (163)
04.09.16 12:18:31 [+0100] [104:0904/111831:INFO:CONSOLE(164)] "5", source: file:///app/app/app.js (164)
04.09.16 12:18:31 [+0100] [104:0904/111831:INFO:CONSOLE(165)] "No live audio input in this browser: {}", source: file:///app/app/app.js (165)
so basically it seems to be waiting for the user's permissions (that I cannot have in kiosk mode) and cannot find an audio input device. Any help?
a clear example of the problem to attack is that we have an intel
branch with intel graphics specific dependencies. This approach is far from ideal because every time master gets updated, the arch branches need to be rebased against it
I want to do this myself but i don't know how. i need it do download gitsubmodules
Hi,
I deployed electron on my Raspberry Pi 3 model B as documented but it doesn't work. Here are the logs:
09.02.18 18:15:04 (+0100) Systemd init system enabled.
09.02.18 18:15:04 (+0100) systemd 215 running in system mode. (+PAM +AUDIT +SELINUX +IMA +SYSVINIT +LIBCRYPTSETUP +GCRYPT +ACL +XZ -SECCOMP -APPARMOR)
09.02.18 18:15:04 (+0100) Detected virtualization 'other'.
09.02.18 18:15:04 (+0100) Detected architecture 'arm'.
09.02.18 18:15:04 (+0100) Set hostname to <00aed18>.
09.02.18 18:15:09 (+0100) hostname: No address associated with hostname
09.02.18 18:15:09 (+0100) xauth: file /root/.Xauthority does not exist
09.02.18 18:15:09 (+0100) xauth: (stdin):1: bad display name "00aed18:0" in "add" command
09.02.18 18:15:09 (+0100)
09.02.18 18:15:09 (+0100)
09.02.18 18:15:09 (+0100) X.Org X Server 1.18.4
09.02.18 18:15:09 (+0100) Release Date: 2016-07-19
09.02.18 18:15:09 (+0100) X Protocol Version 11, Revision 0
09.02.18 18:15:09 (+0100) Build Operating System: Linux 4.4.26-v7+ armv7l Raspbian
09.02.18 18:15:09 (+0100) Current Operating System: Linux 00aed18 4.9.59#2 SMP Wed Feb 7 09:54:42 UTC 2018 armv7l
09.02.18 18:15:09 (+0100) Kernel command line: 8250.nr_uarts=0 bcm2708_fb.fbwidth=1920 bcm2708_fb.fbheight=1200 bcm2708_fb.fbswap=1 vc_mem.mem_base=0x3ec00000 vc_mem.mem_size=0x40000000 dwc_otg.lpm_enable=0 console=null root=/dev/mmcblk0p2 rootfstype=ext4 rootwait vt.global_cursor_default=0
09.02.18 18:15:09 (+0100) Build Date: 11 November 2016 11:59:59AM
09.02.18 18:15:09 (+0100) xorg-server 2:1.18.4-2+rpi1 (https://www.debian.org/support)
09.02.18 18:15:09 (+0100) Current version of pixman: 0.33.3
09.02.18 18:15:09 (+0100) Before reporting problems, check http://wiki.x.org
09.02.18 18:15:09 (+0100) to make sure that you have the latest version.
09.02.18 18:15:09 (+0100) Markers: (--) probed, (**) from config file, (==) default setting,
09.02.18 18:15:09 (+0100) (++) from command line, (!!) notice, (II) informational,
09.02.18 18:15:09 (+0100) (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
09.02.18 18:15:09 (+0100) (==) Log file: "/var/log/Xorg.0.log", Time: Fri Feb 9 17:15:09 2018
09.02.18 18:15:09 (+0100) (==) Using system config directory "/usr/share/X11/xorg.conf.d"
09.02.18 18:15:17 (+0100) [202:0209/171517.471452:WARNING:audio_manager.cc(293)] Multiple instances of AudioManager detected
09.02.18 18:15:17 (+0100) [202:0209/171517.471950:WARNING:audio_manager.cc(254)] Multiple instances of AudioManager detected
09.02.18 18:15:18 (+0100) [226:0209/171518.346774:ERROR:sandbox_linux.cc(343)] InitializeSandbox() called with multiple threads in process gpu-process.
09.02.18 18:15:18 (+0100) [202:0209/171518.364568:ERROR:browser_gpu_channel_host_factory.cc(103)] Failed to launch GPU process.
09.02.18 18:15:18 (+0100) [202:0209/171518.364730:ERROR:browser_gpu_channel_host_factory.cc(103)] Failed to launch GPU process.
09.02.18 18:15:18 (+0100) [202:0209/171518.365437:ERROR:browser_gpu_channel_host_factory.cc(103)] Failed to launch GPU process.
09.02.18 18:15:18 (+0100) [202:0209/171518.365698:ERROR:browser_gpu_channel_host_factory.cc(103)] Failed to launch GPU process.
09.02.18 18:15:18 (+0100) [202:0209/171518.366202:ERROR:browser_gpu_channel_host_factory.cc(103)] Failed to launch GPU process.
Any idea?
I've been working with this project this week. My initial results were great and I was super excited about what could be done with the Pi and Resin/Electron.
While trying to build a more complex page to display with Electron I noticed something odd. I have one socket.io connection that gets data and updates a div 10 times per second, and I have a socket.io connection that gets data and updates a different div every few seconds.
When the every few seconds div gets data and writes to it's div, the 10 times per second div had a hiccup for roughly 3 tenths of a second.
This isn't a problem running on chrome on my laptops browser, or even running an electron app on my windows laptop. Only with the Pi/Resin/Electron combo.
Anyways, I figured I'd throw it out there and see if any of you had a bright idea. I've tried a handful of things to speed up writing the data to the div etc but I still have the same result.
I did end up getting it to run smoothly with a epiphany kiosk option, but I really wanted to stick with Electron since I use it on the windows side of things.
Thanks!
Hi, I'm getting an error after running git push resin master
:
I don't know if I'm doing anything wrong, and I haven't modified anything yet. I'm running this from windows 10 and I'm trying to deploy to a Raspberry Pi 2.
Logs:
Building on 'local'
-----> Dockerfile template application detected
Step 1 : FROM resin/raspberrypi2-node:slim
---> b5a42d379865
Step 2 : RUN apt-get update && apt-get install -y wget curl && rm -rf /var/lib/apt/lists/*
---> Using cache
---> e4624b748864
Step 3 : RUN sed -i "s!httpredir.debian.org!`curl -s -D - http://httpredir.debian.org/demo/debian/ | awk '/^Link:/ { print $2 }' | sed -e 's@<http://\(.*\)/debian/>;@\1@g'`!" /etc/apt/sources.list
---> Using cache
---> 154dd2adc3d8
Step 4 : RUN apt-get update && apt-get install -y apt-utils build-essential clang xserver-xorg-core xserver-xorg-input-all xserver-xorg-video-fbdev xorg libdbus-1-dev libgtk2.0-dev libnotify-dev libgnome-keyring-dev libgconf2-dev libasound2-dev libcap-dev libcups2-dev libxtst-dev libxss1 libnss3-dev fluxbox libsmbclient libssh-4 fbset libexpat-dev && rm -rf /var/lib/apt/lists/*
---> Using cache
---> bc9e7a6410a6
Step 5 : RUN mkdir ~/.fluxbox
---> Using cache
---> 86b4dc24ecb8
Step 6 : RUN echo "xset s off" > ~/.fluxbox/startup && echo "xserver-command=X -s 0 dpms" >> ~/.fluxbox/startup
---> Using cache
---> 703520f66b58
Step 7 : RUN echo "#!/bin/bash" > /etc/X11/xinit/xserverrc && echo "" >> /etc/X11/xinit/xserverrc && echo 'exec /usr/bin/X -s 0 dpms -nocursor -nolisten tcp "$@"' >> /etc/X11/xinit/xserverrc
---> Using cache
---> ffc6e402d725
Step 8 : RUN npm config set unsafe-perm true
---> Using cache
---> 8b11d1f32ddb
Step 9 : RUN printf "%s\n" "${PWD##}" > SOURCEFOLDER
---> Using cache
---> 4d70194d8650
Step 10 : WORKDIR /usr/src/app
---> Using cache
---> 79014102b5f7
Step 11 : COPY "$SOURCEFOLDER/app/package.json" ./
---> Using cache
---> e19aaf86c44b
Step 12 : RUN JOBS=MAX npm i --production
---> Using cache
---> aa342ad2904f
Step 13 : COPY "$SOURCEFOLDER/app" ./
---> Using cache
---> 13d8ed80f0e0
Step 14 : RUN ./node_modules/.bin/electron-rebuild
---> Running in a9f0f0bbb094
module.js:472
throw err;
^
Error: Cannot find module 'bluebird'
at Function.Module._resolveFilename (module.js:470:15)
at Function.Module._load (module.js:418:25)
at Module.require (module.js:498:17)
at require (internal/module.js:20:19)
at Object.<anonymous> (/usr/src/app/node_modules/electron-rebuild/lib/cli.js:8:17)
at Module._compile (module.js:571:32)
at Object.Module._extensions..js (module.js:580:10)
at Module.load (module.js:488:32)
at tryModuleLoad (module.js:447:12)
at Function.Module._load (module.js:439:3)
Removing intermediate container a9f0f0bbb094
Error while processing push: Error: The command '/bin/sh -c ./node_modules/.bin/electron-rebuild' returned a non-zero code: 1
remote: error: hook declined to update refs/heads/master
You can add additional hardware acceleration for no tearing by creating a /usr/share/X11/xorg.conf.d/20-intel.conf
file with the code below. This helps make animations and videos render much more smoothly.
Section "Device"
Identifier "Intel Graphics"
Driver "intel"
Option "TearFree" "true"
EndSection
Hello,
I noticed the "alpine" branch, but it seems to be very outdated. I tried to get it working but I failed.
Is there anyone that is still working on this?
Thank you in advance!
Seem to get the following error when pushing new image today:
Step 3 : RUN sed -i "s/httpredir.debian.org/`curl -s -D - http://httpredir.debian.org/demo/debian/ | awk '/^Link:/ { print $2 }' | sed -e 's@<http://\(.*\)/debian/>;@\1@g'`/" /etc/apt/sources.list
---> Running in 3aba626bc7be
/bin/sed: -e expression #1, char 51: unknown option to `s'
Hi !
I'm trying to setup electron with resin on my raspi 3.
I'm stuck at what seems to be the last step, aka pushing to master
Here is the error I get when trying to push:
Building on 'local' -----> Dockerfile template application detected Step 1 : FROM resin/raspberrypi3-node:4.0.0 Build failed: BuildError: Tag 4.0.0 not found in repository docker.io/resin/raspberrypi3-node
Thanks !
we want to Implement a network configuration API that can be consumed by electron applications. This API will have underlying business logic to handle both resin-wifi-connect and the NetworkManager dbus API.
Electron.js sets it node_integration
to true by defualt, is there any reason we dont? @curcuz
in the framebuffer setup the application start fails if there's no default value set for TFT_ROTATE
, as modprobe fbtft_device
fails due to the parameter settings.
I'm trying to run this on a raspberry pi B and the display (startx) is failing. The log output is
18.12.17 08:52:47 (+0000) Systemd init system enabled.
18.12.17 08:52:48 (+0000) systemd 215 running in system mode. (+PAM +AUDIT +SELINUX+IMA +SYSVINIT +LIBCRYPTSETUP +GCRYPT +ACL +XZ -SECCOMP -APPARMOR)
18.12.17 08:52:48 (+0000) Detected virtualization 'other'.
18.12.17 08:52:48 (+0000) Detected architecture 'arm'.
18.12.17 08:52:48 (+0000) Set hostname to <f9dcb8d>.
18.12.17 08:53:27 (+0000) hostname: No address associated with hostname
18.12.17 08:53:27 (+0000) xauth: file /root/.Xauthority does not exist
18.12.17 08:53:27 (+0000) xauth: (stdin):1: bad display name "f9dcb8d:0" in "add" command
18.12.17 08:53:27 (+0000)
18.12.17 08:53:28 (+0000)
18.12.17 08:53:28 (+0000) X.Org X Server 1.18.4
18.12.17 08:53:28 (+0000) Release Date: 2016-07-19
18.12.17 08:53:28 (+0000) X Protocol Version 11, Revision 0
18.12.17 08:53:28 (+0000) Build Operating System: Linux 4.4.26-v7+ armv7l Raspbian
18.12.17 08:53:28 (+0000) Current Operating System: Linux f9dcb8d 4.4.50 #2 Mon Jul31 10:26:25 UTC 2017 armv6l
18.12.17 08:53:28 (+0000) Kernel command line: bcm2708_fb.fbwidth=656 bcm2708_fb.fbheight=416 bcm2708_fb.fbdepth=16 bcm2708_fb.fbswap=1 dma.dmachans=0x7f35 bcm2708.boardrev=0xe bcm2708.serial=0x6608a896 bcm2708.uart_clock=48000000 smsc95xx.macaddr=B8:27:EB:08:A8:96 vc_mem.mem_base=0x1fa00000 vc_mem.mem_size=0x20000000 dwc_otg.lpm_enable=0 console=tty1 console=ttyAMA0,115200 root=/dev/mmcblk0p2 rootfstype=ext4 rootwait
18.12.17 08:53:28 (+0000) Build Date: 11 November 2016 11:59:59AM
18.12.17 08:53:28 (+0000) xorg-server 2:1.18.4-2+rpi1 (https://www.debian.org/support)
18.12.17 08:53:28 (+0000) Current version of pixman: 0.33.3
18.12.17 08:53:28 (+0000) Before reporting problems, check http://wiki.x.org
18.12.17 08:53:28 (+0000) to make sure that you have the latest version.
18.12.17 08:53:28 (+0000) Markers: (--) probed, (**) from config file, (==) defaultsetting,
18.12.17 08:53:28 (+0000) (++) from command line, (!!) notice, (II) informational,
18.12.17 08:53:28 (+0000) (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
18.12.17 08:53:28 (+0000) (==) Log file: "/var/log/Xorg.0.log", Time: Mon Dec 18 08:53:28 2017
18.12.17 08:53:28 (+0000) (==) Using system config directory "/usr/share/X11/xorg.conf.d"
18.12.17 08:53:35 (+0000) xinit: connection to X server lost
18.12.17 08:53:35 (+0000)
18.12.17 08:53:36 (+0000) waiting for X server to shut down (II) Server terminated successfully (0). Closing log file.
18.12.17 08:53:36 (+0000)
18.12.17 08:53:39 (+0000) xauth: (argv):1: bad display name "f9dcb8d:0" in "remove" command
I've tried a couple of different builds, including switching from -node:6
to -node:latest
but all seem to do the same. Trying to manually run startx
either directly on the host or via the resin control panel doens't work either.
I'm trying to integrate ReactJS, but can't get it to work.
Anyone done this before?
The following errors were reported:
29.12.16 18:22:50 [-0500] [174:1229/232250:ERROR:desktop_window_tree_host_x11.cc(1648)] Not implemented reached in void views::DesktopWindowTreeHostX11::MapWindow(ui::WindowShowState)
29.12.16 18:22:50 [-0500] [194:1229/232250:ERROR:sandbox_linux.cc(343)] InitializeSandbox() called with multiple threads in process gpu-process.
29.12.16 18:22:50 [-0500] [174:1229/232250:ERROR:browser_gpu_channel_host_factory.cc(131)] Failed to create channel.
Currently, there isn't an easy way to run resin-electronjs on your local machine. You have to manually pass in a URL_LAUNCHER because it defaults to absolute path /usr/data/index.html
.
We should also add an npm dev
script for convenience (with doesn't start x server).
I'm using this boilerplate to develop an app that will run on a balenaFin board with an official Raspberry Pi Touch Display connected. This worked fine before, but today I updated my repo to match the boilerplate in the current version of this repo because some apt repos were not available anymore so the old Dockerfile didn't build anymore.
Now, the screen works fine, but there are no touch events registered. Reverting to my previous commit solves the issue, so it's definitely not hardware related.
My previous Dockerfile was an exact match with this one, and now I'm using this one.
Any ideas on what I can do to get it working again?
Hi
I am trying to use the GPIOs so I added "pi-pins". my dependencies in my package.json look like this
"dependencies": {
"bootstrap": "^4.0.0-alpha.4",
"electron": "^1.4.13",
"firebase": "^3.6.8",
"jquery": "^3.1.0",
"moment": "^2.17.1",
"pi-pins": "~1.0.2",
"require-rebuild": "^1.2.8",
"tether": "^1.3.7",
"weather-js": "^1.0.2"
}
when I tried to run it on my RPI3 i got this error message:
[194:0201/234145:INFO:CONSOLE(83)] "Uncaught Error: Module version mismatch. Expected 50, got 48.", source: /usr/src/app/node_modules/bindings/bindings.js (83)
if I Remove the code below (which is in my index.js) the error goes away:
if (isPi) {
var GPIO = require('pi-pins');
}
I am doing something wrong?
Hello @curcuz ! So after several trials I'm still having issues with audio.
I have a USB Microphone and a speaker connected to the jack.
Input audio works with your default Dockerfile but the audio does not. Now if I install omxplayer I can play audio from the terminal. However, still no luck in Electron. If I install alsa-utils and set up /etc/asound.conf like this:
pcm.!default {
type hw
card 1
}
ctl.!default {
type hw
card 0
}
the audio works fine on Electron, but the input (microphone) does not. I have also tried to use this config:
pcm.!default {
type asym
playback.pcm "hw:0,0"
capture.pcm "hw:1,1"
}
and
pcm.!default {
type asym
playback.pcm "hw:1,1"
capture.pcm "hw:0,0"
}
but still no luck.
I guess my short question is: how do I get audio input and output to work on Electron?
For some reason my app crashes with the following error:
20.08.17 01:08:04 (-0500) Restarting application 'registry2.resin.io/classroompoc/efce98b5c08cb6929b3940d2d4f889381dabf982'
20.08.17 01:04:09 (-0500) /bin/bash: error while loading shared libraries: /lib/arm-linux-gnueabihf/libdl.so.2: invalid ELF header
20.08.17 01:05:00 (-0500) /bin/bash: error while loading shared libraries: /lib/arm-linux-gnueabihf/libdl.so.2: invalid ELF header
20.08.17 01:05:49 (-0500) /bin/bash: error while loading shared libraries: /lib/arm-linux-gnueabihf/libdl.so.2: invalid ELF header
20.08.17 01:06:35 (-0500) /bin/bash: error while loading shared libraries: /lib/arm-linux-gnueabihf/libdl.so.2: invalid ELF header
20.08.17 01:07:20 (-0500) /bin/bash: error while loading shared libraries: /lib/arm-linux-gnueabihf/libdl.so.2: invalid ELF header
20.08.17 01:08:04 (-0500) /bin/bash: error while loading shared libraries: /lib/arm-linux-gnueabihf/libdl.so.2: invalid ELF header
20.08.17 01:08:07 (-0500) Application exited 'registry2.resin.io/classroompoc/efce98b5c08cb6929b3940d2d4f889381dab
Also, I'm unable to enter into the terminal to dig more on the issue and check if it is a permission problem.
I'm using the example provided in https://github.com/resin-io/resin-electronjs, with Raspberry Pi v1 B+
. Any clues about what I may be missing? Is this a known problem?
Thanks!
Rename the project from 'resin-electronjs' to 'balena-electronjs'.
If I use any large images or do anything a little challenging within the renderer process chromium crashes not giving any error codes etc. The screen basically just goes blank.
I am using an Intel NUC7I5BNK with a pcap screen
Here is a fork of this repo that just has a large image set as a background, if you try to zoom in to it you will get the same issue that I have here. - https://github.com/OllieLy/resin-electronjs
Every now and again I get this on the resin logs:
[182:0625/154212.641834:FATAL:bus.cc(1197)] D-Bus connection was disconnected. Aborting.
#0 0x000001cd013e <unknown>
#1 0x000001cb53db <unknown>
#2 0x000002fe74b0 <unknown>
#3 0x7f3a25eea1d1 dbus_connection_dispatch
#4 0x000002fe8109 <unknown>
#5 0x000001cb883e <unknown>
#6 0x000001d0b05c <unknown>
#7 0x000001d0b308 <unknown>
#8 0x000001d0b66b <unknown>
#9 0x000001cbab99 <unknown>
#10 0x000001d0adf7 <unknown>
#11 0x000001ced600 <unknown>
#12 0x000001d22fb5 <unknown>
#13 0x000001cfd753 <unknown>
#14 0x7f3a2809c064 start_thread
#15 0x7f3a214ce62d clone
xinit: connection to X server lost
waiting for X server to shut down (EE) Server terminated successfully (0). Closing log file
even if specified here, this appears to be the most common issue - we can check if vcgencmd get_config gpu_mem
>=64 before starting X
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.