Re: [winswitch] Error on disconect

2021-07-09 Thread Antoine Martin via shifter-users
On 07/07/2021 21:50, xpra--- via shifter-users wrote:
> 
> Getting the following error when disconnecting from a XPRA server
> 
> 
> 2021-07-06 23:25:19,020 audio playback stopping
Nothing to worry about here: you're disconnecting so the audio will also
stop.

> /usr/lib/python3/dist-packages/gi/overrides/Gtk.py:1632: Warning:
> g_object_ref: assertion 'G_IS_OBJECT (object)' failed
>   return _Gtk_main(*args, **kwargs)
This is completely unrelated to the audio playback and can safely be
ignored.

I have added this to the FAQ:
https://github.com/Xpra-org/xpra/commit/3ee7856363071b4638548b68a0cda8f5245fc72a

Cheers,
Antoine

> 
> Thats the last two lines of the log.
> 
> Audio playback does work from the server, but get this on any disconnect.
> 
> XPRA 4.02rc0 from XPRA repos, *buntu 20.04.2 on server and clients.
> 
> Thanks!
> 
> ___
> shifter-users mailing list
> shifter-users@lists.devloop.org.uk
> https://lists.devloop.org.uk/mailman/listinfo/shifter-users

___
shifter-users mailing list
shifter-users@lists.devloop.org.uk
https://lists.devloop.org.uk/mailman/listinfo/shifter-users


[winswitch] Error on disconect

2021-07-09 Thread xpra--- via shifter-users



Getting the following error when disconnecting from a XPRA server


2021-07-06 23:25:19,020 audio playback stopping
/usr/lib/python3/dist-packages/gi/overrides/Gtk.py:1632: Warning:  
g_object_ref: assertion 'G_IS_OBJECT (object)' failed

  return _Gtk_main(*args, **kwargs)

Thats the last two lines of the log.

Audio playback does work from the server, but get this on any disconnect.

XPRA 4.02rc0 from XPRA repos, *buntu 20.04.2 on server and clients.

Thanks!

___
shifter-users mailing list
shifter-users@lists.devloop.org.uk
https://lists.devloop.org.uk/mailman/listinfo/shifter-users


Re: [winswitch] error on build

2017-02-17 Thread Antoine Martin via shifter-users
Please always keep the list CCed.

On 18/02/17 01:43, Michael Durkin wrote:
> ok, this error is over my head ...
> 
> building 'xpra.codecs.libav_common.av_log' extension
> arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall
> -Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2
> -g -fstack-protector-strong -Wformat -Werror=format-security -fPIC
> -I/usr/local/include -I/usr/include/python2.7 -c
> xpra/codecs/libav_common/av_log.c -o
> build/temp.linux-armv7l-2.7/xpra/codecs/libav_common/av_log.o -Wall
> -Werror -Wno-error=strict-prototypes -fPIC
> arm-linux-gnueabihf-gcc -pthread -shared -Wl,-O1
> -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions -Wl,-z,relro
> -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes
> -Wdate-time -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat
> -Werror=format-security -Wl,-Bsymbolic-functions -Wl,-z,relro
> -Wdate-time -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat
> -Werror=format-security
> build/temp.linux-armv7l-2.7/xpra/codecs/libav_common/av_log.o
> -L/usr/local/lib -lavutil -lm -o
> build/lib.linux-armv7l-2.7/xpra/codecs/libav_common/av_log.so -Wall
> /usr/bin/ld: /usr/local/lib/libavutil.a(log.o): relocation
> R_ARM_THM_MOVW_ABS_NC against `a local symbol' can not be used when
> making a shared object; recompile with -fPIC
> /usr/local/lib/libavutil.a: error adding symbols: Bad value
> collect2: error: ld returned 1 exit status
> error: command 'arm-linux-gnueabihf-gcc' failed with exit status 1
I think someone hit this error before, but I can't remember the details.
This is a toolchain problem, you will need to get someone from Odroid to
help you here. This looks relevant:
https://bugs.launchpad.net/ubuntu/+source/gcc-4.4/+bug/503448

Or just disable the ffmpeg based codecs (and maybe others too):
./setup.py --without-dec_avcodec2 --without-csc_swcale --without-enc_ffmpeg

Cheers
Antoine



> 
> 
> On Fri, Feb 17, 2017 at 9:44 AM, Michael Durkin  > wrote:
> 
> Every thing on that page is installed .. or was already part of the
> Ubuntu 16.04 HardKernel image ...
> 
> hit this error ...
> 
> error: implicit declaration of function 'avcodec_receive_frame'
> 
> humm .. not quite an error, just not ffmpeg V3 
> Im not sure what would happen if i remove ffmpeg to anything else ...
> Ill try to build ffmpeg from svn/git ...
> 
> On Thu, Feb 16, 2017 at 10:57 PM, Antoine Martin via shifter-users
>  > wrote:
> 
> On 17/02/17 13:26, Michael Durkin via shifter-users wrote:
> > Not sure if this is a but yet .. probably more of a 
> Odroid-X2/Ubuntu16.04
> > fresh install issue ..
> >
> > found gcc version: 5.4.0
> > Traceback (most recent call last):
> >   File "setup.py", line 2449, in 
> > ffmpeg_pkgconfig = pkgconfig("libavcodec", "libavformat")
> >   File "setup.py", line 688, in exec_pkgconfig
> > raise Exception("ERROR: cannot find a valid pkg-config entry 
> for %s
> > using PKG_CONFIG_PATH=%s" % (" or ".join(options),
> > os.environ.get("PKG_CONFIG_PATH", "(empty)")))
> > Exception: ERROR: cannot find a valid pkg-config entry for 
> libavformat
> > using PKG_CONFIG_PATH=(empty)
> You need the libavformat development headers and pkg-config file.
> I have added more details here:
> https://www.xpra.org/trac/wiki/Building/Debian
> 
> 
> Cheers
> Antoine
> 
> >
> > im still investigating 
> > ___
> > shifter-users mailing list
> > shifter-users@lists.devloop.org.uk
> 
> > http://lists.devloop.org.uk/mailman/listinfo/shifter-users
> 
> >
> 
> ___
> shifter-users mailing list
> shifter-users@lists.devloop.org.uk
> 
> http://lists.devloop.org.uk/mailman/listinfo/shifter-users
> 
> 
> 
> 

___
shifter-users mailing list
shifter-users@lists.devloop.org.uk
http://lists.devloop.org.uk/mailman/listinfo/shifter-users


Re: [winswitch] error on build

2017-02-16 Thread Antoine Martin via shifter-users
On 17/02/17 13:26, Michael Durkin via shifter-users wrote:
> Not sure if this is a but yet .. probably more of a Odroid-X2/Ubuntu16.04
> fresh install issue ..
> 
> found gcc version: 5.4.0
> Traceback (most recent call last):
>   File "setup.py", line 2449, in 
> ffmpeg_pkgconfig = pkgconfig("libavcodec", "libavformat")
>   File "setup.py", line 688, in exec_pkgconfig
> raise Exception("ERROR: cannot find a valid pkg-config entry for %s
> using PKG_CONFIG_PATH=%s" % (" or ".join(options),
> os.environ.get("PKG_CONFIG_PATH", "(empty)")))
> Exception: ERROR: cannot find a valid pkg-config entry for libavformat
> using PKG_CONFIG_PATH=(empty)
You need the libavformat development headers and pkg-config file.
I have added more details here:
https://www.xpra.org/trac/wiki/Building/Debian

Cheers
Antoine

> 
> im still investigating 
> ___
> shifter-users mailing list
> shifter-users@lists.devloop.org.uk
> http://lists.devloop.org.uk/mailman/listinfo/shifter-users
> 

___
shifter-users mailing list
shifter-users@lists.devloop.org.uk
http://lists.devloop.org.uk/mailman/listinfo/shifter-users


[winswitch] error on build

2017-02-16 Thread Michael Durkin via shifter-users
Not sure if this is a but yet .. probably more of a Odroid-X2/Ubuntu16.04
fresh install issue ..

found gcc version: 5.4.0
Traceback (most recent call last):
  File "setup.py", line 2449, in 
ffmpeg_pkgconfig = pkgconfig("libavcodec", "libavformat")
  File "setup.py", line 688, in exec_pkgconfig
raise Exception("ERROR: cannot find a valid pkg-config entry for %s
using PKG_CONFIG_PATH=%s" % (" or ".join(options),
os.environ.get("PKG_CONFIG_PATH", "(empty)")))
Exception: ERROR: cannot find a valid pkg-config entry for libavformat
using PKG_CONFIG_PATH=(empty)

im still investigating 
___
shifter-users mailing list
shifter-users@lists.devloop.org.uk
http://lists.devloop.org.uk/mailman/listinfo/shifter-users


Re: [winswitch] error -- doubt its xpra

2016-11-29 Thread Antoine Martin via shifter-users
On 30/11/16 01:25, Michael Durkin via shifter-users wrote:
> im getting an error of sorts and im not sure how to deal with it ,,,
> 
> http://pastebin.com/A2NAug19
> 
> /usr/bin/ld.bfd.real: /usr/local/lib/libavutil.a(log.o): relocation
> R_ARM_THM_MOVW_ABS_NC against `a local symbol' can not be used when making
> a shared object; recompile with -fPIC
> /usr/local/lib/libavutil.a: error adding symbols: Bad value
> collect2: error: ld returned 1 exit status
> error: command 'arm-linux-gnueabihf-gcc' failed with exit status 1
Hmm, yet another strange build problem on arm. I'm not sure why you have
a static library in /usr/local...
And I'm not going to recommend that you try to fix it because it's very
likely that the libav version is going to be too old anyway.
So the best course of action is probably to just build with:
./setup.py build --without-dev_avcodec2 --without-csc_swscale
And see where that gets you.
Hopefully you won't have to turn off too many things to get a working build.

Cheers
Antoine
___
shifter-users mailing list
shifter-users@lists.devloop.org.uk
http://lists.devloop.org.uk/mailman/listinfo/shifter-users


[winswitch] error -- doubt its xpra

2016-11-29 Thread Michael Durkin via shifter-users
im getting an error of sorts and im not sure how to deal with it ,,,

http://pastebin.com/A2NAug19

/usr/bin/ld.bfd.real: /usr/local/lib/libavutil.a(log.o): relocation
R_ARM_THM_MOVW_ABS_NC against `a local symbol' can not be used when making
a shared object; recompile with -fPIC
/usr/local/lib/libavutil.a: error adding symbols: Bad value
collect2: error: ld returned 1 exit status
error: command 'arm-linux-gnueabihf-gcc' failed with exit status 1
___
shifter-users mailing list
shifter-users@lists.devloop.org.uk
http://lists.devloop.org.uk/mailman/listinfo/shifter-users


Re: [winswitch] error or not

2016-08-28 Thread Antoine Martin via shifter-users
On 29/08/16 04:44, Michael Durkin via shifter-users wrote:
> Im not sure if this is a bug or just too old of ubuntu built on ...
> trusty 14.04 ...
Ubuntu Trusty will be supported in the next release so this is
definitely possible.
With trunk, unless you build against private ffmpeg headers as per:
http://xpra.org/trac/ticket/1256
you may need to build "--without-csc_swcale".
The v0.17.x branch may require more patching still and is not supported
with trusty.

> Cythonizing xpra/x11/bindings/keyboard_bindings.pyx
> 
> Error compiling Cython file:
> 
> ...
> cdef XkbRF_VarDefsRec rdefs
> cdef XkbComponentNamesRec rnames
> cdef char *locale = setlocale(LC_ALL, NULL)
> log("setxkbmap: using locale=%s", locale)
> 
> rdefs.model = model or b""
>^
> 
> 
> xpra/x11/bindings/keyboard_bindings.pyx:273:28: Obtaining 'char *' from
> temporary Python value
> Traceback (most recent call last):
>   File "setup.py", line 2388, in 
> setup_options["ext_modules"] = cythonize(ext_modules, gdb_debug=False)
>   File "/usr/lib/python2.7/dist-packages/Cython/Build/Dependencies.py",
> line 798, in cythonize
> cythonize_one(*args[1:])
>   File "/usr/lib/python2.7/dist-packages/Cython/Build/Dependencies.py",
> line 915, in cythonize_one
> raise CompileError(None, pyx_file)
> Cython.Compiler.Errors.CompileError: xpra/x11/bindings/keyboard_bindings.pyx
> odroid@odroid:~/Downloads/xpra-0.17.5$
Try with this changeset for older versions of Cython:
http://xpra.org/trac/changeset/13488
You may also need to apply this patch for building trunk with an old
version of Cython:
http://xpra.org/trac/browser/xpra/trunk/src/patches/compile-with-old-cython.patch?rev=13489

Cheers
Antoine
___
shifter-users mailing list
shifter-users@lists.devloop.org.uk
http://lists.devloop.org.uk/mailman/listinfo/shifter-users


[winswitch] error or not

2016-08-28 Thread Michael Durkin via shifter-users
Im not sure if this is a bug or just too old of ubuntu built on ...

trusty 14.04 ...

Cythonizing xpra/x11/bindings/keyboard_bindings.pyx

Error compiling Cython file:

...
cdef XkbRF_VarDefsRec rdefs
cdef XkbComponentNamesRec rnames
cdef char *locale = setlocale(LC_ALL, NULL)
log("setxkbmap: using locale=%s", locale)

rdefs.model = model or b""
   ^


xpra/x11/bindings/keyboard_bindings.pyx:273:28: Obtaining 'char *' from
temporary Python value
Traceback (most recent call last):
  File "setup.py", line 2388, in 
setup_options["ext_modules"] = cythonize(ext_modules, gdb_debug=False)
  File "/usr/lib/python2.7/dist-packages/Cython/Build/Dependencies.py",
line 798, in cythonize
cythonize_one(*args[1:])
  File "/usr/lib/python2.7/dist-packages/Cython/Build/Dependencies.py",
line 915, in cythonize_one
raise CompileError(None, pyx_file)
Cython.Compiler.Errors.CompileError: xpra/x11/bindings/keyboard_bindings.pyx
odroid@odroid:~/Downloads/xpra-0.17.5$
___
shifter-users mailing list
shifter-users@lists.devloop.org.uk
http://lists.devloop.org.uk/mailman/listinfo/shifter-users


Re: [winswitch] error on starting xpra

2015-09-10 Thread Antoine Martin
On 10/09/15 13:35, Antony Lee wrote:
> Hi,
> I am trying to run xpra for the first time.
>
> $ xpra start ssh:antony@maxwell:100 --start-child xterm
>
> This fails with the following message:
>
> 2015-09-09 23:36:56,493 cannot use pycups for printing: No module named cups
> 2015-09-09 23:36:56,513 unknown logging category: x265
> 2015-09-09 23:36:56,543  cannot import csc_opencl (OpenCL colorspace
> conversion): No module named pyopencl
> 2015-09-09 23:36:56,564 Warning: zlib is the only compressor enabled
> 2015-09-09 23:36:56,564  install and enable lzo or lz4 support for better
> performance
> 2015-09-09 23:36:56,565 xpra gtk2 client version 0.15.5 (r10506)
> 2015-09-09 23:36:56,566 csc module csc_opencl could not be loaded: No
> module named pyopencl
> 2015-09-09 23:36:56,567 OpenGL support could not be enabled:
> 2015-09-09 23:36:56,567  cannot import name gdkgl
> 2015-09-09 23:36:56,697 detected keyboard: rules=evdev, model=pc101,
> layout=fr
> 2015-09-09 23:36:56,698 desktop size is 1600x900 with 1 screen(s):
> 2015-09-09 23:36:56,699   ':0.0' (423x238 mm - DPI: 96x96) workarea:
> 1600x873
> 2015-09-09 23:36:56,699 eDP1 (309x174 mm - DPI: 131x131)
> Entering daemon mode; any further errors will be reported to:
>   /home/antony/.xpra/:100.log
> server failed to start after 15.0 seconds - sorry!
> 2015-09-09 23:37:13,242 failed to receive anything, not an xpra server?
> 2015-09-09 23:37:13,242   could also be the wrong username, password or port
> 2015-09-09 23:37:13,242 Connection lost
>
> On the server side, the log is as follows:
>
> (EE)
> Fatal server error:
> (EE) The '-logfile' option cannot be used with elevated privileges.
> (EE)
> (EE)
> Please consult the The X.Org Foundation support
>  at http://wiki.x.org
>  for help.
> (EE)
> 2015-09-09 23:33:47,743 failed to load the mdns avahi publisher: No module
> named dbus
> 2015-09-09 23:33:47,743 either fix your installation or use the '--no-mdns'
> flag
> 2015-09-09 23:33:47,743
> 2015-09-09 23:33:47,743 Xvfb command has terminated! xpra cannot continue
^ this is your problem. ("xpra cannot continue")
> 2015-09-09 23:33:47,743
> 2015-09-09 23:33:47,744 removing socket /home/antony/.xpra/maxwell-arch-100
>
> Both sides use the AUR xpra-winswitch package (
> https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=xpra-winswitch).
>
> Any help would be welcome.
The problem comes from your "xvfb" option in xpra.conf.
It looks to me like the package is pointing to a suid Xorg binary
("elevate privileges"), and this won't work. For more details see:
http://xpra.org/trac/wiki/Xdummy
Please contact the arch packager for help on this as I have no idea what
arch should be using / doing here.

There are a number of other issues shown as warnings:
* the x265 codec should probably not be built, or if built - the
dependency should be required
* same for pyopencl
* running without lzo or lz4 gives very poor performance
* you should have pygtkglext installed (for opengl accelerated client
rendering)

Cheers
Antoine

>
> Antony
> ___
> shifter-users mailing list
> shifter-users@lists.devloop.org.uk
> http://lists.devloop.org.uk/mailman/listinfo/shifter-users


___
shifter-users mailing list
shifter-users@lists.devloop.org.uk
http://lists.devloop.org.uk/mailman/listinfo/shifter-users


[winswitch] error on starting xpra

2015-09-10 Thread Antony Lee
Hi,
I am trying to run xpra for the first time.

$ xpra start ssh:antony@maxwell:100 --start-child xterm

This fails with the following message:

2015-09-09 23:36:56,493 cannot use pycups for printing: No module named cups
2015-09-09 23:36:56,513 unknown logging category: x265
2015-09-09 23:36:56,543  cannot import csc_opencl (OpenCL colorspace
conversion): No module named pyopencl
2015-09-09 23:36:56,564 Warning: zlib is the only compressor enabled
2015-09-09 23:36:56,564  install and enable lzo or lz4 support for better
performance
2015-09-09 23:36:56,565 xpra gtk2 client version 0.15.5 (r10506)
2015-09-09 23:36:56,566 csc module csc_opencl could not be loaded: No
module named pyopencl
2015-09-09 23:36:56,567 OpenGL support could not be enabled:
2015-09-09 23:36:56,567  cannot import name gdkgl
2015-09-09 23:36:56,697 detected keyboard: rules=evdev, model=pc101,
layout=fr
2015-09-09 23:36:56,698 desktop size is 1600x900 with 1 screen(s):
2015-09-09 23:36:56,699   ':0.0' (423x238 mm - DPI: 96x96) workarea:
1600x873
2015-09-09 23:36:56,699 eDP1 (309x174 mm - DPI: 131x131)
Entering daemon mode; any further errors will be reported to:
  /home/antony/.xpra/:100.log
server failed to start after 15.0 seconds - sorry!
2015-09-09 23:37:13,242 failed to receive anything, not an xpra server?
2015-09-09 23:37:13,242   could also be the wrong username, password or port
2015-09-09 23:37:13,242 Connection lost

On the server side, the log is as follows:

(EE)
Fatal server error:
(EE) The '-logfile' option cannot be used with elevated privileges.
(EE)
(EE)
Please consult the The X.Org Foundation support
 at http://wiki.x.org
 for help.
(EE)
2015-09-09 23:33:47,743 failed to load the mdns avahi publisher: No module
named dbus
2015-09-09 23:33:47,743 either fix your installation or use the '--no-mdns'
flag
2015-09-09 23:33:47,743
2015-09-09 23:33:47,743 Xvfb command has terminated! xpra cannot continue
2015-09-09 23:33:47,743
2015-09-09 23:33:47,744 removing socket /home/antony/.xpra/maxwell-arch-100

Both sides use the AUR xpra-winswitch package (
https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=xpra-winswitch).

Any help would be welcome.

Antony
___
shifter-users mailing list
shifter-users@lists.devloop.org.uk
http://lists.devloop.org.uk/mailman/listinfo/shifter-users


Re: [winswitch] Error messages after connecting to xpra remotely

2013-07-30 Thread Antoine Martin
On 30/07/13 05:58, Roberto Hashioka wrote:
 I've started a session using xpra 0.9.8 on Ubuntu (quantal) and I'm
 accessing it from my Mac xpra 0.9.8. I keep receiving a lot of error
 messages.

 Host side:

(snip)
   File /usr/lib/python2.7/dist-packages/xpra/window_source.py, line 202,
 in get_factors
 factors.append(calculate_for_target(msg, target_latency,
 self.avg_damage_in_latency, self.recent_damage_in_latency, aim=0.8,
 slope=0.005, smoothing=sqrt))
   File cymaths.pyx, line 119, in xpra.stats.cymaths.calculate_for_target
 (xpra/stats/cymaths.c:2628)
 ValueError: math domain error
 .
Could be related to the error below, but I don't see how.


 Client side:
(snip)
 ImportError: The _imaging C module is not installed
 2013-07-29 15:57:21,125 error processing draw packet
 Traceback (most recent call last):
   File xpra/client.pyc, line 1247, in _draw_thread_loop
   File xpra/client.pyc, line 1293, in _do_draw
   File xpra/client_window.pyc, line 456, in draw_region
   File xpra/window_backing.pyc, line 483, in draw_region
   File xpra/window_backing.pyc, line 415, in paint_image
   File PIL/Image.pyc, line 535, in tostring
   File PIL/Image.pyc, line 509, in tobytes
   File PIL/ImageFile.pyc, line 168, in load
   File PIL/PngImagePlugin.pyc, line 404, in load_prepare
   File PIL/ImageFile.pyc, line 252, in load_prepare
   File PIL/Image.pyc, line 39, in __getattr__

 ImportError: The _imaging C module is not installed
Hmm, probably a Pillow vs PIL packaging issue.
Can you confirm by using plain RGB encoding to see if that still works?

Thanks
Antoine

 On previous versions it doesn't happen.

 Thanks


___
shifter-users mailing list
shifter-users@lists.devloop.org.uk
http://lists.devloop.org.uk/mailman/listinfo/shifter-users