Closed jimaek closed 10 years ago
I'm unable to reproduce this issue. Please provide more data:
Everything installed from npm
#node --version
v0.10.26
#phantomas --version
phantomas v1.1.0
#phantomjs --version
1.9.7
#phantomas http://cutesmszone.com
undefined:1
phantomjs: ../3rdparty/harfbuzz/src/harfbuzz-shaper.cpp:484: void HB_Heuristic
^
SyntaxError: Unexpected token p
at Object.parse (native)
at /usr/lib/node_modules/phantomas/lib/ipc.js:29:15
at Array.forEach (native)
at Socket.<anonymous> (/usr/lib/node_modules/phantomas/lib/ipc.js:26:12)
at Socket.EventEmitter.emit (events.js:95:17)
at Socket.<anonymous> (_stream_readable.js:746:14)
at Socket.EventEmitter.emit (events.js:92:17)
at emitReadable_ (_stream_readable.js:408:10)
at emitReadable (_stream_readable.js:404:5)
at readableAddChunk (_stream_readable.js:165:9)
#phantomas http://google.com
phantomas v1.1.0 metrics for <http://www.google.com/>:
* requests: 6
...
Interesting... Can you run phantomas with --verbose
option so that we can see when it actually crashes?
# phantomas http://cutesmszone.com --verbose
17:24:26.028 phantomas v1.1.0 installed in /usr/lib/node_modules/phantomas/
17:24:26.029 Loading core modules...
17:24:26.035 Core module requestsMonitor v1.2 initialized
17:24:26.036 Core module httpAuth v1.0 initialized
17:24:26.036 Getting the list of all modules...
17:24:26.039 Module ajaxRequests v0.2 initialized
17:24:26.039 Module alerts v0.1 initialized
17:24:26.040 To enable CSS in-depth metrics please run phantomas with --analyze-css option
17:24:26.040 Module analyzeCss v0.3 initialized
17:24:26.042 Module assetsTypes v0.1 initialized
17:24:26.043 Module blockDomains v0.1 initialized
17:24:26.044 Module cacheHits v0.3 initialized
17:24:26.045 Module caching v0.2 initialized
17:24:26.046 Module console v0.2 initialized
17:24:26.047 Module cookies v0.2 initialized
17:24:26.048 Devices: no profile selected (available: phone, tablet)
17:24:26.048 Module devices v0.1 initialized
17:24:26.049 Module domains v0.2 initialized
17:24:26.050 Module domComplexity v0.2 initialized
17:24:26.051 Module domQueries v0.5 initialized
17:24:26.052 Module eventListeners v0.1 initialized
17:24:26.053 To enable screenshots of page being loaded run phantomas with --film-strip option
17:24:26.053 Module filmStrip v0.1 initialized
17:24:26.054 Module globalVariables v0.2 initialized
17:24:26.056 No HAR path specified, use --har <path>
17:24:26.056 Module har v0.1 initialized
17:24:26.057 Module headers v0.1 initialized
17:24:26.058 Module javaScriptBottlenecks v0.1 initialized
17:24:26.059 Module jQuery v0.2 initialized
17:24:26.060 Module jserrors v0.3 initialized
17:24:26.061 Module localStorage v0.3 initialized
17:24:26.061 Module mainRequest v0.1 initialized
17:24:26.062 Module postLoadDelay v0.1 initialized
17:24:26.063 Module redirects v0.1 initialized
17:24:26.066 Module requestsStats v0.3 initialized
17:24:26.067 Module screenshot v0.1 initialized
17:24:26.068 Module staticAssets v0.3 initialized
17:24:26.069 Module timeToFirst v0.1 initialized
17:24:26.070 Module waitForSelector v0.1 initialized
17:24:26.071 Module windowPerformance v0.5 initialized
17:24:26.072 Opening <http://cutesmszone.com>...
17:24:26.073 Using phantomas/1.1.0 (PhantomJS/1.9.7; linux 64bit) as user agent
17:24:26.073 Viewport set to 1280 x 1024
17:24:26.074 Event pageBeforeOpen emitted
17:24:26.075 Event onResourceRequested emitted
17:24:26.077 Event beforeSend emitted
17:24:26.077 Event send emitted
17:24:26.078 Event pageOpen emitted
17:24:26.078 Timeout set to 15 sec
17:24:26.079 Page loading started
17:24:26.079 Event loadStarted emitted
17:24:26.174 Loading progress: 10%
17:24:26.174 Event progress emitted
17:24:26.986 Event onResourceReceived emitted
17:24:26.988 Event recv emitted
17:24:26.990 Event onResourceRequested emitted
17:24:26.991 Event beforeSend emitted
17:24:26.991 Event send emitted
17:24:27.162 Event onResourceReceived emitted
17:24:27.163 Event onResourceRequested emitted
17:24:27.164 Event beforeSend emitted
17:24:27.164 Event send emitted
17:24:27.167 Event onResourceRequested emitted
17:24:27.167 Event beforeSend emitted
17:24:27.167 Event send emitted
17:24:27.168 Event onResourceRequested emitted
17:24:27.168 Event beforeSend emitted
17:24:27.168 Event send emitted
17:24:27.169 Event onResourceRequested emitted
17:24:27.169 Event beforeSend emitted
17:24:27.169 Event send emitted
17:24:27.170 Event onResourceRequested emitted
17:24:27.172 Event beforeSend emitted
17:24:27.172 Event send emitted
17:24:27.173 Event onResourceRequested emitted
17:24:27.173 Event beforeSend emitted
17:24:27.173 Event send emitted
17:24:27.174 Event onResourceReceived emitted
17:24:27.174 contentLength missing: {"url":"http://www.cutesmszone.com/","bodySize":37259}
17:24:27.175 Event recv emitted
17:24:27.175 Event metric emitted
17:24:27.175 Event metric emitted
17:24:27.175 Time to first byte: set to 172 ms for <http://www.cutesmszone.com/> (HTTP 200)
17:24:27.175 Event responseEnd emitted
17:24:27.175 Block domains: assuming "www.cutesmszone.com" to be the main domain
17:24:27.176 Event metric emitted
17:24:27.176 Performance timing: responseEnd
17:24:27.178 phantomas scope injected
17:24:27.178 Page object initialized
17:24:27.178 Event init emitted
17:24:27.178 Attaching a spy to "getElementById" function...
17:24:27.179 Attaching a spy to "getElementsByClassName" function...
17:24:27.179 Attaching a spy to "getElementsByTagName" function...
17:24:27.179 Attaching a spy to "querySelectorAll" function...
17:24:27.179 Attaching a spy to "querySelectorAll" function...
17:24:27.179 Attaching a spy to "appendChild" function...
17:24:27.179 Attaching a spy to "insertBefore" function...
17:24:27.180 Attaching a spy to "addEventListener" function...
17:24:27.180 Attaching a spy to "addEventListener" function...
17:24:27.180 Attaching a spy to "eval" function...
17:24:27.181 Attaching a spy to "setTimeout" function...
17:24:27.181 Attaching a spy to "setInterval" function...
17:24:27.181 Attaching a spy to "write" function...
17:24:27.181 Attaching a spy to "writeln" function...
17:24:27.182 Spying disabled - installing window.performance metrics
17:24:27.182 Spying enabled
17:24:27.184 Loading progress: 19%
17:24:27.184 Event progress emitted
17:24:27.204 Event onResourceReceived emitted
17:24:27.205 Event onResourceReceived emitted
17:24:27.205 Event onResourceReceived emitted
17:24:27.206 contentLength missing: {"url":"http://cdn.cutesmszone.com/wp-content/plugins/wp-to-twitter/css/twitter-feed.css?ver=3.9.1","bodySize":1165}
17:24:27.207 Event recv emitted
17:24:27.210 Event onResourceReceived emitted
17:24:27.210 contentLength missing: {"url":"http://cdn.cutesmszone.com/wp-content/themes/cutesmszone-v5/style-140320.css","bodySize":18529}
17:24:27.211 Event recv emitted
17:24:27.216 Event onResourceReceived emitted
17:24:27.217 Event onResourceReceived emitted
17:24:27.218 contentLength missing: {"url":"http://cdn.cutesmszone.com/wp-content/plugins/yet-another-related-posts-plugin/style/widget.css?ver=3.9.1","bodySize":771}
17:24:27.218 Event recv emitted
17:24:27.222 DOM query: by tag name "script"
17:24:27.223 DOM insert: node "script" added to "head"
17:24:27.224 Event onResourceRequested emitted
17:24:27.224 Event beforeSend emitted
17:24:27.224 Event send emitted
17:24:27.238 Event onResourceRequested emitted
17:24:27.239 Event beforeSend emitted
17:24:27.239 Event send emitted
17:24:27.240 Event onResourceRequested emitted
17:24:27.241 Event beforeSend emitted
17:24:27.241 Event send emitted
17:24:27.242 Event onResourceRequested emitted
17:24:27.242 Event beforeSend emitted
17:24:27.242 Event send emitted
17:24:27.243 Event onResourceRequested emitted
17:24:27.243 Event beforeSend emitted
17:24:27.243 Event send emitted
17:24:27.244 Event onResourceRequested emitted
17:24:27.244 Event beforeSend emitted
17:24:27.244 Event send emitted
17:24:27.245 Event onResourceRequested emitted
17:24:27.245 Event beforeSend emitted
17:24:27.245 Event send emitted
17:24:27.246 Event onResourceRequested emitted
17:24:27.246 Event beforeSend emitted
17:24:27.246 Event send emitted
17:24:27.248 Event onResourceReceived emitted
17:24:27.248 Event onResourceReceived emitted
17:24:27.248 contentLength missing: {"url":"http://s7.addthis.com/js/300/addthis_widget.js","bodySize":6843}
17:24:27.249 Event recv emitted
17:24:27.251 DOM query: by tag name "script"
17:24:27.252 DOM query: by id "#_atssh"
17:24:27.253 DOM insert: node "div#_atssh" added to "body"
17:24:27.253 DOM insert: node "iframe#_atssh654" added to "body > div#_atssh"
17:24:27.255 DOM insert: node "script" added to "body"
17:24:27.255 Event onResourceRequested emitted
17:24:27.255 Event beforeSend emitted
17:24:27.255 Event send emitted
17:24:27.257 Event metric emitted
17:24:27.257 Performance timing: document reached "interactive" state after 81 ms
17:24:27.258 Event onResourceReceived emitted
17:24:27.258 Event onResourceReceived emitted
17:24:27.258 contentLength missing: {"url":"http://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js","bodySize":21017}
17:24:27.259 Event recv emitted
17:24:27.261 Event onResourceReceived emitted
17:24:27.261 Event onResourceReceived emitted
17:24:27.262 Event recv emitted
17:24:27.264 Event onResourceReceived emitted
17:24:27.265 Event onResourceReceived emitted
17:24:27.267 Event recv emitted
17:24:27.268 Event onResourceReceived emitted
17:24:27.268 Event onResourceReceived emitted
17:24:27.269 Event recv emitted
17:24:27.271 Event onResourceReceived emitted
17:24:27.271 Event onResourceReceived emitted
17:24:27.272 Event recv emitted
17:24:27.274 Event onResourceReceived emitted
17:24:27.275 Event onResourceReceived emitted
17:24:27.275 Event recv emitted
17:24:27.277 Event onResourceReceived emitted
17:24:27.277 Event onResourceReceived emitted
17:24:27.279 Event recv emitted
17:24:27.289 Event metric emitted
17:24:27.289 Performance timing: "interactive" state handling completed after 111 ms (experimental)
17:24:27.294 DOM query: by tag name "ins"
17:24:27.306 DOM query: by id "#aswift_0"
17:24:27.310 DOM query: by id "#aswift_0"
17:24:27.311 DOM query: by id "#aswift_0"
17:24:27.312 DOM query: by id "#aswift_0"
17:24:27.312 DOM query: by id "#aswift_0"
17:24:27.314 Event onResourceRequested emitted
17:24:27.315 Event beforeSend emitted
17:24:27.316 Event send emitted
17:24:27.318 Event onResourceRequested emitted
17:24:27.318 Event beforeSend emitted
17:24:27.318 Event send emitted
17:24:27.320 DOM query: by tag name "ins"
17:24:27.321 DOM query: by id "#aswift_0"
17:24:27.322 DOM query: by id "#aswift_1"
17:24:27.325 DOM query: by id "#aswift_1"
17:24:27.326 DOM query: by tag name "ins"
17:24:27.327 DOM query: by id "#aswift_0"
17:24:27.327 DOM query: by id "#aswift_1"
17:24:27.328 DOM query: by id "#aswift_2"
17:24:27.332 DOM query: by id "#aswift_2"
17:24:27.333 Event onResourceReceived emitted
17:24:27.334 Event onResourceReceived emitted
17:24:27.335 Event recv emitted
17:24:27.338 Event onResourceReceived emitted
17:24:27.339 Event onResourceReceived emitted
17:24:27.339 contentLength missing: {"url":"http://www.google-analytics.com/analytics.js","bodySize":24200}
17:24:27.339 Event recv emitted
17:24:27.341 Event onResourceReceived emitted
17:24:27.342 Event onResourceReceived emitted
17:24:27.342 contentLength missing: {"url":"http://s7.addthis.com/static/r07/core130.js","bodySize":213496}
17:24:27.342 Event recv emitted
17:24:27.344 Event onResourceReceived emitted
17:24:27.344 Event onResourceReceived emitted
17:24:27.345 Event onResourceReceived emitted
17:24:27.345 contentLength missing: {"url":"http://pagead2.googlesyndication.com/pagead/js/r20140506/r20140417/show_ads_impl.js","bodySize":125082}
17:24:27.345 Event recv emitted
17:24:27.367 DOM query: by id "#aswift_0"
17:24:27.376 Event onResourceRequested emitted
17:24:27.376 Event beforeSend emitted
17:24:27.377 Event send emitted
17:24:27.380 Loading progress: 81%
17:24:27.380 Event progress emitted
17:24:27.396 Event onResourceRequested emitted
17:24:27.398 Event beforeSend emitted
17:24:27.398 Event send emitted
17:24:27.422 DOM insert: node "canvas" added to "body"
undefined:1
phantomjs: ../3rdparty/harfbuzz/src/harfbuzz-shaper.cpp:484: void HB_Heuristic
^
SyntaxError: Unexpected token p
at Object.parse (native)
at /usr/lib/node_modules/phantomas/lib/ipc.js:29:15
at Array.forEach (native)
at Socket.<anonymous> (/usr/lib/node_modules/phantomas/lib/ipc.js:26:12)
at Socket.EventEmitter.emit (events.js:95:17)
at Socket.<anonymous> (_stream_readable.js:746:14)
at Socket.EventEmitter.emit (events.js:92:17)
at emitReadable_ (_stream_readable.js:408:10)
at emitReadable (_stream_readable.js:404:5)
at readableAddChunk (_stream_readable.js:165:9)
It seems that phantomjs emits some warnings on stderr
that phantomas takes as IPC message and tries to parse it as a JSON. I'll wrap it inside try / catch block. Thanks for the report, @jimaek!
np, thanks for being so responsive :) Any ETA for a new Phantomas release?
Can you clone the development version of phantomas and check that it does not crash after #303 ?
As for the next release: within a week or two :)
Its not crashing but there is no output
node bin/phantomas.js http://cutesmszone.com --verbose
17:54:50.619 phantomas v1.1.0 installed in /home/phantomas/
17:54:50.620 Loading core modules...
17:54:50.625 Core module requestsMonitor v1.2 initialized
17:54:50.626 Core module cookies v1.0 initialized
17:54:50.626 Core module httpAuth v1.0 initialized
17:54:50.627 Core module timeToFirstByte v1.1 initialized
17:54:50.627 Getting the list of all modules in /home/phantomas/core/../modules...
17:54:50.629 Module ajaxRequests v0.2 initialized
17:54:50.630 Module alerts v0.1 initialized
17:54:50.630 To enable CSS in-depth metrics please run phantomas with --analyze-css option
17:54:50.630 Module analyzeCss v0.3 initialized
17:54:50.632 Module assetsTypes v0.1 initialized
17:54:50.632 Module blockDomains v0.1 initialized
17:54:50.633 Module cacheHits v0.3 initialized
17:54:50.634 Module caching v0.2 initialized
17:54:50.635 Module console v0.2 initialized
17:54:50.635 Module cookies v0.2 initialized
17:54:50.636 Devices: no profile selected (available: phone, tablet)
17:54:50.636 Module devices v0.1 initialized
17:54:50.637 Module domains v0.2 initialized
17:54:50.637 Module domComplexity v0.2 initialized
17:54:50.639 Module domQueries v0.5 initialized
17:54:50.640 Module eventListeners v0.1 initialized
17:54:50.641 To enable screenshots of page being loaded run phantomas with --film-strip option
17:54:50.641 Module filmStrip v0.1 initialized
17:54:50.641 Module globalVariables v0.3 initialized
17:54:50.642 No HAR path specified, use --har <path>
17:54:50.642 Module har v0.1 initialized
17:54:50.643 Module headers v0.1 initialized
17:54:50.644 Module javaScriptBottlenecks v0.1 initialized
17:54:50.645 Module jQuery v0.2 initialized
17:54:50.645 Module jserrors v0.3 initialized
17:54:50.646 Module localStorage v0.3 initialized
17:54:50.646 Module mainRequest v0.1 initialized
17:54:50.647 To enable page-source of page being loaded run phantomas with --page-source option
17:54:50.647 Module pageSource v0.1 initialized
17:54:50.647 Module postLoadDelay v0.1 initialized
17:54:50.648 Module redirects v0.1 initialized
17:54:50.651 Module requestsStats v0.3 initialized
17:54:50.651 Module screenshot v0.1 initialized
17:54:50.652 Module staticAssets v0.3 initialized
17:54:50.653 Module timeToFirst v0.1 initialized
17:54:50.654 Module waitForSelector v0.1 initialized
17:54:50.655 Module windowPerformance v0.5 initialized
17:54:50.656 Opening <http://cutesmszone.com>...
17:54:50.656 Using phantomas/1.1.0 (PhantomJS/1.9.7; linux 64bit) as user agent
17:54:50.656 Viewport set to 1280 x 1024
17:54:50.657 Event pageBeforeOpen emitted
17:54:50.658 Event onResourceRequested emitted
17:54:50.659 Event beforeSend emitted
17:54:50.659 Event send emitted
17:54:50.661 Event pageOpen emitted
17:54:50.661 Timeout set to 15 sec
17:54:50.662 Page loading started
17:54:50.662 Event loadStarted emitted
17:54:50.757 Loading progress: 10%
17:54:50.757 Event progress emitted
17:54:51.444 Event onResourceReceived emitted
17:54:51.446 recv: "start" stage not registered for <http://cutesmszone.com/>!
17:54:51.447 Event recv emitted
17:54:51.448 Time to first byte: response #1 <http://cutesmszone.com/> is a redirect (waiting for response #2)
17:54:51.451 Event onResourceRequested emitted
17:54:51.452 Event beforeSend emitted
17:54:51.452 Event send emitted
17:54:51.725 Event onResourceReceived emitted
17:54:51.729 Event onResourceRequested emitted
17:54:51.732 Event beforeSend emitted
17:54:51.732 Event send emitted
17:54:51.736 Event onResourceRequested emitted
17:54:51.737 Event beforeSend emitted
17:54:51.738 Event send emitted
17:54:51.739 Event onResourceRequested emitted
17:54:51.740 Event beforeSend emitted
17:54:51.740 Event send emitted
17:54:51.743 Event onResourceRequested emitted
17:54:51.744 Event beforeSend emitted
17:54:51.745 Event send emitted
17:54:51.746 Event onResourceRequested emitted
17:54:51.747 Event beforeSend emitted
17:54:51.748 Event send emitted
17:54:51.750 Event onResourceRequested emitted
17:54:51.751 Event beforeSend emitted
17:54:51.752 Event send emitted
17:54:51.753 Event onResourceReceived emitted
17:54:51.754 contentLength missing: {"url":"http://www.cutesmszone.com/","bodySize":37259}
17:54:51.755 Event recv emitted
17:54:51.756 Event metric emitted
17:54:51.756 Event metric emitted
17:54:51.757 Time to first byte: set to 274 ms for #2 request to <http://www.cutesmszone.com/> (HTTP 200)
17:54:51.757 Time to last byte: set to 302 ms
17:54:51.757 Event responseEnd emitted
17:54:51.757 Block domains: assuming "www.cutesmszone.com" to be the main domain
17:54:51.757 Event metric emitted
17:54:51.757 Performance timing: responseEnd
17:54:51.761 phantomas scope injected
17:54:51.761 Page object initialized
17:54:51.761 Event init emitted
17:54:51.762 Attaching a spy to "getElementById" function...
17:54:51.762 Attaching a spy to "getElementsByClassName" function...
17:54:51.763 Attaching a spy to "getElementsByTagName" function...
17:54:51.763 Attaching a spy to "querySelectorAll" function...
17:54:51.763 Attaching a spy to "querySelectorAll" function...
17:54:51.764 Attaching a spy to "appendChild" function...
17:54:51.764 Attaching a spy to "insertBefore" function...
17:54:51.765 Attaching a spy to "addEventListener" function...
17:54:51.765 Attaching a spy to "addEventListener" function...
17:54:51.766 Attaching a spy to "eval" function...
17:54:51.766 Attaching a spy to "setTimeout" function...
17:54:51.766 Attaching a spy to "setInterval" function...
17:54:51.766 Attaching a spy to "write" function...
17:54:51.767 Attaching a spy to "writeln" function...
17:54:51.768 Spying disabled - installing window.performance metrics
17:54:51.768 Spying enabled
17:54:51.770 Loading progress: 19%
17:54:51.770 Event progress emitted
17:54:51.772 Event onResourceReceived emitted
17:54:51.773 Event onResourceReceived emitted
17:54:51.773 contentLength missing: {"url":"http://cdn.cutesmszone.com/wp-content/themes/cutesmszone-v5/style-140320.css","bodySize":18529}
17:54:51.773 Event recv emitted
17:54:51.777 Event onResourceReceived emitted
17:54:51.777 Event onResourceReceived emitted
17:54:51.777 Event onResourceReceived emitted
17:54:51.777 contentLength missing: {"url":"http://cdn.cutesmszone.com/wp-content/plugins/wp-to-twitter/css/twitter-feed.css?ver=3.9.1","bodySize":1165}
17:54:51.778 Event recv emitted
17:54:51.779 Event onResourceReceived emitted
17:54:51.780 contentLength missing: {"url":"http://cdn.cutesmszone.com/wp-content/plugins/yet-another-related-posts-plugin/style/widget.css?ver=3.9.1","bodySize":771}
17:54:51.780 Event recv emitted
17:54:51.782 DOM query: by tag name "script"
17:54:51.784 DOM insert: node "script" added to "head"
17:54:51.784 Event onResourceRequested emitted
17:54:51.784 Event beforeSend emitted
17:54:51.784 Event send emitted
17:54:51.797 Event onResourceRequested emitted
17:54:51.797 Event beforeSend emitted
17:54:51.797 Event send emitted
17:54:51.798 Event onResourceRequested emitted
17:54:51.799 Event beforeSend emitted
17:54:51.799 Event send emitted
17:54:51.800 Event onResourceRequested emitted
17:54:51.801 Event beforeSend emitted
17:54:51.801 Event send emitted
17:54:51.801 Event onResourceRequested emitted
17:54:51.801 Event beforeSend emitted
17:54:51.801 Event send emitted
17:54:51.802 Event onResourceRequested emitted
17:54:51.802 Event beforeSend emitted
17:54:51.802 Event send emitted
17:54:51.803 Event onResourceRequested emitted
17:54:51.803 Event beforeSend emitted
17:54:51.803 Event send emitted
17:54:51.803 Event onResourceRequested emitted
17:54:51.803 Event beforeSend emitted
17:54:51.803 Event send emitted
17:54:51.804 Event onResourceReceived emitted
17:54:51.809 Event onResourceReceived emitted
17:54:51.809 contentLength missing: {"url":"http://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js","bodySize":21017}
17:54:51.810 Event recv emitted
17:54:51.812 Event onResourceReceived emitted
17:54:51.812 Event onResourceReceived emitted
17:54:51.813 contentLength missing: {"url":"http://s7.addthis.com/js/300/addthis_widget.js","bodySize":6843}
17:54:51.814 Event recv emitted
17:54:51.816 DOM query: by tag name "script"
17:54:51.818 DOM query: by id "#_atssh"
17:54:51.819 DOM insert: node "div#_atssh" added to "body"
17:54:51.819 DOM insert: node "iframe#_atssh694" added to "body > div#_atssh"
17:54:51.821 DOM insert: node "script" added to "body"
17:54:51.822 Event onResourceRequested emitted
17:54:51.823 Event beforeSend emitted
17:54:51.823 Event send emitted
17:54:51.825 Event metric emitted
17:54:51.826 Performance timing: document reached "interactive" state after 68 ms
17:54:51.826 Event onResourceReceived emitted
17:54:51.827 Event onResourceReceived emitted
17:54:51.828 Event recv emitted
17:54:51.830 Event onResourceReceived emitted
17:54:51.830 Event onResourceReceived emitted
17:54:51.831 Event recv emitted
17:54:51.833 Event onResourceReceived emitted
17:54:51.834 Event onResourceReceived emitted
17:54:51.835 Event recv emitted
17:54:51.836 Event onResourceReceived emitted
17:54:51.837 Event onResourceReceived emitted
17:54:51.838 Event recv emitted
17:54:51.839 Event onResourceReceived emitted
17:54:51.840 Event onResourceReceived emitted
17:54:51.841 Event recv emitted
17:54:51.842 Event onResourceReceived emitted
17:54:51.844 Event onResourceReceived emitted
17:54:51.846 Event recv emitted
17:54:51.847 Event onResourceReceived emitted
17:54:51.847 Event onResourceReceived emitted
17:54:51.848 Event recv emitted
17:54:51.850 Event onResourceReceived emitted
17:54:51.850 Event onResourceReceived emitted
17:54:51.850 contentLength missing: {"url":"http://www.google-analytics.com/analytics.js","bodySize":24200}
17:54:51.851 Event recv emitted
17:54:51.856 DOM query: by tag name "ins"
17:54:51.867 DOM query: by id "#aswift_0"
17:54:51.870 DOM query: by id "#aswift_0"
17:54:51.872 DOM query: by id "#aswift_0"
17:54:51.872 DOM query: by id "#aswift_0"
17:54:51.873 DOM query: by id "#aswift_0"
17:54:51.875 Event onResourceRequested emitted
17:54:51.876 Event beforeSend emitted
17:54:51.876 Event send emitted
17:54:51.877 Event onResourceRequested emitted
17:54:51.877 Event beforeSend emitted
17:54:51.878 Event send emitted
17:54:51.879 DOM query: by tag name "ins"
17:54:51.881 DOM query: by id "#aswift_0"
17:54:51.881 DOM query: by id "#aswift_1"
17:54:51.884 DOM query: by id "#aswift_1"
17:54:51.885 DOM query: by tag name "ins"
17:54:51.886 DOM query: by id "#aswift_0"
17:54:51.886 DOM query: by id "#aswift_1"
17:54:51.890 DOM query: by id "#aswift_2"
17:54:51.892 DOM query: by id "#aswift_2"
17:54:51.905 Event onResourceRequested emitted
17:54:51.905 Event beforeSend emitted
17:54:51.905 Event send emitted
17:54:51.908 Event onResourceReceived emitted
17:54:51.909 Event onResourceReceived emitted
17:54:51.909 contentLength missing: {"url":"http://s7.addthis.com/static/r07/core130.js","bodySize":213496}
17:54:51.910 Event recv emitted
17:54:51.912 Event onResourceReceived emitted
17:54:51.912 Event onResourceReceived emitted
17:54:51.913 contentLength missing: {"url":"http://pagead2.googlesyndication.com/pagead/js/r20140506/r20140417/show_ads_impl.js","bodySize":125082}
17:54:51.913 Event recv emitted
17:54:51.932 DOM query: by id "#aswift_0"
17:54:51.941 Event onResourceRequested emitted
17:54:51.941 Event beforeSend emitted
17:54:51.941 Event send emitted
17:54:51.944 Event onResourceReceived emitted
17:54:51.945 Event onResourceReceived emitted
17:54:51.945 contentLength missing: {"url":"http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js","bodySize":93100}
17:54:51.946 Event recv emitted
17:54:51.947 Event onResourceReceived emitted
17:54:51.947 Event onResourceReceived emitted
17:54:51.948 Event recv emitted
17:54:51.950 Event onResourceReceived emitted
17:54:51.954 Event onResourceReceived emitted
17:54:51.954 contentLength missing: {"url":"http://googleads.g.doubleclick.net/pagead/html/r20140506/r20140417/zrt_lookup.html","bodySize":11038}
17:54:51.955 Event recv emitted
17:54:51.963 Event metric emitted
17:54:51.964 Performance timing: "interactive" state handling completed after 205 ms (experimental)
17:54:51.964 Loading progress: 85%
17:54:51.964 Event progress emitted
17:54:51.986 DOM insert: node "canvas" added to "body"
Does phantomas freeze? Or does it terminate? If so, what's the exit code?
It terminates normally there is just no output. No freezing either. Takes 2 seconds.
#node bin/phantomas.js http://cutesmszone.com
#echo $?
0
Let's make phantomas really verbose :)
DEBUG=* bin/phantomas.js http://cutesmszone.com --verbose 2>&1 | less
Btw, I assume that this problem happens only for this URL.
Yes, I have not found an other URL where this happens. A user reported it. As I see its a phantomjs issue :( http://pastebin.com/raw.php?i=Cpqk90dt
Thanks for debugging the issue. I'll try to detect PhantomJS has crashed.
messages on stderr and make phantomas report them.
Btw we use Phantomas on http://tools.maxcdn.com/http. If you have any ideas on how to improve the website let me know. Great project!
@jimaek, great to see more use cases of phantomas! Feel free to describe how maxcdn uses phantomas on this wiki page.
When testing cutesmszone.com I get:
Any ideas how to fix this?