【发布时间】:2014-06-25 00:46:59
【问题描述】:
我正在通过 phantomjs 运行一个非常简单的脚本来获取带有 bing 地图的网页截图。
var page = require('webpage').create();
page.open('workfileNew.html', function() {
page.render('output.jpg');
phantom.exit();
});
它在 Windows 中运行良好,但我在 ubuntu 中得到了“Killed”。在这两个操作系统中,版本都是 1.9.7。
如果我将workFileNew.html 替换为www.google.com,那么它可以正常工作。
任何帮助将不胜感激!
【问题讨论】:
-
您是否尝试过使用文件路径:
file:///home/user/path/workfileNew.html? -
我可以尝试这个但升级内存解决了问题
标签: ubuntu crash phantomjs screenshot