zq1997 / deepin-wine

【deepin源移植】Debian/Ubuntu上的QQ/微信快速安装方式
https://deepin-wine.i-m.dev
GNU General Public License v3.0
5.11k stars 384 forks source link

X Error of failed request: BadWindow (invalid Window parameter) #48

Open ohyooo opened 4 years ago

ohyooo commented 4 years ago

RT

这个 repo Jactor-Sue/Deepin-Apps-Installation 说 KDE Plasma不支持 可能就是不支持吧

u@u:~$ cat /etc/issue
KDE neon 5.18 \n \l
u@u:~$ cat /proc/version 
Linux version 5.3.0-53-generic (buildd@lgw01-amd64-016) (gcc version 7.5.0 (Ubuntu 7.5.0-3ubuntu1~18.04)) #47~18.04.1-Ubuntu SMP Thu May 7 13:10:50 UTC 2020
u@u:~$ "/opt/deepinwine/apps/Deepin-WeChat/run.sh" -u %u
Run Deepin-WeChat 2.6.8.65deepin0 c:/Program Files/Tencent/WeChat/WeChat.exe -u %u
run Deepin-WeChat progress pid 
Gtk-Message: 14:53:21.815: GtkDialog mapped without a transient parent. This is discouraged.
total 0
lrwxrwxrwx 1 u u 10 5月  28 14:53 c: -> ../drive_c
lrwxrwxrwx 1 u u 10 5月  28 14:28 com1 -> /dev/ttyS0
lrwxrwxrwx 1 u u 10 5月  28 14:28 com10 -> /dev/ttyS9
lrwxrwxrwx 1 u u 11 5月  28 14:28 com11 -> /dev/ttyS10
lrwxrwxrwx 1 u u 11 5月  28 14:28 com12 -> /dev/ttyS11
lrwxrwxrwx 1 u u 11 5月  28 14:28 com13 -> /dev/ttyS12
lrwxrwxrwx 1 u u 11 5月  28 14:28 com14 -> /dev/ttyS13
lrwxrwxrwx 1 u u 11 5月  28 14:28 com15 -> /dev/ttyS14
lrwxrwxrwx 1 u u 11 5月  28 14:28 com16 -> /dev/ttyS15
lrwxrwxrwx 1 u u 10 5月  28 14:28 com2 -> /dev/ttyS1
lrwxrwxrwx 1 u u 10 5月  28 14:28 com3 -> /dev/ttyS2
lrwxrwxrwx 1 u u 10 5月  28 14:28 com4 -> /dev/ttyS3
lrwxrwxrwx 1 u u 10 5月  28 14:28 com5 -> /dev/ttyS4
lrwxrwxrwx 1 u u 10 5月  28 14:28 com6 -> /dev/ttyS5
lrwxrwxrwx 1 u u 10 5月  28 14:28 com7 -> /dev/ttyS6
lrwxrwxrwx 1 u u 10 5月  28 14:28 com8 -> /dev/ttyS7
lrwxrwxrwx 1 u u 10 5月  28 14:28 com9 -> /dev/ttyS8
lrwxrwxrwx 1 u u  8 5月  28 14:28 d:: -> /dev/sdb
lrwxrwxrwx 1 u u 17 5月  28 14:28 e: -> /media/wayne/Ntfs
lrwxrwxrwx 1 u u  9 5月  28 14:28 e:: -> /dev/sdb1
lrwxrwxrwx 1 u u  9 5月  28 14:53 y: -> /home/u
lrwxrwxrwx 1 u u  1 5月  28 14:53 z: -> /
CallApp Deepin-WeChat c:/Program Files/Tencent/WeChat/WeChat.exe %u 
Disable auto update
rm: cannot remove '/home/u/.deepinwine/Deepin-WeChat/drive_c/users/u/Application Data/Tencent/WeChat/All Users/config/configEx.ini': No such file or directory
2020年 05月 28日 星期四 14:53:21 CST:kill WeChat.exe block
2020年 05月 28日 星期四 14:53:21 CST:No wine process found
/home/u/.deepinwine/Deepin-WeChat/drive_c/Program Files/Tencent/WeChat
Starting process c:/Program Files/Tencent/WeChat/WeChat.exe %u  ...
u@u:~$ X Error of failed request:  BadWindow (invalid Window parameter)
  Major opcode of failed request:  20 (X_GetProperty)
  Resource id in failed request:  0x0
  Serial number of failed request:  10
  Current serial number in output stream:  10
zq1997 commented 4 years ago

可能是驱动问题

Karl15926 commented 3 years ago

一样的问题,不知道楼主和开发者大大有没有解决方法?我的是pixelbook上的debian。 Screenshot 2020-09-21 at 17.31.00.png

ohyooo commented 3 years ago

@Karl15926

公司换成 Teams 了 ╮(╯▽╰)╭

微信就在摸鱼时候拿起来看看 <( ̄▽ ̄)/

Karl15926 commented 3 years ago

补充一点信息,我刚装上的时候是可以用的,微信也升级到了最新版,当时一切正常,图片可以发送、小程序都可以运行(出乎意料),后来重启Linux容器了一次就成这样了,在这之间唯一做的一件事就是安装了fcitx和fcitx-googlepinyin、fcitx-rime.

Karl15926 commented 3 years ago

找到解决办法了,可以参考 https://github.com/wszqkzqk/deepin-wine-ubuntu/issues/12 https://aur.archlinux.org/packages/deepin.com.qq.office/ 也就是装一个gnome-settings-daemon sudo apt install gnome-settings-daemon 之后执行 ./usr/lib/gnome-settings-daemon/gsd-xsettings 或者 /usr/lib/gsd-xsettings 就可以了。 但与此同时带来的一个问题就是其他linux软件的dpi直接变小了……高分屏上看着费眼,WeChat的倒是没问题,毕竟可以用winecfg来调dpi

Karl15926 commented 3 years ago

更好的解决办法,参考:https://github.com/wszqkzqk/deepin-wine-ubuntu/issues/90https://github.com/countstarlight/deepin-wine-wechat-arch#2-%E5%AF%B9%E4%BA%8E%E9%9D%9E-gnome-%E6%A1%8C%E9%9D%A2kde-xfce%E7%AD%89 不需安装gnome-settings-daemon而是安装xsettingsd,即 sudo apt install xsettingsd 之后修改文件 sudo nano /opt/deepinwine/tools/run_v2.sh 修改内容参考:https://github.com/countstarlight/deepin-wine-wechat-arch#2-%E5%AF%B9%E4%BA%8E%E9%9D%9E-gnome-%E6%A1%8C%E9%9D%A2kde-xfce%E7%AD%89 Screenshot 2020-09-22 at 01.02.54.png 唯一的小问题就是这个文件每次微信更新后都会被覆盖,所以更新后需要重新修改。