I'm building a node application that creates a virtual browser (in docker) by streaming firefox window using xvfb, openbox and ffmpeg through WRTC. I'm using a docker container node:12.14-slim with the bare minimum installed on it.

I'm currently spawning (with shell) xdotool - with the DISPLAY variable in the environment and sending commands to the stdin of the spawn.

I keep running into an issue where xdotool will quit. The output shows:

debug [xdotool](824): stdin mousemove 1013 308
debug [xdotool](824): stdin mousemove 1014 308
debug [xdotool](824): stdin mousemove 1015 308
debug [xdotool](824): stdin mousemove 1015 308
debug [xdotool](824): stdin mousedown 1
debug [xdotool](824): stderr X Error of failed request:  BadValue (integer parameter out of range for operation)
  Major opcode of failed request:  132 (XTEST)
  Minor opcode of failed request:  2 (X_XTestFakeInput)
  Value in failed request:  0x0
  Serial number of failed request:  3426
  Current serial number in output stream:  3427

debug [xvfb](717): stderr AUDIT: Sat Jan  4 23:13:57 2020: 718: client 2 disconnected

debug [xdotool](824): exited (1) null
debug [xdotool](824): exited (1) null

I'm not an expert by any means, I'm not sure if this is a xdotool problem or an X problem, any help would be much appreciated.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.