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
{{ message }}
Repository navigation
node-sass threadpool issue seems to still be there #147
I've just pulled @latest from sass-loader and node-sass, and I'm still seeing the processor peg at 100% as noted in #100 . Should I be using a different branch as a workaround? Thanks.
It seems you're running webpack from within webpack. Probably some part of that causes yet another node fs-thread to block. Maybe the maximum parallellism of sass-loader should be configurable, so you can set it at UV_THREADPOOL_SIZE - 2 instead of UV_THREADPOOL_SIZE - 1.
@jcreamer898 you should not need to adjust process.env.UV_THREADPOOL_SIZE. The sass-loader is queuing its tasks so that node-sass is not blocking all threads (until node-sass has resolved this).
@jhnns I still saw the issue in that branch unfortunately. The build I'm dealing with is quite large, so I'm not surprised. It hung at ~68% for me and just got stuck.
Could anyone reading this issue also check out the branch? I would like to pull it on the master, but I don't have a test setup that demonstrates the problem.
I dont seem to have this problem anymore and I'm pretty sure we're using the master branch, so not sure what happened exactly. Hopefully this doesnt cause more confusion. :) Lemme double check in a bit.
Sent from my iPony
On Oct 26, 2015, at 9:46 AM, Johannes Ewald [email protected] wrote:
That's nice
Could anyone reading this issue also check out the branch? I would like to pull it on the master, but I don't have a test setup that demonstrates the problem.
—
Reply to this email directly or view it on GitHub.
Ya, I've been using 2.0.1 for a while now and not had any issues with threadpool. In fact, I don't even set the UV_THREADPOOL anymore and it seems to just work. I just tried npm installing the fix branch and it looks like there's a problem with its package.json?
I'm experiencing this right now with [email protected] and [email protected]. Setting process.env.UV_THREADPOOL_SIZE = 25 in our webpack.config.js does consistently resolve the issue. Not sure what additional information I can provide if anybody wants to look further into this?
Experience this issue in [email protected] and [email protected]. Trying to import a common variable file from multiple places inside a VueJS application. As @myme mentioned, setting UV_THREADPOOL_SIZE "fixes" the issue.
@evilebottnawi Can we reopen? The above workaround feels like a hack.
Activity
jhnns commentedon Aug 16, 2015
Mhmm the latest should be fine. Can anyone confirm this?
adjavaherian commentedon Aug 17, 2015
I think I've been able to reproduce it on this branch. https://github.com/adjavaherian/sass-lifter-loader/tree/node-sass-threadpool-issue If you npm start the branch in the current state, the process ties up and just hangs, but if you go to index.js and change the threadpool size to 4,
process.env.UV_THREADPOOL_SIZE = 4;it will compile. Conversely, if you leave the threadpool size at 5 and remove@import "./base";from example/scss/Frontpage.scss and YetAnother.scss (there are 4 imports total), the thread will hang.It's tricky and very well could be a something to do with the way I'm creating new webpack instances from within a webpack loader.
jorrit commentedon Sep 3, 2015
It seems you're running webpack from within webpack. Probably some part of that causes yet another node fs-thread to block. Maybe the maximum parallellism of sass-loader should be configurable, so you can set it at
UV_THREADPOOL_SIZE - 2instead ofUV_THREADPOOL_SIZE - 1.jcreamer898 commentedon Sep 4, 2015
So I had to do
process.env.UV_THREADPOOL_SIZE = 20;to get things working.Is that the permanent fix? Still feels more like a workaround.
jhnns commentedon Oct 5, 2015
@jcreamer898 you should not need to adjust
process.env.UV_THREADPOOL_SIZE. The sass-loader is queuing its tasks so that node-sass is not blocking all threads (until node-sass has resolved this).jcreamer898 commentedon Oct 5, 2015
Ok, I'll update to the latest and see if I can run it now without it. Thanks!
jhnns commentedon Oct 23, 2015
Anyone still having problems?
jhnns commentedon Oct 25, 2015
Could you guys check if the branch
fix/threadpool-issuefixes this problem while using the defaultprocess.env.UV_THREADPOOL_SIZE?jcreamer898 commentedon Oct 26, 2015
Yeah, I'll have a look.
jcreamer898 commentedon Oct 26, 2015
@jhnns I still saw the issue in that branch unfortunately. The build I'm dealing with is quite large, so I'm not surprised. It hung at ~68% for me and just got stuck.
jcreamer898 commentedon Oct 26, 2015
jcreamer898 commentedon Oct 26, 2015
Ha, I realized in my package.json I was on 2.0.1. Bumped to 3.1.1, removed the
envthing, and it worked ok.jhnns commentedon Oct 26, 2015
That's nice 👍
Could anyone reading this issue also check out the branch? I would like to pull it on the master, but I don't have a test setup that demonstrates the problem.
adjavaherian commentedon Oct 26, 2015
I dont seem to have this problem anymore and I'm pretty sure we're using the master branch, so not sure what happened exactly. Hopefully this doesnt cause more confusion. :) Lemme double check in a bit.
Sent from my iPony
adjavaherian commentedon Oct 26, 2015
Ya, I've been using 2.0.1 for a while now and not had any issues with threadpool. In fact, I don't even set the UV_THREADPOOL anymore and it seems to just work. I just tried npm installing the fix branch and it looks like there's a problem with its package.json?
7 remaining items
adjavaherian commentedon May 3, 2017
this is resolved in v2.x and higher, right?
alexander-akait commentedon May 3, 2017
@adjavaherian now
v6.0.3sass-loader😄alexander-akait commentedon Jun 7, 2017
Closing due to inactivity. Please test with latest version and feel free to reopen if still regressions. Thanks!
myme commentedon Aug 30, 2017
I'm experiencing this right now with
[email protected]and[email protected]. Settingprocess.env.UV_THREADPOOL_SIZE = 25in ourwebpack.config.jsdoes consistently resolve the issue. Not sure what additional information I can provide if anybody wants to look further into this?thenanyu commentedon Oct 10, 2017
I'm also experiencing this with latest versions of node-sass and sass-loader, also working around by setting threadpool to 100
casimcdaniels commentedon Jan 31, 2018
Experience this issue in
[email protected]and[email protected]. Trying to import a common variable file from multiple places inside a VueJS application. As @myme mentioned, settingUV_THREADPOOL_SIZE"fixes" the issue.@evilebottnawi Can we reopen? The above workaround feels like a hack.
alexander-akait commentedon Feb 1, 2018
@casimcdaniels can you create minimum reproducible test repo and describe what is problem?
jhnns commentedon Apr 13, 2018
The issue is still there, I guess, since sass/node-sass#857 hasn't been closed.
jhnns commentedon Jul 11, 2018
I'm reopening this since it's still an issue for us
alexander-akait commentedon Jul 11, 2018
@jhnns any ideas ho we can fix it?
alexander-akait commentedon Dec 14, 2018
/cc @bensampaio can you provide minimum reproducible test repo there you have problem.
Also if somebody have problem, feel free to feedback and try to provide minimum reproducible test repo, thanks
alexander-akait commentedon Aug 20, 2019
Closing due to inactivity. Please test with latest version and feel free to reopen if still regressions. Thanks!