Skip to content
This repository has been archived by the owner on Jul 24, 2024. It is now read-only.

Segmentation fault: 11 when trying to compile #1373

Closed
mboisvertdupras opened this issue Feb 8, 2016 · 3 comments
Closed

Segmentation fault: 11 when trying to compile #1373

mboisvertdupras opened this issue Feb 8, 2016 · 3 comments

Comments

@mboisvertdupras
Copy link

I've been trying to compile my sass files with gulp-sass for hours now and I'm always getting a Segmentation fault:11 error upon trying to compile. I've tried compiling with node-sass directly but no success there either. I also tried npm rebuild, no luck.

I should mention everything worked fine until I added this piece of code which seems to be the cause of the error.

@mixin media($media-size)
  @if ($media-size == mobile)
    @media screen and (max-width: 76.9rem - 0.01rem)
      @content
  @if ($media-size == tablet)
    @media screen and (min-width: 76.9rem)
      @content
  @if ($media-size == touch)
    @media screen and (max-width: 98rem - 0.01rem)
      @content
  @if ($media-size == desktop)
    @media screen and (min-width: 98rem)
      @content

Gulp 'log'

[17:25:32] Using gulpfile ~/Documents/ghast/gulpfile.js
[17:25:32] Starting 'clean'...
[17:25:32] Finished 'clean' after 7.25 ms
[17:25:32] Starting 'sass'...
[17:25:32] Finished 'sass' after 4.55 ms
[17:25:32] Starting 'sourcemap'...
[17:25:32] Finished 'sourcemap' after 1.09 ms
[17:25:32] Starting 'default'...
[17:25:32] Finished 'default' after 681 μs
Segmentation fault: 11

System info:
OS: OS X 10.11.3
Node: v5.5.0
node-sass: 3.4.2
libsass: 3.3.2

@mboisvertdupras mboisvertdupras changed the title Segmentation fault:11 Segmentation fault: 11 when trying to compile Feb 8, 2016
@anleac
Copy link

anleac commented Feb 8, 2016

Strange..

@mboisvertdupras
Copy link
Author

So actually, I was able to solve this issue by installing node-sass@beta. Looks like it was a simple nesting issue.

Here's the log node-sass@beta gave me

{
  "formatted": "Error: Illegal nesting: Only properties may be nested beneath properties.\n        on line 14 of src/components/_navigation.sass\n>> \theight: 5.2rem {\n   ---------------^\n",
  "message": "Illegal nesting: Only properties may be nested beneath properties.",
  "column": 16,
  "line": 14,
  "file": "/Users/mbd/Documents/ghast/src/components/_navigation.sass",
  "status": 1
}

System info:
node-sass: 3.5.0-beta.1
libsass: 3.3.3

@anleac
Copy link

anleac commented Feb 8, 2016

Cool, glad to see it was resolved

jiongle1 pushed a commit to scantist-ossops-m2/node-sass that referenced this issue Apr 7, 2024
move methods from directives to functions
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants