-
-
Notifications
You must be signed in to change notification settings - Fork 179
[v1.0.0-beta.2 (Windows)] Stuck in chunk assets optimization when parallelization is enabled (options.parallel
)
#118
Comments
Please provide more info on your current setup |
+1 it's not working under Windows 10 CU - tested in two different systems with different processors and SSD/HDDs. The webpack process takes about 1GB memory but 0% CPU utilization. This is the uglify config:
Turning parallel off via |
@kumarharsh @jinker known issue, should be fixed in #108. Because |
I experience similar issues with parallel enabled. |
@evilebottnawi great job on the PR. Quick question: does it address parallelization issue in Windows where the webpack process just hangs? |
@kumarharsh this PR should fix this, but need tests, can you test this PR on windows? |
Unfortunately, seems like it gets stuck at the same place. The children spawned by worker-farm seem to not respond - no CPU is being used, and my build process is stuck at the uglify step. The Memory value also is static for a long time. EditSo the memory usage for the worker-farm spawns did come down, but the uglify process still hasn't completed. UpdateSo, after terminating the process, I got the error at the end, though I have no idea where it came from.
|
@kumarharsh can you create minimum reproducible test repo? |
We definitely need a repro repo here, there is a bug somewhere either in the plugin or |
@jinker friendly ping, can you try latest version? |
just to chime in, We encountered the same issue with our CI environment: Works fine in my local environment: I will try to revert to Node 6.4.0 to see if it happens |
OK, I will try later. |
We have same problem with the following configuration: |
We have been encountering the same issue on Windows 10. With parallel turned on the dist/uglify/worker.js will successfully minify the file and process.send() the reply back to the parent, but the parent never receives the message from the forked process. forked.child.on('message', this.receive.bind(this)) is never invoked in worker-farm/lib/farm.js even though the message is sent from the child fork. It appears as if the IPC is not working between the child and parent processes. This may be due to Windows not handling large amounts of IPC traffic correctly. However if I add the maxConcurrentCallsPerWorker: 1 option when creating the worker farm in dist/uglify/index.js then it appears to complete successfully.
Adding maxConcurrentCallsPerWorker: 1 prevents the parent from sending multiple requests via IPC before the child has responded. If you are experiencing this issue can you try adding maxConcurrentCallsPerWorker: 1 to your ./node_modules/uglifyjs-webpack-plugin/dist/uglify/index.js and see if it fixes the issue for you ? Windows 10 1511 |
@brentwilton Feel free to open a PR with this change for further discussion |
options.parallel
)
Released in |
Using |
In last version everything works the same means not working with parallel option, so this issue should be reopened at least. I'm using it on BashOnWindows Windows 10, but everything works if I run it as normal windows process. |
This check should be improved I think. As it will fail in Windows's Ubuntu, but it's still Windows. Just checked with |
This should be reopened, still facing this with webpack 4 and version 1.2.5 @ |
@lednhatkhanh no, original issue was solved, feel free to open new issue with minimum reproducible test repo. Thanks! |
Uh oh!
There was an error while loading. Please reload this page.
webpack 3.5
windows 7
The text was updated successfully, but these errors were encountered: