You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With version 9.2.1 and 10.1.1 it happens that sometimes the child_process.exec callback is never called. It seems fine with version 8.5.1 (still testing)
We have this code that sometimes doesn't call the callback, meaning it never print 'finished' on Windows 32 and 64bits.
The command we exec is a Java command and we can see from the task manager the shell process is created and also the Java process, most of the times everything works as expected but sometimes we can see the processes disappearing from the task manager and the callback is not called (finished is never printed in the console), causing a major issue with our application because we are not able to notify the user that the task has finished.
Again, we see the processes disappearing from the task manager and the callback doesn't print anything
It seems to be Windows specific, on Linux it doesn't happen.
It's shouldn't be related to the cmd, it's always the same command with different args and, anyway, I'd expect the callback with an error if there's something wrong with cmd.
It usually happens every 4 or 5 executions
We downgraded to version 8.5.1 and it seems there issue is not there, we can run 20 tasks one after the other and we don't experience any issue
Same thing happens with util.promisify of the require('child_process').exec;
Any idea?
The text was updated successfully, but these errors were encountered:
Same thing here, on Windows. I haven't tried on mac or linux yet. It can be very difficult for me to reproduce. Fortunately, the next time I do a child_process.exec(), the pending one will always returns immediately. So for the moment I rely on this monstrosity:
let didCallback = false;
window.setTimeout(() => {
if (!didCallback) {
child_process.exec("call"); // does nothing on Windows, but causes a previously recalcitrant callback to fire
}
}, 2000);
Issue Details
With version 9.2.1 and 10.1.1 it happens that sometimes the child_process.exec callback is never called. It seems fine with version 8.5.1 (still testing)
We have this code that sometimes doesn't call the callback, meaning it never print 'finished' on Windows 32 and 64bits.
The command we exec is a Java command and we can see from the task manager the shell process is created and also the Java process, most of the times everything works as expected but sometimes we can see the processes disappearing from the task manager and the callback is not called (finished is never printed in the console), causing a major issue with our application because we are not able to notify the user that the task has finished.
util.promisify
of the require('child_process').exec;Any idea?
The text was updated successfully, but these errors were encountered: