← Back to team overview

ubuntu-sdk-bugs team mailing list archive

[Bug 1831505] Re: Qt5 incorrectly interpret keypresses from remote VNC keyboard

 

This bug was fixed in the package qtbase-opensource-src - 5.9.5+dfsg-
0ubuntu2.3

---------------
qtbase-opensource-src (5.9.5+dfsg-0ubuntu2.3) bionic; urgency=medium

  * Backport upstream patch to fix nullptr dereference in HTTP handler
    (LP: #1833536).

qtbase-opensource-src (5.9.5+dfsg-0ubuntu2.2) bionic; urgency=medium

  * Backport two upstream patches to support legacy X11 keymaps
    (LP: #1831505).

 -- Dmitry Shachnev <mitya57@xxxxxxxxxx>  Thu, 20 Jun 2019 13:59:52
+0300

** Changed in: qtbase-opensource-src (Ubuntu Bionic)
       Status: Fix Committed => Fix Released

-- 
You received this bug notification because you are a member of Ubuntu
SDK bug tracking, which is subscribed to qtbase-opensource-src in
Ubuntu.
https://bugs.launchpad.net/bugs/1831505

Title:
  Qt5 incorrectly interpret keypresses from remote VNC keyboard

Status in qtbase-opensource-src package in Ubuntu:
  Fix Released
Status in qtbase-opensource-src source package in Bionic:
  Fix Released
Status in qtbase-opensource-src package in Debian:
  Fix Released

Bug description:
  [Impact]
  Qt applications incorrectly interpret keyboard input when running over some VNC clients such as TightVNC.

  [Test Case]
  1. Have Ubuntu 18.04 LTS installed with VNC server
  2. Connect to Ubuntu 18.04 LTS from other machine with VNC client
  3. Launch any Qt5 based application such as `assistant`, `kate` or `retext`
  4. Press keyboard combination on VNC client

  Expected results:
  all keypresses are recognized successfully

  Actual results:
  * <Shift> produces `1`
  * <Alt> produces `5`
  * <`> produces `p`
  * <Delete> and <Backspace> are not working
  * all letters are messed

  [Proposed Fix]
  The proposed fix is a backport of two upstream commits: the second being the actual fix, the first one is some refactoring of the code to make it easier to write the second. The commits are:

  - https://code.qt.io/cgit/qt/qtbase.git/commit/?id=f8b164e1c37ca901
  - https://code.qt.io/cgit/qt/qtbase.git/commit/?id=3edcd9420e3ad661

  [Regression Potential]
  Most of the new code is triggered only when the keymap is missing rules, models, or layout (i.e. rmlvo_is_incomplete == true). This minimizes the risk of regressions when working with simple X11 server. In any case, the potential regressions will be related to input handling.

  [Other Info]
  Note:
  only Qt applications are affected, the GTK-based work as expected (including Chromium from which I write this bug-report)

  ProblemType: Bug
  DistroRelease: Ubuntu 18.04
  Package: qt5-assistant 5.9.5-0ubuntu1
  Uname: Linux 4.4.78-perf+ aarch64
  NonfreeKernelModules: wlan exfat
  ApportVersion: 2.20.9-0ubuntu7
  Architecture: armhf
  CurrentDesktop: MATE
  Date: Tue Jun  4 00:46:55 2019
  ProcEnviron:
   TERM=xterm
   PATH=(custom, no user)
   LANG=en_US.UTF-8
   SHELL=/bin/bash
  SourcePackage: qttools-opensource-src
  UpgradeStatus: No upgrade log present (probably fresh install)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/qtbase-opensource-src/+bug/1831505/+subscriptions


References