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

    问题解决。



  • 相关阅读:
    Request.ServerVariables
    asp.net 枚举
    MSSQL批量替换语句 在SQL SERVER中批量修改替换数据
    由于 ASP.NET 进程标识对全局程序集缓存没有读权限,因此未能执行请求
    mongodb 下载地址,mongodb.dll 下载
    mongodb 常用操作(转)
    mssql 列出数据库中的所有表
    jpg图片在火狐中和ie中格式区别
    Ndo 新版本发布
    消息总线设计系列之 调停者模式
  • 原文地址:https://www.cnblogs.com/java20130726/p/3218556.html
Copyright © 2020-2023  润新知