huan / docker-wechat

DoChat is a Dockerized WeChat (盒装微信) PC Windows Client for Linux
https://hub.docker.com/r/zixia/wechat
Apache License 2.0
2.24k stars 203 forks source link

GPU process issue #142

Open qiyan98 opened 3 years ago

qiyan98 commented 3 years ago

Hi,

Thanks for your wonderful project on dockerizing WeChat and make it runnable on Linux. Things are generally good except for this bug. I saw an bug realted on GPU process using the latest container. The error message is as follows:

[DoChat] 盒装微信 v0.14.4
Disabling patch for /home/user/.wine/drive_c/users/user/AppData/Roaming/Tencent/WeChat ...
Disabling patch for /home/user/.wine/drive_c/users/user/Application Data/Tencent/WeChat ...
[DoChat] WeChat 3.3.0.115
[DoChat] Starting...
[0929/173501.903:ERROR:network_change_notifier_win.cc(141)] WSALookupServiceBegin failed with: 0
[0929/173502.146:ERROR:sandbox_policy_base.cc(359)] Failed to add sandbox rule. error = 2, subsystem = 0, semantics = 0, pattern = 'C:\users\user\APPL~JHT\Tencent\WeChat\log\xweb.log'
[0929/173502.147:WARNING:gpu_process_host.cc(1204)] The GPU process has crashed 1 time(s)
[0929/173502.375:ERROR:sandbox_policy_base.cc(359)] Failed to add sandbox rule. error = 2, subsystem = 0, semantics = 0, pattern = 'C:\users\user\APPL~JHT\Tencent\WeChat\log\xweb.log'
[0929/173502.375:WARNING:gpu_process_host.cc(1204)] The GPU process has crashed 2 time(s)
[0929/173502.607:ERROR:sandbox_policy_base.cc(359)] Failed to add sandbox rule. error = 2, subsystem = 0, semantics = 0, pattern = 'C:\users\user\APPL~JHT\Tencent\WeChat\log\xweb.log'
[0929/173502.607:WARNING:gpu_process_host.cc(1204)] The GPU process has crashed 3 time(s)
[0929/173502.824:ERROR:sandbox_policy_base.cc(359)] Failed to add sandbox rule. error = 2, subsystem = 0, semantics = 0, pattern = 'C:\users\user\APPL~JHT\Tencent\WeChat\log\xweb.log'
[0929/173502.824:WARNING:gpu_process_host.cc(1204)] The GPU process has crashed 4 time(s)
[0929/173503.081:ERROR:sandbox_policy_base.cc(359)] Failed to add sandbox rule. error = 2, subsystem = 0, semantics = 0, pattern = 'C:\users\user\APPL~JHT\Tencent\WeChat\log\xweb.log'
[0929/173503.081:WARNING:gpu_process_host.cc(1204)] The GPU process has crashed 5 time(s)
[0929/173503.355:ERROR:sandbox_policy_base.cc(359)] Failed to add sandbox rule. error = 2, subsystem = 0, semantics = 0, pattern = 'C:\users\user\APPL~JHT\Tencent\WeChat\log\xweb.log'
[0929/173503.356:WARNING:gpu_process_host.cc(1204)] The GPU process has crashed 6 time(s)
[0929/173503.356:ERROR:browser_gpu_channel_host_factory.cc(153)] Failed to launch GPU process.
[0929/173513.640:ERROR:network_change_notifier_win.cc(141)] WSALookupServiceBegin failed with: 0
[0929/173513.768:ERROR:platform_font_skia.cc(342)] Could not find any font: MS Shell Dlg, sans. Falling back to the default
wine: Unhandled page fault on read access to 00000008 at address 039C3FE3 (thread 01bc), starting debugger...

I got another error after logging into WeChat: 45pBU1.png

Any help would be appreciated! Have a nice day :)

huan commented 3 years ago

Thanks for the report!

It seems that we need to find a way to totally disable the GPU in our DoChat container system.

Suggestions are welcome!

Randy-xuefm commented 2 years ago

https://wiki.winehq.org/FAQ#:~:text=6.6.5%20How%20do,and%2Dclick%20way. @huan 可以优化一下 忽视报错信息.

huan commented 2 years ago

@Randy-xuefm thanks for the suggestion and the link!

I'd like to accept a PR to disable the error message if it can be safely ignored

sunnywx commented 2 years ago

Same issue with me, my debug log:

Disabling patch for /home/user/.wine/drive_c/users/user/AppData/Roaming/Tencent/WeChat ...
Disabling patch for /home/user/.wine/drive_c/users/user/Application Data/Tencent/WeChat ...
[DoChat] WeChat 3.3.0.115
[DoChat] Starting...
[0331/224707.305:ERROR:network_change_notifier_win.cc(141)] WSALookupServiceBegin failed with: 0
[0331/224707.686:ERROR:sandbox_policy_base.cc(359)] Failed to add sandbox rule. error = 2, subsystem = 0, semantics = 0, pattern = 'C:\users\user\APPL~JHT\Tencent\WeChat\log\xweb.log'
[0331/224707.687:WARNING:gpu_process_host.cc(1204)] The GPU process has crashed 1 time(s)
[0331/224708.024:ERROR:sandbox_policy_base.cc(359)] Failed to add sandbox rule. error = 2, subsystem = 0, semantics = 0, pattern = 'C:\users\user\APPL~JHT\Tencent\WeChat\log\xweb.log'
[0331/224708.024:WARNING:gpu_process_host.cc(1204)] The GPU process has crashed 2 time(s)
[0331/224708.357:ERROR:sandbox_policy_base.cc(359)] Failed to add sandbox rule. error = 2, subsystem = 0, semantics = 0, pattern = 'C:\users\user\APPL~JHT\Tencent\WeChat\log\xweb.log'
[0331/224708.357:WARNING:gpu_process_host.cc(1204)] The GPU process has crashed 3 time(s)
[0331/224708.695:ERROR:sandbox_policy_base.cc(359)] Failed to add sandbox rule. error = 2, subsystem = 0, semantics = 0, pattern = 'C:\users\user\APPL~JHT\Tencent\WeChat\log\xweb.log'
[0331/224708.696:WARNING:gpu_process_host.cc(1204)] The GPU process has crashed 4 time(s)
[0331/224709.116:ERROR:sandbox_policy_base.cc(359)] Failed to add sandbox rule. error = 2, subsystem = 0, semantics = 0, pattern = 'C:\users\user\APPL~JHT\Tencent\WeChat\log\xweb.log'
[0331/224709.117:WARNING:gpu_process_host.cc(1204)] The GPU process has crashed 5 time(s)
[0331/224709.552:ERROR:sandbox_policy_base.cc(359)] Failed to add sandbox rule. error = 2, subsystem = 0, semantics = 0, pattern = 'C:\users\user\APPL~JHT\Tencent\WeChat\log\xweb.log'
[0331/224709.553:WARNING:gpu_process_host.cc(1204)] The GPU process has crashed 6 time(s)
[0331/224709.554:ERROR:browser_gpu_channel_host_factory.cc(153)] Failed to launch GPU process.
[0331/224727.160:ERROR:network_change_notifier_win.cc(141)] WSALookupServiceBegin failed with: 0
[0331/224728.094:ERROR:platform_font_skia.cc(342)] Could not find any font: MS Shell Dlg, sans. Falling back to the default
wine: Unhandled page fault on read access to 00000008 at address 039C3FE3 (thread 0210), starting debugger...
[DoChat] WeChat.exe exit with code 0
[DoChat] Found new version?
/entrypoint.sh:行 35:    89 已杀死               wine 'C:\Program Files\Tencent\WeChat\WeChat.exe'
[DoChat] WeChat.exe exited
lazyeo commented 8 months ago

我也有这个问题 微信能打开,聊天也正常,复制文字剪贴板能共享 但是图片和文件不能直接发送,感觉哪里还不太对