xpra icon
Bug tracker and wiki

Opened 7 years ago

Closed 7 years ago

Last modified 7 years ago

#303 closed defect (invalid)

invalid literal Value error when attaching with 32 bit xp via cmd

Reported by: alas Owned by: alas
Priority: major Milestone: 0.9
Component: client Version:
Keywords: Cc:

Description

Trying to connect to an xpra session using a 32 bit windows xp client (0.9.0) with the cmd shell with the following command:

xpra_cmd.exe attach tcp:10.0.32.196:1200

The client generates the following error:

xpra client 0.9.0
Traceback
   File "xpra_cmd.py", line 12 in (module) 
...
Value Error: invalid literal for int() with base 10: '10.0.32.196'

The launch GUI works fine.

Change History (4)

comment:1 Changed 7 years ago by Antoine Martin

Owner: changed from Antoine Martin to alas

Please include the full stacktrace - it is missing the most important part.

Please also try running with -d all

comment:2 Changed 7 years ago by Antoine Martin

Milestone: 0.9
Priority: minormajor

comment:3 Changed 7 years ago by alas

Resolution: invalid
Status: newclosed

I can't seem to reproduce this bug when using --opengl=off . I'm going to assume it was an opengl issue and close this.

comment:4 Changed 7 years ago by Antoine Martin

The opengl probing does not happen until much later, after the connection has been established.

And I managed to reproduce it, not with the command line posted in this ticket but with this one (an invalid one):

$ xpra attach tcp:127.0.0.1
** Message: pygobject_register_sinkfunc is deprecated (GstObject)
xpra client version 0.9.0
Traceback (most recent call last):
  File "/bin/xpra", line 6, in <module>
    sys.exit(xpra.scripts.main.main(__file__, sys.argv))
  File "xpra/scripts/main.py", line 404, in main
    return run_client(parser, options, args, mode)
  File "xpra/scripts/main.py", line 630, in run_client
    conn = connect_or_fail(pick_display(parser, opts, extra_args))
  File "xpra/scripts/main.py", line 502, in pick_display
    return parse_display_name(parser.error, opts, extra_args[0])
  File "xpra/scripts/main.py", line 476, in parse_display_name
    port = int(parts[-1])
ValueError: invalid literal for int() with base 10: '127.0.0.1'

This is "fixed" in r3043: we show a better error message:

error: invalid tcp connection string, use tcp/HOST/PORT or tcp:host:port
Last edited 7 years ago by Antoine Martin (previous) (diff)
Note: See TracTickets for help on using tickets.