gpt4 book ai didi

ubuntu - 更新到 PopOS 22 后 VS Code 崩溃并显示 "Passthrough is not supported, GL is disabled"

转载 作者:行者123 更新时间:2023-12-04 18:26:01 25 4
gpt4 key购买 nike

自从将 PopOS 从 21 更新到 22 后,VS Code 在启动时崩溃。

我尝试运行 code --verbose 并给出以下输出

$ code --verbose
[main 2022-04-28T14:37:03.778Z] Starting VS Code
[main 2022-04-28T14:37:03.779Z] from: /usr/share/code/resources/app
[main 2022-04-28T14:37:03.779Z] 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': false,
'disable-gpu': false,
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': 'ea2e3322-8c40-448d-b84a-fd3bb0308659',
'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/20220428T153703'
}
[main 2022-04-28T14:37:03.781Z] Resolving machine identifier...
[main 2022-04-28T14:37:03.782Z] Resolved machine identifier: 79645325f53065167905640954119fe409b9a603fcdad076cc163d250d6f9a4b
[main 2022-04-28T14:37:03.782Z] Main->SharedProcess#connect
[main 2022-04-28T14:37:03.797Z] StorageMainService: creating global storage
[main 2022-04-28T14:37:03.798Z] lifecycle (main): phase changed (value: 2)
[main 2022-04-28T14:37:03.798Z] windowsManager#open
[main 2022-04-28T14:37:03.799Z] windowsManager#open pathsToOpen [
{
workspace: { id: '5ef82008e1d2d6fc517c59a71af1e304', uri: [g] },
exists: true
}
]
[main 2022-04-28T14:37:03.800Z] IPC Object URL: Registered new channel vscode:575816a7-c5fe-48a0-9bfb-3bd3d1577c92.
[main 2022-04-28T14:37:03.800Z] window#validateWindowState: validating window state on 1 display(s) { mode: 0, x: 0, y: 141, width: 1920, height: 976 }
[main 2022-04-28T14:37:03.800Z] window#validateWindowState: 1 monitor working area { x: 0, y: 32, width: 1920, height: 976 }
[main 2022-04-28T14:37:03.800Z] window#ctor: using window state { mode: 0, x: 0, y: 141, width: 1920, height: 976 }
[main 2022-04-28T14:37:03.857Z] StorageMainService: creating workspace storage (5ef82008e1d2d6fc517c59a71af1e304)
[main 2022-04-28T14:37:03.858Z] windowsManager#open used window count 1 (workspacesToOpen: 0, foldersToOpen: 1, emptyToRestore: 0, emptyToOpen: 0)
[main 2022-04-28T14:37:03.860Z] lifecycle (main): phase changed (value: 3)
[main 2022-04-28T14:37:03.861Z] update#setState idle
[main 2022-04-28T14:37:03.861Z] resolveShellEnv(): skipped (VSCODE_CLI is set)
[6997:0428/153703.936491:ERROR:gpu_process_host.cc(1007)] GPU process exited unexpectedly: exit_code=159
[6997:0428/153703.936509:WARNING:gpu_process_host.cc(1321)] The GPU process has crashed 1 time(s)
[main 2022-04-28T14:37:03.984Z] resolveShellEnv(): skipped (VSCODE_CLI is set)
[6997:0428/153704.137675:ERROR:gpu_process_host.cc(1007)] GPU process exited unexpectedly: exit_code=159
[6997:0428/153704.137692:WARNING:gpu_process_host.cc(1321)] The GPU process has crashed 2 time(s)
[6997:0428/153704.319363:ERROR:gpu_process_host.cc(1007)] GPU process exited unexpectedly: exit_code=159
[6997:0428/153704.319377:WARNING:gpu_process_host.cc(1321)] The GPU process has crashed 3 time(s)
[7074:0428/153704.332285:WARNING:vaapi_wrapper.cc(588)] VAAPI video acceleration not available for swiftshader
[7074:0428/153704.332407:ERROR:gpu_init.cc(440)] Passthrough is not supported, GL is swiftshader
[6997:0428/153704.429684:ERROR:gpu_process_host.cc(1007)] GPU process exited unexpectedly: exit_code=159
[6997:0428/153704.429700:WARNING:gpu_process_host.cc(1321)] The GPU process has crashed 4 time(s)
[7078:0428/153704.438318:WARNING:vaapi_wrapper.cc(588)] VAAPI video acceleration not available for swiftshader
[7078:0428/153704.438393:ERROR:gpu_init.cc(440)] Passthrough is not supported, GL is swiftshader
[6997:0428/153704.534908:ERROR:gpu_process_host.cc(1007)] GPU process exited unexpectedly: exit_code=159
[6997:0428/153704.534922:WARNING:gpu_process_host.cc(1321)] The GPU process has crashed 5 time(s)
[7082:0428/153704.543009:WARNING:vaapi_wrapper.cc(588)] VAAPI video acceleration not available for swiftshader
[7082:0428/153704.543119:ERROR:gpu_init.cc(440)] Passthrough is not supported, GL is swiftshader
[6997:0428/153704.639089:ERROR:gpu_process_host.cc(1007)] GPU process exited unexpectedly: exit_code=159
[6997:0428/153704.639103:WARNING:gpu_process_host.cc(1321)] The GPU process has crashed 6 time(s)
[7086:0428/153704.643143:WARNING:vaapi_wrapper.cc(588)] VAAPI video acceleration not available for disabled
[7086:0428/153704.643248:ERROR:gpu_init.cc(440)] Passthrough is not supported, GL is disabled
[6997:0428/153704.754902:ERROR:gpu_process_host.cc(1007)] GPU process exited unexpectedly: exit_code=159
[6997:0428/153704.754917:WARNING:gpu_process_host.cc(1321)] The GPU process has crashed 7 time(s)
[7090:0428/153704.759180:WARNING:vaapi_wrapper.cc(588)] VAAPI video acceleration not available for disabled
[7090:0428/153704.759311:ERROR:gpu_init.cc(440)] Passthrough is not supported, GL is disabled
[6997:0428/153704.878321:ERROR:gpu_process_host.cc(1007)] GPU process exited unexpectedly: exit_code=159
[6997:0428/153704.878337:WARNING:gpu_process_host.cc(1321)] The GPU process has crashed 8 time(s)
[7094:0428/153704.882875:WARNING:vaapi_wrapper.cc(588)] VAAPI video acceleration not available for disabled
[7094:0428/153704.882964:ERROR:gpu_init.cc(440)] Passthrough is not supported, GL is disabled
[6997:0428/153705.019793:ERROR:gpu_process_host.cc(1007)] GPU process exited unexpectedly: exit_code=159
[6997:0428/153705.019808:WARNING:gpu_process_host.cc(1321)] The GPU process has crashed 9 time(s)
[6997:0428/153705.019816:FATAL:gpu_data_manager_impl_private.cc(415)] GPU process isn't usable. Goodbye.
/dev/fd/3: No such file or directory
Server response:
/dev/fd/3: No such file or directory
Server response:

Slack 也以同样的方式运行,崩溃并出现同样的错误。

我可以通过传递 --no-zygote--no-sandbox 标志来运行 VS Code

最佳答案

我也遇到了同样的问题。使用 --no-sandbox 标志运行它可以工作,但许多扩展被禁用。

我尝试从 Pop!_Shop 中删除它,而不是安装我使用的 .deb 版本,而是安装了 flatpak 版本。

有了那个版本,它开始很好。我需要再次安装扩展程序,并且大多数都有效。我在使用 Pylance 扩展时遇到了问题,因为一些文件已经从之前的安装中创建了。我删除了所有 ~/.var/app/com.visualstudio.code 文件夹内容(将它们移动到备份位置以防 .deb 版本将来再次运行)并重新安装所有内容。

到目前为止,最好不要有一些不允许我遵循函数定义的扩展。但是我发现了一些问题,例如无法从所有可用的 pyenv 解释器中进行选择,并且浏览文件的对话框似乎与我记得的 .deb 版本中的对话框不同并且更加有限。

因此,根据您的需要,您可以考虑安装适合您的 flatpak 版本。

如果有任何方法可以让 .deb 版本再次工作,我也有兴趣了解它。

编辑:最后我也删除了 flatpak 版本并从 vscode 站点手动安装了最新的 .deb:https://code.visualstudio.com/使用这个较新的版本,一切都按预期工作,缺点是没有官方的 Pop Os 包。

关于ubuntu - 更新到 PopOS 22 后 VS Code 崩溃并显示 "Passthrough is not supported, GL is disabled",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/72045795/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com