Bug 1440247 - DeferUpdate is broken in tigervnc-1.7.1
Summary: DeferUpdate is broken in tigervnc-1.7.1
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: tigervnc
Version: 25
Hardware: All
OS: All
unspecified
medium
Target Milestone: ---
Assignee: Jan Grulich
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-04-07 16:28 UTC by nvk.reg@gmail.com
Modified: 2017-04-24 17:51 UTC (History)
4 users (show)

Fixed In Version: tigervnc-1.7.90-1.fc26
Clone Of:
Environment:
Last Closed: 2017-04-21 14:28:49 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description nvk.reg@gmail.com 2017-04-07 16:28:09 UTC
Description of problem:

Xvnc server running on FC25 doesn't send correctly update screen in some cases until there is an input from the client. Issue is easy notice with terminal applications like lxterminal and gnome-terminal when the cursor-blink is off.

The results in incorrect cursor position and affects variety of editing activities.

Issue seen in all versions of tigervnc shipped with FC25 so far.

Issue not seen in tigervnc distributed with FC24 and earlier releases.


Version-Release number of selected component (if applicable):
tigervnc-1.7.1


How reproducible:

Reproducible with a high consistency.


Steps to Reproduce:
1. Start vncserver.
   e.g: vncserver -geometry 1366x768 :3646
2. Connect to the VNC server using vncclient (any OS, any variant of vnc client) from another machine
3. Launch lxterminal (or gnome-terminal)
4. Turn off cursor-blink in lxterminal from the preferences
5. From lxterminal do an ssh to another machine that is reachable.
6. Ensure there are no further inputs to the server (keyboard inputs, mouse movements)

Actual results:

It can be noticed that ssh Password prompt doesn't appear till there is an input from the vncclient or some other part of the screen gets updated (e.g: clock)

Example:
$ ssh some-ssh-server
Password: <----------- Prompt doesn't appear till some key is pressed (e.g: shift) or mouse movement


Expected results:

Password prompt should appear without any further input from the client.




Additional info:
Issue won't be noticed if the cursor-blink is on.

A workaround is to turnoff DeferUpdate by setting to 0 (defaults to 1). But this may reduce the performance and utilize more network bandwidth.


Issue has been reported to tigervnc upstream team who identified it as a bug specific to Fedora's distribution of tigervnc server.

https://github.com/TigerVNC/tigervnc/issues/443#event-1033743066

A fix has been identified in the upstream that can resolve the issue.

https://github.com/TigerVNC/tigervnc/commit/b192107b302098864358cd54b6323129c23e271e

-------------------------------------
xstartup configguration

vnallamothu-lnx: /home/vnallamothu/.vnc> cat xstartup
#!/bin/sh

# Disable wayland
unset SESSION_MANAGER
unset DBUS_SESSION_BUS_ADDRESS
export XDG_SESSION_TYPE=x11

export XKL_XMODMAP_DISABLE=1
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
xsetroot -solid grey

vncconfig -nowin &
(startfluxbox || blackbox || openbox || xterm ) &
lxterminal &

Comment 1 Fedora Update System 2017-04-20 09:22:54 UTC
tigervnc-1.7.90-1.fc26 has been submitted as an update to Fedora 26. https://bodhi.fedoraproject.org/updates/FEDORA-2017-1e844336cd

Comment 2 Fedora Update System 2017-04-20 20:24:28 UTC
tigervnc-1.7.90-1.fc26 has been pushed to the Fedora 26 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-1e844336cd

Comment 3 Fedora Update System 2017-04-21 14:28:49 UTC
tigervnc-1.7.90-1.fc26 has been pushed to the Fedora 26 stable repository. If problems still persist, please make note of it in this bug report.

Comment 4 Jay Guerette 2017-04-24 13:35:39 UTC
The fix was to remove support for DeferUpdate ?

tigervnc-server-minimal-1.7.90-1.fc27.x86_64
...
(EE) 
Fatal server error:
(EE) Unrecognized option: -DeferUpdate
(EE)

Comment 5 Jan Grulich 2017-04-24 17:13:22 UTC
From I can see DeferUpdate has been changed to FrameRate option. Can you verify that?

Comment 6 Jay Guerette 2017-04-24 17:51:34 UTC
I have verified that FrameRate works as expected. I tried a few rates, going as low as 10, and observed the expected behavior: increased choppiness while dragging a full screen window, and reduced bandwidth.

The man page just needs to be updated to reflect this change.


Note You need to log in before you can comment on or make changes to this bug.