chrisgladd / grunt-phantomcss

A grunt task for CSS regression testing using PhantomCSS
MIT License
66 stars 57 forks source link

Handle random phantomjs crashes #37

Open SergejKasperBM opened 9 years ago

SergejKasperBM commented 9 years ago

On my machine phantomjs crashes occasionally with the message:

PhantomJS has crashed. Please read the crash reporting guide ...

As the reason is sporadic and not preventable, i thought it would be nice to restart the task upon such a crash. A general grunt-task fix at https://github.com/ariya/phantomjs/issues/12325#issuecomment-56246505 helped greatly. I adjusted the task accordingly.

Works fine now. Though it would be nice to disable phantoms crash-logs beeing saved to /tmp and to catch a more specific error-code.

As this is a common issue with phantom i thought you might be interested in including this as a fix.