0

I trying to run my jamsine specs from command line using PhantomJs.exe. Here is my command line

'path\to\phantomjs\phantomjs.exe run-jasmine.js SpecRunner.html

I'm running this from the folder where my spec runner html file is located. The above command throws following error

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.

I have already looked at http://code.google.com/p/phantomjs/issues/detail?id=365 on phantomjs group but that does not help much for someone like me who comes from a .net background.

So far I have found out that version 1.3.0 of PhantomJs works fine for me.

Suhas
  • 7,919
  • 5
  • 34
  • 54

1 Answers1

1

Take a look at this url on stackoverflow.

This is a typicall situation that takes place when a conflict of instances of C Runtime (CRT) libraries is detected! One app ist bound statically to the CRT and at the same time the app tries to dynamically bind to CRT.

Community
  • 1
  • 1
mox
  • 6,084
  • 2
  • 23
  • 35
  • I get that now. But how should I fix the problem? – Suhas Mar 06 '12 at 10:59
  • ...contact the one that built the bits, the application offensing the system! :-( – mox Mar 06 '12 at 11:45
  • ...and tag this question as answered? :-) – mox Mar 06 '12 at 11:47
  • This doesn't exactly answer the question but saved me time by pointing to the fact that the library itself may be problematic. I started using an older version which works for me now (original question updated to reflect this) – Suhas Mar 06 '12 at 11:53