bug: connection fails with X Error of failed request: BadAtom (invalid Atom parameter)

Brendan Miller <[email protected]> Tue, 27 Jul 2010 15:50:32 -0700
Newsgroups gmane.network.rdesktop.user
Message-ID <[email protected]>
I'm using version 1.6.0.

When I connect to my remote machine like this:
rdesktop -4 an_ip_address

It spits out:
X Error of failed request:  BadAtom (invalid Atom parameter)
  Major opcode of failed request:  23 (X_GetSelectionOwner)
  Atom id in failed request:  0x0
  Serial number of failed request:  55
  Current serial number in output stream:  55

Looks like this x error is just not being handled gracefully. There
seems to be an unresolved bug for this:

http://sourceforge.net/tracker/index.php?func=detail&aid=1690160&group_id=24366&atid=381347

There's a very long ubuntu bug about this, although they report it as
being about tsclient. Of course, tsclient just calls rdesktop.

https://bugs.launchpad.net/ubuntu/+source/tsclient/+bug/181428

Anyway, this bug seems kind of widespread... but is there a workaround
so that I don't trigger this code path? It seems to be complaining
about not getting the selection. Presumably this function call is
failing:

http://www.tigr.net/afterstep/X/xlib/window-information/XGetSelectionOwner.html

So I tried running with the clipboard off... since maybe it wouldn't
try to do anything with the selection then?
rdesktop -4 -r clipboard:off 10.93.239.106

Same error... is there any way I can get rdesktop to not call this
function? Are you guys programming against xlib directly?

Brendan

------------------------------------------------------------------------------
The Palm PDK Hot Apps Program offers developers who use the
Plug-In Development Kit to bring their C/C++ apps to Palm for a share 
of $1 Million in cash or HP Products. Visit us here for more details:
http://ad.doubleclick.net/clk;226879339;13503038;l?
http://clk.atdmt.com/CRS/go/247765532/direct/01/