Repository: Medium/phantomjs

Issue #71: phantomjs@1.9.1-1 spawns too many processes
Created: 2013-07-04T04:34:02Z
Running MacOS 10.8.4, given
$ node -v
v0.10.12
$ npm -v
1.2.32
$ npm cache clear
$ npm uninstall -g phantomjs
$ npm install -g phantomjs
/Users/alex/.nvm/v0.10.12/bin/phantomjs -> /Users/alex/.nvm/v0.10.12/lib/node_modules/phantomjs/bin/phantomjs

> phantomjs@1.9.1-1 install /Users/alex/.nvm/v0.10.12/lib/node_modules/phantomjs
> node install.js

PhantomJS is already installed at /Users/alex/.nvm/v0.10.12/bin/phantomjs.
phantomjs@1.9.1-1 /Users/alex/.nvm/v0.10.12/lib/node_modules/phantomjs
├── which@1.0.5
├── ncp@0.4.2
├── kew@0.1.7
├── mkdirp@0.3.5
├── adm-zip@0.2.1
├── rimraf@2.0.3 (graceful-fs@1.1.14)
└── npmconf@0.0.24 (inherits@1.0.0, once@1.1.1, osenv@0.0.3, ini@1.1.0, semver@1.1.4, nopt@2.1.1, config-chain@1.1.7)

when I run phantomjs from one terminal no output is produced
$ phantomjs
^C%

and when I run another terminal
$ ps aux | grep node
alex           79336  25.4  0.4  3020884  14872 s003  S+   12:19AM   0:00.10 node /Users/alex/.nvm/v0.10.12/bin/phantomjs
alex           79335  17.2  0.4  3020884  14888 s003  S+   12:19AM   0:00.10 node /Users/alex/.nvm/v0.10.12/bin/phantomjs
alex           79337  15.0  0.3  3019604  13276 s003  R+   12:19AM   0:00.09 node /Users/alex/.nvm/v0.10.12/bin/phantomjs
alex           79334  11.2  0.4  3020884  14816 s003  S+   12:19AM   0:00.10 node /Users/alex/.nvm/v0.10.12/bin/phantomjs
alex           79329   8.3  0.4  3020884  14868 s003  S+   12:19AM   0:00.10 node /Users/alex/.nvm/v0.10.12/bin/phantomjs
alex           79328   6.0  0.4  3020884  14864 s003  S+   12:19AM   0:00.10 node /Users/alex/.nvm/v0.10.12/bin/phantomjs
alex           79327   4.2  0.4  3020884  14732 s003  S+   12:19AM   0:00.10 node /Users/alex/.nvm/v0.10.12/bin/phantomjs
alex           79326   2.7  0.3  3020884  14668 s003  S+   12:19AM   0:00.10 node /Users/alex/.nvm/v0.10.12/bin/phantomjs
alex           79325   1.8  0.4  3020884  14732 s003  S+   12:19AM   0:00.10 node /Users/alex/.nvm/v0.10.12/bin/phantomjs
alex           79324   1.5  0.4  3020884  14848 s003  S+   12:19AM   0:00.10 node /Users/alex/.nvm/v0.10.12/bin/phantomjs
alex           79323   1.0  0.4  3020884  14756 s003  S+   12:19AM   0:00.10 node /Users/alex/.nvm/v0.10.12/bin/phantomjs
alex           79322   0.6  0.4  3020884  14816 s003  S+   12:19AM   0:00.10 node /Users/alex/.nvm/v0.10.12/bin/phantomjs
alex           79321   0.4  0.4  3020884  14904 s003  S+   12:19AM   0:00.10 node /Users/alex/.nvm/v0.10.12/bin/phantomjs
alex           79320   0.3  0.4  3020884  14856 s003  S+   12:19AM   0:00.10 node /Users/alex/.nvm/v0.10.12/bin/phantomjs
alex           79319   0.2  0.4  3020884  14856 s003  S+   12:19AM   0:00.10 node /Users/alex/.nvm/v0.10.12/bin/phantomjs
alex           79318   0.1  0.4  3020884  14808 s003  S+   12:19AM   0:00.10 node /Users/alex/.nvm/v0.10.12/bin/phantomjs
alex           79288   0.0  0.3  3020884  14668 s003  S+   12:19AM   0:00.10 node /Users/alex/.nvm/v0.10.12/bin/phantomjs
alex           79287   0.0  0.4  3020884  14828 s003  S+   12:19AM   0:00.10 node /Users/alex/.nvm/v0.10.12/bin/phantomjs
alex           79286   0.0  0.4  3020884  14808 s003  S+   12:19AM   0:00.10 node /Users/alex/.nvm/v0.10.12/bin/phantomjs
alex           79285   0.0  0.3  3020884  14668 s003  S+   12:19AM   0:00.10 node /Users/alex/.nvm/v0.10.12/bin/phantomjs
alex           79284   0.0  0.4  3020884  14852 s003  S+   12:19AM   0:00.10 node /Users/alex/.nvm/v0.10.12/bin/phantomjs
alex           79283   0.0  0.4  3020884  14844 s003  S+   12:19AM   0:00.10 node /Users/alex/.nvm/v0.10.12/bin/phantomjs
alex           79282   0.0  0.3  3020884  14664 s003  S+   12:19AM   0:00.10 node /Users/alex/.nvm/v0.10.12/bin/phantomjs
alex           79281   0.0  0.3  3020884  14668 s003  S+   12:19AM   0:00.10 node /Users/alex/.nvm/v0.10.12/bin/phantomjs
alex           79280   0.0  0.4  3020884  14688 s003  S+   12:19AM   0:00.10 node /Users/alex/.nvm/v0.10.12/bin/phantomjs
alex           79279   0.0  0.3  3020884  14668 s003  S+   12:19AM   0:00.10 node /Users/alex/.nvm/v0.10.12/bin/phantomjs
alex           79278   0.0  0.4  3020884  14848 s003  S+   12:19AM   0:00.10 node /Users/alex/.nvm/v0.10.12/bin/phantomjs
alex           79277   0.0  0.3  3012692  14660 s003  S+   12:19AM   0:00.10 node /Users/alex/.nvm/v0.10.12/bin/phantomjs
alex           79276   0.0  0.4  3020884  14788 s003  S+   12:19AM   0:00.10 node /Users/alex/.nvm/v0.10.12/bin/phantomjs
alex           79275   0.0  0.4  3020884  14868 s003  S+   12:19AM   0:00.10 node /Users/alex/.nvm/v0.10.12/bin/phantomjs
alex           79274   0.0  0.3  3020884  14664 s003  S+   12:19AM   0:00.10 node /Users/alex/.nvm/v0.10.12/bin/phantomjs
alex           79273   0.0  0.4  3020884  14876 s003  S+   12:19AM   0:00.10 node /Users/alex/.nvm/v0.10.12/bin/phantomjs
alex           79272   0.0  0.3  3020884  14668 s003  S+   12:19AM   0:00.10 node /Users/alex/.nvm/v0.10.12/bin/phantomjs
alex           79271   0.0  0.3  3020884  14664 s003  S+   12:19AM   0:00.10 node /Users/alex/.nvm/v0.10.12/bin/phantomjs
alex           79270   0.0  0.4  3020884  14780 s003  S+   12:19AM   0:00.10 node /Users/alex/.nvm/v0.10.12/bin/phantomjs
alex           79269   0.0  0.4  3020884  14852 s003  S+   12:19AM   0:00.10 node /Users/alex/.nvm/v0.10.12/bin/phantomjs
alex           79268   0.0  0.4  3020884  14864 s003  S+   12:19AM   0:00.10 node /Users/alex/.nvm/v0.10.12/bin/phantomjs
alex           79267   0.0  0.4  3020884  14876 s003  S+   12:19AM   0:00.10 node /Users/alex/.nvm/v0.10.12/bin/phantomjs
alex           79266   0.0  0.4  3020884  14840 s003  S+   12:19AM   0:00.10 node /Users/alex/.nvm/v0.10.12/bin/phantomjs
alex           79265   0.0  0.4  3020884  14740 s003  S+   12:19AM   0:00.10 node /Users/alex/.nvm/v0.10.12/bin/phantomjs
alex           79361   0.0  0.0  2432768    456 s004  R+   12:19AM   0:00.00 grep node
alex           79317   0.0  0.4  3020884  14756 s003  S+   12:19AM   0:00.10 node /Users/alex/.nvm/v0.10.12/bin/phantomjs
alex           79316   0.0  0.4  3020884  14876 s003  S+   12:19AM   0:00.10 node /Users/alex/.nvm/v0.10.12/bin/phantomjs
alex           79315   0.0  0.4  3020884  14812 s003  S+   12:19AM   0:00.10 node /Users/alex/.nvm/v0.10.12/bin/phantomjs
alex           79314   0.0  0.4  3020884  14852 s003  S+   12:19AM   0:00.10 node /Users/alex/.nvm/v0.10.12/bin/phantomjs
alex           79313   0.0  0.4  3020884  14708 s003  S+   12:19AM   0:00.10 node /Users/alex/.nvm/v0.10.12/bin/phantomjs
alex           79312   0.0  0.4  3020884  14852 s003  S+   12:19AM   0:00.10 node /Users/alex/.nvm/v0.10.12/bin/phantomjs
alex           79311   0.0  0.4  3020884  14888 s003  S+   12:19AM   0:00.10 node /Users/alex/.nvm/v0.10.12/bin/phantomjs
alex           79310   0.0  0.4  3020884  14724 s003  S+   12:19AM   0:00.10 node /Users/alex/.nvm/v0.10.12/bin/phantomjs
alex           79309   0.0  0.3  3020884  14668 s003  S+   12:19AM   0:00.10 node /Users/alex/.nvm/v0.10.12/bin/phantomjs
alex           79308   0.0  0.3  3020884  14664 s003  S+   12:19AM   0:00.10 node /Users/alex/.nvm/v0.10.12/bin/phantomjs
alex           79307   0.0  0.3  3020884  14668 s003  S+   12:19AM   0:00.10 node /Users/alex/.nvm/v0.10.12/bin/phantomjs
alex           79306   0.0  0.4  3020884  14888 s003  S+   12:19AM   0:00.10 node /Users/alex/.nvm/v0.10.12/bin/phantomjs
alex           79305   0.0  0.4  3020884  14708 s003  S+   12:19AM   0:00.10 node /Users/alex/.nvm/v0.10.12/bin/phantomjs
alex           79304   0.0  0.4  3020884  14856 s003  S+   12:19AM   0:00.10 node /Users/alex/.nvm/v0.10.12/bin/phantomjs
alex           79303   0.0  0.3  3020884  14668 s003  S+   12:19AM   0:00.10 node /Users/alex/.nvm/v0.10.12/bin/phantomjs
alex           79302   0.0  0.4  3020884  14692 s003  S+   12:19AM   0:00.10 node /Users/alex/.nvm/v0.10.12/bin/phantomjs
alex           79301   0.0  0.3  3020884  14664 s003  S+   12:19AM   0:00.10 node /Users/alex/.nvm/v0.10.12/bin/phantomjs
alex           79300   0.0  0.3  3020884  14676 s003  S+   12:19AM   0:00.10 node /Users/alex/.nvm/v0.10.12/bin/phantomjs
alex           79299   0.0  0.3  3020884  14668 s003  S+   12:19AM   0:00.10 node /Users/alex/.nvm/v0.10.12/bin/phantomjs
alex           79298   0.0  0.4  3020884  14880 s003  S+   12:19AM   0:00.10 node /Users/alex/.nvm/v0.10.12/bin/phantomjs
alex           79297   0.0  0.4  3020884  14724 s003  S+   12:19AM   0:00.10 node /Users/alex/.nvm/v0.10.12/bin/phantomjs
alex           79296   0.0  0.3  3020884  14664 s003  S+   12:19AM   0:00.10 node /Users/alex/.nvm/v0.10.12/bin/phantomjs
alex           79295   0.0  0.4  3020884  14884 s003  S+   12:19AM   0:00.10 node /Users/alex/.nvm/v0.10.12/bin/phantomjs
alex           79294   0.0  0.3  3020884  14668 s003  S+   12:19AM   0:00.10 node /Users/alex/.nvm/v0.10.12/bin/phantomjs
alex           79293   0.0  0.3  3020884  14680 s003  S+   12:19AM   0:00.10 node /Users/alex/.nvm/v0.10.12/bin/phantomjs
alex           79292   0.0  0.3  3012692  14668 s003  S+   12:19AM   0:00.10 node /Users/alex/.nvm/v0.10.12/bin/phantomjs
alex           79291   0.0  0.3  3020884  14676 s003  S+   12:19AM   0:00.10 node /Users/alex/.nvm/v0.10.12/bin/phantomjs
alex           79290   0.0  0.3  3020884  14668 s003  S+   12:19AM   0:00.10 node /Users/alex/.nvm/v0.10.12/bin/phantomjs
alex           79289   0.0  0.4  3020884  14856 s003  S+   12:19AM   0:00.10 node /Users/alex/.nvm/v0.10.12/bin/phantomjs

ouch.

Duplicate issue #73: PhantomJS not executable on Mac OS X in v1.9.1-1
Created: 2013-07-05T01:53:41Z
The "executable" flag is not set in PhantomJS 1.9.1-1 on Mac OS X. This bug causes PhantomJS to fail with an "EACCES" error when run. Node v0.10.6, npm version 1.2.18. Not tried on any other OS.
It does work properly in 1.9.1-0.
Steps to reproduce:

Create empty directory and cd into it.
npm install phantomjs@1.9.1-1
ls -l node_modules/phantomjs/lib/phantom/bin/phantomjs

Expected behavior: Permissions field containing execute flag: -rwxr-xr-x
Actual behavior: Permissions field does not contain execute flag: -rw-r--r--
Output when running phantomjs:
$ node_modules/.bin/phantomjs

events.js:72
        throw er; // Unhandled 'error' event
              ^
Error: spawn EACCES
    at errnoException (child_process.js:980:11)
    at Process.ChildProcess._handle.onexit (child_process.js:771:34)

Closing comment (2013-07-09T22:38:12Z): This is a duplicate of #71, the solution right now is to revert to 1.9.1.0.