-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Button-group causes memory Leak #12070
Comments
Hi @MattReimer, this is new for us. I think this is more a problem with the sassc version. |
I do not even see it there: Not sure if it is this: But I think this has nothing to do with our code but the used sassc version. |
I figured it was something like that. I'm way out of my depth here, reporting on things I don't really understand. You're right, it's the sassc-ruby version we're talking about. One thing I will point out is that I'm trying to render this using Github pages. Github pages uses Jekyll which has a highest version of 4.0, which uses
I can file this with That being said, I think you're probably right. We can close this issue here and I'll reference it when I create a new issue with |
I can report similar behavior using Hugo ( My memory consumption according to Dropping |
Can you bisect / check which commit causes this? |
3f346d3, according to
I also stumbled upon this other error in e9fa291 while bisecting. Since it's not the same bug, I told bisect that this was
|
Never saw this error happening in our builds and the last Foundation Sites builds happened without any errors. Maybe the difference between the sass wrapper and library. Do you have any idea @SassNinja? |
Probably relevant too: sass/libsass#3033 |
Seems like it's fixed now in sass/sassc-ruby#201 |
Hi @MattReimer, thanks for the update regarding this issue and that you made us aware of it in the first place. |
Since libsass 3.6.3 has such a large install base (e.g. Ubuntu 20.04), I made a patch for _button-group.scss to get around this infinite loop issue with the SASS compiler. The issue has to do with the handling of null by the SASS compiler. This code should be functionally equivalent and seems to generate the same .css in relation to button as libsass 3.4.8 does without this change to _button-group.scss. |
Also, here is more info on the libsass 3.6.3 bug which was helpful for figuring this out: |
Bug #12070: make _button-group.scss compatible with libsass 3.6.3
What should happen?
When I build the scss myself the memory consumption swells to 60+Gb unless I comment out a chunk of the
@mixin foundation-button-group
When I comment out these lines it works. I'm not really a SASS expert so I don't know what to suggest. I only found this by commenting out everything and bringing things back until it compiled.
I can definitely live without button groups but I thought I should report this since I didn't see any mention of it in your other issues.
My Environment:
OSX 10.15.4
Ruby:
ruby 2.6.4p104 (2019-08-28 revision 67798) [x86_64-darwin18]
Foundation installed with NPM, copied over to Jekyll's
_sass
folder.Compiling SCSS using jekyll 4.0 and sassc
From my
Gemfile.lock
Reproducing
I've got a repo that shows the problem here (dev branch):
https://github.com/Riverscapes/riverscapes-jekyll-theme/tree/dev
Repro steps:
bundle install
bundle exec jekyll server --verbose
Watch memory consumption go BOOM!

The text was updated successfully, but these errors were encountered: