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
build freeze on 1.9.2 #1583
Comments
This seems unrelated to any recent updates, this seems to be originating from the hmr websocket |
I see. still, I definitely observed a build freeze on Heroku (though it was 1.9.0) where of course we don't run parcel in watch mode. |
BTW, it seems when this HMR problem happens it leaves |
Would be nice to detect corrupt cache files, not sure how to implement this though (without performance penalty) Sent with GitHawk |
I'm facing the same issue |
And I can confirm that build freeze issue is still present in 1.9.2, happened a couple of times today. Also, corrupted builds happen pretty often, I have to remove .cache on like every 3rd build. |
@coffeeowl Could you create a reproducible example? |
For freeze or cache issue? Freeze - I don't think so, as for the cache issue - I'll try. |
Doesn't matter we need to fix both anyways |
@DeMoorJasper Example Repo: https://github.com/Hammster/parcel-1.9.x-freeze This is a reproduction of the bug, it happens when you've got a lot of vue components, maybe this is generally the case when many files get processed at once. I can fix it in our project by changing parcel/src/workerfarm/WorkerFarm.js Line 13 in cc6018e
I am not sure if this is diffrent bug though that OP has, but the result is the same. |
Should be fixed in latest version as workerfarm has been fixed. |
I personnaly still have the freezing issue... Windows 10 I tried to set variable env PARCEL_MAX_CONCURRENT_CALLS and/or PARCEL_WORKERS to different values, no success. (with and without no cache, no hmr etc) I can successfully start the dev (not the build) if I comment most of my includes, then it's building successfully, and I can put them back one by one until I got everything working. I have a dual boot with a linux (based on ubuntu) and I have the exact same problem. The env is the same except for the node version. So I don't think it's an OS issue. Should I create a new issue ? |
I also continued to have freeze issues and traced the problem to WorkerFarm.js. There's an option called I ended up adding the following line to package.json postinstall script so set Update: my issue seems similar to #1836 and can be reproduced by trying to bundle only html+sass files. So I've made a comment there. |
Please feel free to open up a new issue with your findings @tmchng |
I've got the same issue as @Muini. If I comment out the Setting the env variable sed -i '' 's/warmWorkers: true/warmWorkers: false/' ./node_modules/parcel-bundler/src/workerfarm/WorkerFarm.js My build looks like this: parcel build src/file1.scss src/file2.scss src/file3.scss src/file4.scss On parcel It hangs on: |
π bug report
build freeze (as reported in #1537) still happens, luckily not as often (at least on Heroku) as it was before and there are some errors being thrown
nothing happens after that, build process still gets stuck as before.
π Your Environment
The text was updated successfully, but these errors were encountered: