From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15188 invoked by alias); 7 Oct 2014 13:14:27 -0000 Mailing-List: contact cygwin-xfree-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-xfree-owner@cygwin.com Reply-To: cygwin-xfree@cygwin.com Mail-Followup-To: cygwin-xfree@cygwin.com Received: (qmail 15178 invoked by uid 89); 7 Oct 2014 13:14:27 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.6 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.2 X-HELO: out1-smtp.messagingengine.com Received: from out1-smtp.messagingengine.com (HELO out1-smtp.messagingengine.com) (66.111.4.25) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Tue, 07 Oct 2014 13:14:25 +0000 Received: from compute2.internal (compute2.nyi.internal [10.202.2.42]) by gateway2.nyi.internal (Postfix) with ESMTP id AC247207EF for ; Tue, 7 Oct 2014 09:14:22 -0400 (EDT) Received: from frontend1 ([10.202.2.160]) by compute2.internal (MEProxy); Tue, 07 Oct 2014 09:14:22 -0400 Received: from [192.168.1.93] (unknown [86.174.34.63]) by mail.messagingengine.com (Postfix) with ESMTPA id 3BB64C0000A; Tue, 7 Oct 2014 09:14:22 -0400 (EDT) Message-ID: <5433E72A.9070907@dronecode.org.uk> Date: Tue, 07 Oct 2014 13:14:00 -0000 From: Jon TURNEY Reply-To: cygwin-xfree@cygwin.com User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.1.2 MIME-Version: 1.0 To: cygwin-xfree@cygwin.com CC: mathog@caltech.edu Subject: Re: Clipboard interaction issues - breaks after awhile References: In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2014-10/txt/msg00016.txt.bz2 On 03/10/2014 21:02, mathog wrote: > Today I ran into an interesting variant of this. > > 1. putty ssh -X session from XP to a remote Centos 6.5 system. > 2. on the remote system: xterm & > 3. copy a line of text on remote system > 4. paste it into a roundcube "compose" window on XP system. The > browser is Seamonkey 2.29. > > It works fine for a while and then the _browser_ locks. It is > definitely an X11 > issue because this unlocked the browser: exit all xterms, exit the putty > session, kill > the X11 server. The browser didn't unlock until the last step. > > This lock up happened twice within half an hour. Now I can't reproduce it. There is supposed to be a 1 second timeout to ensure that we always respond to the Windows application in a timely fashion. (The issue here is that Windows clipboard pastes are synchronous (when the Windows application calls GetClipboardData(), it sends a WM_RENDERFORMAT to the clipboard owner, and blocks until that returns), but the X11 clipboard render is asynchronous (since we send a XConvertSelection() request to the clipboard owner and wait for a SelectionNotify event)) I've looked at this code again, and can't see anything wrong with they way this timeout is implemented. So, I'm afraid there's not a lot I can do without a repeatable reproduction or a log file. > That is the only system I have used recently that uses xterm instead of > uxterm. > > The clipboard problems I have seen previously were all in the other > direction, where clip going into an X11 application would fail. > > Unfortunately I didn't save the X server log file. Which, brings up > another point. > The X11 server is started by clicking on "start_server.bat" which contains: > > @echo off > set CYGXTOP=%~dp0 > C: > chdir "%CYGXTOP%\bin" > start Xwin :0 -multiwindow > > It always overwrites the Xwin.0.log file when it starts. Is there some > change we could make to this .bat script that would cause it to at least > save one previous version? I guess you could add to the above something like: move C:\cygwin\var\log\XWin.0.log C:\cygwin\var\log\XWin.0.log.old but yes, there is actually some code in the server to do that, but it's not turned on in XWin for unknown reasons... -- Jon TURNEY Volunteer Cygwin/X X Server maintainer -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://x.cygwin.com/docs/ FAQ: http://x.cygwin.com/docs/faq/