flathub / flathub/com.visualstudio.code

vscode fails when trying to open file or folder

オープン
#175 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
Shell
スター
217
フォーク
82
平均マージ
1日 7時間
マージ済み PR(30日)
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 ローダーのパスと GTK アイコンテーマのエラーを snap の環境と比較します。ファイル、フォルダー、Help > About を開いてもクラッシュしなくなれば完了です。

索引モデルが issue の本文から書いたものです。

評価

領域
desktop
issue の種類
バグ
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
説明が足りない
初心者へのやさしさ
25/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。