Console window popup when using phantomjs/pm2 in Windows #14721

jmartindivmedianet opened this Issue Dec 28, 2016 · 0 comments


None yet

1 participant

jmartindivmedianet commented Dec 28, 2016 edited
  1. Which version of PhantomJS are you using?
    Looks like 2.1.0 (being loaded by 'webshot').

  2. What steps will reproduce the problem?
    Set up a node server to call 'webshot' (or any other screenshotting package that uses phantomjs) either once or on a periodic basis.
    Start your node server with pm2.

  3. Which operating system are you using?
    Windows 7 Professional

  4. Did you use binary PhantomJS or did you compile it from source?
    It's being loaded inside another package (currently 'webshot', but you'll see the same results with node-horseman, url-to-screenshot, etc.)

  5. Please provide any additional information below.
    So starting up one's one node server and calling phantomjs directly or from another package is perfectly smooth. Once you start up your server with pm2, every call to phantomjs pops up a black console window that steals focus until it disappears.

This is NOT a 'bug' per se... I'm just hoping to get some help to understand (and I imagine the reason is simple) what about phantomjs makes it run in the foreground when it gets spawned by a server running under pm2.

Thanks a lot.

@jmartindivmedianet jmartindivmedianet changed the title from Console window popup when using pm2 in Windows to Console window popup when using phantomjs/pm2 in Windows Dec 29, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment