-
Notifications
You must be signed in to change notification settings - Fork 15.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
child process spawned with child_process.fork cannot spawn an electron-shell #1613
Comments
Thats because we create fork with
@zcbenz what should we do about this scenario ? |
Ok this worked. Thanks. More about the freeze The strange thing about the freeze is that it seems like JavaScript is still running. Sounds are playing as normal, But nothing seems to update visually, as if like the visual rendering is frozen. Electron also won't accept input. Mouse clicks don't work. If the dev tools are open I also lose the ability to interact with that. It happens very consistently with certain apps. Even to the point that it will freeze at exactly the same time every time. |
Can you provide a minimal sample app that demonstrates the freeze ? i tried using a few demos with your electron-bug repo with the env variable set, everything seems to work fine. |
Sure thing. I'll update this comment when I have an example project. |
Ok. Finally have a better answer to this question. I updated the example project to show how an electron shell that is spawned by an electron shell eventually freezes its rendering. The culprit seems to be |
From iojs documentation,
so you can either have {stdio: 'ignore'} or handle the preferred way you need. |
Thanks.
|
Many node.js script spawns |
The problem was that io doesn’t let us spawn child processes on Windows with the same stdio, as per electron/electron#1613 (comment), so let’s just ignore it in that specific case.
The problem was that io doesn’t let us spawn child processes on Windows with the same stdio, as per electron/electron#1613 (comment), so let’s just ignore it in that specific case.
The problem was that io doesn’t let us spawn child processes on Windows with the same stdio, as per electron/electron#1613 (comment), so let’s just ignore it in that specific case.
Sorry if I posted this in atom/atom. I realized this is an electron bug, not an Atom editor bug, so posting it here:
I have a example project to demonstrate the issue.
I'm trying to launch an electron shell from Atom. There's a bug in an electron shell spawned from a node process or from Atom or from electron itself where the rendering freezes. I've learned that if you double fork, ie spawn a process that spawns a detached process and then kill the middle process, the rendering bug does not occur.
This works great when spawned from iojs, but when spawned from Atom, the electron shell does not launch.
This is the code in render process of Atom
This is the code in
child.js
OSX Yosemite 10.10.1
The text was updated successfully, but these errors were encountered: