记录扩展的示例代码失败

记录扩展的示例代码失败

本文介绍了Xorg/X11 记录扩展的示例代码失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在编译一个基本示例(就像使用裸 X 可能很简单......)在最新版本的 Ubuntu 上使用 X11 的 RECORD 扩展,我收到以下错误:

I'm compiling a basic example (as much as using bare X could be simple...) using the X11's RECORD extension on the latest version of Ubuntu, and I'm getting the following error:

RECORD extension for local server is version is 1.13
X Error of failed request:  XRecordBadContext
  Major opcode of failed request:  135 (RECORD)
  Minor opcode of failed request:  5 (XRecordEnableContext)
  Context in failed request:  0x17
  Serial number of failed request:  10
  Current serial number in output stream:  10

有什么错误提示吗?

推荐答案

我认为 XRECORD 扩展在当前服务器中已损坏(请参阅 https://bugs.launchpad.net/ubuntu/+source/xorg-server/+bug/315456,虽然我遇到了cnee的问题在修复应该可用的日期之后很久).您可能想尝试在虚拟机中安装较旧的 Linux 发行版并在那里尝试示例代码.

I believe that the XRECORD extension is broken in current servers (see https://bugs.launchpad.net/ubuntu/+source/xorg-server/+bug/315456, although I hit problems with cnee long after the date the fix was supposed to be available). You might want to try installing an older Linux distribution in a virtual machine and giving the sample code a try there.

这篇关于Xorg/X11 记录扩展的示例代码失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-05 06:01