From bruno.capeleto@abcreseau.com Mon Sep 4 17:44:56 2017 Received: (at 1200) by bugs.x2go.org; 4 Sep 2017 15:45:02 +0000 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on ymir.das-netzwerkteam.de X-Spam-Level: X-Spam-Status: No, score=-1.9 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.1 Received: from localhost (localhost [127.0.0.1]) by ymir.das-netzwerkteam.de (Postfix) with ESMTP id 635C95DAD1 for <1200@bugs.x2go.org>; Mon, 4 Sep 2017 17:44:56 +0200 (CEST) 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 gUwmJkDRsjDY for <1200@bugs.x2go.org>; Mon, 4 Sep 2017 17:44:51 +0200 (CEST) Received: from mail-ua0-x230.google.com (mail-ua0-x230.google.com [IPv6:2607:f8b0:400c:c08::230]) by ymir.das-netzwerkteam.de (Postfix) with ESMTPS id DB1385DACF for <1200@bugs.x2go.org>; Mon, 4 Sep 2017 17:44:50 +0200 (CEST) Received: by mail-ua0-x230.google.com with SMTP id k23so2249344uaf.4 for <1200@bugs.x2go.org>; Mon, 04 Sep 2017 08:44:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=abcreseau-com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=22cZ/Gx6vIuBBtGZXSALH6eiEMiqeYC3KmzWuwtEuMc=; b=T/wOKVu9T8bD6WD99i0KhHKdYAFmIcw/NVPVm1ofxLMCo4PdRvpnNMVI0/kCsiNon8 nho72IM09Fl+HZJ0lHBKceZtH1p8U4cMRmnzJlHjis8t3YL3+Lkz8l29iEwa25xnsicA GQTO505RLId+J34IN4TFYmpxN12u2hQxTzCRDGuDZAaqiMID/8AilBm63V3Ba1Cu1AIa K2BMHfqxx5kKFJBbqM6t+sc2h009otBqkPuBFBcI+ej+1QYnFsdLE1KlFrD4Y5Sjbmzu hon+VuUSLyxwfONvpYnfAOaVsYuqXHoR6Dup4ZHBly+aqhPmihpzwg6YVqOqJXOOPkcv nNxg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=22cZ/Gx6vIuBBtGZXSALH6eiEMiqeYC3KmzWuwtEuMc=; b=jiauTSa83lJsESI2HwipnU7Vlta9EQWh82W82YHrgNxcejBvf/KO+gFEaQw8eWPJa2 XfaP/Pwcp8G4IltBNqQyrEuIZe3P8ITxAmvus6vX+PLMnns/hX4gGiiawTZqDbyR6ivL D1vCGvvdlvrnNE02zdER7A9BWtLCEaBN1PgEmNP01nLGp2V4RQ7dnA04O4UYBFf9J4nr W1UD+n/KNBRM8Z9NcSDvkfwTdHM78BCytPEia7aLotwM2mM56cuhEj2HpMwtbxUy30bZ 0EAXyPraxinyxiZaRhst//dtRmRlNig6+lWHxGjlakYVylmDZ6Ic4W1qCF46dXzf5vH5 zeTw== X-Gm-Message-State: AHPjjUjugkOGDDTrIEts8V72QgXfib8nba7g1NQmVkS82OgcarHiBy20 vCl8emFCRIbTKNx8d/JhDMME0mJP+3a9 X-Google-Smtp-Source: ADKCNb6+c2FkVbRWaDA5BU5/DuAv/6UJx1y+45WTnGN4ocpkOc2AcpM8Z3ZXp+0b8O+lhf4zOico6Yj89bcF/eFzVH8= X-Received: by 10.176.69.69 with SMTP id r63mr601203uar.200.1504539889471; Mon, 04 Sep 2017 08:44:49 -0700 (PDT) MIME-Version: 1.0 Received: by 10.31.94.214 with HTTP; Mon, 4 Sep 2017 08:44:48 -0700 (PDT) X-Originating-IP: [78.233.84.236] In-Reply-To: References: <5e2e5f4b-b445-09d5-1834-ad53f845a03e@ionic.de> From: Bruno CAPELETO Date: Mon, 4 Sep 2017 17:44:48 +0200 Message-ID: Subject: Re: [X2Go-Dev] Bug#1200: Environment variables not set To: Bruno CAPELETO , 1200@bugs.x2go.org Cc: Mihai Moldovan Content-Type: multipart/alternative; boundary="94eb2c07e22ca9d97605585efd93" --94eb2c07e22ca9d97605585efd93 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable People in Laurux's forum have reported this software works in single app mode but on an Ubuntu server. So it looks like this crash issue is related to the non-proper setting of the locale on Debian server... 2017-08-16 11:17 GMT+02:00 Bruno CAPELETO : > > 2017-08-11 5:29 GMT+02:00 Mihai Moldovan : > >> Control: reassign -1 x2goserver 4.0.1.20 >> >> First of all, x2goserver 4.0.1.20 actually is the correct stable release= . >> 4.1.0.0 are the current nightly releases. >> >> I personally don't care much about what version is tested, but knowing >> whether >> there's a difference in behavior between the stable and nightly versions >> is >> certainly helpful. >> > > Same issues with both versions. > > >> >> >> On 08/10/2017 12:24 PM, Bruno CAPELETO wrote: >> > Package: Version: <4.0.1.20-0x2go1+git20170412.1 >> 125+9.main.1> >> > >> > # uname -a Linux mtcie1 4.9.0-3-amd64 #1 SMP Debian 4.9.30-2+deb9u1 >> > (2017-06-18) x86_64 GNU/Linux >> > >> > >> > >> > The below bugs are most probably related to each other, that's why I >> open >> > one case for all of them. >> > >> > The issues are the following : I want to use the French software Lauru= x, >> > which is based on Gambas interpreter, via a x2go session running on a >> Debian >> > 9 server running LXDE (same issues seen on an Ubuntu server, x2goserve= r >> > version =3D 4.0.1.20-0~1125~ubuntu14.04.1).. >> > >> > As a prerequisite, the software is installed on the server and runs >> well on >> > a local session. >> > >> > 1. Whatever the client (Windows or Linux 4.0.3.1-4), the local >> environment >> > variables are not set properly and the software - which needs French >> > localization - crashes. That could be "solved" the following way : >> > /etc/x2go/Xsession : >> > >> > ... LANG=3Dfr LC_ALL=3Dfr_FR.UTF-8 export LANG export LC_ALL ... >> > >> > That seems to be a revival of older bugs, but it is definitely still >> here. >> >> How exactly did you set the locale? >> >> The "Debian way" would be to run dpkg-reconfigure locales as root and >> select the >> desired locale(s) to generate and then select the default one. >> > > That is exactly the way I set the locales. > >> >> /etc/environment should not contain any locale settings. >> > > /etc/environmnent is empty > > >> >> LANGUAGES and especially LC_ALL should normally not be set. LANGUAGES is= a >> GNU-only list of fallback locales. LANG is the preferred way to set the >> locale, >> since it's being used if all of the LC_* env variables are empty. >> "dpkg-reconfigure locales" will do the right thing=E2=84=A2. >> > > I confirm $LANGUAGES and $LC_ALL are not set on a local session. > > >> >> >> > 2. At the start of a new session, one gets a windows with an error >> message >> > "No session for pid ..." ; that bug has already been reported several >> times >> > in x2go bug tracking and marked as solved. Actually it is not on my >> brand new >> > system. >> >> What session are you starting exactly? I cannot find the string "No >> session for >> pid" in x2goserver's source code. Not sure what to do with this. >> > > I found out it is a reported bug related to LXDE : cf > https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=3D864402 > > >> >> >> > 3. The single application mode does not work with some of the >> applications, >> > including that Laurux / Gambas. For example it works with >> /usr/bin/leafpad, >> > but /usr/bin/libreoffice makes the x2go session crash. >> >> That's certainly possible. The most likely cause, as Uli explained, is >> that the >> command daemonizes itself right after launching it. This leads to the X2= Go >> scripts assuming that the program exited and subsequently also >> terminating the >> session. We've seen such behavior every now and then and worked around i= t. >> >> However, it looks like x2goagent is crashing when you start libreoffice >> in your >> case. That shouldn't happen. My gut feeling is that this might be anothe= r >> GTK3 >> incompatibility. >> >> I could try to reproduce this in a clean stretch VM. >> > > Perfectly reproducible in my case on 2 installations. > > >> >> >> > 4. The mouse double clic does not work in a x2go session, but only - >> within >> > the Gambas software (works well for example when launching an >> application) >> > and only - when the x2go client is running in a Windows environment (n= o >> > problem when client in a Linux environment) >> >> That sounds like Gambas is doing something funny, though. As far as I wa= s >> able >> to gather, Gambas seems to be using Qt5 as its drawing toolkit. >> >> The package qtbase5-examples should contain a binary at >> /usr/lib/x86_64-linux-gnu/qt5/examples/widgets/widgets/mouse >> buttons/mousebuttons >> which spits out received mouse events. >> >> Can you try that - especially with double clicking - and see what it >> outputs? >> > > $ /usr/lib/x86_64-linux-gnu/qt5/examples/widgets/widgets/ > mousebuttons/mousebuttons > failed to get the current screen resources > QXcbConnection: XCB error: 172 (Unknown), sequence: 169, resource id: 175= , > major code: 149 (Unknown), minor code: 20 > "Mouse Press: raw button=3D1 Qt=3DLeftButton\n heldbuttons LeftButton " > "Mouse Release: raw button=3D1 Qt=3DLeftButton\n heldbuttons NoButton" > "Mouse DoubleClick: raw button=3D1 Qt=3DLeftButton\n heldbuttonsLeftButt= on " > "Mouse Release: raw button=3D1 Qt=3DLeftButton\n heldbuttons NoButton" > > Reminder : the double click works when for example I launch an applicatio= n > from the desktop shortcut. > It is only in this gambas software that it does not work, and only when > using x2go Windows client (works perfectly well with x2go linux client). > > >> >> >> >> Mihai >> >> > > _______________________________________________ > x2go-dev mailing list > x2go-dev@lists.x2go.org > https://lists.x2go.org/listinfo/x2go-dev > --94eb2c07e22ca9d97605585efd93 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
People in Laurux's forum have reported this software w= orks in single app mode but on an Ubuntu server.

So it l= ooks like this crash issue is related to the non-proper setting of the loca= le on Debian server...


2017= -08-16 11:17 GMT+02:00 Bruno CAPELETO <bruno.capeleto@abcreseau= .com>:

2017-08-11 5:29 GMT+02:00 Mihai Moldovan <ionic@ionic.de>:
Control: reassign= -1 x2goserver 4.0.1.20

First of all, x2goserver 4.0.1.20 actually is the correct stable release. 4.1.0.0 are the current nightly releases.

I personally don't care much about what version is tested, but knowing = whether
there's a difference in behavior between the stable and nightly version= s is
certainly helpful.

Same issues with bot= h versions.
=C2=A0


On 08/10/2017 12:24 PM, Bruno CAPELETO wrote:
> Package: <x2goserver> Version: <4.0.1.20-0x2go1+git20170412.1= 125+9.main.1>
>
> # uname -a Linux mtcie1 4.9.0-3-amd64 #1 SMP Debian 4.9.30-2+deb9u1 > (2017-06-18) x86_64 GNU/Linux
>
>
>
> The below bugs are most probably related to each other, that's why= I open
> one case for all of them.
>
> The issues are the following : I want to use the French software Lauru= x,
> which is based on Gambas interpreter, via a x2go session running on a = Debian
> 9 server running LXDE (same issues seen on an Ubuntu server, x2goserve= r
> version =3D 4.0.1.20-0~1125~ubuntu14.04.1)..
>
> As a prerequisite, the software is installed on the server and runs we= ll on
> a local session.
>
> 1. Whatever the client (Windows or Linux 4.0.3.1-4), the local environ= ment
> variables are not set properly and the software - which needs French > localization - crashes. That could be "solved" the following= way :
> /etc/x2go/Xsession :
>
> ... LANG=3Dfr LC_ALL=3Dfr_FR.UTF-8 export LANG export LC_ALL ...
>
> That seems to be a revival of older bugs, but it is definitely still h= ere.

How exactly did you set the locale?

The "Debian way" would be to run dpkg-reconfigure locales as root= and select the
desired locale(s) to generate and then select the default one.

That is exactly the way =C2=A0I set the locales.

/etc/environment should not contain any locale settings.

/etc/environmnent is empty
=C2=A0

LANGUAGES and especially LC_ALL should normally not be set. LANGUAGES is a<= br> GNU-only list of fallback locales. LANG is the preferred way to set the loc= ale,
since it's being used if all of the LC_* env variables are empty.
"dpkg-reconfigure locales" will do the right thing=E2=84=A2.
<= /blockquote>

I confirm $LANGUAGES and $LC_ALL are not se= t on a local session.
=C2=A0


> 2. At the start of a new session, one gets a windows with an error mes= sage
> "No session for pid ..." ; that bug has already been reporte= d several times
> in x2go bug tracking and marked as solved. Actually it is not on my br= and new
> system.

What session are you starting exactly? I cannot find the stri= ng "No session for
pid" in x2goserver's source code. Not sure what to do with this.

I found out it is a reported bug related= to LXDE : cf=C2=A0https://bugs.debian.org/cgi-bin/bugre= port.cgi?bug=3D864402
=C2=A0


> 3. The single application mode does not work with some of the applicat= ions,
> including that Laurux / Gambas. For example it works with /usr/bin/lea= fpad,
> but /usr/bin/libreoffice makes the x2go session crash.

That's certainly possible. The most likely cause, as Uli = explained, is that the
command daemonizes itself right after launching it. This leads to the X2Go<= br> scripts assuming that the program exited and subsequently also terminating = the
session. We've seen such behavior every now and then and worked around = it.

However, it looks like x2goagent is crashing when you start libreoffice in = your
case. That shouldn't happen. My gut feeling is that this might be anoth= er GTK3
incompatibility.

I could try to reproduce this in a clean stretch VM.
<= br>
Perfectly reproducible in my case on 2 installations.
=C2=A0


> 4. The mouse double clic does not work in a x2go session, but only - w= ithin
> the Gambas software (works well for example when launching an applicat= ion)
> and only - when the x2go client is running in a Windows environment (n= o
> problem when client in a Linux environment)

That sounds like Gambas is doing something funny, though. As = far as I was able
to gather, Gambas seems to be using Qt5 as its drawing toolkit.

The package qtbase5-examples should contain a binary at
/usr/lib/x86_64-linux-gnu/qt5/examples/widgets/widgets/mousebutto= ns/mousebuttons
which spits out received mouse events.

Can you try that - especially with double clicking - and see what it output= s?

$ /usr/lib/x86_64-linux-gnu/qt5= /examples/widgets/widgets/mousebuttons/mousebuttons
fai= led to get the current screen resources
QXcbConnection: XCB error= : 172 (Unknown), sequence: 169, resource id: 175, major code: 149 (Unknown)= , minor code: 20
"Mouse Press: raw button=3D1 =C2=A0Qt=3DLef= tButton\n heldbuttons LeftButton "
"Mouse Release: raw = button=3D1 =C2=A0Qt=3DLeftButton\n heldbuttons NoButton"
&qu= ot;Mouse DoubleClick: raw button=3D1 =C2=A0Qt=3DLeftButton\n heldbuttonsLef= tButton "
"Mouse Release: raw button=3D1 =C2=A0Qt=3DLef= tButton\n heldbuttons NoButton"

Reminde= r : the double click works when for example I launch an application from th= e desktop shortcut.
It is only in this gambas software that it do= es not work, and only when using x2go Windows client (works perfectly well = with x2go linux client).
=C2=A0
=


Mihai



_______________________________________________
x2go-dev mailing list
x2go-dev@lists.x2go.org
https://lists.x2go.org/listinfo/x2go-dev

--94eb2c07e22ca9d97605585efd93--