[winswitch] Fwd: xpra start & attach error messages

yonatan zaken yonatan.zaken at gmail.com
Sat Feb 13 13:14:19 GMT 2021


*Cheers,*
*Yonatan*




---------- Forwarded message ---------
From: yonatan zaken <yonatan.zaken at gmail.com>
Date: Sat, 13 Feb 2021 at 14:23
Subject: Re: [winswitch] xpra start & attach error messages
To: Antoine Martin <antoine at nagafix.co.uk>


Hi Antoine,
Thanks for your thorough response !

The embedding of the the xpra session is based on the QT platform (c++).
I maintain the window id of the window I want to embed by using 'wmctrl'
linux command, actually I use polling until the wanted window appears in
the list returned by wmctrl.
After I have the window ID I use QT API methods, specifically a
QX11EmbedContainer widget and supply it the window ID to embed the xpra
session.
*---------------------------------------------------------------------------------------------*
int winID = pollWindowID(windowHint, timeout);
if (FAIL != winID) {
container->embedClient(winID);
return SUCCESS;
}
*---------------------------------------------------------------------------------------------*

So basically I get the window ID of the xpra session window that appears in
the list of 'wmctrl -l' command after executing 'xpra start' or 'xpra
attach'
and delegate it to a widget object that performs the embedding for me.

Let me know if you need more information regarding this matter
Thanks again for you helpful reply!

*Cheers,*
*Yonatan*




On Fri, 12 Feb 2021 at 17:23, Antoine Martin via shifter-users <
shifter-users at lists.devloop.org.uk> wrote:

> On 09/02/2021 04:51, yonatan zaken via shifter-users wrote:
> > Hi All,
> > I have been using xpra lately, extremely cool utility.
> >
> > My platform: Linux kubuntu 14
> > xpra version: v1.0.12-r19800
> Wow, that's old!
>
> This distribution has reached "End of Standard Support" 2 years ago, so
> you should upgrade to something that is supported and most of your
> warnings will just go away too.
>
> > Some issues i've encountered that are worrying me:
> Nothing to worry about here.
> I would worry about running an outdated distribution instead.
>
> > 1) After *successfully* performing 'xpra start' or 'xpra attach' I see
> some
> > error messages printed to console. Since most of the functionalities are
> > working fine I can't tell whether these errors are critical or not. This
> is
> > the console output after using 'xpra attach':
> >
> >
> -------------------------------------------------------------------------------------------------------
> > *yonat at y10*:~>xpra attach
> > 2021-02-08 21:08:06,709 Xpra gtk2 client version 1.0.12-r19800 64-bit
> > 2021-02-08 21:08:06,710  running on Linux Ubuntu 14.04 trusty
>
> > Warning: failed to import GStreamer:
> >  GStreamer 1.0: Namespace Gst not available
> >  GStreamer 0.10: No module named pygst
> > 2021-02-08 21:08:07,675 Error: failed to query sound subsystem:
> > 2021-02-08 21:08:07,676  query did not return any data
> You won't get any audio forwarding because of these missing packages.
> I really cannot remember if it is possible to install them on Ubuntu 14.
>
> > 2021-02-08 21:08:07,714 Warning: libvpx ABI version 5 is too old:
> > 2021-02-08 21:08:07,715  disabling YUV444P support with VP9
> Your distribution is too old and the "vp9" encoder will be forced to use
> colour subsampling. No big deal.
>
> > 2021-02-08 21:08:08,604 Warning: PyOpenGL version 3.1 or later is
> strongly
> > recommended
> > 2021-02-08 21:08:08,604  (found version 3.0.2)
> Same: these libraries are just old, and in this particular case, buggy too.
>
> > 2021-02-08 21:08:08,627 PyOpenGL warning: missing accelerate module
> > 2021-02-08 21:08:08,628 PyOpenGL warning: missing array format handlers:
> > numeric, vbo, vbooffset
> > 2021-02-08 21:08:08,628 OpenGL Version: 4.5.0 NVIDIA 367.44
> > 2021-02-08 21:08:08,651 OpenGL enabled with GeForce GT 730/PCIe/SSE2
> So, if your client crashes, you may want to turn off opengl with
> --opengl=no
>
> > 2021-02-08 21:08:08,726  keyboard settings: rules=evdev, model=pc105,
> > layout=us
> > 2021-02-08 21:08:08,728  desktop size is 1920x1080 with 1 screen:
> > 2021-02-08 21:08:08,728   :0.0 (513x292 mm - DPI: 95x93) workarea:
> 1920x1045
> > 2021-02-08 21:08:08,728     VGA-0 (509x286 mm - DPI: 95x95)
> > 2021-02-08 21:08:10,537 enabled fast mmap transfers using 256MB shared
> > memory area
> > 2021-02-08 21:08:10,538 Xpra X11 server version 1.0.12-r19800 64-bit
> > 2021-02-08 21:08:10,538  running on Linux Ubuntu 14.04 trusty
> > 2021-02-08 21:08:10,538 enabled remote logging
> > 2021-02-08 21:08:10,544 Attached to :1 (press Control-C to detach)
> >
> > 2021-02-08 21:08:11,574 failed to send logging packet: global name 'enc'
> is
> > not defined
> This is a minor harmless bug, which has now been fixed:
>
> https://github.com/Xpra-org/xpra/commit/83a6b3f8186776fc670a0055faea19c56c840596
>
> > 2021-02-08 21:08:11,575 do_send_printers()
> > Traceback (most recent call last):
> >   File "/usr/lib/python2.7/dist-packages/xpra/client/client_base.py",
> line
> > 753, in do_send_printers
> >     printers = get_printers()
> >   File
> "/usr/lib/python2.7/dist-packages/xpra/platform/pycups_printing.py",
> > line 396, in get_printers
> >     all_printers = get_all_printers()
> >   File
> "/usr/lib/python2.7/dist-packages/xpra/platform/pycups_printing.py",
> > line 400, in get_all_printers
> >     conn = cups.Connection()
> > RuntimeError: failed to connect to server
> Your cupsd printer deamon is not running, so printer forwarding will not
> work.
>
> >
> -------------------------------------------------------------------------------------------------------------------------------
> >
> > 2) I have a GUI application that embeds a attached xpra session. When I
> > close the GUI application I am getting the following output - keep in
> mind
> > i don't detach from the xpra session that's embedded in the gui
> application:
> How exactly do you embed the xpra session?
> With most applications, xpra normally creates multiple windows (ie: each
> drop down menu or tooltip is in fact a window) so it should be very
> difficult to embed correctly.
>
> >
> -----------------------------------------------------------------------------------------------------------------------
> >
> > /usr/lib/python2.7/dist-packages/xpra/gtk_common/gtk_util.py:383:
> > GtkWarning: GdkWindow 0x4a0007f unexpectedly destroyed
> >   gtk.main()
> > /usr/lib/python2.7/dist-packages/xpra/gtk_common/gtk_util.py:383:
> > GtkWarning: GdkWindow 0x4e000b3 unexpectedly destroyed
> >   gtk.main()
> > /usr/lib/python2.7/dist-packages/xpra/gtk_common/gtk_util.py:383:
> > GtkWarning: GdkWindow 0x4a0007c unexpectedly destroyed
> >   gtk.main()
> > /usr/lib/python2.7/dist-packages/xpra/gtk_common/gtk_util.py:383:
> > GtkWarning: GdkWindow 0x4e000b0 unexpectedly destroyed
> >   gtk.main()
> >
> > 2021-02-08 22:58:18,276 Error: OpenGL backing is not realized
> > 2021-02-08 22:58:18,653 Error: OpenGL backing is not realized
> > 2021-02-08 22:58:19,028 Error: OpenGL backing is not realized
> > 2021-02-08 22:58:19,404 Error: OpenGL backing is not realized
> > 2021-02-08 22:58:19,780 Error: OpenGL backing is not realized
> > 2021-02-08 22:58:20,157 Error: OpenGL backing is not realized
> > 2021-02-08 22:58:20,534 Error: OpenGL backing is not realized
> > 2021-02-08 22:58:20,909 Error: OpenGL backing is not realized
> > 2021-02-08 22:58:21,285 Error: OpenGL backing is not realized
> > 2021-02-08 22:58:21,653 Error: OpenGL backing is not realized
> > 2021-02-08 22:58:22,022 Error: OpenGL backing is not realized
> > 2021-02-08 22:58:22,389 Error: OpenGL backing is not realized
> > 2021-02-08 22:58:22,756 Error: OpenGL backing is not realized
> > 2021-02-08 22:58:23,123 Error: OpenGL backing is not realized
> > 2021-02-08 22:58:23,492 Error: OpenGL backing is not realized
> > 2021-02-08 22:58:23,859 Error: OpenGL backing is not realized
> >
> >
> ---------------------------------------------------------------------------------------------------------------------------
> >
> > The Error: OpenGL backing is not realized, as you see, keeps being sent
> to
> > console and stops only if I run the command 'xpra stop' and shutdown the
> > server.
> This message comes from the client, which means that the client is still
> connected to the server at this point.
> For some reason, one of its window seems to be in an invalid state.
> Probably something to do with your embedding.
>
> > Also, I have been performing the mentioned operation (closing gui that
> > embeds attached xpra session) for quite a while but only today I am seing
> > the "OpenGL backing is not realized" message. Very unusual.
> It could be another update that has caused the behaviour to change,
> maybe a driver update?
>
> > Do you have any input on these matters?
> > Your help is highly appreciated.
> Please use a more up to date version and share your embedding code.
> Without it, it is impossible for me to diagnose anything.
>
> Cheers,
> Antoine
>
>
> >
> > *Cheers,*
> > *Yonatan*
> _______________________________________________
> shifter-users mailing list
> shifter-users at lists.devloop.org.uk
> https://lists.devloop.org.uk/mailman/listinfo/shifter-users
>



More information about the shifter-users mailing list