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
Out of memory #509
Comments
sorry for the spam. i'm also noticing this with the "curl" utility. must be on my end.. |
lol. I'm sorry for the back and forth. As best I can, I've now determined it is an issue with jsdom. this code produces the following error: this code: var jsdom = require("jsdom")
, fs = require('fs')
var html = fs.readFileSync('reddit.html')
console.log(html.toString())
jsdom.env({
html : html.toString()
}
, [ "http://code.jquery.com/jquery.js" ]
, function (err, window) {
if(err) throw err
console.log('done!')
}
); produces the following error:
here is a pastebin of the html:
if that doesn't work i can PM you the html file but it was just the result of:
|
I'm experiencing something similar. Works fine on my local machine, but when I push to Heroku (max memory 512MB) it runs out of memory. Just noticed it in an update in the last day. |
Fascinating, this appears to be a regression in 0.2.16. Maybe the new |
Reduced test-case: var jsdom = require("jsdom");
var fs = require("fs");
var html = fs.readFileSync("reddit.html");
jsdom.jsdom(html.toString()); |
Yeah, sadly this was caused by 871d40a. We'll have to revert that and push out a new version. |
Fixed and released as 0.2.17. Thanks for reporting. |
yep! let me know if you need anything else. |
Okay I have cssstyle fixed for memory, passes all tests in jsdom and cssstyle. Going to make sure it runs on Node v.0.4.8 (sure it will) and then will push a new version to npm and open a pull request here. |
@chad3814 yay!! |
so, this really weird but I can't figure out why this code works fine on my macbook pro but when it runs on an ubuntu server, it just hangs, never finishing. i even tried passing the html directly to jsdom but still no luck (so I dont think I'm getting rate limited or blocked or anything like that.) but other sites work just fine.
any ideas?
The text was updated successfully, but these errors were encountered: