{"action":"opened","issue":{"url":"https://api.github.com/repos/martende/gemini/issues/2","repository_url":"https://api.github.com/repos/martende/gemini","labels_url":"https://api.github.com/repos/martende/gemini/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/martende/gemini/issues/2/comments","events_url":"https://api.github.com/repos/martende/gemini/issues/2/events","html_url":"https://github.com/martende/gemini/issues/2","id":176659444,"number":2,"title":"Example not working","user":{"login":"sscarduzio","id":1327189,"avatar_url":"https://avatars.githubusercontent.com/u/1327189?v=3","gravatar_id":"","url":"https://api.github.com/users/sscarduzio","html_url":"https://github.com/sscarduzio","followers_url":"https://api.github.com/users/sscarduzio/followers","following_url":"https://api.github.com/users/sscarduzio/following{/other_user}","gists_url":"https://api.github.com/users/sscarduzio/gists{/gist_id}","starred_url":"https://api.github.com/users/sscarduzio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sscarduzio/subscriptions","organizations_url":"https://api.github.com/users/sscarduzio/orgs","repos_url":"https://api.github.com/users/sscarduzio/repos","events_url":"https://api.github.com/users/sscarduzio/events{/privacy}","received_events_url":"https://api.github.com/users/sscarduzio/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-09-13T14:42:16Z","updated_at":"2016-09-13T14:42:16Z","closed_at":null,"body":"Not sure if it's  because I'm using a more recent phantomjs binary, but this:\r\n```scala\r\nimport akka.gemini.PhantomExecutor\r\nimport akka.actor.ActorSystem\r\nimport scala.concurrent.duration._\r\n\r\nobject Hi extends App {\r\n    implicit val system = ActorSystem(\"MySystem\")\r\n    PhantomExecutor.initEnvironment\r\n\r\n    val p = PhantomExecutor(isDebug=true)\r\n\r\n\r\n    scala.concurrent.Await.result({\r\n      p.open(\"https://www.google.com\")\r\n    },10 seconds)\r\n\r\n    p.render(\"screen.png\")\r\n    p.close()\r\n\r\n    println(\"Screenshot screen.png done.\")\r\n    system.shutdown()\r\n\r\n}\r\n```\r\n\r\nUsing this\r\n```hocon\r\nphantom {\r\n  // Path to binary phantomjs file - this repo produces 64bit compiled for ubuntu jessie bin\r\n  // bin/phantomjs: ELF 64-bit LSB  executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.18, BuildID[sha1]=6d1ee78f9e4370d6a33ebcb2cf989be26d4961e5, not stripped\r\n\r\n  bin = \"/usr/local/bin/phantomjs\"\r\n  // Some Extra args for phantomjs\r\n  //args  =[\"--proxy=127.0.0.1:3128\"]\r\n  args = []\r\n}\r\n```\r\n\r\nthrows this:\r\n\r\n```\r\n[INFO] [09/13/2016 16:40:50.878] [MySystem-akka.actor.default-dispatcher-2] [akka://MySystem/user/PhantomExecutor-1] OpenUrl 'https://www.google.com'\r\nException in thread \"main\" java.util.concurrent.TimeoutException: Futures timed out after [10 seconds]\r\n\tat scala.concurrent.impl.Promise$DefaultPromise.ready(Promise.scala:219)\r\n\tat scala.concurrent.impl.Promise$DefaultPromise.result(Promise.scala:223)\r\n\tat scala.concurrent.Await$$anonfun$result$1.apply(package.scala:190)\r\n\tat scala.concurrent.BlockContext$DefaultBlockContext$.blockOn(BlockContext.scala:53)\r\n\tat scala.concurrent.Await$.result(package.scala:190)\r\n\tat Hi$.delayedEndpoint$Hi$1(Main.scala:15)\r\n\tat Hi$delayedInit$body.apply(Main.scala:8)\r\n\tat scala.Function0$class.apply$mcV$sp(Function0.scala:34)\r\n\tat scala.runtime.AbstractFunction0.apply$mcV$sp(AbstractFunction0.scala:12)\r\n\tat scala.App$$anonfun$main$1.apply(App.scala:76)\r\n\tat scala.App$$anonfun$main$1.apply(App.scala:76)\r\n\tat scala.collection.immutable.List.foreach(List.scala:381)\r\n\tat scala.collection.generic.TraversableForwarder$class.foreach(TraversableForwarder.scala:35)\r\n\tat scala.App$class.main(App.scala:76)\r\n\tat Hi$.main(Main.scala:8)\r\n\tat Hi.main(Main.scala)\r\n\tat sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\r\n\tat sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)\r\n\tat sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\r\n\tat java.lang.reflect.Method.invoke(Method.java:498)\r\n\tat com.intellij.rt.execution.application.AppMain.main(AppMain.java:147)\r\n```\r\n\r\nWhat version of phantomjs did you test this with? "}}
{"actor":{"display_login":"sscarduzio"}}