Skip to content
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

FATAL ERROR: CALL_AND_RETRY_2 Allocation failed - process out of memory #3

Open
hbmartin opened this issue Feb 13, 2013 · 5 comments
Open

Comments

@hbmartin
Copy link

When I try to minify large (several MB), I get the following error:
FATAL ERROR: CALL_AND_RETRY_2 Allocation failed - process out of memory

googleing around shows that this seems to happen when node is running code with memory leaks. Indeed, the node process running ycssmin uses >600MB memory prior to erroring.

Anything I can do to identify the source of the memory leak?

@davglass
Copy link
Member

How big is this CSS file? Can I get a copy to test it with?

@hbmartin
Copy link
Author

The file is ~5MB. This is a company CSS file, so I can't post a dump of it :(
However, I found I could reproduce the problem by duplicating a 100kb or so of CSS repeatedly in the same file.

@davglass
Copy link
Member

I'll take a look at this sometime tomorrow.

@erichmond
Copy link

@hbmartin Not sure if you solved this issue, but we ran into it yesterday.

Just now we've discovered that for us the issue was with having less generate comments.

We were checking the memory size of the node process during execution, and with comments generation turned on, the process hit 1.2GB and blew up. When we removed comment generation, the same process topped out around 55 megs.

Hope this helps!

@jeremybmerrill
Copy link

I'll just chime on in, nigh 2 years later, that I was having the same error and turning off line comments in compass (my CSS preprocessor) fixed the issue as well.

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

No branches or pull requests

4 participants