top-bettercode / docker-wechat

微信 docker 镜像
https://hub.docker.com/r/bestwu/wechat/
486 stars 69 forks source link

X Error of failed request: BadValue (integer parameter out of range for operation) #25

Closed hongyi-zhao closed 3 years ago

hongyi-zhao commented 3 years ago

On Ubuntu 20.04, when I try to save files from file transfer assistant to my computer, the following error occurred and wechat exited:

werner@X10DAi-01:~$ docker-compose -f docker-wechat.yml up
WARNING: Found orphan containers (qq) for this project. If you removed or renamed this service in your compose file, you can run this command with the --remove-orphans flag to clean it up.
Starting wechat ... done
Attaching to wechat
wechat    | 启动 WeChat
wechat    | Run Deepin-WeChat 2.6.8.65deepin0 c:/Program Files/Tencent/WeChat/WeChat.exe
wechat    | run Deepin-WeChat progress pid 
wechat    | total 0
wechat    | lrwxrwxrwx 1 wechat wechat 10 11月  4 22:43 c: -> ../drive_c
wechat    | lrwxrwxrwx 1 wechat wechat  8 11月  4 10:39 d:: -> /dev/sdb
wechat    | lrwxrwxrwx 1 wechat wechat 17 11月  4 10:39 e: -> /media/wayne/Ntfs
wechat    | lrwxrwxrwx 1 wechat wechat  9 11月  4 10:39 e:: -> /dev/sdb1
wechat    | lrwxrwxrwx 1 wechat wechat 12 11月  4 22:43 y: -> /home/wechat
wechat    | lrwxrwxrwx 1 wechat wechat  1 11月  4 22:43 z: -> /
wechat    | CallApp Deepin-WeChat c:/Program Files/Tencent/WeChat/WeChat.exe
wechat    | Disable auto update
wechat    | rm: cannot remove '/home/wechat/.deepinwine/Deepin-WeChat/drive_c/users/wechat/Application Data/Tencent/WeChat/All Users/config/configEx.ini': 没有那个文件或目录
wechat    | 2020年 11月 04日 星期三 22:43:46 UTC:kill WeChat.exe block
wechat    | 2020年 11月 04日 星期三 22:43:46 UTC:No wine process found
wechat    | /home/wechat/.deepinwine/Deepin-WeChat/drive_c/Program Files/Tencent/WeChat
wechat    | Starting process c:/Program Files/Tencent/WeChat/WeChat.exe ...
wechat    | wine: cannot find L"C:\\windows\\system32\\winemenubuilder.exe"
wechat    | wine version: 2.18
wechat    | [1104/224348:INFO:exception_record.cc(518)] [QB]Process ID: 8 Type: 1
wechat    | [1104/224348:ERROR:network_change_notifier_win.cc(156)] WSALookupServiceBegin failed with: 8
wechat    | X Error of failed request:  BadValue (integer parameter out of range for operation)
wechat    |   Major opcode of failed request:  130 (MIT-SHM)
wechat    |   Minor opcode of failed request:  3 (X_ShmPutImage)
wechat    |   Value in failed request:  0x80
wechat    |   Serial number of failed request:  2691
wechat    |   Current serial number in output stream:  2693
wechat    | 退出
wechat exited with code 0

Any hints for this problem?

Regards, HY

JoveYu commented 3 years ago

you can try add --ipc="host" to docker run

hongyi-zhao commented 3 years ago

Deepin has dropped the lion release, as for the reason, see here for more info. The current Deepin codename is apricot. I've created the deepin-wine apricot docker image from scratch which including wechat and qq. Just pull by any of the following commands if someone wants to give a try:

$ docker pull hongyizhao/deepin-wine:apricot
or
$ docker pull hongyizhao/deepin-wine:latest
or
$ docker pull hongyizhao/deepin-wine
top-bettercode commented 3 years ago

可尝试禁用 “MIT-SHM”共享X进程内存的功能

具体操作:

vi /etc/X11/xorg.conf

增加:

Section "Extensions" Option "MIT-SHM" "Disable" EndSection

重启系统