ubuntu 11.10关闭gvim时总有

问题:

在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中很干净,没有出现以前的错误提示。

问题解决。



原文地址:https://www.cnblogs.com/java20130726/p/3218556.html