{"action":"closed","issue":{"url":"https://api.github.com/repos/jruby/jruby/issues/2598","labels_url":"https://api.github.com/repos/jruby/jruby/issues/2598/labels{/name}","comments_url":"https://api.github.com/repos/jruby/jruby/issues/2598/comments","events_url":"https://api.github.com/repos/jruby/jruby/issues/2598/events","html_url":"https://github.com/jruby/jruby/issues/2598","id":57687908,"number":2598,"title":"Unknown error in child-process gem when trying to open phantomjs browser in webdriver when running on jruby","user":{"login":"Chuckv","id":1170216,"avatar_url":"https://avatars.githubusercontent.com/u/1170216?v=3","gravatar_id":"","url":"https://api.github.com/users/Chuckv","html_url":"https://github.com/Chuckv","followers_url":"https://api.github.com/users/Chuckv/followers","following_url":"https://api.github.com/users/Chuckv/following{/other_user}","gists_url":"https://api.github.com/users/Chuckv/gists{/gist_id}","starred_url":"https://api.github.com/users/Chuckv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Chuckv/subscriptions","organizations_url":"https://api.github.com/users/Chuckv/orgs","repos_url":"https://api.github.com/users/Chuckv/repos","events_url":"https://api.github.com/users/Chuckv/events{/privacy}","received_events_url":"https://api.github.com/users/Chuckv/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/jruby/jruby/labels/core","name":"core","color":"02e10c"},{"url":"https://api.github.com/repos/jruby/jruby/labels/JRuby%201.7.x","name":"JRuby 1.7.x","color":"eb6420"},{"url":"https://api.github.com/repos/jruby/jruby/labels/windows","name":"windows","color":"0b02e1"}],"state":"closed","locked":false,"assignee":{"login":"headius","id":10135,"avatar_url":"https://avatars.githubusercontent.com/u/10135?v=3","gravatar_id":"","url":"https://api.github.com/users/headius","html_url":"https://github.com/headius","followers_url":"https://api.github.com/users/headius/followers","following_url":"https://api.github.com/users/headius/following{/other_user}","gists_url":"https://api.github.com/users/headius/gists{/gist_id}","starred_url":"https://api.github.com/users/headius/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/headius/subscriptions","organizations_url":"https://api.github.com/users/headius/orgs","repos_url":"https://api.github.com/users/headius/repos","events_url":"https://api.github.com/users/headius/events{/privacy}","received_events_url":"https://api.github.com/users/headius/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/jruby/jruby/milestones/32","labels_url":"https://api.github.com/repos/jruby/jruby/milestones/32/labels","id":944306,"number":32,"title":"9.0.0.0.pre2","description":"","creator":{"login":"enebo","id":19819,"avatar_url":"https://avatars.githubusercontent.com/u/19819?v=3","gravatar_id":"","url":"https://api.github.com/users/enebo","html_url":"https://github.com/enebo","followers_url":"https://api.github.com/users/enebo/followers","following_url":"https://api.github.com/users/enebo/following{/other_user}","gists_url":"https://api.github.com/users/enebo/gists{/gist_id}","starred_url":"https://api.github.com/users/enebo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/enebo/subscriptions","organizations_url":"https://api.github.com/users/enebo/orgs","repos_url":"https://api.github.com/users/enebo/repos","events_url":"https://api.github.com/users/enebo/events{/privacy}","received_events_url":"https://api.github.com/users/enebo/received_events","type":"User","site_admin":false},"open_issues":16,"closed_issues":36,"state":"open","created_at":"2015-01-20T21:46:46Z","updated_at":"2015-02-24T18:20:28Z","due_on":null,"closed_at":null},"comments":19,"created_at":"2015-02-14T09:43:44Z","updated_at":"2015-02-24T18:20:27Z","closed_at":"2015-02-24T18:20:27Z","body":"Originally reported at http://stackoverflow.com/q/23279945/409820 by a fellow using webdriver via watir-webdriver on windows 7.  I was able to duplicate on windows 8 with both jruby 1.7.19 and 9.0.0.0.pre1.  OTOH the two lines of IRB code below work just fine on Ruby 1.9.3, Ruby 2.0.0 and Ruby 2.1.5.  Only using jruby seems to cause a problem. \r\n\r\nRepro:  (using watir-webdriver because frankly the repo steps are simpler and cleaner)\r\n\r\n1) download phantomJS executable from http://phantomjs.org/download.html and place in directory on path.\r\n2) gem install watir-webdriver\r\n3) In irb issue the following two commands:\r\n\r\n    require 'watir-webdriver'\r\n    b = Watir::Browser.new :phantomJS\r\n\r\nExpected: will get a response such as \r\n\r\n    #<Watir::Browser:0x5a596fa8 url=\"about:blank\" title=\"\">\r\n\r\nindicating webdriver has started a phantomjs browser session from which watir-webdriver creates a browser object  (to see that the browser object works you could then do `b.goto \"google.com\"` followed by `puts b.title` which ought to return 'Google') \r\n\r\nActual: 'unknown error' with a stack trace as follows\r\n\r\n    C:\\Rubies>irb\r\n    io/console not supported; tty will not be manipulated\r\n    irb(main):001:0> require 'watir-webdriver'\r\n    => true\r\n    irb(main):002:0> b = Watir::Browser.new :phantomjs\r\n    ChildProcess::Error: Unknown error (Windows says \"The operation completed successfully.\", but it did not.)\r\n        from C:/Rubies/jruby-1.7.19/lib/ruby/gems/shared/gems/childprocess-0.5.5/lib/childprocess/windows/lib.rb:325:in `handle_for'\r\n        from C:/Rubies/jruby-1.7.19/lib/ruby/gems/shared/gems/childprocess-0.5.5/lib/childprocess/jruby.rb:48:in `windows_handle_for'\r\n        from C:/Rubies/jruby-1.7.19/lib/ruby/gems/shared/gems/childprocess-0.5.5/lib/childprocess/windows/lib.rb:306:in `handle_for'\r\n        from C:/Rubies/jruby-1.7.19/lib/ruby/gems/shared/gems/childprocess-0.5.5/lib/childprocess/windows/process_builder.rb:137:in `std_stream_handle_for'\r\n        from C:/Rubies/jruby-1.7.19/lib/ruby/gems/shared/gems/childprocess-0.5.5/lib/childprocess/windows/process_builder.rb:109:in `setup_io'\r\n        from C:/Rubies/jruby-1.7.19/lib/ruby/gems/shared/gems/childprocess-0.5.5/lib/childprocess/windows/process_builder.rb:32:in `start'\r\n        from C:/Rubies/jruby-1.7.19/lib/ruby/gems/shared/gems/childprocess-0.5.5/lib/childprocess/windows/process.rb:68:in `launch_process'\r\n        from C:/Rubies/jruby-1.7.19/lib/ruby/gems/shared/gems/childprocess-0.5.5/lib/childprocess/abstract_process.rb:82:in `start'\r\n        from C:/Rubies/jruby-1.7.19/lib/ruby/gems/shared/gems/selenium-webdriver-2.44.0/lib/selenium/webdriver/phantomjs/service.rb:42:in `start'\r\n        from C:/Rubies/jruby-1.7.19/lib/ruby/gems/shared/gems/selenium-webdriver-2.44.0/lib/selenium/webdriver/phantomjs/bridge.rb:20:in `initialize'\r\n        from C:/Rubies/jruby-1.7.19/lib/ruby/gems/shared/gems/selenium-webdriver-2.44.0/lib/selenium/webdriver/common/driver.rb:45:in `for'\r\n        from C:/Rubies/jruby-1.7.19/lib/ruby/gems/shared/gems/selenium-webdriver-2.44.0/lib/selenium/webdriver.rb:67:in `for'\r\n        from C:/Rubies/jruby-1.7.19/lib/ruby/gems/shared/gems/watir-webdriver-0.6.11/lib/watir-webdriver/browser.rb:46:in `initialize'\r\n        from (irb):2:in `evaluate'\r\n        from org/jruby/RubyKernel.java:1107:in `eval'\r\n        from org/jruby/RubyKernel.java:1507:in `loop'\r\n        from org/jruby/RubyKernel.java:1270:in `catch'\r\n        from org/jruby/RubyKernel.java:1270:in `catch'\r\n        from C:/Rubies/jruby-1.7.19/bin/jirb:13:in `(root)'irb(main):003:0> exit"}}