sk5 / svg-grunt

0 stars 0 forks source link

debugging phantom.js error #1

Open protodave opened 9 years ago

protodave commented 9 years ago

Hey Shawn!

I finally got a chance to check this out, thanks for setting up this test repo. I did a git clone, ran grunt svgtoolkit and it worked properly for me...creating the dist directory with the png and svg output.

Running "svgtoolkit:dist" (svgtoolkit) task
Debug: Processing file: loading-circle.svg
Debug: New PhantomJS instance created.
Debug: Loading SVG file: src/icons/loading-circle.svg
Debug: New PhantomJS page created
Debug: Processing SVG
Debug: Phantom page loading started
Debug: Colorizing SVG
Debug: Serializing SVG
Debug: Saving SVG file: dist\icons\svg\loading-circle.svg
Debug: Generated PNG to file: dist\icons\png\loading-circle.png
Debug: Closing page
Debug: Done with file: loading-circle.svg
Debug: -------------------
Debug:

Done processing all SVG files.

Done, without errors.

What error are you getting and at what point does it occur? Is it still Fatal error: abnormal phantomjs exit code: 1?

Also, what phantom.js do you have installed on your system? Mine is...

> phantomjs --version
1.9.8
sk5 commented 9 years ago

I have phantomjs 1.9.17 and the process is failing on "Debug: "Processing file: loading-circle.svg". Still getting the Fatal error: abnormal phantomjs exit code: 1.

I initially had created the dist/icon folders myself. Wasn't sure if the directories needed to exist or not. In either sense though it won't get beyond "Processing file: loading-circle.svg"

I have tried clearing everything out and re-starting from scratch a few times but still get the same error.

sk5 commented 9 years ago

I also can't update beyond phantomjs 1.9.17 in npm.