升级到 ubuntu 16.04 后,Eclipse 非常缓慢(几乎无法使用)
Eclipse is extremely laggy (almost unusable) after upgrading to ubuntu 16.04
升级ubuntu到16.04后eclipse问题严重,几乎无法使用。
问题是:
- 正在加载菜单,但功能不全;
- 子菜单不起作用;
- 删除项目导致挂起和无限进度条显示;
- 正在更新、安装新软件,...无法正常工作;
- 打开后右侧的首选项菜单保持不变
在首选项子菜单中选择了哪个选项;
- 无法连接到更新站点;
- 等等...
在终端中清楚地显示了关于 pixman_region32:
的错误信息
*** BUG ***
In pixman_region32_init_rect: Invalid rectangle passed
Set a breakpoint on '_pixman_log_error' to debug
解决方案是什么(除了报告错误之外)?
根据早期版本Ubuntu和eclipse的changes in Ubuntu 16.04 and installation manual from eclipse - (I am suggesting this document for reading, at least I got an idea from there), known problems and solutions,我意识到再次传递env存在主要问题,但与以前版本的解决方案略有不同。
解决方案是将 eclipse.desktop 文件中的 Exec 从现有模式更改为新模式,如下所示:
发件人:
Exec=path/to/eclipse/eclipse
收件人:
Exec=env SWT_GTK3=0 path/to/eclipse/eclipse
eclipse.desktop 文件必须如下所示:
[Desktop Entry]
Version=4.3.0
Name=Eclipse
Comment=Java/Android/C++/Python IDE
Exec=env SWT_GTK3=0 /opt/dev/tools/eclipse/eclipse
Icon=/opt/dev/tools/eclipse/icon.xpm
Terminal=false
Type=Application
Categories=Utility;Application
请注意,显示了我到 eclipse.desktop 文件的路径,但我保留它是为了避免对启动文件中的行格式产生误解。您必须根据您当前的需要调整这两行。
另请注意,eclipse.desktop 文件通常位于此处:
/usr/share/applications/
或那里:
~/.local/share/applications/
无论如何,都可以通过运行这个命令轻松定位:
locate .desktop |grep eclipse
升级ubuntu到16.04后eclipse问题严重,几乎无法使用。
问题是:
- 正在加载菜单,但功能不全;
- 子菜单不起作用;
- 删除项目导致挂起和无限进度条显示;
- 正在更新、安装新软件,...无法正常工作;
- 打开后右侧的首选项菜单保持不变 在首选项子菜单中选择了哪个选项;
- 无法连接到更新站点;
- 等等...
在终端中清楚地显示了关于 pixman_region32:
的错误信息*** BUG ***
In pixman_region32_init_rect: Invalid rectangle passed
Set a breakpoint on '_pixman_log_error' to debug
解决方案是什么(除了报告错误之外)?
根据早期版本Ubuntu和eclipse的changes in Ubuntu 16.04 and installation manual from eclipse - (I am suggesting this document for reading, at least I got an idea from there), known problems and solutions,我意识到再次传递env存在主要问题,但与以前版本的解决方案略有不同。
解决方案是将 eclipse.desktop 文件中的 Exec 从现有模式更改为新模式,如下所示:
发件人:
Exec=path/to/eclipse/eclipse
收件人:
Exec=env SWT_GTK3=0 path/to/eclipse/eclipse
eclipse.desktop 文件必须如下所示:
[Desktop Entry]
Version=4.3.0
Name=Eclipse
Comment=Java/Android/C++/Python IDE
Exec=env SWT_GTK3=0 /opt/dev/tools/eclipse/eclipse
Icon=/opt/dev/tools/eclipse/icon.xpm
Terminal=false
Type=Application
Categories=Utility;Application
请注意,显示了我到 eclipse.desktop 文件的路径,但我保留它是为了避免对启动文件中的行格式产生误解。您必须根据您当前的需要调整这两行。
另请注意,eclipse.desktop 文件通常位于此处:
/usr/share/applications/
或那里:
~/.local/share/applications/
无论如何,都可以通过运行这个命令轻松定位:
locate .desktop |grep eclipse