Spawning electron app from deamon process

Hi all,

Our company has an application that runs on several machines, this app is launched via a deamon that keeps it alive.

One of the feature of this app, is to start a headless electron application to run some tests. When spawning this electron application with the new arm64 OS, we are getting this issue:

Silent Test Agent Worker exited with code: 133
[ERROR] [75873:0205/135842.347044:ERROR:mach_port_rendezvous.cc(384)] bootstrap_look_up com.hivestreaming.silenttestagent.MachPortRendezvousServer.1: Permission denied (1100)
[ERROR] [75873:0205/135842.347417:ERROR:shared_memory_switch.cc(237)] No rendezvous client, terminating process (parent died?)
[ERROR] [75872:0205/135842.347634:ERROR:mach_port_rendezvous.cc(384)] bootstrap_look_up com.hivestreaming.silenttestagent.MachPortRendezvousServer.1: Permission denied (1100)
[ERROR] [75872:0205/135842.347976:ERROR:shared_memory_switch.cc(237)] No rendezvous client, terminating process (parent died?)

Both application (main app and electron one) are signed and notarized, but it seems that there is some other permission issue. If we run the electron application manually, all runs as expected.

I added the crash report as attachment

Written by Laksen in 773869021
this app is launched via a deamon that keeps it alive.

I’d like to clarify your terminology here. In Apple parlance:

  • An app is program in a .app bundle that can be launched by the user double clicking it in the Finder.

  • A daemon typically means a launchd daemon, started by a property list in /Library/LaunchDaemons, or by SMAppService.daemon(…).

Does that match your understanding? Or are you using those terms differently? If so, please explain what you mean by them.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

Hi,

Then let me rephrase with the right terminology. Our solution is a daemon that our customer can install and it is a software that runs in background. The property list is in the /Library/LaunchDaemons folder.

This software is written in Java and for some test we do on our customers machine, we can trigger a functionality that starts an electron application. When we start this, we get the error code showed above.

Spawning electron app from deamon process
 
 
Q