Hi Offray, On 15 November 2017 at 00:18, Offray Vladimir Luna Cárdenas <offray.l...@mutabit.com> wrote: > Hi Alistair, > > The example is not working for me. When I run it, a chrome session is > open but nothing happens there, except that my image gets frozen until I > close chrome and then I get this message: "ConnectionTimedOut: Cannot > connect to 127.0.0.1:9222". What is the expected behavior?
I'm not sure why this is happening. Chrome only allows one instance per profile to be running, however the example should be creating its own profile (which is what is done when GoogleChrome>>debugSession is sent). Can you check that the profile directory is being created: /tmp/pharo/GoogleChrome/debugSession/ Also, you should have several processes running, similar to: alistair 11001 6953 3 07:34 pts/19 00:00:57 /opt/google/chrome/chrome --user-data-dir=/tmp/pharo/GoogleChrome/debugSession --remote-debugging-port=9222 alistair 11005 11001 0 07:34 pts/19 00:00:00 /opt/google/chrome/chrome --type=zygote --enable-crash-reporter=9472c7b5-b817-49a9-a2df-266ef87a1707,unknown --user-data-dir=/tmp/pharo/GoogleChrome/debugSession alistair 11009 11005 0 07:34 pts/19 00:00:00 /opt/google/chrome/chrome --type=zygote --enable-crash-reporter=9472c7b5-b817-49a9-a2df-266ef87a1707,unknown --user-data-dir=/tmp/pharo/GoogleChrome/debugSession alistair 11193 11009 6 07:35 pts/19 00:01:51 /opt/google/chrome/chrome --type=renderer --field-trial-handle=13786453131923986905,2801831905294320914,131072 --service-pipe-token=4E2DA31A2AA7D6D8585A99928CABF01B --lang=en-GB --enable-crash-reporter=9472c7b5-b817-49a9-a2df-266ef87a1707,unknown --user-data-dir=/tmp/pharo/GoogleChrome/debugSession --enable-offline-auto-reload --enable-offline-auto-reload-visible-only --enable-pinch --num-raster-threads=2 --enable-main-frame-before-activation --content-image-texture-target=(lots of numbers removed) You can see that the first process has the separate profile (--user-data-dir) and remote debugging enabled. The last process listed above is the one rendering the page (I ran GoogleChrome class>>exampleNavigation to get this). Maybe as a last resort you could try ensuring that no other instances of chrome are running before you try the example. > PharoChrome > expects the user to have a Google account or be logged in by default to > work (that would be a shame for those of us that don't a Google account > and still value our privacy). No, by default it won't be logged in (since it is creating a separate profile). Thanks, Alistair > Thanks, > > Offray