我试图运行命令行使用PhantomJs.exe我jamsine规格“终止扔‘的std :: bad_alloc的’的一个实例后调用”。这里是我的命令行PhantomJs.exe抛在Windows 2008 R2错误
'path\to\phantomjs\phantomjs.exe run-jasmine.js SpecRunner.html
我从我的spec runner html文件所在的文件夹运行这个。上面的命令抛出以下错误
terminate called after throwing an instance of 'std::bad_alloc'
what(): std::bad_alloc
This application has requested the Runtime to terminate it in an unusual way. Please contact the application's support team for more information.
我已经看过http://code.google.com/p/phantomjs/issues/detail?id=365上phantomjs组但没有太大的帮助对于像我这样谁来自一个.NET的背景。
到目前为止,我还发现,PhantomJs的版本1.3.0工作正常,我。
不是PhantomJS发挥作用,但std :: bad_alloc通常是由内存不足导致的。 – IUnknown 2012-03-06 10:52:26
我同意。但是我只用phantomjs.exe看到了这一点,并且每次都使用Phantomjs.exe – Suhas 2012-03-06 11:00:14