Bug 1583319

Summary: xpra-2.3 results in xpra initialization error: invalid mode 'start'
Product: [Fedora] Fedora Reporter: Michael J. Chudobiak <mjc>
Component: xpraAssignee: Antonio T. (sagitter) <anto.trande>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: anto.trande, Bert.Deknuydt, jeff, jonathan.underwood, rolandka88, sergio, tchollingsworth
Target Milestone: ---Keywords: Reopened
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: xpra-2.2.6-3.fc27 xpra-2.3.1-3.fc28 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-07-05 16:13:40 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Michael J. Chudobiak 2018-05-28 17:12:18 UTC
xpra-2.3-1.fc27 was pushed to the Fedora 27 stable repo recently - see bug 1576424. This is being reverted due an issue with rpmfusion codecs (https://bugzilla.rpmfusion.org/show_bug.cgi?id=4870), but it also seems to have broken my setup.

Certain programs do not scale nicely on hidpi monitors (like Citrix), so I use the run_scaled.sh script (source: https://github.com/kaueraal/run_scaled/blob/master/run_scaled). This launches an xpra server and client to handle hidpi scaling nicely through xpra.

I now get errors like this:

[mjclab2@julius ~]$ /fileserver2/install/citrix/run_scaled.sh --scale=3 /opt/Citrix/ICAClient/wfica -icaroot /opt/Citrix/ICAClient ~/launch.ica 
xpra initialization error:
 invalid mode 'start'
2018-05-28 13:00:24,674 Error: failed to setup workspace hooks:
2018-05-28 13:00:24,674  'GdkWaylandWindow' object has no attribute 'get_xid'


The "invalid mode 'start'" bit seems to be the key.

Here are simpler invocations of xpra directly:

[mjclab2@julius ~]$ xpra start
xpra initialization error:
 invalid mode 'start'
[mjclab2@julius ~]$ 

[mjclab2@julius ~]$ xpra start :100 --start-child=xterm
xpra initialization error:
 invalid mode 'start'
[mjclab2@julius ~]$ 

The latter example is directly from https://xpra.org/trac/wiki/Usage


So... something seems broken in xpra.

Comment 1 Michael J. Chudobiak 2018-05-28 17:14:24 UTC
Should have added:

[mjclab2@julius ~]$ rpm -qa | grep xpra
xpra-2.3-1.fc27.x86_64

Comment 2 Michael J. Chudobiak 2018-05-28 17:16:02 UTC
Everything works fine with xpra-2.2.6-2.fc27.x86_64

Comment 3 Fedora Update System 2018-06-02 16:07:36 UTC
xpra-2.2.6-3.fc27 has been submitted as an update to Fedora 27. https://bodhi.fedoraproject.org/updates/FEDORA-2018-ffc8b01e7f

Comment 4 Fedora Update System 2018-06-02 20:28:40 UTC
xpra-2.2.6-3.fc27 has been pushed to the Fedora 27 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-2018-ffc8b01e7f

Comment 5 Fedora Update System 2018-06-11 16:05:08 UTC
xpra-2.2.6-3.fc27 has been pushed to the Fedora 27 stable repository. If problems still persist, please make note of it in this bug report.

Comment 6 Jeff Turkstra 2018-06-11 18:02:25 UTC
This bug also impacts Fedora 28.

Comment 7 Michael J. Chudobiak 2018-06-11 18:08:05 UTC
Yeah, this doesn't fix the issue for xpra-2.3.x in releases after Fedora 27.

Re-opening.

Comment 8 Sergio Basto 2018-06-14 04:33:16 UTC
*** Bug 1589690 has been marked as a duplicate of this bug. ***

Comment 9 Fedora Update System 2018-06-14 05:32:48 UTC
xpra-2.3.1-1.fc28 has been submitted as an update to Fedora 28. https://bodhi.fedoraproject.org/updates/FEDORA-2018-71f934e0ef

Comment 10 Fedora Update System 2018-06-14 20:24:05 UTC
xpra-2.3.1-1.fc28 has been pushed to the Fedora 28 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-2018-71f934e0ef

Comment 11 Sergio Basto 2018-06-22 00:06:47 UTC
Hi, can someone give me feedback about if this bug is fixed or not with xpra-2.3.1-1.fc28 ? 

Thanks

Comment 12 Jeff Turkstra 2018-06-22 00:14:15 UTC
I just installed xpra from testing, it still appears to be broken...

[jeff@coruscant ~]$ rpm -qa | grep xpra
xpra-2.3.1-1.fc28.x86_64
[jeff@coruscant ~]$ xpra start :100 --start-child=mate-terminal
xpra initialization error:
 invalid mode 'start'

Comment 13 Antonio T. (sagitter) 2018-06-22 10:20:50 UTC
Have you point out this issue to upstream too?

I'm occupied to fix other package now.

Comment 14 Antonio T. (sagitter) 2018-06-24 10:52:55 UTC
Please, test this new build: https://koji.fedoraproject.org/koji/taskinfo?taskID=27833334

Looks like xpra cannot be used with Python3 yet.
I am obliged to switch back to python2.

Comment 15 Jeff Turkstra 2018-06-24 17:15:12 UTC
It's not in testing, so I guess I have to download the rpm manually and try? When I do that, there are some failed dependencies:

[root@coruscant ~]# rpm -ivh xpra-2.3.1-3.fc28.x86_64.rpm 
error: Failed dependencies:
	python2-ldap3 is needed by xpra-2.3.1-3.fc28.x86_64
	python2-opencv(x86-64) is needed by xpra-2.3.1-3.fc28.x86_64

When I try to install those using dnf, there are 35 other packages that get pulled in as dependencies. I don't understand why I must do this - the earlier version of xpra worked fine on this exact system without those packages.

Regardless, if I jump through all of these hoops, the new build seems to at least work.

Comment 16 Antonio T. (sagitter) 2018-06-24 17:54:10 UTC
>It's not in testing, so I guess I have to download the rpm manually and try?

Yes.

>[root@coruscant ~]# rpm -ivh xpra-2.3.1-3.fc28.x86_64.rpm 

Use DNF.
Packaging release #3 uses Python2, so it needs all its own dependencies; after installation of xpra-2.3.1-3 :

$ rpm -q --requires xpra
/bin/bash
/bin/sh
/bin/sh
/usr/bin/python2
config(xpra) = 2.3.1-3.fc28
cups-filesystem
dbus-x11(x86-64)
gstreamer1(x86-64)
gstreamer1-plugins-base(x86-64)
gstreamer1-plugins-good(x86-64)
js-jquery
libX11.so.6()(64bit)
libXcomposite.so.1()(64bit)
libXdamage.so.1()(64bit)
libXext.so.6()(64bit)
libXfixes.so.3()(64bit)
libXi.so.6()(64bit)
libXrandr.so.2()(64bit)
libXtst.so.6()(64bit)
libc.so.6()(64bit)
libc.so.6(GLIBC_2.14)(64bit)
libc.so.6(GLIBC_2.2.5)(64bit)
libc.so.6(GLIBC_2.4)(64bit)
libfribidi.so.0()(64bit)
libgdk-x11-2.0.so.0()(64bit)
libglib-2.0.so.0()(64bit)
libgobject-2.0.so.0()(64bit)
libgtk-x11-2.0.so.0()(64bit)
libm.so.6()(64bit)
libpthread.so.0()(64bit)
libpthread.so.0(GLIBC_2.2.5)(64bit)
libpython2.7.so.1.0()(64bit)
librt.so.1()(64bit)
librt.so.1(GLIBC_2.2.5)(64bit)
libvpx.so.5()(64bit)
libxkbfile.so.1()(64bit)
pulseaudio
pulseaudio-utils(x86-64)
pygtkglext(x86-64)
python(abi) = 2.7
python2-cups(x86-64)
python2-dbus(x86-64)
python2-gobject
python2-ldap3
python2-lz4(x86-64)
python2-netifaces(x86-64)
python2-numpy(x86-64)
python2-opencv(x86-64)
python2-pillow(x86-64)
python2-pyopengl(x86-64)
python2-rencode(x86-64)
rpmlib(CompressedFileNames) <= 3.0.4-1
rpmlib(FileDigests) <= 4.6.0-1
rpmlib(PartialHardlinkSets) <= 4.0.4-1
rpmlib(PayloadFilesHavePrefix) <= 4.0-1
rpmlib(PayloadIsXz) <= 5.2-1
rtld(GNU_HASH)
shadow-utils
shared-mime-info(x86-64)
xorg-x11-drv-dummy(x86-64)
xorg-x11-server-Xorg(x86-64)
xorg-x11-server-utils(x86-64)
xorg-x11-xauth(x86-64)

>Regardless, if I jump through all of these hoops, the new build seems to at least work.

Good!

Comment 17 Fedora Update System 2018-06-25 17:53:00 UTC
xpra-2.3.1-3.fc28 has been submitted as an update to Fedora 28. https://bodhi.fedoraproject.org/updates/FEDORA-2018-df819ad945

Comment 18 Fedora Update System 2018-06-26 18:24:17 UTC
xpra-2.3.1-3.fc28 has been pushed to the Fedora 28 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-2018-df819ad945

Comment 19 Fedora Update System 2018-07-05 16:13:40 UTC
xpra-2.3.1-3.fc28 has been pushed to the Fedora 28 stable repository. If problems still persist, please make note of it in this bug report.

Comment 20 Fedora Update System 2018-07-05 18:37:48 UTC
xpra-2.3.1-3.fc28 has been pushed to the Fedora 28 stable repository. If problems still persist, please make note of it in this bug report.