vscode: Freezes randomly on startup with a libcrypt fatal error

Issue Type: Bug

Visual Studio Code often freezes shortly upon startup with an error message from libgcrypt and then a “detected unresponsive” message seen in the logs, when run in a Flatpak container using org.freedesktop.Sdk/x86_64/19.08 as the runtime.

The following message characterizes the freezy startups:

fatal error in libgcrypt, file ../../src/visibility.c, line 1361, function gcry_create_nonce: called in non-operational state

The container runtime has libgcrypt 1.8.5, and the app filesystem integrates libsecret 0.20.3.

See also investigation in https://github.com/flathub/com.visualstudio.code/issues/159

VS Code version: Code 1.45.1 (5763d909d5f12fe19f215cbfdd29a91c0fa9208a, 2020-05-14T08:27:22.494Z) OS version: Linux x64 5.6.16-300.fc32.x86_64

System Info
Item Value
CPUs Intel® Core™ i7-8565U CPU @ 1.80GHz (8 x 3436)
GPU Status 2d_canvas: enabled
flash_3d: enabled
flash_stage3d: enabled
flash_stage3d_baseline: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
oop_rasterization: disabled_off
protected_video_decode: unavailable_off
rasterization: disabled_software
skia_renderer: disabled_off_ok
video_decode: unavailable_off
viz_display_compositor: enabled_on
viz_hit_test_surface_layer: disabled_off_ok
webgl: enabled
webgl2: enabled
Load (avg) 1, 1, 0
Memory (System) 23.15GB (0.63GB free)
Process Argv –extensions-dir=/home/mzabaluev/.var/app/com.visualstudio.code/data/vscode/extensions --verbose --log debug --no-sandbox
Screen Reader no
VM 0%
DESKTOP_SESSION gnome
XDG_CURRENT_DESKTOP GNOME
XDG_SESSION_DESKTOP gnome
XDG_SESSION_TYPE wayland
Extensions (4)
Extension Author (truncated) Version
better-toml bun 0.3.2
autoconf mae 0.1.0
rust rus 0.7.8
vscode-lldb vad 1.5.3

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 27 (11 by maintainers)

Most upvoted comments

I have uploaded the dump_syms binary for linux https://github.com/deepak1556/minidump-stackwalk-prebuilt/releases/tag/v7.3.1, let me know if that works. Thanks!

You will need to use breakpad dump_syms tool to generate the .sym files for the dowloaded system libraries.

For ex: library under /lib/libfoo.so and its debugging symbol is /usr/debug/lib/libfoo.so, run:

dump_syms /lib/libfoo.so /usr/debug/lib > /tmp/libfoo.so.sym

You will then have to arrange this symbol inside the root symbol directory following https://chromium.googlesource.com/breakpad/breakpad/+/master/README.ANDROID#99

I will upload dump_syms shortly.