-
Notifications
You must be signed in to change notification settings - Fork 70
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
Syntax error in a file crashes babel-watch #32
Comments
Thanks @steelbrain for reporting and sorry for not getting back to you earlier. Would you be able to provide a more specific repro scenario as I couldn't reproduce the issue only based on what you've provided. Here is what I tried:
|
Hi @kmagiera I cannot provide any solid info any time soon but to tell you what fixed the issue for me, I basically wrapped all the It not only fixed the error for me, but also fixed the scenarios where a babel-watch spawned process will be backgrounded and will take 100% cpu printing only the syscall read kernel error I posted in my first post. I hope this gives you an idea of what the problem might be, my random guess was that the spawned child process was writing to an fd created by the parent and when the parent process crashes it causes a deadlock for the child. |
@steelbrain thanks anyways. I think that your issue might have been resolved by #38 merged earlier today which basically catches and ignores "EPIPE". That error could've been thrown when child process have died (perhaps due to syntax error) and make parent process hang in trying to write to the pipe. Would you be able to try the newest version and see if you're still having this problem? If so feel free to reopen the issue |
Not only it crashes but also triggers a bug in Node.js making it gets stuck at 100% cpu usage.
I get infinite of this in dtrace of the process with 100% cpu usage
I also get this in my log
I'm on macOS Sierra, with Node v6.9.1 and babel-watch v2.0.3
The text was updated successfully, but these errors were encountered: