Every so often when I build, deploy, debug or simulate the code in FRC VSCode, it crashes midway through. I was unable to get logs via ~/wpilib/2024/vscode/VSCode-linux-x64/bin/code > ~/wpilog
and cat ~/wpilog
as when VSCode crashed, the tmux pane crashed with it. code -v
returns 1.85.1 0ee08df0cf4527e40edc9aa28f4b5bd38bbff2b2 x64
. This is a 2024 build of frc vscode and running on an Arch Linux system. Does anyone know how to prevent this crash? I belive I am on 2024.3.2
My first thought is the linux OOM manager is killing your deploy. I’ve never seen vscode crash while deploying. Thats a new one.
1 Like
Should I send a journalctl
?
You’re right. journalctl
returns the following.
Oct 22 15:32:01 mazov kernel: oom-kill:constraint=CONSTRAINT_NONE,nodemask=(null),cpuset=/,mems_allowed=0,global_oom,task_memcg=/user.slice/user-1000.slice/[email protected]/app.slice/tmux-spawn-19cd4dab-e759-4e
3b-b473-997800413c7e.scope,task=code,pid=35448,uid=1000
Oct 22 15:32:01 mazov kernel: Out of memory: Killed process 35448 (code) total-vm:1190272504kB, anon-rss:138132kB, file-rss:10620kB, shmem-rss:448kB, UID:1000 pgtables:1544kB oom_score_adj:300
[...]
Oct 22 15:32:03 mazov systemd-coredump[38111]: [🡕] Process 35379 (code) of user 1000 dumped core.
Module /home/laptop-main/wpilib/2024/vscode/VSCode-linux-x64/resources/app/node_modules.asar.unpacked/@vscode/sqlite3/build/Release/vscode-sqlite3.node without buil
d-id.
Module /home/laptop-main/wpilib/2024/vscode/VSCode-linux-x64/resources/app/node_modules.asar.unpacked/@vscode/sqlite3/build/Release/vscode-sqlite3.node
Module /home/laptop-main/wpilib/2024/vscode/VSCode-linux-x64/resources/app/node_modules.asar.unpacked/@vscode/spdlog/build/Release/spdlog.node without build-id.
Module /home/laptop-main/wpilib/2024/vscode/VSCode-linux-x64/resources/app/node_modules.asar.unpacked/@vscode/spdlog/build/Release/spdlog.node
Module /home/laptop-main/wpilib/2024/vscode/VSCode-linux-x64/resources/app/node_modules.asar.unpacked/native-keymap/build/Release/keymapping.node without build-id.
Module /home/laptop-main/wpilib/2024/vscode/VSCode-linux-x64/resources/app/node_modules.asar.unpacked/native-keymap/build/Release/keymapping.node
Stack trace of thread 35379:
#0 0x000064f9e01e3005 n/a (/home/laptop-main/wpilib/2024/vscode/VSCode-linux-x64/code + 0x4f53005)
#1 0x000064f9df5a94f7 n/a (/home/laptop-main/wpilib/2024/vscode/VSCode-linux-x64/code + 0x43194f7)
#2 0x000064f9df5a66d6 n/a (/home/laptop-main/wpilib/2024/vscode/VSCode-linux-x64/code + 0x43166d6)
#3 0x000064f9df5a54eb n/a (/home/laptop-main/wpilib/2024/vscode/VSCode-linux-x64/code + 0x43154eb)
#4 0x000064f9df5b0912 n/a (/home/laptop-main/wpilib/2024/vscode/VSCode-linux-x64/code + 0x4320912)
#5 0x000064f9df5b1d94 n/a (/home/laptop-main/wpilib/2024/vscode/VSCode-linux-x64/code + 0x4321d94)
#6 0x000064f9df3ec54f n/a (/home/laptop-main/wpilib/2024/vscode/VSCode-linux-x64/code + 0x415c54f)
#7 0x000064f9df456053 n/a (/home/laptop-main/wpilib/2024/vscode/VSCode-linux-x64/code + 0x41c6053)
#8 0x000064f9df45634a n/a (/home/laptop-main/wpilib/2024/vscode/VSCode-linux-x64/code + 0x41c634a)
#9 0x000064f9e022fa4d n/a (/home/laptop-main/wpilib/2024/vscode/VSCode-linux-x64/code + 0x4f9fa4d)
#10 0x000064f9e024dbf5 n/a (/home/laptop-main/wpilib/2024/vscode/VSCode-linux-x64/code + 0x4fbdbf5)
#11 0x000064f9e024d609 n/a (/home/laptop-main/wpilib/2024/vscode/VSCode-linux-x64/code + 0x4fbd609)
#12 0x000064f9e024e355 n/a (/home/laptop-main/wpilib/2024/vscode/VSCode-linux-x64/code + 0x4fbe355)
#13 0x000064f9e02ae0ca n/a (/home/laptop-main/wpilib/2024/vscode/VSCode-linux-x64/code + 0x501e0ca)
#14 0x000064f9e024e6bc n/a (/home/laptop-main/wpilib/2024/vscode/VSCode-linux-x64/code + 0x4fbe6bc)
#15 0x000064f9e0210bc1 n/a (/home/laptop-main/wpilib/2024/vscode/VSCode-linux-x64/code + 0x4f80bc1)
#16 0x000064f9df4084df n/a (/home/laptop-main/wpilib/2024/vscode/VSCode-linux-x64/code + 0x41784df)
#17 0x000064f9df40a2c2 n/a (/home/laptop-main/wpilib/2024/vscode/VSCode-linux-x64/code + 0x417a2c2)
#18 0x000064f9df405ba9 n/a (/home/laptop-main/wpilib/2024/vscode/VSCode-linux-x64/code + 0x4175ba9)
#19 0x000064f9dd56f244 n/a (/home/laptop-main/wpilib/2024/vscode/VSCode-linux-x64/code + 0x22df244)
#20 0x000064f9dd570990 n/a (/home/laptop-main/wpilib/2024/vscode/VSCode-linux-x64/code + 0x22e0990)
#21 0x000064f9dd57079c n/a (/home/laptop-main/wpilib/2024/vscode/VSCode-linux-x64/code + 0x22e079c)
#22 0x000064f9dd56e1c5 n/a (/home/laptop-main/wpilib/2024/vscode/VSCode-linux-x64/code + 0x22de1c5)
#23 0x000064f9dd56e2b5 n/a (/home/laptop-main/wpilib/2024/vscode/VSCode-linux-x64/code + 0x22de2b5)
#24 0x000064f9dd2b1c0d n/a (/home/laptop-main/wpilib/2024/vscode/VSCode-linux-x64/code + 0x2021c0d)
#25 0x0000769a6c27ee08 n/a (libc.so.6 + 0x25e08)
#26 0x0000769a6c27eecc __libc_start_main (libc.so.6 + 0x25ecc)
#27 0x000064f9dcf1002a n/a (/home/laptop-main/wpilib/2024/vscode/VSCode-linux-x64/code + 0x1c8002a)
ELF object binary architecture: AMD x86-64
Oct 22 15:32:03 mazov systemd[1]: [email protected]: Deactivated successfully.
Oct 22 15:32:03 mazov systemd[1]: [email protected]: Consumed 630ms CPU time, 397.7M memory peak.
Oct 22 15:32:03 mazov systemd[1514]: tmux-spawn-19cd4dab-e759-4e3b-b473-997800413c7e.scope: Failed with result 'oom-kill'.
Oct 22 15:32:03 mazov systemd[1514]: tmux-spawn-19cd4dab-e759-4e3b-b473-997800413c7e.scope: Consumed 8min 38.724s CPU time, 8.9G memory peak, 705.7M memory swap peak.
I had the same thing happen a while back so I’d agree