public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Fwd: Limited clipboard buffer between X11 apps and Microsoft Windows
       [not found] <CAFMYRRNBpxYc42r9eSxYOC0v43jMGMySXeh3G-ARc1YT+k1LdA@mail.gmail.com>
@ 2015-11-17 18:57 ` Kevin Connor Arpe
  2015-11-19 12:30   ` Jon Turney
  0 siblings, 1 reply; 3+ messages in thread
From: Kevin Connor Arpe @ 2015-11-17 18:57 UTC (permalink / raw)
  To: cygwin

Hello,

Firstly, big shout out to all the incredible volunteers on this
project.  My life is infinitely more technically manageable on
Microsoft Windows thanks to Cygwin.  I get that Linux feeling
everyday.

My issue: Copying text between X11 apps and Microsoft Windows has
limited clipboard buffer.  My office co-worker and I were able to
replicate the same issue on our machines.

To replicate:
1) Run Cygwin X Server locally.
2) Run gedit remotely (using company Linux hosts) and redirect display
to our local Cygwin X Server.
3) Copy some text in gedit, paste in Windows app, e.g. Notepad.

We are able to find a limit (approximately 1000+ lines of text).  To
be very clear:  We can copy small amounts to text, but not large
amounts of text.

My co-worker found this historical Cygwin mailing list item.  It looks
very similar:
http://cygwin.1069669.n5.nabble.com/emacs-x11-new-clipboard-size-limitation-td104696.html

When the copy/paste fails, I see the following in /var/log/xwin/XWin.0.log:
[298268.591] winClipboardFlushXEvents - SelectionNotify -
X*TextPropertyToTextList returned: XConverterNotFound

Finally, I regularly update my Cygwin; AFAIK: my release is quite recent.
$ uname -a
CYGWIN_NT-6.1-WOW W01BBSAV 2.3.0(0.291/5/3) 2015-11-09 10:22 i686 Cygwin

Please let me know what I can do to provide further information &
details, e.g., STC -- Simple Test Case as normally requested by
Corinna.

Thanks,
Arpe

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Fwd: Limited clipboard buffer between X11 apps and Microsoft Windows
  2015-11-17 18:57 ` Fwd: Limited clipboard buffer between X11 apps and Microsoft Windows Kevin Connor Arpe
@ 2015-11-19 12:30   ` Jon Turney
  2016-02-19 16:25     ` Jon Turney
  0 siblings, 1 reply; 3+ messages in thread
From: Jon Turney @ 2015-11-19 12:30 UTC (permalink / raw)
  To: cygwin; +Cc: Kevin Connor Arpe

On 17/11/2015 18:57, Kevin Connor Arpe wrote:
> My issue: Copying text between X11 apps and Microsoft Windows has
> limited clipboard buffer.  My office co-worker and I were able to
> replicate the same issue on our machines.
>
> To replicate:
> 1) Run Cygwin X Server locally.
> 2) Run gedit remotely (using company Linux hosts) and redirect display
> to our local Cygwin X Server.
> 3) Copy some text in gedit, paste in Windows app, e.g. Notepad.
>
> We are able to find a limit (approximately 1000+ lines of text).  To
> be very clear:  We can copy small amounts to text, but not large
> amounts of text.
>
> My co-worker found this historical Cygwin mailing list item.  It looks
> very similar:
> http://cygwin.1069669.n5.nabble.com/emacs-x11-new-clipboard-size-limitation-td104696.html
>
> When the copy/paste fails, I see the following in /var/log/xwin/XWin.0.log:
> [298268.591] winClipboardFlushXEvents - SelectionNotify -
> X*TextPropertyToTextList returned: XConverterNotFound

Thanks for reporting this issue.

Unfortunately, I don't think this is a recurrence of the regression in 
that old report.

Briefly, there is a different protocol [1] for transferring clipboard 
contents too large to fit in a single X protocol message (approximately 
262144 bytes), which is not currently implemented by the X11/Windows 
clipboard synchronization code.

Your estimate of 1000 lines seems a little low, but in my testing this 
is the limit I hit.

[1] 
http://www.x.org/releases/X11R7.7/doc/xorg-docs/icccm/icccm.html#INCR_Properties

-- 
Jon TURNEY
Volunteer Cygwin/X X Server maintainer

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Fwd: Limited clipboard buffer between X11 apps and Microsoft Windows
  2015-11-19 12:30   ` Jon Turney
@ 2016-02-19 16:25     ` Jon Turney
  0 siblings, 0 replies; 3+ messages in thread
From: Jon Turney @ 2016-02-19 16:25 UTC (permalink / raw)
  To: cygwin; +Cc: kevinarpe@gmail.com >> Kevin Connor Arpe

On 19/11/2015 12:30, Jon Turney wrote:
> On 17/11/2015 18:57, Kevin Connor Arpe wrote:
>> My issue: Copying text between X11 apps and Microsoft Windows has
>> limited clipboard buffer.  My office co-worker and I were able to
>> replicate the same issue on our machines.
>>
>> To replicate:
>> 1) Run Cygwin X Server locally.
>> 2) Run gedit remotely (using company Linux hosts) and redirect display
>> to our local Cygwin X Server.
>> 3) Copy some text in gedit, paste in Windows app, e.g. Notepad.
>>
>> We are able to find a limit (approximately 1000+ lines of text).  To
>> be very clear:  We can copy small amounts to text, but not large
>> amounts of text.
>>
>> My co-worker found this historical Cygwin mailing list item.  It looks
>> very similar:
>> http://cygwin.1069669.n5.nabble.com/emacs-x11-new-clipboard-size-limitation-td104696.html
>>
>>
>> When the copy/paste fails, I see the following in
>> /var/log/xwin/XWin.0.log:
>> [298268.591] winClipboardFlushXEvents - SelectionNotify -
>> X*TextPropertyToTextList returned: XConverterNotFound
>
> Thanks for reporting this issue.
>
> Unfortunately, I don't think this is a recurrence of the regression in
> that old report.
>
> Briefly, there is a different protocol [1] for transferring clipboard
> contents too large to fit in a single X protocol message (approximately
> 262144 bytes), which is not currently implemented by the X11/Windows
> clipboard synchronization code.
>
> Your estimate of 1000 lines seems a little low, but in my testing this
> is the limit I hit.
>
> [1]
> http://www.x.org/releases/X11R7.7/doc/xorg-docs/icccm/icccm.html#INCR_Properties

This should be fixed in X server 1.18.1-1 I uploaded today.

Note there is still a limit of approx. 16MB when copying in the opposite 
direction (from a Windows app to an X11 app), but that is harder to fix...

-- 
Jon TURNEY
Volunteer Cygwin/X X Server maintainer

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2016-02-19 16:25 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <CAFMYRRNBpxYc42r9eSxYOC0v43jMGMySXeh3G-ARc1YT+k1LdA@mail.gmail.com>
2015-11-17 18:57 ` Fwd: Limited clipboard buffer between X11 apps and Microsoft Windows Kevin Connor Arpe
2015-11-19 12:30   ` Jon Turney
2016-02-19 16:25     ` Jon Turney

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).