我試圖運行命令行使用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