X2Go Bug report logs - #1502
macOS X2GoClient keyboard map updates crash specific server applications, spike server CPU usage

version graph

Package: x2goclient; Maintainer for x2goclient is X2Go Developers <x2go-dev@lists.x2go.org>; Source for x2goclient is src:x2goclient.

Reported by: "Yearke, Thomas" <tyearke@buffalo.edu>

Date: Tue, 3 Nov 2020 00:45:02 UTC

Severity: normal

Found in version 4.1.2.2

Full log


🔗 View this message in rfc822 format

X-Loop: owner@bugs.x2go.org
Subject: Bug#1502: macOS X2GoClient keyboard map updates crash specific server applications, spike server CPU usage
Reply-To: "Yearke, Thomas" <tyearke@buffalo.edu>, 1502@bugs.x2go.org
Resent-From: "Yearke, Thomas" <tyearke@buffalo.edu>
Resent-To: x2go-dev@lists.x2go.org
Resent-CC: X2Go Developers <x2go-dev@lists.x2go.org>
X-Loop: owner@bugs.x2go.org
Resent-Date: Tue, 03 Nov 2020 00:45:02 +0000
Resent-Message-ID: <handler.1502.B.160436417326500@bugs.x2go.org>
Resent-Sender: owner@bugs.x2go.org
X-X2Go-PR-Message: report 1502
X-X2Go-PR-Package: x2goclient
X-X2Go-PR-Keywords: 
Received: via spool by submit@bugs.x2go.org id=B.160436417326500
          (code B); Tue, 03 Nov 2020 00:45:02 +0000
Received: (at submit) by bugs.x2go.org; 3 Nov 2020 00:42:53 +0000
X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on
	ymir.das-netzwerkteam.de
X-Spam-Level: 
X-Spam-Status: No, score=0.8 required=3.0 tests=BAYES_50,SPF_HELO_NONE
	autolearn=ham autolearn_force=no version=3.4.2
Received: from mtareserve133.acsu.buffalo.edu (mtareserve133.acsu.buffalo.edu [128.205.7.180])
	by ymir.das-netzwerkteam.de (Postfix) with ESMTPS id 534465DAF2
	for <submit@bugs.x2go.org>; Tue,  3 Nov 2020 01:42:44 +0100 (CET)
Received: from appmailb.acsu.buffalo.edu (appmailb.acsu.buffalo.edu [128.205.4.58])
	by mtareserve133.acsu.buffalo.edu (Postfix) with ESMTP id 4CQ9wx3j8wzC5NTH
	for <submit@bugs.x2go.org>; Mon,  2 Nov 2020 19:42:41 -0500 (EST)
Received: from appmailb.acsu.buffalo.edu (localhost [127.0.0.1])
	by localhost (Postfix) with SMTP id 7852A16004C46
	for <submit@bugs.x2go.org>; Mon,  2 Nov 2020 19:42:41 -0500 (EST)
Received: from appmailb.acsu.buffalo.edu (localhost [127.0.0.1])
	by appmailb.acsu.buffalo.edu (Postfix) with ESMTP id 6479F16004C3F
	for <submit@bugs.x2go.org>; Mon,  2 Nov 2020 19:42:41 -0500 (EST)
Received: from MBX-NR3.itorg.ad.buffalo.edu (mbx-nr3.acsu.buffalo.edu [128.205.7.194])
	by appmailb.acsu.buffalo.edu (Prefixe) with ESMTP id 610F616004C3E
	for <submit@bugs.x2go.org>; Mon,  2 Nov 2020 19:42:41 -0500 (EST)
Received: from mbx-nr8.itorg.ad.buffalo.edu (128.205.7.211) by
 MBX-NR3.itorg.ad.buffalo.edu (128.205.7.194) with Microsoft SMTP Server (TLS)
 id 15.0.1497.2; Mon, 2 Nov 2020 19:42:39 -0500
Received: from mbx-nr8.itorg.ad.buffalo.edu ([192.168.1.108]) by
 MBX-NR8.itorg.ad.buffalo.edu ([192.168.1.108]) with mapi id 15.00.1497.006;
 Mon, 2 Nov 2020 19:42:39 -0500
From: "Yearke, Thomas" <tyearke@buffalo.edu>
To: "submit@bugs.x2go.org" <submit@bugs.x2go.org>
Thread-Topic: macOS X2GoClient keyboard map updates crash specific server
 applications, spike server CPU usage
Thread-Index: AQHWsXo7w0l/NEzdA02/U0PSVaStSw==
Date: Tue, 3 Nov 2020 00:42:39 +0000
Message-ID: <F5B32DA7-8962-4080-9BE2-31E40980B913@buffalo.edu>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: yes
X-MS-TNEF-Correlator:
x-ms-exchange-messagesentrepresentingtype: 1
x-ms-exchange-transport-fromentityheader: Hosted
x-originating-ip: [10.20.21.215]
Content-Type: multipart/signed; protocol="application/pkcs7-signature";
	micalg=sha256; boundary="B_3687190958_1116941232"
MIME-Version: 1.0
X-PM-EL-Spam-Prob: : 8%
[Message part 1 (text/plain, inline)]
Package: x2goclient
Version: 4.1.2.2
Tag: patch

When the macOS version of X2GoClient is connected to a server, it updates the session's keyboard map every 10 seconds. Depending on how other programs running on the server respond to keyboard map changes, the repeated updates can cause brief CPU usage spikes or (in the case of one of our applications) they can cause freezes and crashes.

The attached patch modifies the macOS client to only run the keyboard map update once on session startup. Testing done on my devices showed that this change resolved the issue without introducing noticeable side effects. However, I was not able to find the reason why the keyboard map is being updated regularly, so this may (re)introduce a problem I'm not aware of.

Client OS: macOS 10.14.6
Client Software: X2GoClient 4.1.2.2
Server OS: CentOS 7.8
Server Desktop Environment: XFCE 4
Server x2goserver Version: 4.1.0.3
Server x2goserver-xsession Version: 4.1.0.3
Server nxagent Version: 3.5.99.24

Thank you for your consideration!

Tom Yearke
Software Engineer
Science and Engineering Node Services
University at Buffalo


[x2goclient-macos-keymap.diff (application/octet-stream, attachment)]
[smime.p7s (application/pkcs7-signature, attachment)]

Send a report that this bug log contains spam.


X2Go Developers <owner@bugs.x2go.org>. Last modified: Thu Nov 21 14:12:24 2024; Machine Name: ymir.das-netzwerkteam.de

X2Go Bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.