运行程序时,会返回缺少的扩展名RANDR
# xvfb-run ./a.out
Xlib: extension "RANDR" missing on display ":99".发布于 2016-04-13 10:20:19
这只是一个警告。如果您检查xvfb正在写入的文件,您将看到它实际上正在工作。我自己也经历过这个问题。
发布于 2016-04-13 17:42:54
Xvfb不支持旋转或调整大小。除非您的应用程序确实需要使用Xrandr扩展,否则该警告是无害的:
$ xvfb-run -a xdpyinfo | sed '/^$/q'; echo $?
name of display: :99
version number: 11.0
vendor string: The X.Org Foundation
vendor release number: 11501000
X.Org version: 1.15.1
maximum request size: 16777212 bytes
motion buffer size: 256
bitmap unit, bit order, padding: 32, LSBFirst, 32
image byte order: LSBFirst
number of supported pixmap formats: 6
supported pixmap formats:
depth 1, bits_per_pixel 1, scanline_pad 32
depth 4, bits_per_pixel 8, scanline_pad 32
depth 8, bits_per_pixel 8, scanline_pad 32
depth 16, bits_per_pixel 16, scanline_pad 32
depth 24, bits_per_pixel 32, scanline_pad 32
depth 32, bits_per_pixel 32, scanline_pad 32
keycode range: minimum 8, maximum 255
focus: PointerRoot
number of extensions: 23
BIG-REQUESTS
DAMAGE
DOUBLE-BUFFER
DPMS
DRI3
GLX
Generic Event Extension
MIT-SCREEN-SAVER
MIT-SHM
Present
RECORD
RENDER
SECURITY
SGI-GLX
SHAPE
SYNC
X-Resource
XC-MISC
XFIXES
XInputExtension
XKEYBOARD
XTEST
XVideo
default screen number: 0
number of screens: 1
0$ xvfb-run -a xrandr; echo $?
RandR extension missing
1https://stackoverflow.com/questions/34192228
复制相似问题