Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dochat.sh always prints "Exited with code [0]" #200

Open
WhyNotHugo opened this issue Jun 20, 2023 · 2 comments
Open

dochat.sh always prints "Exited with code [0]" #200

WhyNotHugo opened this issue Jun 20, 2023 · 2 comments

Comments

@WhyNotHugo
Copy link

After docker exits, this echo command runs:

https://github.com/huan/docker-wechat/blob/ba83bb4/dochat.sh#L124

echo will always exit with code 0. The following line always prints the exit code of echo not the exit code of the docker command:

https://github.com/huan/docker-wechat/blob/ba83bb4/dochat.sh#L125

This script is set -e. If docker exists non-zero, the scripts exist immediately and this message is not printed at all.

@luongvancong
Copy link

Same error

00e0:fixme:ver:GetCurrentPackageId (04BCFEF0 00000000): stub
00e0:fixme:sync:SetWaitableTimerEx (000000BC, 04BCFDA0, 0, 00000000, 00000000, 00000000, 1500) semi-stub
00dc:err:winediag:nodrv_CreateWindow Application tried to create a window, but no driver could be loaded.
00dc:err:winediag:nodrv_CreateWindow Make sure that your X server is running and that $DISPLAY is set correctly.
011c:fixme:iphlpapi:NotifyAddrChange (Handle 0x661fefc, overlapped 0x661fee4): stub
00dc:fixme:win:RegisterTouchWindow (00030040 00000000): stub
0120:err:seh:NtRaiseException Unhandled exception code c0000005 flags 0 addr 0x7bc2a1f5

@z2z63
Copy link

z2z63 commented Jan 16, 2024

the same error
debug log:

➜  ~ DOCHAT_DEBUG=true bash dochat.sh

       ____         ____ _           _
      |  _ \  ___  / ___| |__   __ _| |_
      | | | |/ _ \| |   | '_ \ / _` | __|
      | |_| | (_) | |___| | | | (_| | |_
      |____/ \___/ \____|_| |_|\__,_|\__|

      https://github.com/huan/docker-wechat

                +--------------+
               /|             /|
              / |            / |
             *--+-----------*  |
             |  |           |  |
             |  |   盒装    |  |
             |  |   微信    |  |
             |  +-----------+--+
             | /            | /
             |/             |/
             *--------------*

      DoChat /dɑɑˈtʃæt/ (Docker-weChat) is:

      📦 a Docker image
      🤐 for running PC Windows WeChat
      💻 on your Linux desktop
      💖 by one-line of command

🚀 Pulling the docker image...

3.3.0.115: Pulling from zixia/wechat
Digest: sha256:69411b334353b0993e3a8affc59eab888338275b086444f61e396046cf767cf5
Status: Image is up to date for zixia/wechat:3.3.0.115
docker.io/zixia/wechat:3.3.0.115

🚀 Pulling the docker image done.
🚀 Starting DoChat /dɑɑˈtʃæt/ ...

+ main
++ id -u
+ '[' 1000 -ne 0 ']'
+ startWechat
+ hello
++ cat /VERSION
[DoChat] 盒装微信 v0.15.1
+ VERSION=0.15.1
+ echo '[DoChat] 盒装微信 v0.15.1'
+ setupFontDpi
+ DELETE_KEYS=('HKEY_CURRENT_USER\Control Panel\Desktop' 'HKEY_CURRENT_USER\Software\Wine\Fonts')
+ for key in "${DELETE_KEYS[@]}"
+ wine reg DELETE 'HKEY_CURRENT_USER\Control Panel\Desktop' /v LogPixels /f
+ true
+ for key in "${DELETE_KEYS[@]}"
+ wine reg DELETE 'HKEY_CURRENT_USER\Software\Wine\Fonts' /v LogPixels /f
+ wine reg ADD 'HKEY_LOCAL_MACHINE\System\CurrentControlSet\Hardware Profiles\Current\Software\Fonts' /v LogPixels /t REG_DWORD /d 120 /f
+ /dochat/patch-hosts.sh
+ /dochat/disable-upgrade.sh
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 ...
+ '[' -n true ']'
+ unset WINEDEBUG
+ wine reg query 'HKEY_CURRENT_USER\Software\Tencent\WeChat'

HKEY_CURRENT_USER\Software\Tencent\WeChat
    NeedUpdateType    REG_DWORD    0x0

+ echo '[DoChat] DISPLAY=:1'
[DoChat] DISPLAY=:1
++ head -1 /home/VERSION.WeChat
[DoChat] WeChat 3.3.0.115
[DoChat] Starting...
+ VERSION=3.3.0.115
+ echo '[DoChat] WeChat 3.3.0.115'
+ true
+ echo '[DoChat] Starting...'
+ '[' -n true ']'
+ wine 'C:\Program Files\Tencent\WeChat\WeChat.exe'
00e0:fixme:ver:GetCurrentPackageId (04BCFEF0 00000000): stub
00e0:fixme:sync:SetWaitableTimerEx (000000BC, 04BCFDA0, 0, 00000000, 00000000, 00000000, 1500) semi-stub
00dc:err:winediag:nodrv_CreateWindow Application tried to create a window, but no driver could be loaded.
00dc:err:winediag:nodrv_CreateWindow Make sure that your X server is running and that $DISPLAY is set correctly.
011c:fixme:iphlpapi:NotifyAddrChange (Handle 0x661fefc, overlapped 0x661fee4): stub
00dc:fixme:win:RegisterTouchWindow (00030040 00000000): stub
00dc:err:seh:NtRaiseException Unhandled exception code c0000005 flags 0 addr 0x7bc2a1f5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants