-
Notifications
You must be signed in to change notification settings - Fork 382
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
malloc crash #104
Comments
So this issue is happening due to a strange corner case. I had the following files:
with the contents:
The issue during the compilation of Anyway, the workaround is to rename However, I am not sure if this can still be considered a bug. The ruby sass compiler didn't choke on this. |
I'm getting the same error message. I just have a folder of empty .scss files I'm passing to gulp. The file structure looks like this: gulpfile.js/
gulp.task('styles', function () {
gulp.src('./foo/bar/*.scss')
.pipe(sass())
.pipe(gulp.dest('./www/css'));
});
foo/
bar/
fileA.scss
fileB.scss
fileC.scss
.... |
I have this problem as well. Tested against gulp-sass |
I just found that this error occurs when I have empty .scss files |
@MethodGrab and @voldmar, That was it. Just setting up my file structure and had thrown a bunch of empty .scss files in my styles folder. The Thanks |
I can also confirm this happens with an empty file. Adding a line break fixes it. |
In the midst of making changes to a .scss file, when I save occasionally the file is emptied and I receive this error.. |
I'm getting this error but none of my .scss files are not empty. What gives? |
You used a double negative. Do you mean all of your .scss files have
|
Sorry! All of my files have content in them - none are blank. If i remove all of the .scss files from the directory, one at a time, it will crash each time. |
malloc crashes are happening at the C layer, and so should be reported either to nodesass or libsass |
Does anyone happen to know if this was already reported, or if there is documentation for how to provide a more complete test-case, and I'll be more than happy to submit the issues upstream. (I couldn't find anything) |
@leehambley, it's been reported here: sass/node-sass#554 |
Thanks @MethodGrab, interesting reading! |
For reference, I also had this error. My problem was that I missed some |
If you could supply a piece of Sass code that produced a malloc due to malformed |
@xzyfer Of course! I created a repo with an isolated case that you can use for debugging at: https://github.com/DrummerHead/sass-malloc-error Cheers! |
Thanks @DrummerHead this is perfect. |
I've managed to get back around to this. This issue appears to have been fixed in successive node-sass releases. |
I had to downgrade to 4.7.2 |
I updated recently to 1.10 and ran into this issue
Shortly there after, a day later 1.20 was released and I upgraded to that but still run into the same error. Is there something I can do to remedy this?
I am calling
sass()
without any options.The text was updated successfully, but these errors were encountered: