[分享](2008.01.18日升级) 出现 X Window System error(19号的更新解决问题)

系统安装、升级讨论
版面规则
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
回复
头像
qianjigui
帖子: 221
注册时间: 2007-06-26 23:50
来自: WHU
联系:

[分享](2008.01.18日升级) 出现 X Window System error(19号的更新解决问题)

#1

帖子 qianjigui » 2008-01-19 0:01

更新libxfont1和xserver-xorg-core後
运行部分程序出现 X Window System error

程序错误现象:在非终端中启动时,可能会等待一段时间,然后自动关闭了。
在终端下运行时有类似这样的错误提示:

代码: 全选

The program 'xxxxxxx' received an X Window System error.
This probably reflects a bug in the program.
The error was 'BadAlloc (insufficient resources for operation)'.
(Details: serial 416 error_code 11 request_code 148 minor_code 5)
(Note to programmers: normally, X errors are reported asynchronously;
that is, you will receive the error a while after causing it.
To debug your program, run it with the --sync command line
option to change this behavior. You can then get a meaningful
backtrace from your debugger if you break on the gdk_x_error() function.)
解决方案:
a.在/etc/X11/xorg.conf里面加上

代码: 全选

#solve the debian package-maintainer error
Section "Extensions"
        Option "MIT-SHM" "no"
EndSection 
b.继续更新
2008.01.19的更新解决了这个内存泄露的bug,不过还是希望大家在这次错误中学到一些东西,建议详细了解一下xorg.conf的具体配置和一些特殊的参数。从中我们可以更加了解X server支持的东西和一些图形界面显示的属性、知识。

另外补充说明这些东西的意思:
Definition: MIT-SHM: A MIT shared-memory Ximage ef {X extension}. It provides both shared memory XImages and shared memory pixmaps based on the SYSV shared memory primitives.
MIT-SHM扩展是XFree86提供System V共享X进程内存的程序,Caldera OpenLinux 3.1和3.1.1已经带有这个程序,而4.1-12已经支持这个共享内存机制。
上次由 qianjigui 在 2008-01-20 0:15,总共编辑 2 次。
kingpin
帖子: 263
注册时间: 2007-11-03 16:37

#2

帖子 kingpin » 2008-01-19 16:06

加了那段句后,mplayer每次都有出错提示,有更好的解决办法吗?谢谢
头像
qianjigui
帖子: 221
注册时间: 2007-06-26 23:50
来自: WHU
联系:

#3

帖子 qianjigui » 2008-01-19 18:30

这个我也遇到了,网上还有一个比较复杂的解决方案,但是我没有测试过。刚刚又去搜了一下,不过忘了在哪里了。
希望有兴趣的朋友再去搜一下,希望能看到更好的解决方案。
谢谢.
kingpin
帖子: 263
注册时间: 2007-11-03 16:37

#4

帖子 kingpin » 2008-01-19 20:03

已有更新了,更新到xserver-xorg-core (2:1.3.0.0.dfsg-12ubuntu8.1)一切解决!
头像
qianjigui
帖子: 221
注册时间: 2007-06-26 23:50
来自: WHU
联系:

#5

帖子 qianjigui » 2008-01-19 20:40

谢谢
回复