docker-wechat icon indicating copy to clipboard operation
docker-wechat copied to clipboard

DoChat window does not appear after started in Dual Monitor System

Open myf636 opened this issue 4 years ago • 16 comments

1583151244(1)

myf636 avatar Mar 02 '20 12:03 myf636

Hmm... interesting...

Please definitely let me know the reason if you can make it work!

huan avatar Mar 02 '20 13:03 huan

Hmm... interesting...

Please definitely let me know the reason if you can make it work!

I have this problem, show the scale resolution dialog first, then disapper,without top icon showed. I rewrite the dochat.sh, use the docker image bestwu/wechat, then it work. test in Ubuntu 19.10

wangyuhuiever avatar Mar 04 '20 05:03 wangyuhuiever

Same problem here. Manjaro & dsiplay scale = 100% It keeps showing starting but cannot show the window

yuluobin avatar Mar 04 '20 06:03 yuluobin

@wangyuhuiever It should work under Ubuntu 19.10 because I'm right using this version. If you can reproduce on another Ubuntu 19.10 box, please let me know how to reproduce it.

@yuluobin Linux Manjaro distribution should be another issue. Please feel free to create a new issue for the Manjaro distribution problem. Thank you very much.

huan avatar Mar 04 '20 10:03 huan

@huan I found some interesting.... I don't know if you have a 21:9 display, app won't work when the external display connection, but view will appear when I disconnect the external display.

wangyuhuiever avatar Mar 04 '20 12:03 wangyuhuiever

I change the display mode, disapper just happened when I use Join Displays mode, and will stuck if drag the view to external display even it started, so maybe read the display config error?

wangyuhuiever avatar Mar 04 '20 12:03 wangyuhuiever

same ubuntu 20.04

kenbing avatar Mar 04 '20 12:03 kenbing

A new discover, I also use your wxwork, but it works fine.

wangyuhuiever avatar Mar 05 '20 02:03 wangyuhuiever

@huan I found a silly way to fix this bug.

Refer to https://blog.csdn.net/weixin_34419326/article/details/94345055 this may be an old bug on GNOME.

Fix this with the following step:

  1. change the display mode to mirrors, use xrandr --output HDMI-1-2 --same-as eDP-1-1, HDMI-1-2 is the external display, and another is the built-in display.

  2. dochat.sh

  3. change display mode back, use xrandr --output HDMI-1-2 --right-of eDP-1-1. I made a new shell script to do this.

xrandr --output HDMI-1-2 --same-as eDP-1-1 DOCHAT_SKIP_PULL=true /home/yuhui/App/wechat/dochat.sh & sleep 5 xrandr --output HDMI-1-2 --right-of eDP-1-1

During sleep time, you must drag the dialog left, otherwise, it may be stuck on the external display

wangyuhuiever avatar Mar 06 '20 04:03 wangyuhuiever

@wangyuhuiever Thank you very much for sharing the solution of using DoChat with a dual monitor!

Cloud you please add an FAQ entry in our README by sending a PR, so that the future dual monitor users like you can be easily found the solution?

huan avatar Mar 06 '20 08:03 huan

@wangyuhuiever Indeed! Using one screen it starts up perfectly. in 2 or more monitor setups, it won't start up.

I managed to start it with one monitor, and then switch to multiple monitors. This does work, but after dragging the window to other monitors, it disappears mysteriously

jackielii avatar Mar 06 '20 12:03 jackielii

Same problem here. It says starting but I see no window turning up.

ZhangTianrong avatar Mar 17 '20 20:03 ZhangTianrong

The above fix doesn't help in my case. I am trying DoChat out on Ubuntu 18.04 on Parallels virtual machine with an external display connected via HDMI to my physical machine (MacBook pro 15-inch)

I don't think this problem is specific to gnome because I tried on two desktop environments: gnome and deepin. After running the script, there is output Starting Dochat xxxx and I can see a DoChat container running using sudo docker ps. However, there is no GUI window that shows up.

shuheng-liu avatar Apr 09 '20 10:04 shuheng-liu

Just tried on a real Ubuntu 18.04 machine. The problem persists. The above fix doesn’t help since I don’t have any external display connected at all.

shuheng-liu avatar Apr 09 '20 12:04 shuheng-liu

Today I run into this issue after I added a new 4K monitor for my Ubuntu 19.10.

And I found that this issue is related to the zixia/wechat:2.7.1.85: when I run the v2.7.1.85 in my dual monitor system, the CPU got 100% usage and no window shows up.

However, after I decide to dive into it with my development environment, I found that the v2.8.0.112 works without any problem.

To use 2.8.0.112, you can try the following command by specifying DOCHAT_WECHAT_VERSION=2.8.0.112:

curl -sL https://raw.githubusercontent.com/huan/docker-wechat/master/dochat.sh \
  | DOCHAT_WECHAT_VERSION=2.8.0.112 DOCHAT_DPI=200 bash

At last, I found that the input editor in 2.8.0.112 does not show any characters at all, no matter whether it's English or Chinese.

Please feel free reply to this issue if you have any experiences to share, thank you very much.

huan avatar Apr 12 '20 11:04 huan

Today I run into this issue after I added a new 4K monitor for my Ubuntu 19.10.

And I found that this issue is related to the zixia/wechat:2.7.1.85: when I run the v2.7.1.85 in my dual monitor system, the CPU got 100% usage and no window shows up.

However, after I decide to dive into it with my development environment, I found that the v2.8.0.112 works without any problem.

To use 2.8.0.112, you can try the following command by specifying DOCHAT_WECHAT_VERSION=2.8.0.112:

curl -sL https://raw.githubusercontent.com/huan/docker-wechat/master/dochat.sh \
  | DOCHAT_WECHAT_VERSION=2.8.0.112 DOCHAT_DPI=200 bash

At last, I found that the input editor in 2.8.0.112 does not show any characters at all, no matter whether it's English or Chinese.

Please feel free reply to this issue if you have any experiences to share, thank you very much.

After scanning the QR code it shows that the version of the wechat client is too low and it just don't start.

onichandame avatar Jan 06 '21 03:01 onichandame