2016-12-13 9 views
6

나는CasperJS - Xlib를 : 확장 "RANDR"디스플레이 누락 "99"

    내가 SlimerJS 0.10.2
  • 내가 모질라 파이어 폭스 설치를 설치
  • Slimerjs와 Casperjs를 실행하려고 45.5.1는
  • 내가 설치 한 CasperJS 1.1.3 내가 설치 한
  • Xvfb가 1.17.4
을 (도 50 시도) PHP에서 casperjs + slimerjs을 실행하려고 할 때를 CentOS 6.8

에서 실행 0

내가 얻을 : /usr/local/bin/casperjs /tmp/casperjs-5cn484 --debug=true --engine=slimerjs (I :

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 

내가 디버그 = 사실 등으로 콘솔에서 스크립트를 실행하려고 할 때

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 "[email protected]" 

: 너무 xvfb-run)

과 노력이 오류를 얻을 수 내가 slimerjs --debug=true를 실행하면, 내가 얻을 : 시도

  • : Xvfb :1 -screen 0 1024x768x24 +extension RANDR &export DISPLAY=:1 (로 : 99도)
  • export LD_LIBRARY_PATH=/usr/lib/x86_64-linux-gnu/
  • 을 시도

    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

    가 이미 같은 솔루션을 많이 시도

  • 업그레이드 다운 그레이드 파이어 폭스 버전
  • 글꼴이 있는지 확인하십시오. 네, 그래서 아무 문제가 없습니다

나는 더 이상 무엇을하고 있는지, 몇 가지 제안을 모르십니까? :)

+0

'pkill [X, x] vfb; pkill nw; Xvfb : 1 -screen 1 1440x900x24>/dev/null 2> & 1 &' –

+0

export DISPLAY = : 1.1' –

+1

이것은이 문제를 해결했을 것으로 보이지만 그렇지 않습니다. 다른 제안? 자세한 내용으로 수정 됨 – Apoleo

답변

-1

this issue을 보았습니까? 분명히 당신은해야합니다

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

나는 xrandr를 오류에 대해 확실하지 않다하지만 관련이없는 것 같다. 실험이나 붉은 청어의 결과 일 수 있습니다.

DBUS 오류로 인해 후속 세그먼트 오류가 발생할 수 있습니다.

  • 가 원격 파이어 폭스 창 로컬
를 가져올 것입니다, 파이어 폭스
  • X forwarding 여기에 도움이 될 작동하고 있음을 참조하십시오

    나는 당신이 그것을 단계적으로 확인하려고 제안

  • 파이어 폭스가 헤드리스로 작동하는지 확인하십시오.
  • 검사를 생성 할 수
  • 당신의 PHP 래퍼 스크립트를
  • 체크 어쨌든 나는 그것을하고 COMAND와 DBUS 패키지를 설치하는 실행 얻을
+0

이미 버전 문제를 확인했습니다. 매우 오래된 것으로, 기본값은 이미 50입니다. * – Apoleo