vscode: Snap crashes when native dialogs open
- VSCode Version: 1.47.0 insiders (0913b1aa)
- OS Version: Fedora 32
Steps to Reproduce:
- Go to
Help -> Check for Updates...
orHelp -> About
Nothing happens and then VS Code crashes.
Does this issue occur when all extensions are disabled?: Yes
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Reactions: 42
- Comments: 55 (11 by maintainers)
Commits related to this issue
- avoid modifying pixbuf env related to #100940 — committed to microsoft/vscode by joaomoreno 4 years ago
- snap: do not let GDK_PIXBUF leak out fixes #100940 — committed to microsoft/vscode by joaomoreno 4 years ago
Version: 1.47.0-insider (7923112cdd20575406ec547b55a99c289dd7d7e2) OS version: Linux x64 5.4.43-1-MANJARO snap
This error happens whenever a modal dialog is created. I got this while trying to Git pull, and move files.
Backtrace:
You can work around this by symlinking in the host system the gdk-pixbuf-2.0 folder to the expected Debian/Ubuntu path.
This fixed it for me on Manjaro 20.1 XFCE:
sudo mkdir /usr/lib/x86_64-linux-gnu/ sudo ln -s /usr/lib/gdk-pixbuf-2.0 /usr/lib/x86_64-linux-gnu/gdk-pixbuf-2.0
What the Snap team at MS is doing? This thing has been a problem since forever. Would be nice if someone finally fixes it.
Same here, can reproduce on snap version 1.48.1 - Manjaro Linux.
Running this solved it:
Still need to be fixed though.
Same issue here on Arch, resolved with:
3 months and no fix. Obiviously no one at the Microsoft snsp team, or VS Code team cares about this. It does not affect their “supported distro”. The workaround is obviously to stop using Microsoft created snaps. They don’t care to keep them running. They just want the “appearence” of supporting it.
I’m getting this issue since the June release - and is still present on the July one. Solution was to apply the aforementioned fix https://github.com/microsoft/vscode/issues/100940#issuecomment-651225395 after creating this folder (otherwise symlinking doesn’t work):
Can confirm code was working but now all system dialogs crash code.
The following workaround is available on gentoo: mkdir /usr/lib/x86_64-linux-gnu ln -s /usr/lib64/gdk-pixbuf-2.0 /usr/lib/x86_64-linux-gnu/gdk-pixbuf-2.0
Please fix this microsoft I have been banging my head on this and its very disruptive.
/verified @caponetto
Same issue here on Fedora 32 and VSCode installed using Snap version 17299e41.
It crashes on “Help > About”, “Find & replace”, deleting a folder and some others that I don’t remember right now.
Thank you!!
vscode snap crash
os: manjaro xfce version: e790b931
steps to reproduce: 1- open code 2- try to open a folder
code --verbose output:
[7057:0912/095652.724280:INFO:CONSOLE(1705)] “%cTRACE color: #888 telemetry/views.welcomeAction [object Object]”, source: file:///var/lib/snapd/snap/code/43/usr/share/code/resources/app/out/vs/workbench/workbench.desktop.main.js (1705) [7057:0912/095652.727004:INFO:CONSOLE(1705)] “%cTRACE color: #888 CommandService#executeCommand workbench.action.files.openFolder”, source: file:///var/lib/snapd/snap/code/43/usr/share/code/resources/app/out/vs/workbench/workbench.desktop.main.js (1705) /usr/lib/gio/modules/libgioremote-volume-monitor.so: undefined symbol: g_mount_operation_get_is_tcrypt_system_volume Failed to load module: /usr/lib/gio/modules/libgioremote-volume-monitor.so /usr/lib/gio/modules/libgioremote-volume-monitor.so: undefined symbol: g_mount_operation_get_is_tcrypt_system_volume Failed to load module: /usr/lib/gio/modules/libgioremote-volume-monitor.so (code:7057): GdkPixbuf-WARNING **: 09:56:52.781: 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:7057): Gtk-WARNING **: 09:56:52.781: Could not load a pixbuf from icon theme. This may indicate that pixbuf loaders or the mime database could not be found. (code:7057): GdkPixbuf-WARNING **: 09:56:52.781: 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) /dev/fd/3: No such file or directory Server response:
This bug has been fixed in to the latest release of VS Code Insiders!
@caponetto, you can help us out by confirming things are working as expected in the latest Insiders release. If things look good, please leave a comment with the text
/verified
to let us know. If not, please ensure you’re on version 2d8bbc6976748c4b0c5e84be541674b89b9d91e4 of Insiders (today’s or later - you can useHelp: About
in the command pallete to check), and leave a comment letting us know what isn’t working as expected.Happy Coding!
This issue was reported by many people over one year ago and there is still no official fix from Microsoft team. How is it possible?
Same issue on Manjaro 64, latest stable snap release (91899dce). Crashes on startup as a modal was supposed to open. Works well after reverting to 1.46 (a5d1cc28)
Following this comment I tried the same on Fedora 32:
The error is still persists (not same message though):
Thanks! will let the snap devs take it from here.
This fixed it for me. Same OS and DE
Yes, please Microsoft (or Snap), fix this bug. Thanks. I am on Manjaro KDE running the linux kernel 5.8.1-3
Same here Manjaro KDE plasma
UPDATE:
This given fix worked for me : #100940 (comment) !!
When reproduced:
Go to File > Open Folder
&&Go to File > Save
Help > About
After 5-7 seconds the App crashes
Same with me. Manjaro - snap version. Start crashing after update to 1.47. https://github.com/microsoft/vscode/issues/100940#issuecomment-651225395 works fine.
You can uninstall the old vscode and reinstall the binary package from yum repository to solve this problem.
I use Fedora33 operating system and have a snap environment. Can I do this verification for you?
I see this is marked as September milestone, but no linked PRs. Is this actually being worked on?
For OpenSUSE (Tumbleweed in my case) the correct commands are:
So is this gonna get fixed or nah? I see it slipped out of the August milestone.
The same issue with Arch
VVVVVVVVVVVVVVVVVVVVVVVVVVVVVV This fix works for me: https://github.com/microsoft/vscode/issues/100940#issuecomment-651225395 !!! ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
In the meantime, for those having issues with dialogs in the
snap
install, theflatpak
version works for me: https://flathub.org/apps/details/com.visualstudio.code