No window on raspberry appearing #148

Closed
opened 2026-01-29 16:32:26 +00:00 by claunia · 8 comments
Owner

Originally created by @80er on GitHub (Apr 18, 2018).

Originally assigned to: @robertmuehsig on GitHub.

Hi,

followed the example and works on my Win10 machine. Either by command line or when double clicking ElectronNET.Host.exe.

When i deploy it to my Raspi and try to run the ElectronNET.Host simply nothing happens. only around 20 processes are started and no window appears. No exception or error is written on console.
Electron quickstart sample works. Also made sure that in ElectronNet project electron in v 1.7.11 is installed (1.8.x doesn't work at all on Raspi).
Any hints where i could further check?

Originally created by @80er on GitHub (Apr 18, 2018). Originally assigned to: @robertmuehsig on GitHub. Hi, followed the example and works on my Win10 machine. Either by command line or when double clicking ElectronNET.Host.exe. When i deploy it to my Raspi and try to run the ElectronNET.Host simply nothing happens. only around 20 processes are started and no window appears. No exception or error is written on console. Electron quickstart sample works. Also made sure that in ElectronNet project electron in v 1.7.11 is installed (1.8.x doesn't work at all on Raspi). Any hints where i could further check?
claunia added the question label 2026-01-29 16:32:26 +00:00
Author
Owner

@80er commented on GitHub (Apr 18, 2018):

OK. found it. After some digging it appeared that the asp process did not start. Reason is wrong binary format.
C:\Users\Chef\Source\Repos\RaspiMediaController\RaspiMediaControllerFrontend>dotnet electronize build /target linux /electron-arch armv7l
Build Electron Application...
Build ASP.NET Core App for linux-x64...

Of course linux-x64 is wrong. But how can i force it use the correct one? Using the same target as for dotnet publish (so linux-arm) suddenly builds a 64bit windows executable... Any hints what is the correct command line parameter?

@80er commented on GitHub (Apr 18, 2018): OK. found it. After some digging it appeared that the asp process did not start. Reason is wrong binary format. C:\Users\Chef\Source\Repos\RaspiMediaController\RaspiMediaControllerFrontend>dotnet electronize build /target linux /electron-arch armv7l Build Electron Application... Build ASP.NET Core App for linux-x64... Of course linux-x64 is wrong. But how can i force it use the correct one? Using the same target as for dotnet publish (so linux-arm) suddenly builds a 64bit windows executable... Any hints what is the correct command line parameter?
Author
Owner

@GregorBiswanger commented on GitHub (Apr 18, 2018):

Hi @80er

do you use Windows 10 IoT? Or?

@GregorBiswanger commented on GitHub (Apr 18, 2018): Hi @80er do you use Windows 10 IoT? Or?
Author
Owner

@80er commented on GitHub (Apr 18, 2018):

Hi,
nope. Do not ask why but i want to get this running on a Raspi with latest stretch. ;)
So it is running a 32bit linux.
Already wrote small services using ASP.NET Core and then used
dotnet publish -r linux-arm
to generate the binaries. That works perfect.
I also have a workaround now. After
dotnet electronize build ....
I call again
dotnet publish -r linux-arm
and copy the generated binaries into the packages directory created before under resources/app/bin. Then i deploy the binaries to the Raspi and call ElectronNET.Host and it works. But of course would be nicer to have something like
dotnet electronize build /target linux-arm ...
and that's it.

@80er commented on GitHub (Apr 18, 2018): Hi, nope. Do not ask why but i want to get this running on a Raspi with latest stretch. ;) So it is running a 32bit linux. Already wrote small services using ASP.NET Core and then used `` dotnet publish -r linux-arm `` to generate the binaries. That works perfect. I also have a workaround now. After `` dotnet electronize build .... `` I call again `` dotnet publish -r linux-arm `` and copy the generated binaries into the packages directory created before under resources/app/bin. Then i deploy the binaries to the Raspi and call ElectronNET.Host and it works. But of course would be nicer to have something like `` dotnet electronize build /target linux-arm ... `` and that's it.
Author
Owner

@GregorBiswanger commented on GitHub (Apr 18, 2018):

@robertmuehsig do you can implement this for Version 0.0.10?

@GregorBiswanger commented on GitHub (Apr 18, 2018): @robertmuehsig do you can implement this for Version 0.0.10?
Author
Owner

@robertmuehsig commented on GitHub (Apr 19, 2018):

@GregorBiswanger PR merged - there are a couple of other PRs open, maybe take a look and I will try to build something this weekend.

@robertmuehsig commented on GitHub (Apr 19, 2018): @GregorBiswanger PR merged - there are a couple of other PRs open, maybe take a look and I will try to build something this weekend.
Author
Owner

@niklr commented on GitHub (Feb 26, 2019):

Is the suggested command now supported "dotnet electronize build /target linux-arm" ? Running this still creates the folder "bin\desktop\electron.net.host-linux-x64".

After copying the content of "bin\desktop\electron.net.host-linux-x64" to my Raspberry Pi 3 and setting the execute permission with "chmod -R u+x ." the following error is returned after executing with "./electron.net.host":

"-bash: ./electron.net.host: cannot execute binary file: Exec format error"

Am I trying to execute the wrong file? Any hints are appreciated!

@niklr commented on GitHub (Feb 26, 2019): Is the suggested command now supported "dotnet electronize build /target linux-arm" ? Running this still creates the folder "bin\desktop\electron.net.host-linux-x64". After copying the content of "bin\desktop\electron.net.host-linux-x64" to my Raspberry Pi 3 and setting the execute permission with "chmod -R u+x ." the following error is returned after executing with "./electron.net.host": "-bash: ./electron.net.host: cannot execute binary file: Exec format error" Am I trying to execute the wrong file? Any hints are appreciated!
Author
Owner

@niklr commented on GitHub (Feb 26, 2019):

When building with the following command the application seems to start but no window is displayed:

electronize build /target linux-arm /electron-arch armv7l

Maybe it is related to this issue? https://github.com/electron/electron/issues/16205

According to package.json the electron version 3.0.0 is used, so this should not be the issue.

@niklr commented on GitHub (Feb 26, 2019): When building with the following command the application seems to start but no window is displayed: > electronize build /target linux-arm /electron-arch armv7l Maybe it is related to this issue? https://github.com/electron/electron/issues/16205 According to package.json the electron version 3.0.0 is used, so this should not be the issue.
Author
Owner

@scout208 commented on GitHub (Oct 31, 2019):

I'm having this same issue on my Raspberry Pi

@scout208 commented on GitHub (Oct 31, 2019): I'm having this same issue on my Raspberry Pi
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/Electron.NET#148