Bugzilla – Bug 1213153
x11vnc slow and generates mouse errors after kernel 6.3.7 - Debian reports fix for x11vnc.
Last modified: 2023-08-29 12:55:08 UTC
I get log entries that do not happen in Leap 15.5. Also response it extremely slow typing. Searching the internet I found the aur version x11vnc-git 1:0.9.16.r12 it fixed the issue. It appears to be a 6.3.7 and newer kernel issue. Link https://aur.archlinux.org/packages/x11vnc-git I think they are mouse movements - that is what is in most of the Debian issues. 08/07/2023 10:38:47 client 1 network rate 35445.7 KB/sec (95144.3 eff KB/sec) 08/07/2023 10:38:47 client 1 latency: 0.7 ms 08/07/2023 10:38:47 dt1: 0.0410, dt2: 0.0465 dt3: 0.0007 bytes: 3090570 08/07/2023 10:38:47 link_rate: LR_LAN - 1 ms, 35445 KB/s 08/07/2023 10:38:47 client_set_net: 192.168.20.101 0.0003 08/07/2023 10:38:57 created selwin: 0x1700040 08/07/2023 10:38:57 called initialize_xfixes() *** fb_push ublen NOT ZERO: 16311911 *** fb_push ublen NOT ZERO: 1526748927 *** fb_push ublen NOT ZERO: -301943553 *** fb_push ublen NOT ZERO: -1728058381 *** fb_push ublen NOT ZERO: 457704657 *** fb_push ublen NOT ZERO: -205 *** fb_push ublen NOT ZERO: 1208277247 *** fb_push ublen NOT ZERO: 655148 *** fb_push ublen NOT ZERO: 1226440954 *** fb_push ublen NOT ZERO: 1094748757 *** fb_push ublen NOT ZERO: -70254515 *** fb_push ublen NOT ZERO: -49267 *** fb_push ublen NOT ZERO: 1905121 *** fb_push ublen NOT ZERO: 1834029090 *** fb_push ublen NOT ZERO: 1241519162 *** fb_push ublen NOT ZERO: 1230537984 *** fb_push ublen NOT ZERO: 1392507903 *** fb_push ublen NOT ZERO: -16777472 *** fb_push ublen NOT ZERO: 14810963 *** fb_push ublen NOT ZERO: -402849681 user@LLR4:~> x11vnc --version x11vnc: 0.9.16 lastmod: 2019-01-05
(In reply to Larry Rainey from comment #0) > Searching the internet I found the aur version x11vnc-git 1:0.9.16.r12 it > fixed the issue. It appears to be a 6.3.7 and newer kernel issue. Could you give the info URL? From your description, it's not clear whether it's a kernel bug or x11vnc bug, even though it seems worked around in x11vnc side for arch.
It only happens in Tumbleweed. Same version of x11vnc in Leap 15.5. Desktop is MATE but happens in XFCE as well. I think it is a Kernel related issue as on the vmware but that turned out to be a vmware issue. Is is something that changed in X11? https://forums.opensuse.org/t/some-opensuse-update-made-it-very-slow-in-vmware/167566 In trying to isolate what causes the issue - I know that the mouse generates these error in the x11vnc log file: the xxxxxx entries is where I pressed enter 6 times - no codes for the keystokes - just the mouse movements I think the positive are when I switched virtual screens. *** fb_push ublen NOT ZERO: -184548353 *** fb_push ublen NOT ZERO: -832175933 *** fb_push ublen NOT ZERO: -832175933 *** fb_push ublen NOT ZERO: -1244532993 *** fb_push ublen NOT ZERO: 720717 *** fb_push ublen NOT ZERO: 7471043 *** fb_push ublen NOT ZERO: 7143267 *** fb_push ublen NOT ZERO: -1308611073 *** fb_push ublen NOT ZERO: -1308611073 *** fb_push ublen NOT ZERO: -1912578561 *** fb_push ublen NOT ZERO: -1769985 *** fb_push ublen NOT ZERO: -1769985 xxxxxx *** fb_push ublen NOT ZERO: -2046756378 *** fb_push ublen NOT ZERO: -2046756378 *** fb_push ublen NOT ZERO: -2046756378 *** fb_push ublen NOT ZERO: -2046756378 xxxxxx *** fb_push ublen NOT ZERO: -2046756378 *** fb_push ublen NOT ZERO: -2046756378 *** fb_push ublen NOT ZERO: -2046756378 *** fb_push ublen NOT ZERO: -2046756378 02/08/2023 09:29:16 idle keyboard: turning X autorepeat back on.
Is it X11? Some pieces in Tumbleweed are newer. Maybe this needs to go to X11 support? here is Tumbleweed : i+ | x11 | pattern | 20200505-41.1 | x86_64 | openSUSE-Tumbleweed-Oss i | x11-tools | package | 0.1-213.2 | noarch | openSUSE-Tumbleweed-Oss i+ | x11_yast | pattern | 20220411-1.4 | x86_64 | openSUSE-Tumbleweed-Oss i+ | x11perf | package | 1.6.2-1.3 | x86_64 | openSUSE-Tumbleweed-Oss i+ | x11vnc | package | 0.9.16-2.16 | x86_64 | openSUSE-Tumbleweed-Oss i | xorg-x11-driver-video | package | 7.6_1-19.10 | x86_64 | openSUSE-Tumbleweed-Oss i | xorg-x11-essentials | package | 7.6_1-16.18 | noarch | openSUSE-Tumbleweed-Oss i | xorg-x11-fonts | package | 7.6-45.1 | noarch | openSUSE-Tumbleweed-Oss i | xorg-x11-fonts-converted | package | 7.6-45.3 | noarch | openSUSE-Tumbleweed-Oss i | xorg-x11-fonts-core | package | 7.6-45.1 | noarch | openSUSE-Tumbleweed-Oss i | xorg-x11-fonts-legacy | package | 7.6-45.1 | noarch | openSUSE-Tumbleweed-Oss i | xorg-x11-libX11-ccache | package | 7.6-22.6 | x86_64 | openSUSE-Tumbleweed-Oss i | xorg-x11-server | package | 21.1.8-1.4 | x86_64 | openSUSE-Tumbleweed-Oss i | xorg-x11-server-extra | package | 21.1.8-1.4 | x86_64 | openSUSE-Tumbleweed-Oss i | xorg-x11-server-Xvfb | package | 21.1.8-1.4 | x86_64 | openSUSE-Tumbleweed-Oss i | xorg-x11-Xvnc | package | 1.13.1-3.3 | x86_64 | openSUSE-Tumbleweed-Oss i | xorg-x11-Xvnc-module | package | 1.13.1-3.3 | x86_64 | openSUSE-Tumbleweed-Oss and here is Leap: i+ | x11 | pattern | 20200505-41.1 | x86_64 | openSUSE-Tumbleweed-Oss i | x11-tools | package | 0.1-213.2 | noarch | openSUSE-Tumbleweed-Oss i+ | x11_yast | pattern | 20220411-1.4 | x86_64 | openSUSE-Tumbleweed-Oss i+ | x11perf | package | 1.6.2-1.3 | x86_64 | openSUSE-Tumbleweed-Oss i+ | x11vnc | package | 0.9.16-2.16 | x86_64 | openSUSE-Tumbleweed-Oss i | xorg-x11-driver-video | package | 7.6_1-19.10 | x86_64 | openSUSE-Tumbleweed-Oss i | xorg-x11-essentials | package | 7.6_1-16.18 | noarch | openSUSE-Tumbleweed-Oss i | xorg-x11-fonts | package | 7.6-45.1 | noarch | openSUSE-Tumbleweed-Oss i | xorg-x11-fonts-converted | package | 7.6-45.3 | noarch | openSUSE-Tumbleweed-Oss i | xorg-x11-fonts-core | package | 7.6-45.1 | noarch | openSUSE-Tumbleweed-Oss i | xorg-x11-fonts-legacy | package | 7.6-45.1 | noarch | openSUSE-Tumbleweed-Oss i | xorg-x11-libX11-ccache | package | 7.6-22.6 | x86_64 | openSUSE-Tumbleweed-Oss i | xorg-x11-server | package | 21.1.8-1.4 | x86_64 | openSUSE-Tumbleweed-Oss i | xorg-x11-server-extra | package | 21.1.8-1.4 | x86_64 | openSUSE-Tumbleweed-Oss i | xorg-x11-server-Xvfb | package | 21.1.8-1.4 | x86_64 | openSUSE-Tumbleweed-Oss i | xorg-x11-Xvnc | package | 1.13.1-3.3 | x86_64 | openSUSE-Tumbleweed-Oss i | xorg-x11-Xvnc-module | package | 1.13.1-3.3 | x86_64 | openSUSE-Tumbleweed-Oss
https://archlinux.org/packages/extra/x86_64/x11vnc/
(In reply to Larry Rainey from comment #4) > https://archlinux.org/packages/extra/x86_64/x11vnc/ Thanks. Seems they apply 3 patches on top of 0.9.16 https://gitlab.archlinux.org/archlinux/packaging/packages/x11vnc/-/blob/main/PKGBUILD Mabye this would also fix it for us ...
(In reply to Stefan Dirsch from comment #5) > (In reply to Larry Rainey from comment #4) > > https://archlinux.org/packages/extra/x86_64/x11vnc/ > > Thanks. Seems they apply 3 patches on top of 0.9.16 > > https://gitlab.archlinux.org/archlinux/packaging/packages/x11vnc/-/blob/main/ > PKGBUILD > > Mabye this would also fix it for us ... https://github.com/LibVNC/x11vnc/commit/95a10ab64c2d.patch it's a NULL dereference fix, so rather a crash fix https://github.com/LibVNC/x11vnc/commit/a48b0b1cd887.patch a gcc10 compile fix https://github.com/LibVNC/x11vnc/commit/69eeb9f7baa1.patch this restricts the file permission of the shared memory So all look irrelevant from the performance issue. If any, it's in 0.9.16 version...
I'm also experiencing high delays in VNC sessions on a headless server after upgrading from Leap 15.4. to 15.5. It takes about a second until a key pressed is echoed :-( I'm using kernel 6.4.6 on that machine. Downgrading to xorg-x11-Xvnc-1.10.1-150400.7.5.2.x86_64 (i.e. package from Leap 15.4) solved the issue for me ...
P.S: The vncserver command has disappeared in xorg-x11-Xvnc-1.12.0-150500.2.6 though a manpage is still present (which refers to vncsession now). However, my users use vncserver to start individual sessions. This is not possible with vncsession as it requires root privileges :-(
(In reply to Takashi Iwai from comment #6) > (In reply to Stefan Dirsch from comment #5) > > (In reply to Larry Rainey from comment #4) > > > https://archlinux.org/packages/extra/x86_64/x11vnc/ > > > > Thanks. Seems they apply 3 patches on top of 0.9.16 > > > > https://gitlab.archlinux.org/archlinux/packaging/packages/x11vnc/-/blob/main/ > > PKGBUILD > > > > Mabye this would also fix it for us ... > > https://github.com/LibVNC/x11vnc/commit/95a10ab64c2d.patch > it's a NULL dereference fix, so rather a crash fix > > https://github.com/LibVNC/x11vnc/commit/a48b0b1cd887.patch > a gcc10 compile fix > > https://github.com/LibVNC/x11vnc/commit/69eeb9f7baa1.patch > this restricts the file permission of the shared memory > > So all look irrelevant from the performance issue. If any, it's in 0.9.16 > version... We already have 0.9.16 on TW. So this can't be the issue.
Joan, could you have a look, please? Thanks!
I'm not sure this issue comes from x11vnc or Xvnc. I've just tested xfce with x11vnc in an updated Tumbleweed with kernel version 6.4.11 and I don't see the slowness at typing or any lagging. I've also tested xfce with x11vnc and with Xvnc in Leap 15.5 with either kernel 6.4.12 and 5.14.21 with no slowness lagging issues. One explanation for the lagging at typing might be a limited network bandwidth, maybe the server is located at a very remote location from the client. But I can't explain the NOT ZERO errors. It is indeed an issue with input events. Maybe it is a kernel issue if using a more recent kernel version solves it.
Latest kernel code did fix Tumbleweed I am closing this as problem no longer exists