-
Notifications
You must be signed in to change notification settings - Fork 1.3k
node-sass 4.8.1 crashes with WebPack running parallel compilation #2280
Comments
Are you able to provide some same code that produces this error? We can't
debug this if we cannot reproduce it.
…On 12 Mar. 2018 7:46 pm, "Horace Leung" ***@***.***> wrote:
We have been using "node-sass": "^4.5.3" in our package.json for some time
now and since yesterday, we have been getting an error when run 'npm
start'. Error below:
*node(7981,0x70000b18c000) malloc: *** error for object 0x1041ac8b0:
pointer being freed was not allocated *** set a breakpoint in
malloc_error_break to debug*
However when we downgrade and fix the version to 4.5.3, we do not get the
error anymore. ( without ^ to "node-sass": "4.5.3") so I am certain it is
an issue caused by the latest version, possibly 4.8.1 ?
Please advice on this.
- NPM version (5.7.1)
- Node version (v8.10.0)
- Node Process ({ http_parser: '2.7.0',
node: '8.10.0',
v8: '6.2.414.50',
uv: '1.19.1',
zlib: '1.2.11',
ares: '1.10.1-DEV',
modules: '57',
nghttp2: '1.25.0',
openssl: '1.0.2n',
icu: '60.1',
unicode: '10.0',
cldr: '32.0',
tz: '2017c' }
)
- Node Platform (darwin):
- Node architecture (x64)
- node-sass version (node-sass 4.8.1 (Wrapper) [JavaScript]
libsass 3.5.0 (Sass Compiler) [C/C++])
- npm node-sass versions ( ***@***.*** ):
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#2280>, or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAjZWIob0aF9Qtjl68j46HjQ1O7OWt3Dks5tdjYAgaJpZM4SmQE7>
.
|
|
We are also experiencing this with a similar setup (darwin, node 8.9.4, webpack/sass-loader). Issue Started with 4.8.1; 4.7.2 works fine. I regrettably cannot provide code. |
Unfortunately we don't work with webpack so this config does not help us debug the issue. Are you able to track down the actual Sass code that results in this error i.e. the specific |
Unfortunately I also can't provide my code but not sure if I can say which exact line causing it but I think this is a "general/overall' issue. All I know is that I downgrade to previous version and everything works. |
I am also unable to reproduce this running the sass-loader test suite. |
Can you both confirm the version of webpack, and sass-loader you're using with the following:
|
same here after i've updated from |
Are you able to create a reproducible test case you can share? Without I am unable to reproduce this my own, or some open source projects using Please do not comment with "me too"s.You can subscribe to updates with the subscribe button --> |
If anyone has time to help us debug this in real time, please join us in Slack. |
Update: I've be blindly trying random github repos that use sass-loader in order to reproduce the issue. I have managed to stumble across one. Debugging the issue now. |
Tried to make a clean test case, but things got weird really fast: the bug goes away if I add Stacktrace:
|
Yes the issue is almost certainly related to custom importers ( The reference to |
Steps to reproduce, from a fresh project :
$primaryHue: #272D42;
$primaryHue3: lighten($primaryHue, 8%);
$primaryHue2: darken($primaryHue, 8%);
$primaryHueDark: darken($primaryHue, 7%);
module.exports = {
entry: {
app: './app.js'
},
module: {
rules: [
{
test: /\.scss$/,
loader: 'css-loader!sass-loader'
},
]
},
};
Interesting points :
|
+1 @sloonz Your description is identical with my findings, especially the random issues. Downgrading to 4.7.2 solves the issue for now. My system runs macOS 10.13.3. Using the default binary binding from npm ends in the crash as well as building it from source. |
@sloonz thank you this is really helpful. |
I'll need to head to bed shortly. The current work around is lock to cc @mgreter this might be of interest to you. I ran some static analysis and nothing jumped out at me. |
I've opened 2 separate (but likely related) upstream issues. |
As a mitigation I've promoted 4.7.2 to latest. So future installs should now get it instead of 4.8.1. For those wanting to dig around, 4.8.2 is available as node-sass@next. |
The issue is related to webpack/sass-loader running libsass compilers in parallel. |
Please try |
I am getting this issue with
It happens when I add a new |
You would need to configure |
We have been using "node-sass": "^4.5.3" in our package.json for some time now and since yesterday, we have been getting an error when run 'npm start'. Error below:
However when we downgrade and fix the version to 4.5.3, we do not get the error anymore. ( without ^ to "node-sass": "4.5.3") so I am certain it is an issue caused by the latest version, possibly 4.8.1 ?
Please advice on this.
node: '8.10.0',
v8: '6.2.414.50',
uv: '1.19.1',
zlib: '1.2.11',
ares: '1.10.1-DEV',
modules: '57',
nghttp2: '1.25.0',
openssl: '1.0.2n',
icu: '60.1',
unicode: '10.0',
cldr: '32.0',
tz: '2017c' }
)
libsass 3.5.0 (Sass Compiler) [C/C++])
The text was updated successfully, but these errors were encountered: