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

运行不出界面 #2

Closed
sulydee opened this issue Nov 25, 2017 · 6 comments
Closed

运行不出界面 #2

sulydee opened this issue Nov 25, 2017 · 6 comments

Comments

@sulydee
Copy link

sulydee commented Nov 25, 2017

1.登录时:
fgh@debian:~$ sudo ./qq.sh
44b942c1c0b1ea6c3bdede9cf5852703dd262d52c9c4040b6fbf2822a6aa9977

日志:
fgh@debian:~$ sudo docker logs qq

启动 TIM

7-Zip [32] 16.02 : Copyright (c) 1999-2016 Igor Pavlov : 2016-05-21
p7zip Version 16.02 (locale=zh_CN.UTF-8,Utf16=on,HugeFiles=on,32 bits,4 CPUs Intel(R) Core(TM) i5-4210U CPU @ 1.70GHz (40651),ASM,AES-NI)

Scanning the drive for archives:
1 file, 73454263 bytes (71 MiB)

Extracting archive: /opt/deepinwine/apps/Deepin-TIM/files.7z
--
Path = /opt/deepinwine/apps/Deepin-TIM/files.7z
Type = 7z
Physical Size = 73454263
Headers Size = 15402
Method = LZMA2:26 BCJ2
Solid = +
Blocks = 1

Everything is Ok

Folders: 269
Files: 1314
Size:       253220795
Compressed: 73454263
/usr/bin/env: "python2": 没有那个文件或目录
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
退出

2.运行过命令:pip3 install python2 且安装成功

3./usr/bin/目录里:

lrwxrwxrwx 1 root root       9 9月  18 16:17 python -> python2.7
lrwxrwxrwx 1 root root       9 11月 26 07:38 python2 -> python2.7
-rwxr-xr-x 1 root root 3701568 9月  18 02:50 python2.7
lrwxrwxrwx 1 root root      33 9月  18 02:50 python2.7-config -> x86_64-linux-gnu-python2.7-config
lrwxrwxrwx 1 root root      16 9月  18 16:17 python2-config -> python2.7-config
-rwxr-xr-x 1 root root     399 11月 16 03:43 python2-jsonschema
-rwxr-xr-x 1 root root     154 11月 11 04:26 python2-pbr
-rwxr-xr-x 1 root root    5694 9月   8  2016 python2-wsdump
lrwxrwxrwx 1 root root       9 10月 27 03:09 python3 -> python3.6
-rwxr-xr-x 2 root root 4568920 10月  4 05:16 python3.6
lrwxrwxrwx 1 root root      33 10月  4 05:16 python3.6-config -> x86_64-linux-gnu-python3.6-config
-rwxr-xr-x 2 root root 4568920 10月  4 05:16 python3.6m
lrwxrwxrwx 1 root root      34 10月  4 05:16 python3.6m-config -> x86_64-linux-gnu-python3.6m-config
lrwxrwxrwx 1 root root      16 10月 27 03:09 python3-config -> python3.6-config
lrwxrwxrwx 1 root root      10 10月 27 03:09 python3m -> python3.6m
lrwxrwxrwx 1 root root      17 10月 27 03:09 python3m-config -> python3.6m-config
lrwxrwxrwx 1 root root      16 9月  18 16:17 python-config -> python2.7-config

qq界面没有出现,不明白怎么回事,求解答,谢谢

@top-bettercode
Copy link
Owner

top-bettercode commented Nov 26, 2017 via email

@sulydee
Copy link
Author

sulydee commented Nov 28, 2017

几个不明白的地方:

一.

MATE、Cinnamon等桌面可以启动,而KDE则无法启动,问题同第一次提问;

二.成功运行后:

1.检测不到摄像头,不能视频,QQ语音可以说,但是听不到别人发的语音,无法直接点击打开文件和文件夹;

引用

vi /etc/X11/xorg.conf
Section "Extensions"
     Option "MIT-SHM" "Disable"
EndSection

2.未执行以上引用过程的时侯面板不显示qq图标,下面是日志:

fgh@debian:~$ sudo docker logs qq
启动 QQLight

7-Zip [32] 16.02 : Copyright (c) 1999-2016 Igor Pavlov : 2016-05-21
p7zip Version 16.02 (locale=zh_CN.UTF-8,Utf16=on,HugeFiles=on,32 bits,4 CPUs Intel(R) Core(TM) i5-4210U CPU @ 1.70GHz (40651),ASM,AES-NI)

Scanning the drive for archives:
1 file, 57028555 bytes (55 MiB)

Extracting archive: /opt/deepinwine/apps/Deepin-QQLight/files.7z
--
Path = /opt/deepinwine/apps/Deepin-QQLight/files.7z
Type = 7z
Physical Size = 57028555
Headers Size = 13846
Method = LZMA2:26 BCJ2
Solid = +
Blocks = 1

Everything is Ok

Folders: 197
Files: 1236
Size:       200038625
Compressed: 57028555
/usr/bin/env: "python2": 没有那个文件或目录
wine: cannot find L"C:\\windows\\system32\\winemenubuilder.exe"
wine: Unhandled page fault on read access to 0xc5fb75fe at address 0x7e805040 (thread 0019), starting debugger...
Could not load wine-gecko. HTML rendering will be disabled.
wine: configuration in '/home/qq/.deepinwine/Deepin-QQLight' has been updated.
wine: cannot find L"C:\\Program Files\\Tencent\\QQLite\\Bin\\TXPlatform.exe"
init server success 127.0.0.1 12291
ALSA lib pcm_dmix.c:1052:(snd_pcm_dmix_open) unable to open slave
ALSA lib pcm_dsnoop.c:618:(snd_pcm_dsnoop_open) unable to open slave
ALSA lib pcm.c:8306:(snd_pcm_recover) underrun occurred
ALSA lib pcm.c:8306:(snd_pcm_recover) underrun occurred
ALSA lib pcm.c:8306:(snd_pcm_recover) overrun occurred
ALSA lib pcm.c:8306:(snd_pcm_recover) overrun occurred
ALSA lib pcm.c:8306:(snd_pcm_recover) underrun occurred
ALSA lib pcm.c:8306:(snd_pcm_recover) overrun occurred
ALSA lib pcm.c:8306:(snd_pcm_recover) overrun occurred

3.执行以上过程的时侯面板正常显示qq图标,下面是日志:

fgh@debian:~$ sudo docker logs qq
启动 QQLight

7-Zip [32] 16.02 : Copyright (c) 1999-2016 Igor Pavlov : 2016-05-21
p7zip Version 16.02 (locale=zh_CN.UTF-8,Utf16=on,HugeFiles=on,32 bits,4 CPUs Intel(R) Core(TM) i5-4210U CPU @ 1.70GHz (40651),ASM,AES-NI)

Scanning the drive for archives:
1 file, 57028555 bytes (55 MiB)

Extracting archive: /opt/deepinwine/apps/Deepin-QQLight/files.7z
--
Path = /opt/deepinwine/apps/Deepin-QQLight/files.7z
Type = 7z
Physical Size = 57028555
Headers Size = 13846
Method = LZMA2:26 BCJ2
Solid = +
Blocks = 1

Everything is Ok

Folders: 197
Files: 1236
Size:       200038625
Compressed: 57028555
/usr/bin/env: "python2": 没有那个文件或目录
wine: cannot find L"C:\\windows\\system32\\winemenubuilder.exe"
wine: Unhandled page fault on read access to 0xc5fb75fe at address 0x7ef84040 (thread 0019), starting debugger...
Xlib:  extension "MIT-SHM" missing on display "unix:0".
Could not load wine-gecko. HTML rendering will be disabled.
wine: configuration in '/home/qq/.deepinwine/Deepin-QQLight' has been updated.
Xlib:  extension "MIT-SHM" missing on display "unix:0".
Xlib:  extension "MIT-SHM" missing on display "unix:0".
Xlib:  extension "MIT-SHM" missing on display "unix:0".
wine: cannot find L"C:\\Program Files\\Tencent\\QQLite\\Bin\\TXPlatform.exe"
Xlib:  extension "MIT-SHM" missing on display "unix:0".
Xlib:  extension "MIT-SHM" missing on display "unix:0".
Xlib:  extension "MIT-SHM" missing on display "unix:0".
Xlib:  extension "MIT-SHM" missing on display "unix:0".
init server success 127.0.0.1 12291
Xlib:  extension "MIT-SHM" missing on display "unix:0".

毕竟不是原生QQ,虽然提出了这些问题,但总体体验比wine好多了,非常感谢@bestWU

@top-bettercode
Copy link
Owner

top-bettercode commented Nov 28, 2017

  1. KDE 的X11存在“X Error of failed request: BadWindow (invalid Window parameter)
    Major opcode of failed request: 20 (X_GetProperty)”不能显示界面这个问题,暂时未找到解决方法

2.无声音,请尝试以下配置

  docker run -d --name qq \
    -v /tmp/.X11-unix:/tmp/.X11-unix \
    -v ${XDG_RUNTIME_DIR}/pulse/native:${XDG_RUNTIME_DIR}/pulse/native \
    -v $HOME/TencentFiles:/TencentFiles \
    -e DISPLAY=unix$DISPLAY \
    -e XMODIFIERS=@im=fcitx \
    -e QT_IM_MODULE=fcitx \
    -e GTK_IM_MODULE=fcitx \
    -e PULSE_SERVER=unix:${XDG_RUNTIME_DIR}/pulse/native \
    -e XDG_RUNTIME_DIR=${XDG_RUNTIME_DIR} \
    -e GID=`id -g` \
    -e UID=`id -u` \
    bestwu/qq:office

3.文件夹权限请确认GID UID参数是你当前用户的gid,uid

@sulydee
Copy link
Author

sulydee commented Nov 29, 2017

Get,辉常感谢,比wine好用多了!

@joe104
Copy link

joe104 commented Jan 31, 2019

Get,辉常感谢,比wine好用多了!

其实还是wine,人家帮我们把wine环境都部署好了。贴心~~

@liyiheng
Copy link

liyiheng commented Dec 3, 2019

extendswind commented on 2019-01-18 00:53
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
非gnome系的解决方案:安装gnome-settings-daemon,然后运行/usr/lib/gsd-xsettings
manjaro+awesome下测试通过

https://aur.archlinux.org/packages/deepin.com.qq.office/

arch + kde 下测试通过

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

4 participants