Comments (10)
Hi, thanks for the feedback.
Did you try to use the flag max_old_space_size
(http://stackoverflow.com/questions/26094420/fatal-error-call-and-retry-last-allocation-failed-process-out-of-memory)?
from uglifycss.
Yes, I did and got the same error:
'/usr/local/bin/node' '/usr/bin/uglifycss' /tmp/inputdsbYCy --max_old_space_size=2000000
from uglifycss.
Could you check with last commits? If it doesn't work, could you post your css file?
from uglifycss.
I made a few tests with even bigger files (65 K-lines, 1.6 MB) and it works flawlessly with last updates.
Besides, your command should be:
'/usr/local/bin/node' --max_old_space_size=2000000 '/usr/bin/uglifycss' /tmp/inputdsbYCy
as it's a node flag, not an uglifycss one
from uglifycss.
Am I running the most recent commits? I ran this command:
$ npm install uglifycss
[email protected] node_modules/uglifycss
I got the same error as before, even with the modified command you listed. Here is the CSS file that is causing the error: https://gist.github.com/stevenmusumeche/da66a87648d9c5c958c5
from uglifycss.
You can run npm to update uglifycss now.
I tried to run it against your file and it worked fine.
from uglifycss.
@fmarcia thanks again for your help, but I am still having the same issue even after updating to [email protected]. I am running node v0.12.0, is that what you are running?
I've tried two things:
uglifycss /tmp/inputmpkpCa
I immediately get FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - process out of memory
Next I tried
'/usr/local/bin/node' --max_old_space_size=2000000 '/usr/bin/uglifycss' /tmp/inputmpkpCa
and immediate got:
FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - process out of memory
Aborted (core dumped)
Any other ideas of how I can figure out what's happening? Is this a node issue or something to do with the configuration of my VM?
from uglifycss.
I ran node in debug mode and this is the output that I got, seems like the issue is happening on line 29?
$ node debug /usr/bin/uglifycss /tmp/inputmpkpCa
< Debugger listening on port 5858
connecting to port 5858... ok
break in /usr/lib/node_modules/uglifycss/uglifycss:29
27 */
28
>29 var util = require('util'),
30 uglifycss = require('./'),
31 uglies = [],
from uglifycss.
Based on the above error I removed node from my system and reinstalled using yum and the problem disappeared. Thank you so much for your help!
from uglifycss.
I got the same problem (out of memory) however I fix it with a simple reinstallation of uglifyjs and uglifycss in my node_modules/ local project directory (symfony). Seems like it was a version problem ? I don't know... but it's works now !
from uglifycss.
Related Issues (20)
- Url changed after mininfied HOT 4
- CSS3 HOT 1
- Cannot convert URLs when input is from stdin HOT 1
- ENOENT error HOT 4
- flex-basis: 100% becomes 10% HOT 1
- Depend on supported node engine for ES6 HOT 2
- UglifyCSS transform 100% to 10% for flex:1 100% or flex-basis: 100% HOT 3
- Error: /usr/local/lib/node_modules/uglifycss/uglifycss:29 HOT 2
- What's meaning of "convertUrls" HOT 1
- How remain only one "charset" at multiple different CSS files
- [Feature]Add option to export to file HOT 2
- CSS Sourcemap HOT 1
- Percent Sign is Stripped From Keyframes Causing Them to Fail HOT 1
- Incorrect minification for text-shadow
- Removes HTML Space after ! Exclamation Mark HOT 2
- Neccessary whitespace in @supports removed HOT 3
- Converting 0deg -> 0 causes errors in IE11 HOT 2
- Changed keyword initial to default value HOT 2
- Leave the space after media query `not` HOT 2
- How to specify the source map for multiple files in command line?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from uglifycss.