Bug 1213153 - x11vnc slow and generates mouse errors after kernel 6.3.7 - Debian reports fix for x11vnc.
Summary: x11vnc slow and generates mouse errors after kernel 6.3.7 - Debian reports fi...
Status: RESOLVED FIXED
Alias: None
Product: openSUSE Tumbleweed
Classification: openSUSE
Component: X.Org (show other bugs)
Version: Current
Hardware: x86-64 openSUSE Tumbleweed
: P5 - None : Major with 3 votes (vote)
Target Milestone: ---
Assignee: Joan Torres
QA Contact: Gfx Bugs
URL:
Whiteboard:
Keywords: Upgrade
Depends on:
Blocks:
 
Reported: 2023-07-08 16:02 UTC by Larry Rainey
Modified: 2023-08-29 12:55 UTC (History)
5 users (show)

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Larry Rainey 2023-07-08 16:02:28 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
Comment 1 Takashi Iwai 2023-08-02 11:26:28 UTC
(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.
Comment 2 Larry Rainey 2023-08-02 14:36:27 UTC
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.
Comment 3 Larry Rainey 2023-08-02 14:39:41 UTC
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
Comment 4 Larry Rainey 2023-08-02 14:41:03 UTC
https://archlinux.org/packages/extra/x86_64/x11vnc/
Comment 5 Stefan Dirsch 2023-08-03 03:27:10 UTC
(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 ...
Comment 6 Takashi Iwai 2023-08-07 14:31:21 UTC
(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...
Comment 7 Rainer Kaluscha 2023-08-11 09:20:37 UTC
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 ...
Comment 8 Rainer Kaluscha 2023-08-11 09:25:40 UTC
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 :-(
Comment 9 Stefan Dirsch 2023-08-26 12:38:05 UTC
(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.
Comment 10 Stefan Dirsch 2023-08-26 12:40:04 UTC
Joan, could you have a look, please? Thanks!
Comment 11 Joan Torres 2023-08-29 12:42:48 UTC
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.
Comment 12 Larry Rainey 2023-08-29 12:55:08 UTC
Latest kernel code did fix Tumbleweed

I am closing this as problem no longer exists