System freezes while using vscode

My system freezes while using vscode.
Output of the below command:
$ inxi --admin --verbosity=7 --filter --no-host --width

System:
  Kernel: 5.14.10-1-MANJARO x86_64 bits: 64 compiler: gcc v: 11.1.0
  parameters: BOOT_IMAGE=/boot/vmlinuz-5.14-x86_64
  root=UUID=06d7363a-23c3-4c3d-97e3-3bc65484e084 ro quiet apparmor=1
  security=apparmor udev.log_priority=3
  Desktop: KDE Plasma 5.22.5 tk: Qt 5.15.2 wm: kwin_x11 vt: 1 dm: SDDM
  Distro: Manjaro Linux base: Arch Linux
Machine:
  Type: Laptop System: ASUSTeK product: VivoBook_ASUSLaptop X513IA_KM513IA
  v: 1.0 serial: <filter>
  Mobo: ASUSTeK model: X513IA v: 1.0 serial: <filter>
  UEFI: American Megatrends v: X513IA.300 date: 06/05/2020
Battery:
  ID-1: BAT0 charge: 33.8 Wh (94.4%) condition: 35.8/42.1 Wh (85.0%)
  volts: 11.8 min: 11.8 model: ASUSTeK ASUS Battery type: Li-ion serial: N/A
  status: Discharging cycles: 381
Memory:
  RAM: total: 7.2 GiB used: 5.01 GiB (69.6%)
  RAM Report: permissions: Unable to run dmidecode. Root privileges required.
CPU:
  Info: 8-Core model: AMD Ryzen 7 4700U with Radeon Graphics bits: 64
  type: MCP arch: Zen 2 family: 17 (23) model-id: 60 (96) stepping: 1
  microcode: 8600103 cache: L2: 4 MiB bogomips: 31952
  Speed: 1397 MHz min/max: 1400/2000 MHz boost: enabled Core speeds (MHz):
  1: 1397 2: 1397 3: 1397 4: 1397 5: 1397 6: 1397 7: 1397 8: 1397
  Flags: 3dnowprefetch abm adx aes aperfmperf apic arat avic avx avx2 bmi1
  bmi2 bpext cat_l3 cdp_l3 clflush clflushopt clwb clzero cmov cmp_legacy
  constant_tsc cpb cpuid cqm cqm_llc cqm_mbm_local cqm_mbm_total cqm_occup_llc
  cr8_legacy cx16 cx8 de decodeassists extapic extd_apicid f16c flushbyasid
  fma fpu fsgsbase fxsr fxsr_opt ht hw_pstate ibpb ibrs ibs irperf lahf_lm
  lbrv lm mba mca mce misalignsse mmx mmxext monitor movbe msr mtrr mwaitx
  nonstop_tsc nopl npt nrip_save nx osvw overflow_recov pae pat pausefilter
  pclmulqdq pdpe1gb perfctr_core perfctr_llc perfctr_nb pfthreshold pge pni
  popcnt pse pse36 rapl rdpid rdpru rdrand rdseed rdt_a rdtscp rep_good sep
  sha_ni skinit smap smca smep ssbd sse sse2 sse4_1 sse4_2 sse4a ssse3 stibp
  succor svm svm_lock syscall tce topoext tsc tsc_scale umip v_spec_ctrl
  v_vmsave_vmload vgif vmcb_clean vme vmmcall wbnoinvd wdt xgetbv1 xsave
  xsavec xsaveerptr xsaveopt xsaves
  Vulnerabilities: Type: itlb_multihit status: Not affected
  Type: l1tf status: Not affected
  Type: mds status: Not affected
  Type: meltdown status: Not affected
  Type: spec_store_bypass
  mitigation: Speculative Store Bypass disabled via prctl and seccomp
  Type: spectre_v1
  mitigation: usercopy/swapgs barriers and __user pointer sanitization
  Type: spectre_v2 mitigation: Full AMD retpoline, IBPB: conditional, IBRS_FW,
  STIBP: disabled, RSB filling
  Type: srbds status: Not affected
  Type: tsx_async_abort status: Not affected
Graphics:
  Device-1: AMD Renoir vendor: ASUSTeK driver: amdgpu v: kernel
  bus-ID: 03:00.0 chip-ID: 1002:1636 class-ID: 0300
  Device-2: IMC Networks USB2.0 HD UVC WebCam type: USB driver: uvcvideo
  bus-ID: 3-3:3 chip-ID: 13d3:56a8 class-ID: 0e02 serial: <filter>
  Display: x11 server: X.Org 1.20.13 compositor: kwin_x11 driver:
  loaded: amdgpu,ati unloaded: modesetting alternate: fbdev,vesa
  display-ID: :0 screens: 1
  Screen-1: 0 s-res: 1920x1080 s-dpi: 96 s-size: 508x285mm (20.0x11.2")
  s-diag: 582mm (22.9")
  Monitor-1: eDP res: 1920x1080 hz: 60 dpi: 142 size: 344x194mm (13.5x7.6")
  diag: 395mm (15.5")
  OpenGL: renderer: AMD RENOIR (DRM 3.42.0 5.14.10-1-MANJARO LLVM 12.0.1)
  v: 4.6 Mesa 21.2.3 direct render: Yes
Audio:
  Device-1: AMD driver: snd_hda_intel v: kernel bus-ID: 03:00.1
  chip-ID: 1002:1637 class-ID: 0403
  Device-2: AMD Family 17h HD Audio vendor: ASUSTeK driver: snd_hda_intel
  v: kernel bus-ID: 03:00.6 chip-ID: 1022:15e3 class-ID: 0403
  Sound Server-1: ALSA v: k5.14.10-1-MANJARO running: yes
  Sound Server-2: JACK v: 1.9.19 running: no
  Sound Server-3: PulseAudio v: 15.0 running: yes
  Sound Server-4: PipeWire v: 0.3.38 running: yes
Network:
  Device-1: Intel Wi-Fi 6 AX200 driver: iwlwifi v: kernel bus-ID: 01:00.0
  chip-ID: 8086:2723 class-ID: 0280
  IF: wlp1s0 state: up mac: <filter>
  IP v4: <filter> type: dynamic noprefixroute scope: global
  broadcast: <filter>
  IP v6: <filter> type: noprefixroute scope: link
  WAN IP: <filter>
Bluetooth:
  Device-1: Intel AX200 Bluetooth type: USB driver: btusb v: 0.8 bus-ID: 3-2:2
  chip-ID: 8087:0029 class-ID: e001
  Report: rfkill ID: hci0 rfk-id: 0 state: down bt-service: enabled,running
  rfk-block: hardware: no software: yes address: see --recommends
Logical:
  Message: No logical block device data found.
RAID:
  Message: No RAID data found.
Drives:
  Local Storage: total: 1.14 TiB used: 85.83 GiB (7.3%)
  SMART Message: Unable to run smartctl. Root privileges required.
  ID-1: /dev/nvme0n1 maj-min: 259:0 vendor: SK Hynix model: HFM256GDJTNG-8310A
  size: 238.47 GiB block-size: physical: 512 B logical: 512 B speed: 15.8 Gb/s
  lanes: 2 type: SSD serial: <filter> rev: 80001C00 temp: 34.9 C scheme: GPT
  ID-2: /dev/sda maj-min: 8:0 vendor: Western Digital model: WD10SPZX-80Z10T2
  size: 931.51 GiB block-size: physical: 4096 B logical: 512 B speed: 6.0 Gb/s
  type: HDD rpm: 5400 serial: <filter> rev: 1A04 scheme: GPT
  Message: No optical or floppy data found.
Partition:
  ID-1: / raw-size: 52.2 GiB size: 51.13 GiB (97.95%) used: 31.73 GiB (62.1%)
  fs: ext4 dev: /dev/nvme0n1p5 maj-min: 259:5 label: N/A
  uuid: 06d7363a-23c3-4c3d-97e3-3bc65484e084
  ID-2: /boot/efi raw-size: 260 MiB size: 256 MiB (98.46%)
  used: 66.8 MiB (26.1%) fs: vfat dev: /dev/nvme0n1p1 maj-min: 259:1
  label: SYSTEM uuid: DA44-C033
  ID-3: /home raw-size: 34.8 GiB size: 34 GiB (97.71%) used: 24.7 GiB (72.6%)
  fs: ext4 dev: /dev/nvme0n1p6 maj-min: 259:6 label: N/A
  uuid: 941c21f5-3c1e-45ab-8989-ce9c68b0c218
  ID-4: /run/timeshift/backup raw-size: 30 GiB size: 29.36 GiB (97.86%)
  used: 29.34 GiB (99.9%) fs: ext4 dev: /dev/sda2 maj-min: 8:2
  label: Manjaro-recovery uuid: ab4be4b9-eb3d-43ea-a32c-8763e70be217
Swap:
  Alert: No swap data was found.
Unmounted:
  ID-1: /dev/nvme0n1p2 maj-min: 259:2 size: 16 MiB fs: <superuser required>
  label: N/A uuid: N/A
  ID-2: /dev/nvme0n1p3 maj-min: 259:3 size: 150.18 GiB fs: ntfs label: OS
  uuid: DC20475720473832
  ID-3: /dev/nvme0n1p4 maj-min: 259:4 size: 1.03 GiB fs: ntfs label: RECOVERY
  uuid: E6BAAD46BAAD13D9
  ID-4: /dev/sda1 maj-min: 8:1 size: 901.51 GiB fs: ntfs label: New Volume
  uuid: 800C3F790C3F6974
USB:
  Hub-1: 1-0:1 info: Full speed (or root) Hub ports: 4 rev: 2.0
  speed: 480 Mb/s chip-ID: 1d6b:0002 class-ID: 0900
  Device-1: 1-4:2 info: No brand USB OPTICAL MOUSE type: Mouse
  driver: hid-generic,usbhid interfaces: 1 rev: 1.1 speed: 1.5 Mb/s
  power: 100mA chip-ID: 2188:0ae1 class-ID: 0301
  Hub-2: 2-0:1 info: Full speed (or root) Hub ports: 2 rev: 3.1 speed: 10 Gb/s
  chip-ID: 1d6b:0003 class-ID: 0900
  Hub-3: 3-0:1 info: Full speed (or root) Hub ports: 4 rev: 2.0
  speed: 480 Mb/s chip-ID: 1d6b:0002 class-ID: 0900
  Device-1: 3-2:2 info: Intel AX200 Bluetooth type: Bluetooth driver: btusb
  interfaces: 2 rev: 2.0 speed: 12 Mb/s power: 100mA chip-ID: 8087:0029
  class-ID: e001
  Device-2: 3-3:3 info: IMC Networks USB2.0 HD UVC WebCam type: Video
  driver: uvcvideo interfaces: 2 rev: 2.0 speed: 480 Mb/s power: 500mA
  chip-ID: 13d3:56a8 class-ID: 0e02 serial: <filter>
  Hub-4: 4-0:1 info: Full speed (or root) Hub ports: 2 rev: 3.1 speed: 10 Gb/s
  chip-ID: 1d6b:0003 class-ID: 0900
Sensors:
  System Temperatures: cpu: 38.2 C mobo: 38.0 C gpu: amdgpu temp: 38.0 C
  Fan Speeds (RPM): cpu: 0
Info:
  Processes: 292 Uptime: 2d 7h 59m wakeups: 26 Init: systemd v: 249
  tool: systemctl Compilers: gcc: 11.1.0 Packages: pacman: 1395 lib: 392
  flatpak: 0 Shell: Bash v: 5.1.8 running-in: konsole inxi: 3.3.07

Output of the below command:
$ code --version

1.61.1
c13f1abb110fc756f9b3a6f16670df9cd9d4cf63
x64

You don’t have swap,when you reach the maximum memory your system freezes,try creating swap,I recommend swap on zRAM,there is a script on the AUR to enable it with one click called zramd,you can install it with

pamac build zramd

then enable it

sudo systemctl enable --now zramd

Try run vscode again,your system should not freeze anymore.

1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.