vscode-vdf
vscode-vdf copied to clipboard
Constant server crash on Linux with VSCodium
Constant server crash just by opening .res files without doing anything.
Output for the crash: https://0.jaegers.net/?1dc1eb925ee4797b#7oSyFLpbwAUvpZ5wzR7pLKYqxmuLKVRRb5WDSibbMtgF
The only setting I changed was vscode-vdf.teamFortress2Folder.
App info:
App: VSCodium
Version: 1.99.32846
Commit: 0d1cad16ae0ec643ad1fd85b4ba8e52dacf42e85
Date: 2025-04-28T14:55:26.901Z
Browser: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) VSCodium/1.99.32846 Chrome/132.0.6834.210 Electron/34.3.3 Safari/537.36
System info:
Operating System: Fedora Linux 42
KDE Plasma Version: 6.3.4
KDE Frameworks Version: 6.13.0
Qt Version: 6.9.0
Kernel Version: 6.14.5-300.fc42.x86_64 (64-bit)
Graphics Platform: Wayland
Any help is appreciated. Thanks.
Hi, thanks for reporting this issue
What is the value of vscode-vdf.teamFortress2Folder
and does it point to a valid Team Fortress 2 installation (has a tf/gameinfo.txt) ?
I fixed a crash on Linux in 62e1ae4 but that was caused by the Team Fortress 2 folder not existing, so it may not fix this issue but might help you get a different issue.
Can you please check with vscode-vdf 5.5.1?
Hi there.
The value is:
"vscode-vdf.teamFortress2Folder": "/home/tiagoquix/.local/share/Steam/steamapps/common/Team Fortress 2",
Yes, it has a tf/gameinfo.txt:
$ file "/home/tiagoquix/.local/share/Steam/steamapps/common/Team Fortress 2/tf/gameinfo.txt"
/home/tiagoquix/.local/share/Steam/steamapps/common/Team Fortress 2/tf/gameinfo.txt: ASCII text, with CRLF line terminators
Tested again with new VSCodium update:
Version: 1.100.03093
Commit: 04db33e1a7fc01c8fcac2fb4d5bbadaa6413bd75
Date: 2025-05-08T21:43:12.200Z
Browser: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) VSCodium/1.100.03093 Chrome/132.0.6834.210 Electron/34.5.4 Safari/537.36
And with vscode-vdf 5.5.1. Still crashing.
Here's the new crash output: https://0.jaegers.net/?9837e4cdfd0dd8a7#BayP6BWKyuUjBadngBuJfsdbLjoeSoiQvJogoGyjLQPk
Thanks.
The server logs don't seem to be including any error messages, when the extension crashes, could you open the Command Palette (Ctrl+Shift+P) and select "Developer: Toggle Developer Tools", go to the Console tab and send the output?
Testing again with version 5.5.2. I noticed the following:
The extension (not sure if this is default by VSCodium) tries to create color previews in things such as
"HalloweenThemeColor2015_Light" "238 126 17 255"
where it shows an square at the left of the file with the color.
It succeds and fails, making the square render 5 times until it crashes the VDF lang server.
In files that have #base such as:
#base "../../_idhud/resource/ui/huditemeffectmeter_sniper.res"
#base "../../_tf2hud/resource/ui/huditemeffectmeter_sniper.res"
it tries to link with underline the files (I believe it is to make them acessible by double-click). It succeds and fails 5 times, and then it crashes the VDF lang server.
By the way, I do have TF2 installed.
Here is the new crash output: https://0.jaegers.net/?922487b3682bed13#7f16uNek18UsBHFJGrSAzya3NtpYDLooYrCU9skRkQfr
Here is the developer tools log with verbosity: https://0.jaegers.net/?874b877d0a99d986#9wnie3wKYw5bQo1w1DDzF8XVnw2nHEe1tVtc8nKbAbif
@cooolbros hi, any news? thanks!
No, as I dont have enough information to reproduce the crash, even on Linux (Ubuntu) with VSCodium.
What HUD + file are you editing when it crashes? Are files missing from your TF2 installation? (Can you try verifying game files?)
Ok, I have a new discovery:
The crash only happens if VSCodium tries to load a git repository together with the .res file. Since I was editing inside a folder that is cloned from a github repo, it was crashing. When I copy the files from the folder to anywhere else outside the git repo, the crash doesn't happen anymore. VSCodium is crashing after loading the .git repository information.
Btw, I have this setting:
"git.openRepositoryInParentFolders": "always",
Hmm, disabling git.openRepositoryInParentFolders does not fix the problem.
However, copying the files outside the location I usually edit does.
I normally edit in:
/media/HDD/Repositórios do GitHub/idhud/ (additional internal HDD drive)
It crashes even if I open only the info.vdf file.
info.vdf file crash info output: https://0.jaegers.net/?04e67f3571344449#GQ3KKKdmJwcE8TZDxwpFtys6aVxKvcqVRMAcFg5x3gWG developer tools: https://0.jaegers.net/?00bb81c192d556f4#GNT8SRYhQcuEZm1Bnd5qeRx1CxiSS9q4iHGJoTChwm4X
Could you make an option to disable the TF2 folder detection/requirement? I believe this may workaround the issue.
Version 5.5.6 includes some fixes to the notification handling, can you try to see if the crash still happens in 5.5.6?
Otherwise it might be another issue or your Team Fortress 2 folder is corrupted, since the extension is not resilient to missing core TF2 files
Hi. I have lost interest and no longer use VSCodium. I am using Kate now. I am sorry. Thanks for your willingness.
Possibly fixed by 2886a3c
Hi, I decided to give it a try again. Still crashing.
Version: 1.103.25610
Commit: 3201acb5f9f58a1d304afaeb4776f6ec53700cd3
Date: 2025-08-21T18:46:50.660Z
Browser: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) VSCodium/1.103.25610 Chrome/138.0.7204.100 Electron/37.2.3 Safari/537.36
Output log: https://0.jaegers.net/?980f754def289e39#EH93Utv43Ua4HBj5odTW1uKDijZ7AeVXceqjvmqu71Gt Console log: https://0.jaegers.net/?a1dd3a1d4502bd94#7jW6i6i6wp5c4otenEBSWQmZQBawAKP7Zz8Gn62jaMcP