ubuntu - VSCode 完全崩溃 Ubuntu 20.04.3 LTS
问题描述
我有一个输入故障,我的启动 VSCode 的键盘快捷键被永久打开了几分钟。我修复了它并重新启动了我的电脑,因为打开的窗口数量非常荒谬。重新启动后,当我尝试启动 VSCode 时,我的整个系统崩溃,我可以移动鼠标,但无法执行任何命令或与 Windows 交互,例如运行 htop 只会冻结并停止更新。
我尝试从禁用扩展、禁用 GPU 和有限 RAM 开始。
我有来自 --verbose 的日志,顶部如下所示,但它是一个巨大的文件,所以不能在这里全部粘贴,如果有我应该抓住的部分,请告诉我。
/usr/lib/x86_64-linux-gnu/gio/modules/libgvfsdbus.so: undefined symbol: g_date_time_format_iso8601
Failed to load module: /usr/lib/x86_64-linux-gnu/gio/modules/libgvfsdbus.so
[main 2021-09-13T13:27:22.226Z] Starting VS Code
[main 2021-09-13T13:27:22.228Z] from: /snap/code/73/usr/share/code/resources/app
[main 2021-09-13T13:27:22.228Z] args: {
_: [],
diff: false,
add: false,
goto: false,
'new-window': false,
'reuse-window': false,
wait: false,
help: false,
'list-extensions': false,
'show-versions': false,
version: false,
verbose: true,
status: false,
'prof-startup': false,
'no-cached-data': false,
'prof-v8-extensions': false,
'disable-extensions': true,
'disable-gpu': false,
'max-memory': '12288mb',
telemetry: false,
debugRenderer: false,
logExtensionHostCommunication: false,
'skip-release-notes': false,
'skip-welcome': false,
'disable-telemetry': false,
'disable-updates': false,
'disable-keytar': false,
'disable-workspace-trust': false,
'disable-crash-reporter': false,
'crash-reporter-id': '0393e851-0a7a-481a-9f88-2a32ca785539',
'skip-add-to-recently-opened': false,
'unity-launch': false,
'open-url': false,
'file-write': false,
'file-chmod': false,
'driver-verbose': false,
force: false,
'do-not-sync': false,
trace: false,
'force-user-env': false,
'force-disable-user-env': false,
'open-devtools': false,
__sandbox: false,
'no-proxy-server': false,
'no-sandbox': false,
nolazy: false,
'force-renderer-accessibility': false,
'ignore-certificate-errors': false,
'allow-insecure-localhost': false,
logsPath: '/home/MyUser/.config/Code/logs/20210913T142722'
}
[main 2021-09-13T13:27:22.229Z] Resolving machine identifier...
[main 2021-09-13T13:27:22.230Z] Resolved machine identifier: 25bca5857aa498c92d1f9b8898de7fb1272b6da130b2d5ac4d3934fafe7b550c
[main 2021-09-13T13:27:22.230Z] Main->SharedProcess#connect
[main 2021-09-13T13:27:22.246Z] update#setState idle
[main 2021-09-13T13:27:22.247Z] StorageMainService: creating global storage
[main 2021-09-13T13:27:22.247Z] lifecycle (main): phase changed (value: 2)
[main 2021-09-13T13:27:22.248Z] windowsManager#open
[main 2021-09-13T13:27:22.248Z] windowsManager#open pathsToOpen [
{
workspace: { id: '46ca490ef0f10bfae7c298f269044be1', uri: [g] },
exists: true
},
{
backupPath: '/home/MyUser/.config/Code/Backups/1631531462560',
remoteAuthority: undefined
},
{## Heading ##
backupPath: '/home/MyUser/.config/Code/Backups/1631531463212',
remoteAuthority: undefined
},
{
backupPath: '/home/MyUser/.config/Code/Backups/1631531463785',
remoteAuthority: undefined
},
{
backupPath: '/home/MyUser/.config/Code/Backups/1631531464197',
remoteAuthority: undefined
},
...
感谢您对此的任何帮助,我不知道出了什么问题,谢谢
解决方案
我已经修复了它,事后看来很明显,我只是在特定文件上打开 VSCode,而不是仅仅正常启动它并让它加载它之前打开的文件,code afile.txt.
而不是仅仅code
. 这解决了我的问题,希望对其他人有所帮助。
推荐阅读
- reactjs - 如何在生成器函数中使用 react-geocode 承诺
- python - 如何将 base64 转换为 TIFF 图像或 PNG 图像?
- android - android动画只有第一次点击才能工作
- jquery-ui - 打开新工具提示时关闭所有其他 jQueryUI 工具提示
- sql - 我需要向我的应用程序添加不属于 GROUPBY 语句的其他列
- asp.net-core-mvc - Aspnet Core - 当我使用 js 发送 Httpost 时出现错误 400
- javascript - 如何实时更新 v-data-table 数据?
- php - 添加数组的所有值并将其显示在数组中的问题
- python - Python - 使用 Adobe Illustrator 打开 .DXF 后 GeoPandas 无法工作
- python - 开发用于图像修改的编码器/解码器