-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Segfault with Angular2/Webpack/Material2 Theming (linux only) #1738
Comments
I have the same issue. Debian 7, node 6.7.0. Works only with 3.5.3 and below. On macOS all is ok with all versions. |
Seems like this might be related angular/components#1349. I'll see if I can reproduce, but it sounds like it might be a bad reference in Material somewhere along with an unfriendly error message from libsass |
Thanks for looking into this, @nschonni. |
I also have this problem, but only on my CI server running Debian 7 (32 bit). me@my-machine$ node -v
v6.4.0
me@my-machine$ npm -v
3.10.3
me@my-machine$ npm ls | grep node-sass
│ ├─┬ node-sass@3.10.1 This bug is really annoying, since it only occurs on my CI server like I already said. This means that my whole development is currently on stop since I can't merge anything with builds not passing... Ubuntu 16.04 works just fine btw. I am currently installing |
Got same problem on Debian wheezy x64 using webpack (only). Thanks @maddoger for this workaround before real fix. |
I got the same errors as described by @emri99, but it seems to work now. Thanks @maddoger for this solution. Anyway, this workaround raises some other issues (for example I now have a huge verbose output for my CI builds because some C stacktraces seem to be appended to the node output... I don't know if this can cause other errrors either, but until now it seems to work). But I suspect that this seems to be a Debian issue. Any ideas? Edit: The other issues mentioned above now prevent my e2e tasks to complete. They run successfully, but the gulp task fails anyway... |
Can you try a simple reproduction from #1757 and see if that crashes for you? |
Thanks to @mgreter, I can confirm that recompiling node-sass after npm installing makes the subsequent webpack build work on both my Debian machines. So the workaround for angular-cli/webpack users on Debian is to run the following after
No need to use an old node-sass version anymore 🎉 |
I tried @netmikey's fix and can confirm that it works :) Thank you very much for sharing |
That's unfortunately not a solution, just a workaround... |
Also, this requires python to be installed |
Rebuilding the script worked for me, I have the same problem on a debian wheezy x64 server with latest node-sass version. Even if it's just a workaround, not a solution 😕 |
Can this be reproduced with 4.8.3? |
npm -v
):3.10.3
node -v
):v6.7.0
node -p process.versions
):node -p process.platform
):linux
node -p process.arch
):x64
node -p "require('node-sass').info"
):npm ls node-sass
):Before I start, let me apologise: I am setting up a new Angular2 project with the angular-cli and angular-material2, but I'm a SASS novice so I have been unable to extract the exact sass lines causing the issue.
What I do have though, is a reduced test project based on an empty angular-cli project template and just enough modification to cause the segmentation fault I'm seeing. Since I pretty much only followed the docs, I'm afraid there might be quite some people running into this right now. I hope this helps reproducing and eventually fixing it. Let me know if there's more I can do.
So what I did was adding a custom angular-material2 theme. As soon as I add the sass file from the documentation, the webpack build fails with a segmentation fault. The error only occurs on linux (debian wheezy in my case), on macOS using the same Node/npm versions, it works fine. Also, I've been able to track down the node-sass version where this startet happening: it used to work up to v3.5.3 and started failing as of v3.6.0.
Finally, I've tried to let gdb give me a stacktrace, but since I don't have a Node binary with debug symbols, I'm not sure whether it is of much use to you guys. Anyway, here is the full output:
Let me know if you need me to open an issue with LibSass, I'm not sure whether it belongs there...
Here is the reduced-test.zip. A simple
npm install && npm start
should trigger it.The text was updated successfully, but these errors were encountered: