-
Notifications
You must be signed in to change notification settings - Fork 125
Hang build on Windows #70
Comments
You should be able to set the |
@amireh I have included this mode. And he did not show anything new. there is the creation of modules and randomly place all the freezes and progression can not be extended. I checked on 4+ Windows computers. Tried to disable cache, threadPool, does not help. |
@Tom910 I looked at this today on Windows 7 using Node.js 6.5.0 (installed directly from https://nodejs.org) and the examples that use multiple happypack plugins are all working:
The first one uses a shared thread pool, while the second doesn't. I'm thinking this is probably related to your config. Can you share that config (or the parts where happypack is involved) with us? |
@amireh Config like https://github.com/amireh/happypack/blob/master/examples/webpack2-extract-react/webpack.config.js . |
Hmm, that makes it a little difficult. I will try compiling the only big project I have access to on Windows but it's not as big as yours (~3k modules) and hope I can reproduce the issue. |
Curious, how long does the build usually take without happypack? |
~200 seconds in dev mode. With cache and restart. The first time even much more) |
I can't weigh in on a solution for the root cause but I can say that I've been having the same problem as well and was able to fix it by upping the number of threads for HappyPack. The hanging was caused specifically when building our tests. We use karma with a script that dynamically pulls in all our tests into one large bundle (probably several hundred modules, with the tests being fairly sizeable). Locally on my fairly beefy Windows machine (4790k 4GHz i7, 16 GB RAM, SSD) it would only hang if I didn't partially prepopulate the cache by building the source files first. However on our CI machine (also Windows) it would hang every time, even with a partially prepopulated cache. The CI machine is probably a bit less beefy specs-wise and is shared across multiple builds. The takeaway seems to be that system performance/utilization plus the number of imported modules are directly related to whether the build hangs or not. Thankfully, in my case I was able to get it to work consistently without hanging by changing the number of threads from 2 to 4. We're using a config similar to the ForkTSChecker/ts-loader config example: https://github.com/amireh/happypack/blob/master/examples/ts-loader--webpack2/webpack.config.js |
This should (hopefully) be fixed in |
Used |
On my machine it hanged (during initialization) with node 6.0.0 but does not hang with 8.4.0 - so there are node issues to consider as well |
@Knagis can you try node 6 with |
I did try 4.0.0-beta5 only with node 6.0.0 and it did not work. I did not try with 6.latest. But from what I investigated, it was a node bug, because fork() did not start the process at all, it wasn't about messaging the child process. |
Official release Thanks to everyone for troubleshooting. |
I am getting the hang on 4.0.0
|
Unfortunately we still see this behavior at CodeSandbox. Tried with both @amireh If you're interested in looking into this, please let me know, so I can give you more details about my environment and the steps to reproduce it. I'd do it myself, but I haven't got the slightest idea of what to look at, if you could guide me a bit, that'd also be appreciated. Thanks! |
My issue resolved itself with Windows Update a couple months back. |
What Windows version? I'm on an up-to-date Windows 7 Ultimate. |
Windows 10 through WSL |
Update: sometimes it just hangs, sometimes I get this just before it hangs:
|
Hangs on Windows, all node processes hanging to 0% CPU usage. At the same time, on Mac OS very well. The project is large, more than 5000 modules webpack
How can I get the error logs in the node?
[email protected], configuration like examples/webpack2-extract-react
The text was updated successfully, but these errors were encountered: