ubuntu 11.10关闭gvim时总有

本文介绍了一个在Ubuntu 11.10环境下使用gvim时遇到的问题:关闭文件时出现警告提示。通过移除fcitx-frontend-gtk2软件包解决了这一问题。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

问题:

在ubuntu 11.10下,利用gvim打开文件时不出错,但是关闭文件时总要出现6、7行的错误提示如下:

(gvim:28478): Gdk-WARNING **: Using Cairo rendering requires the drawable argument to
have a specified colormap. All windows have a colormap,
however, pixmaps only have colormap by default if they
were created with a non-NULL window argument. Otherwise
a colormap must be set on them with gdk_drawable_set_colormap

(gvim:28478): Gdk-CRITICAL **: IA__gdk_cairo_region: assertion `region != NULL' failed

(gvim:28478): Gdk-CRITICAL **: IA__gdk_cairo_region: assertion `region != NULL' failed
如果打开的文件不是一个而是N个,那么就会有N次上述错误提示。

真实让人看了很心烦啊。


解决办法:

放狗搜,说是这样的原因:

由于fcitx-frontend-gtk2和gvim冲突造成的错误可以通过sudo apt-get remove fcitx-frontend-gtk2解决。


dingq@u1110-120628:/nfsroot/root422$ sudo apt-get remove fcitx-frontend-gtk2
[sudo] password for dingq: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages will be REMOVED:
  fcitx-frontend-gtk2
0 upgraded, 0 newly installed, 1 to remove and 25 not upgraded.
After this operation, 94.2 kB disk space will be freed.
Do you want to continue [Y/n]? Y
(Reading database ... 235967 files and directories currently installed.)
Removing fcitx-frontend-gtk2 ...
Processing triggers for libgtk2.0-0 ...
Cannot load module /usr/lib/gtk-2.0/2.10.0/immodules/*.so: /usr/lib/gtk-2.0/2.10.0/immodules/*.so: cannot open shared object file: No such file or directory
/usr/lib/gtk-2.0/2.10.0/immodules/*.so does not export GTK+ IM module API: /usr/lib/gtk-2.0/2.10.0/immodules/*.so: cannot open shared object file: No such file or director

实验一下:

dingq@u1110-120628:/nfsroot/root422$ gvim etc/inittab 
dingq@u1110-120628:/nfsroot/root422$
先用gvim打开文件,再关闭,可以看到terminal中很干净,没有出现以前的错误提示。

问题解决。



评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值