sass-rails
sass-rails copied to clipboard
Segmentation fault error when precompiling assets
On rails assets:precompile
I got this error after I upgraded ruby from 2.7.2 to 2.7.5.
/Users/myself/.rvm/gems/ruby-2.7.5@refinery-rails6/gems/sassc-2.4.0/lib/sassc/engine.rb:43: [BUG] Segmentation fault at 0x0000000000000000
ruby 2.7.5p203 (2021-11-24 revision f69aeb8314) [x86_64-darwin18]
-- Crash Report log information --------------------------------------------
See Crash Report log file under the one of following:
* ~/Library/Logs/DiagnosticReports
* /Library/Logs/DiagnosticReports
for more details.
Don't forget to include the above Crash Report log file in bug reports.
I am using rails 6.0.4.6 and sass-rails 6.0.0. Deleting everything from the assets
folder (except config/manifest.js
) did not help.
The problem vanished after I downgraded sass-rails to the newest 5.x version (5.1.0). I also had to downgrade sprockets from 4.0.3 to 3.7.2, because sass-rails 5.1.0 requires sprockets version <4.
we are experiencing the same issue. not sure what changed, it seems like it just stopped working. still investigating.
Could this issue be related to https://github.com/sass/sassc-ruby/issues/207 ?