CasperJS with Slimerjs - Xlib: the extension "RANDR" is not displayed on the display ": 99"

I am trying to run Casperjs with Slimerjs

  • I installed SlimerJS 0.10.2
  • I installed Mozilla Firefox 45.5.1 (also tried with 50)
  • I installed CasperJS 1.1.3
  • I installed xvfb 1.17.4

Launch on Centos 6.8

When I try to run casperjs + slimerjs from php, I get:

Gecko error: it seems /usr/bin/firefox is not compatible with SlimerJS. See Gecko version compatibility. If version is correct, launch slimerjs with --debug=true to see Firefox error message 

When I try to run a script from the console with debug = true, for example: /usr/local/bin/casperjs /tmp/casperjs-5cn484 --debug=true --engine=slimerjs (I also tried with xvfb-run )

I get this error:

 Xlib: extension "RANDR" missing on display ":99". process 5588: D-Bus library appears to be incorrectly set up; failed to read machine uuid: Failed to open "/var/lib/dbus/machine-id": No such file or directory See the manual page for dbus-uuidgen to correct this issue. D-Bus not built with -rdynamic so unable to print a backtrace Redirecting call to abort() to mozalloc_abort /usr/lib/node_modules/slimerjs/src/slimerjs: line 167: 5588 Segmentation fault "$SLIMERJSLAUNCHER" -app "$SLIMERDIR/application.ini" $PROFILE -no-remote " $@ " 

If I run slimerjs --debug=true , I get:

Error: cannot open display: :1.1 Gecko error: it seems /usr/bin/firefox is not compatible with SlimerJS. See Gecko version compatibility. If version is correct, launch slimerjs with --debug=true to see Firefox error message

I have already tried many solutions, for example:

  • : Xvfb :1 -screen 0 1024x768x24 +extension RANDR & and export DISPLAY=:1 (from: 99 too)
  • tried export LD_LIBRARY_PATH=/usr/lib/x86_64-linux-gnu/
  • update firefox version
  • check if there are fonts, there is one, so no problem

I don't know what I'm trying, some suggestions? :)

+6
source share
2 answers

In any case, I start the installation of the dbus package and with the command:

 dbus-uuidgen > /var/lib/dbus/machine-id 

Xlib: extension "RANDR" missing on display ":99" not a big problem ...

from: http://www.torkwrench.com/2011/12/16/d-bus-library-appears-to-be-incorrectly-set-up- failed machine-readable UUID-failed opening-varlibdbusmachine-id /

0
source

Have you seen this problem ? Obviously you should:

Change the maximum version in src / application.ini MaxVersion = 45. *

I'm not sure about the xrandr error, but it seems to be disconnected. May be the result of experiments or red herring.

There is also a DBUS error that can cause a subsequent segmentation error.

I suggest you try it step by step:

  • see firefox working
    • Forwarding X can help here, it will lead to a local remote firefox window
  • make sure firefox is running without sound
  • check with slimerjs
  • check with your shell php script
-one
source

Source: https://habr.com/ru/post/1013138/


All Articles