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.23k stars 199 forks source link

X Error of failed request: GLXBadContext wechat 3.3.0.115 #154

Open decewei opened 2 years ago

decewei commented 2 years ago

I got this error on Ubuntu 18.04, while running wechat 3.3.0.115 docker image.

3.3.0.115: Pulling from zixia/wechat
Digest: sha256:7b48c45ef1fcd1e164b2def03f7a17775e9d4f409420588dd8bf8ac8b4b02fb4
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/ ...

[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...
libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: swrast
X Error of failed request:  GLXBadContext
  Major opcode of failed request:  151 (GLX)
  Minor opcode of failed request:  6 (X_GLXIsDirect)
  Serial number of failed request:  281
  Current serial number in output stream:  280
[DoChat] WeChat.exe exit with code 0
[DoChat] Found new version?
[DoChat] WeChat.exe exited

📦 DoChat Exited with code [0]
blakeliu commented 2 years ago

I got the same error!

🚀 Pulling the docker image...

3.3.0.115: Pulling from zixia/wechat Digest: sha256:7b48c45ef1fcd1e164b2def03f7a17775e9d4f409420588dd8bf8ac8b4b02fb4 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/ ...

[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... libGL error: No matching fbConfigs or visuals found libGL error: failed to load driver: swrast X Error of failed request: GLXBadContext Major opcode of failed request: 151 (GLX) Minor opcode of failed request: 6 (X_GLXIsDirect) Serial number of failed request: 779 Current serial number in output stream: 778 [DoChat] WeChat.exe exit with code 0 [DoChat] Found new version? [DoChat] WeChat.exe exited

📦 DoChat Exited with code [0]

🐞 Bug Report: https://github.com/huan/docker-wechat/issues

wmdhs12138 commented 2 years ago

Same here pop os 21.10 🚀 Pulling the docker image...

3.3.0.115: Pulling from zixia/wechat Digest: sha256:7b48c45ef1fcd1e164b2def03f7a17775e9d4f409420588dd8bf8ac8b4b02fb4 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/ ...

[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... libGL error: No matching fbConfigs or visuals found libGL error: failed to load driver: swrast X Error of failed request: GLXBadContext Major opcode of failed request: 152 (GLX) Minor opcode of failed request: 6 (X_GLXIsDirect) Serial number of failed request: 551 Current serial number in output stream: 550 [DoChat] WeChat.exe exit with code 0 [DoChat] Found new version? [DoChat] WeChat.exe exited

📦 DoChat Exited with code [0]

🐞 Bug Report: https://github.com/huan/docker-wechat/issues

fredrikrab commented 2 years ago

Same here pop os 21.10 rocket Pulling the docker image...

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

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

[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... libGL error: No matching fbConfigs or visuals found libGL error: failed to load driver: swrast X Error of failed request: GLXBadContext Major opcode of failed request: 152 (GLX) Minor opcode of failed request: 6 (X_GLXIsDirect) Serial number of failed request: 551 Current serial number in output stream: 550 [DoChat] WeChat.exe exit with code 0 [DoChat] Found new version? [DoChat] WeChat.exe exited

package DoChat Exited with code [0]

lady_beetle Bug Report: https://github.com/huan/docker-wechat/issues

Same (also on Pop!_OS 21). Running with DOCHAT_DEBUG=true yields the following:

curl -sL https://raw.githubusercontent.com/huan/docker-wechat/master/dochat.sh | DOCHAT_DEBUG=true bash

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

      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:7b48c45ef1fcd1e164b2def03f7a17775e9d4f409420588dd8bf8ac8b4b02fb4
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
+ VERSION=0.14.4
+ echo '[DoChat] 盒装微信 v0.14.4'
+ setupFontDpi
[DoChat] 盒装微信 v0.14.4
+ 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

[DoChat] DISPLAY=:1
+ echo '[DoChat] DISPLAY=:1'
++ head -1 /home/VERSION.WeChat
+ VERSION=3.3.0.115
+ echo '[DoChat] WeChat 3.3.0.115'
+ true
+ echo '[DoChat] Starting...'
[DoChat] WeChat 3.3.0.115
[DoChat] Starting...
+ '[' -n true ']'
+ wine 'C:\Program Files\Tencent\WeChat\WeChat.exe'
00e4:fixme:ver:GetCurrentPackageId (04BCFEF0 00000000): stub
00e4:fixme:sync:SetWaitableTimerEx (000000C4, 04BCFDA0, 0, 00000000, 00000000, 00000000, 1500) semi-stub
0114:fixme:iphlpapi:NotifyAddrChange (Handle 0x62efefc, overlapped 0x62efee4): stub
00e0:fixme:win:RegisterTouchWindow (00010056 00000000): stub
011c:fixme:ole:NdrCorrelationInitialize (0694F154, 0694EC30, 1024, 0x0): semi-stub
011c:fixme:ole:NdrCorrelationFree (0694F154): stub
011c:fixme:reg:RegOpenUserClassesRoot (000001D8, 0x0, 0x2000000, 0694FBC8) semi-stub
0118:fixme:wlanapi:WlanEnumInterfaces (00000001, 00000000, 063FE380) semi-stub
011c:fixme:wbemprox:client_security_SetBlanket 62EA17A8, 06440248, 10, 0, (null), 3, 3, 00000000, 0x00000000
011c:fixme:wbemprox:client_security_Release 62EA17A8
011c:fixme:wbemprox:client_security_SetBlanket 62EA17A8, 04A972C8, 10, 0, (null), 3, 3, 00000000, 0x00000000
011c:fixme:wbemprox:client_security_Release 62EA17A8
011c:fixme:wbemprox:client_security_SetBlanket 62EA17A8, 04A972C8, 10, 0, (null), 3, 3, 00000000, 0x00000000
011c:fixme:wbemprox:client_security_Release 62EA17A8
011c:fixme:wbemprox:client_security_SetBlanket 62EA17A8, 04A972C8, 10, 0, (null), 3, 3, 00000000, 0x00000000
011c:fixme:wbemprox:client_security_Release 62EA17A8
011c:fixme:wbemprox:client_security_SetBlanket 62EA17A8, 04A972C8, 10, 0, (null), 3, 3, 00000000, 0x00000000
011c:fixme:wbemprox:client_security_Release 62EA17A8
011c:fixme:wbemprox:client_security_SetBlanket 62EA17A8, 064422E0, 10, 0, (null), 3, 3, 00000000, 0x00000000
011c:fixme:wbemprox:client_security_Release 62EA17A8
011c:fixme:ntdll:NtQuerySystemInformation info_class SYSTEM_PERFORMANCE_INFORMATION
011c:fixme:wbemprox:client_security_SetBlanket 62EA17A8, 04A972C8, 10, 0, (null), 3, 3, 00000000, 0x00000000
011c:fixme:wbemprox:client_security_Release 62EA17A8
0124:fixme:file:NtLockFile I/O completion on lock not implemented yet
libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: swrast
X Error of failed request:  GLXBadContext
  Major opcode of failed request:  151 (GLX)
  Minor opcode of failed request:  6 (X_GLXIsDirect)
  Serial number of failed request:  278
  Current serial number in output stream:  277
yuanhangsu commented 2 years ago

It seems to be a graphic card driver problem according to here: https://askubuntu.com/questions/541343/problems-with-libgl-fbconfigs-swrast-through-each-update

In my case, I'm using a nvidia GTX 960m card with driver version 470.129.06 Can you verify which version of nvidia graphic driver is supported? Will loop back if I have any succsess in debugging

Fishremen commented 1 year ago

It looks like...nvidia-docker2 doesn't support OpenGL applications so far... https://github.com/NVIDIA/nvidia-docker/issues/534. trying to revert to version 1

Fishremen commented 1 year ago

It looks like...nvidia-docker2 doesn't support OpenGL applications so far... NVIDIA/nvidia-docker#534. trying to revert to version 1

After reverted to version 1, by changing repo image and reinstall packages: libnvidia-container-tools libnvidia-container1 nvidia-container-toolkit nvidia-container-toolkit-base ...

Then, install cuda packages: image

Then, restart docker and it works...