X2Go Bug report logs - #1342
Graphical apps stalling in suspended session

version graph

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

Reported by: yk+bug+x2go@64.re

Date: Wed, 14 Nov 2018 19:15:01 UTC

Severity: normal

Found in version 4.0.1.0

Full log


🔗 View this message in rfc822 format

X-Loop: owner@bugs.x2go.org
Subject: Bug#1342: [X2Go-Dev] Bug#1342: Bug#1342: Graphical apps stalling in suspended session
Reply-To: uli42@gmx.de, 1342@bugs.x2go.org
Resent-From: Ulrich Sibiller <ulrich.sibiller@gmail.com>
Resent-To: x2go-dev@lists.x2go.org
Resent-CC: X2Go Developers <x2go-dev@lists.x2go.org>
X-Loop: owner@bugs.x2go.org
Resent-Date: Fri, 16 Nov 2018 09:00:03 +0000
Resent-Message-ID: <handler.1342.B1342.154235852826229@bugs.x2go.org>
Resent-Sender: owner@bugs.x2go.org
X-X2Go-PR-Message: followup 1342
X-X2Go-PR-Package: x2goserver
X-X2Go-PR-Keywords: 
Received: via spool by 1342-submit@bugs.x2go.org id=B1342.154235852826229
          (code B ref 1342); Fri, 16 Nov 2018 09:00:03 +0000
Received: (at 1342) by bugs.x2go.org; 16 Nov 2018 08:55:28 +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=1.2 required=3.0 tests=BAYES_40,DKIM_SIGNED,
	DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,FREEMAIL_REPLYTO,
	FREEMAIL_REPLYTO_END_DIGIT,URIBL_BLOCKED autolearn=no
	autolearn_force=no version=3.4.2
Received: from localhost (localhost [127.0.0.1])
	by ymir.das-netzwerkteam.de (Postfix) with ESMTP id B7FF65DAF0
	for <1342@bugs.x2go.org>; Fri, 16 Nov 2018 09:55:25 +0100 (CET)
X-Virus-Scanned: Debian amavisd-new at ymir.das-netzwerkteam.de
Received: from ymir.das-netzwerkteam.de ([127.0.0.1])
	by localhost (ymir.das-netzwerkteam.de [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id rh408xeN0yRE for <1342@bugs.x2go.org>;
	Fri, 16 Nov 2018 09:55:20 +0100 (CET)
Received: from mail-vk1-xa2f.google.com (mail-vk1-xa2f.google.com [IPv6:2607:f8b0:4864:20::a2f])
	by ymir.das-netzwerkteam.de (Postfix) with ESMTPS id 8FA5D5DAEF
	for <1342@bugs.x2go.org>; Fri, 16 Nov 2018 09:55:19 +0100 (CET)
Received: by mail-vk1-xa2f.google.com with SMTP id y14so5107062vkd.1
        for <1342@bugs.x2go.org>; Fri, 16 Nov 2018 00:55:19 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=20161025;
        h=mime-version:references:in-reply-to:reply-to:from:date:message-id
         :subject:to;
        bh=E3UvEsXICvMfaQ4nvWFvEWMHSffdnKm//HAmCHSdr24=;
        b=BvZJOfEQShlLCRk7cSUG94yhipwBWALXJerANAuospptz0x9Ad5he6GsbPMIseVO6a
         M5l86Ky38NgaTMgix4zZOenffxyvmGFmYe2vvgCt/L2Oj0cK7btiAQKycS3tEo00rEZT
         2PrXET70EXylEE16vjAUquak6/r3YdQnDiVI9S1seNHvsuK2dFxEg2h9bxSKp4eU8JDW
         c/tcThVFUsa0UiqZO7uhjr/B5/4tU0inMHG7AQ1RdozutcYNmRNPtS36beh6bGqqd+2/
         MVYtddTB7ZwyGHRYvkDo5ie/IjmzxO1kB7NcJm9OUHuFyBpzgQ0pj62xQu+M4SrN9efj
         EeLw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20161025;
        h=x-gm-message-state:mime-version:references:in-reply-to:reply-to
         :from:date:message-id:subject:to;
        bh=E3UvEsXICvMfaQ4nvWFvEWMHSffdnKm//HAmCHSdr24=;
        b=hRVy7JqNipIyfLRosMUsrfi1/OW297HCKiv3BH0NytFYIWvIA+lZtq/X7ik4sg76qd
         1vsp3ejogbVQX9ySJdPz2PgChN85eateb/I+xkcV1SH0Hyhkw5LqiI3DXjSahlVBeB/7
         DaPjvI0qK2WXWv0W7aGXmS2MuYmS4XJbSDFPk6yDRc4YZmcVnE1wQJtRRj5aM46G1YlR
         gZLp+g5+dfuMJzTbRVAwnaQCXLXWVzNGsT7UiuyrkNJals6BBBj2S1C78Xrpztlu9mD0
         gCWWitktwfpA3TiOl5/vUP3thfMjn1c6viMeoZzyJiPNF3dtxzulqSuZRZrl5HmFHO3Y
         2xpA==
X-Gm-Message-State: AGRZ1gLKe4O6P2Mbkw6El5QNs9Q2zNAYu6t4HmmCY8Sva7fWcV39DoAo
	SMIwv4+rPjxKoc1RPeSNY8+Of2hJ070/2pbIkDE=
X-Google-Smtp-Source: AJdET5cTbOn9POLDLXtV0RfPOBY3f/XAUUgTEdE2pLX7njycVcZThPRTW0Ka0G27Ob5b1regtHfM0/gYiVsc1/uPhEI=
X-Received: by 2002:a1f:f203:: with SMTP id q3mr4102925vkh.54.1542358517799;
 Fri, 16 Nov 2018 00:55:17 -0800 (PST)
MIME-Version: 1.0
References: <20181114184726.667d6ae6.mx@64.re> <CANVnVYKK+6+Gi1=DAYgDtuvT1MZzOLTqxZQgiBNQ6-2ZUJWF9g@mail.gmail.com>
 <20181115174830.29fc8337.mx@64.re>
In-Reply-To: <20181115174830.29fc8337.mx@64.re>
From: Ulrich Sibiller <ulrich.sibiller@gmail.com>
Date: Fri, 16 Nov 2018 09:54:51 +0100
Message-ID: <CANVnVYLRHa-95UBXtbPfT1u2M1OA7_1UNMfhy4YZrGkUE5Yx4g@mail.gmail.com>
To: yk+bug+x2go@64.re, 1342@bugs.x2go.org
Content-Type: text/plain; charset="UTF-8"
On Thu, Nov 15, 2018 at 7:46 PM <yk+bug+x2go@64.re> wrote:
>
> On Wed, 14 Nov 2018 21:50:59 +0100
> Ulrich Sibiller <ulrich.sibiller@gmail.com> wrote:
>
> > That has been implemented on purpose by nomachine to take some load
> > off the server. You can disable that via the sleep option:
> >        sleep=<int>
> >               delay X server operations when suspended (provided in
> > msec), set to 0 to keep nxagent session fully functional when
> > suspended (e.g. useful when mirroring an nxagent session via VNC)
> >
> > You can set this sleep to 0 in /etc/x2go/x2goagent.options on the
> > server with the following line:
> > X2GO_NXAGENT_DEFAULT_OPTIONS="-options nx/nx,sleep=0"
> >
> > This in non-obvious and should be a client option instead... Can you
> > please try if that helps for your setup?
>
> So I tried this options by adding it to the previous ones:
> X2GO_NXAGENT_DEFAULT_OPTIONS+=" -options nx/nx,sleep=0"

In my tests I have changed the _first_ entry in the options file, the
one without the +. Does that make any difference for you?

> It seems to solve indeed the problem at least for glxgears, which now
> runs faster when I quit the x2go client, which is what I expect.
> However, it has the serious side effect of preventing the sessions to
> be suspended; the files clients, keyboard, state and the folders

Quitting the x2goclient is effectively suspending the session since
there's no nxproxy anymore. You can see that in the file session.log
on the server (~(.x2go/C-username-something/...).

Providing that sleep=0 option is changing only one thing: it
eliminates any sleeps that have been implemented to take load off the
server in suspended state. There should not be any other behaviourial
differences.

> mimebox and tools are not created in the x2go session folder
> (/tmp/.x2go-user/<session>).
> This side effect is kind of worse for us.

Can you please explain in detail? I am wondering what is happening here.

You can also try - instead of using the non-obvious setting in
x2goagent.setting - to adapt x2gostartagent on the server to integrate
that option into the generated options file.

Uli

Send a report that this bug log contains spam.


X2Go Developers <owner@bugs.x2go.org>. Last modified: Fri Dec 13 09:05:35 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.