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

Exit status 3221225725 since node-sass > 4.1.1 #1863

Closed
mriehema opened this issue Jan 18, 2017 · 21 comments
Closed

Exit status 3221225725 since node-sass > 4.1.1 #1863

mriehema opened this issue Jan 18, 2017 · 21 comments

Comments

@mriehema
Copy link

mriehema commented Jan 18, 2017

We're using node-sass via grunt-sass. Since node-sass got updated to 4.3 it fails on Windows (no problems with OSX and linux). With 4.1.1 we didn't have these problems.

  • NPM version (npm -v):
    3.10.8
  • Node version (node -v):
    6.9.1
  • Node Process (node -p process.versions):
{ http_parser: '2.7.0',
  node: '6.9.1',
  v8: '5.1.281.84',
  uv: '1.9.1',
  zlib: '1.2.8',
  ares: '1.10.1-DEV',
  icu: '57.1',
  modules: '48',
  openssl: '1.0.2j' }
  • Node Platform (node -p process.platform):
    win32
  • Node architecture (node -p process.arch):
    x64
  • node-sass version (node -p "require('node-sass').info"):
node-sass       4.3.0   (Wrapper)       [JavaScript]
libsass         3.4.3   (Sass Compiler) [C/C++]
  • npm node-sass versions (npm ls node-sass):

Error message running sass via grunt via npm script:

...
Running "sass:build" (sass) task

npm ERR! Windows_NT 10.0.14393
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "run" "production"
npm ERR! node v6.9.1
npm ERR! npm  v3.10.8
npm ERR! code ELIFECYCLE
npm ERR! @coremedia/[email protected] production: `grunt production`
npm ERR! Exit status 3221225725
...

Running grunt sass exits without any exit code or error message.

Our workaround is to go back to grunt-sass 1.2.1 with node-sass 3.13.1

@nschonni
Copy link
Contributor

Can you reproduce this without running through grunt?

@xzyfer
Copy link
Contributor

xzyfer commented Jan 19, 2017

Duplicate #1861. We're experiencing issues with grunt-sass atm.

@xzyfer
Copy link
Contributor

xzyfer commented Jan 27, 2017

This could also be a duplicate of #1854. Needs to confirm once 4.4.0 is stable.

@mriehema
Copy link
Author

FYI: just updated to grunt-sass 2.0.0 with a clean workspace. So I got [email protected]. but still the same exit code. :(

Running "sass:build" (sass) task

npm ERR! Windows_NT 10.0.14393
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "run" "production"
npm ERR! node v6.10.0
npm ERR! npm  v3.10.10
npm ERR! code ELIFECYCLE
npm ERR! @[email protected] production: `grunt production`
npm ERR! Exit status 3221225725

@mriehema
Copy link
Author

Any news on Exit status 3221225725?

@mriehema
Copy link
Author

mriehema commented May 3, 2017

Still broken, so I checked my sass files and found the some code causing this issue.

It's working in Codepen, see https://codepen.io/anon/pen/YVxwdG
But not with node-sass. Running the example scss from codepen with node-sass test.scss will exit without any output. :(

@xzyfer
Copy link
Contributor

xzyfer commented May 3, 2017

Noone has been able to reproduce Exit status 3221225725. As for your codepen I see the same output as Ruby Sass when testing with https://www.sassmeister.com/

@mriehema
Copy link
Author

mriehema commented May 3, 2017

Can you run the code (which work in codepen and sassmeister) with node-sass as I described? I can't. Runnning node-sass directly will exit without any information. Running node-sass via npm script will cause this exit code.

See my example project: https://github.com/mriehema/node-sass-issue

@xzyfer
Copy link
Contributor

xzyfer commented May 3, 2017 via email

@mriehema
Copy link
Author

mriehema commented May 4, 2017

Hi @xzyfer, I'm sorry to bother you, but did you check my example project? Please try to reproduce it.
I asked my colleagues to test it and all Windows user got the same error code (it doesn't matter, which node version they used.) but it works with macOS. This error occurs since 4.2.0. v4.1.1 was fine. I added a branch for that too: https://github.com/mriehema/node-sass-issue/tree/old-node-sass-version

EDIT: Some more informations:
It looks like only win32-x64 is affected. I run it in appveyor, which uses win32-ia32 and it works. And even on Ubuntu Shell on Windows with linux-x64 works.

Conclusion: LibSass has been bumped from 3.4.0 to 3.4.3 in v4.2.0. Something between these versions is causing this exit status for Windows x64. Should I open an issue in libsass for that?

Info:
Exit status 3221225725 = error code 0xc00000fd = stack overflow,
See https://support.microsoft.com/en-us/help/315937/how-to-trap-stack-overflow-in-a-visual-c-application

@saper
Copy link
Member

saper commented May 7, 2017

When did we change versions of Visual Studio from 2013 to 2015?

Also do things change if you try different versions of node?

@mriehema
Copy link
Author

mriehema commented May 8, 2017

I testet it with 7.10.0, 6.9.5, 6.10.3 and 4.8.3. Same result.

I played with my example code again and it looks like it depends on the length of the $svg. If I shorten the string or remove one of the calls str-replace in the loop, it works. str-replace uses str-slice, which was changed in libsass 3.4.1, see sass/libsass#2240

@saper
Copy link
Member

saper commented May 8, 2017

Well, this might be #1289 str-replace is a stack-eating monster. Maybe running this in the debugger may reveal a huge stack that is full?

@mriehema
Copy link
Author

mriehema commented May 9, 2017

Sorry, I'm not familiar with C++ Debugger. Could you tell me, what to do and I will give you all results you need.

@saper
Copy link
Member

saper commented May 9, 2017

Do you have Visual Studio installed? Do you have ntsd, cdb and WinDbg debuggers installed? They can be installed independently of Visual Studio as a Debugging Tools for Windows (WinDbg, KD, CDB, NTSD)

@xzyfer
Copy link
Contributor

xzyfer commented Mar 10, 2018

This is probably fixed in 4.8.0

@xzyfer xzyfer closed this as completed Mar 10, 2018
@vedi
Copy link

vedi commented Jun 15, 2018

experiencing the same in 4.8.0 and 4.9.0

@xzyfer
Copy link
Contributor

xzyfer commented Jun 15, 2018

@vedi this comment is not useful without a reproducible test case

@vedi
Copy link

vedi commented Jun 15, 2018

sorry, did not put it, because it looks similar with the initial one:

Win10 x64
[email protected]
[email protected]

If I have long inlined svg, node-sass just silently stops. If I use it through babel I get
Command failed with exit code 3221225725.

@xzyfer
Copy link
Contributor

xzyfer commented Jun 15, 2018 via email

@vedi
Copy link

vedi commented Jun 15, 2018

I put isolated reproducible case here:
https://gist.github.com/vedi/df8505935623a98b91ac26df742a750c

And downgrading to v4.1.1 did not help. I have the same issue here.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

5 participants