NapNeko / NapCatQQ

现代化的基于 NTQQ 的 Bot 协议端实现
https://napcat.napneko.icu
Other
2.67k stars 196 forks source link

[BUG] 运行napcat时报错 Exiting GPU process due to errors during initialization Error #288

Closed maolvv closed 3 months ago

maolvv commented 3 months ago

系统版本

Ubuntu 22.04 64位

QQNT 版本

3.2.12-26909

NapCat 版本

2.0.37

OneBot 客户端

Overflow v2.16.0.Miao-dd31bc

发生了什么?

安装完毕使用 xvfb-run -a qq --no-sandbox 尝试启动时,提示如下内容: [3249:0820/222050.789766:ERROR:viz_main_impl.cc(166)] Exiting GPU process due to errors during initialization Error occurred in handler for 'get-remote-win': Error: No handler registered for 'get-remote-win' at WebContents. (node:electron/js2c/browser_init:2:82968) at WebContents.emit (node:events:519:28) [3288:0820/222051.308887:ERROR:gl_utils.cc(424)] [.WebGL-0x102c0100ff00]GL Driver Message (OpenGL, Performance, GL_CLOSE_PATH_NV, High): GPU stall due to ReadPixels [3288:0820/222051.388142:ERROR:gl_utils.cc(424)] [.WebGL-0x102c0100ff00]GL Driver Message (OpenGL, Performance, GL_CLOSE_PATH_NV, High): GPU stall due to ReadPixels [3288:0820/222051.416861:ERROR:gl_utils.cc(424)] [.WebGL-0x102c0100ff00]GL Driver Message (OpenGL, Performance, GL_CLOSE_PATH_NV, High): GPU stall due to ReadPixels [3288:0820/222051.535359:ERROR:gl_utils.cc(424)] [.WebGL-0x102c0100ff00]GL Driver Message (OpenGL, Performance, GL_CLOSE_PATH_NV, High): GPU stall due to ReadPixels (this message will no longer repeat)

如何复现

使用了linux一键脚本 -》
curl -o napcat.sh https://nclatest.znin.net/NapNeko/NapCat-Installer/main/script/install.sh && sudo bash napcat.sh 安装是选择不使用Docker安装。安装完毕后(显示安装成功且无报错)使用xvfb-run -a qq --no-sandbox尝试登陆既会触发

期望的结果?

能够正常启动并提示登陆

NapCat 运行日志

version_config_filename :/home/ecs-user/.config/QQ/versions/config.json
app_package_filename :/opt/QQ/resources/app/package.json
config_build_id :26909
config_base_version :3.2.12-26909
config_current_version :3.2.12-26909
app_build_version :26909
version_config_filename :/home/ecs-user/.config/QQ/versions/config.json
app_package_filename :/opt/QQ/resources/app/package.json
config_build_id :26909
config_base_version :3.2.12-26909
config_current_version :3.2.12-26909
app_build_version :26909
version_config_filename :/home/ecs-user/.config/QQ/versions/config.json
app_package_filename :/opt/QQ/resources/app/package.json
config_build_id :26909
config_base_version :3.2.12-26909
config_current_version :3.2.12-26909
app_build_version :26909
[preload] succeeded. /opt/QQ/resources/app/major.node
[preload] succeeded. /opt/QQ/resources/app/major.node
[4309:0820/232104.022773:ERROR:viz_main_impl.cc(166)] Exiting GPU process due to errors during initialization
[4320:0820/232104.073042:ERROR:command_buffer_proxy_impl.cc(132)] ContextResult::kTransientFailure: Failed to send GpuControl.CreateCommandBuffer.
Error occurred in handler for 'get-remote-win': Error: No handler registered for 'get-remote-win'
    at WebContents.<anonymous> (node:electron/js2c/browser_init:2:82968)
    at WebContents.emit (node:events:519:28)
[4349:0820/232104.613445:ERROR:gl_utils.cc(424)] [.WebGL-0x44800f47800]GL Driver Message (OpenGL, Performance, GL_CLOSE_PATH_NV, High): GPU stall due to ReadPixels
[4349:0820/232104.693245:ERROR:gl_utils.cc(424)] [.WebGL-0x44800f47800]GL Driver Message (OpenGL, Performance, GL_CLOSE_PATH_NV, High): GPU stall due to ReadPixels
[4349:0820/232104.741593:ERROR:gl_utils.cc(424)] [.WebGL-0x44800f47800]GL Driver Message (OpenGL, Performance, GL_CLOSE_PATH_NV, High): GPU stall due to ReadPixels
[4349:0820/232104.809428:ERROR:gl_utils.cc(424)] [.WebGL-0x44800f47800]GL Driver Message (OpenGL, Performance, GL_CLOSE_PATH_NV, High): GPU stall due to ReadPixels (this message will no longer repeat)

OneBot 客户端运行日志

No response

MliKiowa commented 3 months ago

使用docker

easyworld commented 3 months ago

昨天也遇到了类似情况,我用如下的方式解决了: 1、sudo apt purge linuxqq 2、rm -rf ~/.config/QQ/ 3、rm -rf /opt/QQ/ 4、重启(有可能不需要) 5、重新执行linux一键脚本

maolvv commented 3 months ago

昨天也遇到了类似情况,我用如下的方式解决了: 1、sudo apt purge linuxqq 2、rm -rf ~/.config/QQ/ 3、rm -rf /opt/QQ/ 4、重启(有可能不需要) 5、重新执行linux一键脚本

这个方案在我这边也不行的样子,最后还是决定转去用docker了2333

maolvv commented 3 months ago

使用docker

不好意思再打扰大佬下,我改用docker以后二维码之类的都能正常显示了,但扫码登录后手机端提示“当前设备网络不稳定或处于复杂网络环境,建议将两个设备连接同一网络或将被扫描设备连接手机热点”,napcat这边返回ErrCode: 5,ErrMsg为空。这个问题有没有什么解决办法呢?

MliKiowa commented 3 months ago

使用docker

不好意思再打扰大佬下,我改用docker以后二维码之类的都能正常显示了,但扫码登录后手机端提示“当前设备网络不稳定或处于复杂网络环境,建议将两个设备连接同一网络或将被扫描设备连接手机热点”,napcat这边返回ErrCode: 5,ErrMsg为空。这个问题有没有什么解决办法呢?

换号

maolvv commented 3 months ago

使用docker

不好意思再打扰大佬下,我改用docker以后二维码之类的都能正常显示了,但扫码登录后手机端提示“当前设备网络不稳定或处于复杂网络环境,建议将两个设备连接同一网络或将被扫描设备连接手机热点”,napcat这边返回ErrCode: 5,ErrMsg为空。这个问题有没有什么解决办法呢?

换号

搞定了,感谢