flathub / flathub/com.visualstudio.code

vscode fails when trying to open file or folder

未关闭
#175 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
Shell
星标
217
派生
82
平均合并
1 天 7 小时
30 天内合并 PR
1

描述

I've installed the snap version of code insiders on opensuse Tumbleweed. code dies when trying to open a file or folder. It also dies when trying to open help | about. I see that this error has been addressed in the past and handled and closed, but I'm getting the error now with a fresh install. This also happens when I disable extensions. Thank you.

Here is the output of code --verbose (I don't have /usr/lib/x86_64 and the command gdk-pixbuf-query-loaders doesn't exist.)

[main 2020-08-22T18:34:19.616Z] menubar#runActionInRenderer { type: 'commandId', commandId: 'workbench.action.files.openFolder' }
[11600:0822/143419.620950:INFO:CONSOLE(1679)] "%cTRACE color: #888 CommandService#executeCommand workbench.action.files.openFolder", source: file:///snap/code/40/usr/share/code/resources/app/out/vs/workbench/workbench.desktop.main.js (1679)
(code:11600): GdkPixbuf-WARNING **: 14:34:19.649: Cannot open pixbuf loader module file '/usr/lib/x86_64-linux-gnu/gdk-pixbuf-2.0/2.10.0/loaders.cache': No such file or directory

This likely means that your installation is broken.
Try running the command
gdk-pixbuf-query-loaders > /usr/lib/x86_64-linux-gnu/gdk-pixbuf-2.0/2.10.0/loaders.cache
to make things work again for the time being.

(code:11600): Gtk-WARNING **: 14:34:19.649: Could not load a pixbuf from icon theme.
This may indicate that pixbuf loaders or the mime database could not be found.
(code:11600): GdkPixbuf-WARNING **: 14:34:19.649: Cannot open pixbuf loader module file '/usr/lib/x86_64-linux-gnu/gdk-pixbuf-2.0/2.10.0/loaders.cache': No such file or directory

This likely means that your installation is broken.
Try running the command
gdk-pixbuf-query-loaders > /usr/lib/x86_64-linux-gnu/gdk-pixbuf-2.0/2.10.0/loaders.cache
to make things work again for the time being.
**
Gtk:ERROR:/build/gtk+3.0-24RAPQ/gtk+3.0-3.22.24/./gtk/gtkiconhelper.c:493:ensure_surface_for_gicon: assertion failed: (destination)
Server response: {"status":"Success","validDiagnostic
js@hp-suse-laptop:~$

贡献指南

这个仓库没有索引到贡献指南

调研方向

首先,在 openSUSE Tumbleweed 上使用通过 snap 安装的 Code Insiders 构建版本重现该故障,并运行 `code --verbose`。将缺失的 gdk-pixbuf loader 路径和 GTK 图标主题错误与 snap 的环境进行比较;当打开文件、文件夹和 Help > About 不再崩溃时,即表示完成。

由索引模型根据 Issue 内容生成。

评估

领域
desktop
Issue 类型
缺陷
难度
4/5
预计耗时
3-5 天
活跃度
停滞
描述清晰度
需要澄清
新手友好度
25/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。