-
Notifications
You must be signed in to change notification settings - Fork 158
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
Segmentation fault in sassc-2.2.1 when I visit ActiveAdmin in production #167
Comments
Sorry, this is also happening with sassc |
I reported the same problem a year ago rails/sprockets#581 and I propose a fix, but there's still no response #162 and rails/sprockets#630 the second option is disabling concurrency, it could still break in some cases, but it'll be much less likely
|
Thanks for the suggestion @ahorek! Unfortunately I don't think that |
hmm, do you really need dynamic assets compiled in production? it would be helpful if you have a repro script... |
Yes I'm not sure why ActiveAdmin needs to compile sass in production (this is not coming from my own code or assets.) I would like to know if there's a way to disable it, or maybe precompile these assets. But this seems to be the default behavior in the latest version of ActiveAdmin. I think it might be difficult to consistently reproduce this crash, but I could try to put together a Docker image and test Rails app. |
Ahhhhhh this is happening because I was lazy and added some inline SCSS in my HAML template:
At least this explains why my ActiveAdmin view is running |
I've tracked down the cause of the issue. This started happening after I updated the If anyone wants to look into this, you can see all the middleware and instrumentation lines in the stack trace: |
@ndbroadbent Sqreen Ruby agent engineer here. We tracked down this issue previously to conflicting unmangled libc++ symbols, and fixed it in libsqreen 0.3.0.0.3 (a native dependency of the Sqreen gem). This should be resolved with a bundle update. BTW we’re working on progressively opening our GitHub repos but we need a git history audit first. |
@ndbroadbent fix confirmed here 🎉 |
Sprockets 4 concurrency does not play well with SassC See sass/sassc-ruby#167
Hello,
I upgraded sassc to 2.2.1, and my production Rails app is now crashing when I visit my ActiveAdmin dashboard. Here are the crash logs from my server: https://gist.github.com/ndbroadbent/3d0f78235dc9056ca9eb9464d53b4a9c
Versions:
2.2.1
,2.0.1
2.5.5p157
2.4.0
5.1.2
I'm not too sure why ActiveAdmin is calling SassC in production, but I think it might be part of a third-party template that needs to be rendered at runtime.
Another thing to note is that this consistently crashes my app on every request.
Thanks for your help!
Potentially related issues:
The text was updated successfully, but these errors were encountered: