Python x11vnc连接意外断开

Python x11vnc连接意外断开,python,x11,vnc,Python,X11,Vnc,我正在使用连接PC/平板电脑作为辅助显示器。当我运行脚本并连接(在Android上使用)时,它会工作几分钟,但由于以下错误而失败 问题的根源是什么?我该如何规避 错误: caught XIO error: 09/11/2020 17:47:26 deleted 43 tile_row polling images. 09/11/2020 17:47:18 Got connection from client 192.168.0.56 09/11/2020 17:47:18 0 other

我正在使用连接PC/平板电脑作为辅助显示器。当我运行脚本并连接(在Android上使用)时,它会工作几分钟,但由于以下错误而失败

问题的根源是什么?我该如何规避

错误:

caught XIO error:
09/11/2020 17:47:26 deleted 43 tile_row polling images.
09/11/2020 17:47:18 Got connection from client 192.168.0.56
09/11/2020 17:47:18   0 other clients
09/11/2020 17:47:19 Normal socket connection
09/11/2020 17:47:19 guessed desktop: gnome
09/11/2020 17:47:19 guessed dbus: 
09/11/2020 17:47:19 running pipe:

   gconftool-2 --get /desktop/gnome/background/primary_color

09/11/2020 17:47:19 running pipe:

   gconftool-2 --get /desktop/gnome/background/picture_options

09/11/2020 17:47:19 running command:

   gconftool-2 --set --type string /desktop/gnome/background/primary_color 'cyan4'

09/11/2020 17:47:19 running command:

   gconftool-2 --set --type string /desktop/gnome/background/picture_options 'none'

09/11/2020 17:47:19 incr accepted_client=1 for 192.168.0.56:60956  sock=10
09/11/2020 17:47:19 Client Protocol Version 3.8
09/11/2020 17:47:19 Protocol version sent 3.8, using 3.8
09/11/2020 17:47:19 rfbProcessClientSecurityType: executing handler for type 2
09/11/2020 17:47:19 Pixel format for client 192.168.0.56:
09/11/2020 17:47:19   32 bpp, depth 24, little endian
09/11/2020 17:47:19   true colour: max r 255 g 255 b 255, shift r 16 g 8 b 0
09/11/2020 17:47:19 no translation needed
09/11/2020 17:47:19 Using compression level 6 for client 192.168.0.56
09/11/2020 17:47:19 Using image quality level 7 for client 192.168.0.56
09/11/2020 17:47:19 Using JPEG subsampling 0, Q86 for client 192.168.0.56
09/11/2020 17:47:19 Enabling X-style cursor updates for client 192.168.0.56
09/11/2020 17:47:19 Enabling full-color cursor updates for client 192.168.0.56
09/11/2020 17:47:19 Enabling cursor position updates for client 192.168.0.56
09/11/2020 17:47:19 Enabling LastRect protocol extension for client 192.168.0.56
09/11/2020 17:47:19 Enabling NewFBSize protocol extension for client 192.168.0.56
09/11/2020 17:47:19 Enabling ExtDesktopSize protocol extension for client 192.168.0.56
09/11/2020 17:47:19 Using tight encoding for client 192.168.0.56
09/11/2020 17:47:19 Sending rfbEncodingExtDesktopSize for size (1366x768) 
09/11/2020 17:47:19 client_set_net: 192.168.0.56  0.0095
09/11/2020 17:47:19 created   xdamage object: 0x3e0002f
09/11/2020 17:47:19 client 1 network rate 627.6 KB/sec (21788.5 eff KB/sec)
09/11/2020 17:47:19 client 1 latency:  22.1 ms
09/11/2020 17:47:19 dt1: 0.0205, dt2: 0.1831 dt3: 0.0221 bytes: 120875
09/11/2020 17:47:19 link_rate: LR_UNKNOWN - 22 ms, 627 KB/s
09/11/2020 17:47:20 copy_tiles: allocating first_line at size 44
caught XIO error:
09/11/2020 17:47:26 deleted 43 tile_row polling images.



Press ENTER to continue
完整日志:

caught XIO error:
09/11/2020 17:47:26 deleted 43 tile_row polling images.
09/11/2020 17:47:18 Got connection from client 192.168.0.56
09/11/2020 17:47:18   0 other clients
09/11/2020 17:47:19 Normal socket connection
09/11/2020 17:47:19 guessed desktop: gnome
09/11/2020 17:47:19 guessed dbus: 
09/11/2020 17:47:19 running pipe:

   gconftool-2 --get /desktop/gnome/background/primary_color

09/11/2020 17:47:19 running pipe:

   gconftool-2 --get /desktop/gnome/background/picture_options

09/11/2020 17:47:19 running command:

   gconftool-2 --set --type string /desktop/gnome/background/primary_color 'cyan4'

09/11/2020 17:47:19 running command:

   gconftool-2 --set --type string /desktop/gnome/background/picture_options 'none'

09/11/2020 17:47:19 incr accepted_client=1 for 192.168.0.56:60956  sock=10
09/11/2020 17:47:19 Client Protocol Version 3.8
09/11/2020 17:47:19 Protocol version sent 3.8, using 3.8
09/11/2020 17:47:19 rfbProcessClientSecurityType: executing handler for type 2
09/11/2020 17:47:19 Pixel format for client 192.168.0.56:
09/11/2020 17:47:19   32 bpp, depth 24, little endian
09/11/2020 17:47:19   true colour: max r 255 g 255 b 255, shift r 16 g 8 b 0
09/11/2020 17:47:19 no translation needed
09/11/2020 17:47:19 Using compression level 6 for client 192.168.0.56
09/11/2020 17:47:19 Using image quality level 7 for client 192.168.0.56
09/11/2020 17:47:19 Using JPEG subsampling 0, Q86 for client 192.168.0.56
09/11/2020 17:47:19 Enabling X-style cursor updates for client 192.168.0.56
09/11/2020 17:47:19 Enabling full-color cursor updates for client 192.168.0.56
09/11/2020 17:47:19 Enabling cursor position updates for client 192.168.0.56
09/11/2020 17:47:19 Enabling LastRect protocol extension for client 192.168.0.56
09/11/2020 17:47:19 Enabling NewFBSize protocol extension for client 192.168.0.56
09/11/2020 17:47:19 Enabling ExtDesktopSize protocol extension for client 192.168.0.56
09/11/2020 17:47:19 Using tight encoding for client 192.168.0.56
09/11/2020 17:47:19 Sending rfbEncodingExtDesktopSize for size (1366x768) 
09/11/2020 17:47:19 client_set_net: 192.168.0.56  0.0095
09/11/2020 17:47:19 created   xdamage object: 0x3e0002f
09/11/2020 17:47:19 client 1 network rate 627.6 KB/sec (21788.5 eff KB/sec)
09/11/2020 17:47:19 client 1 latency:  22.1 ms
09/11/2020 17:47:19 dt1: 0.0205, dt2: 0.1831 dt3: 0.0221 bytes: 120875
09/11/2020 17:47:19 link_rate: LR_UNKNOWN - 22 ms, 627 KB/s
09/11/2020 17:47:20 copy_tiles: allocating first_line at size 44
caught XIO error:
09/11/2020 17:47:26 deleted 43 tile_row polling images.



Press ENTER to continue

我正在Arch Linux上使用Python 3.8.6

您是否尝试在project上提出问题(即使它不再维护)?我从来没有听说过这个项目。但它看起来就像是在
xrandr
命令上面进行包装。你有没有试过保持活力?使用
ServerAliveInterval
SSH选项?@arthurlm感谢您的回复。我认为我不应该打开一个新的问题,因为图书馆没有维护。我很快就会创建一个,谢谢。据我所知,它使用
x11vnc
创建服务器,以便第二台显示器(pc、平板电脑)可以连接到它。在哪里设置
ServerAliveInterval
选项?您可以在
~/.ssh/config
文件中设置
ServerAliveInterval
选项。我认为问题来自连接超时/心跳缺失。我不知道您是如何连接到远程服务器的,我猜您正在通过SSH使用X11。但我的猜测/答案也可能完全无关。顺便问一下:你看过这个问题吗?