From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21733 invoked by alias); 24 Sep 2013 18:49:35 -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 21719 invoked by uid 89); 24 Sep 2013 18:49:34 -0000 Received: from nm4.bt.bullet.mail.ird.yahoo.com (HELO nm4.bt.bullet.mail.ird.yahoo.com) (212.82.108.235) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-SHA encrypted) ESMTPS; Tue, 24 Sep 2013 18:49:34 +0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=0.3 required=5.0 tests=AWL,BAYES_50,RCVD_IN_DNSWL_NONE,RDNS_NONE autolearn=no version=3.3.2 X-HELO: nm4.bt.bullet.mail.ird.yahoo.com Received: from [212.82.108.231] by nm4.bt.bullet.mail.ird.yahoo.com with NNFMP; 24 Sep 2013 18:49:29 -0000 Received: from [217.146.188.236] by tm4.bt.bullet.mail.ird.yahoo.com with NNFMP; 24 Sep 2013 18:49:20 -0000 Received: from [127.0.0.1] by smtp821.mail.ird.yahoo.com with NNFMP; 24 Sep 2013 18:49:20 -0000 X-Yahoo-SMTP: u.JgLvyswBBMp9ZJJfsX14qmYb3T2ivhMAr6OupnxLpNQEFZ9g-- X-Rocket-Received: from [192.168.1.72] (jon.turney@86.132.218.72 with plain) by smtp821.mail.ird.yahoo.com with SMTP; 24 Sep 2013 18:49:20 +0000 UTC Message-ID: <5241DEAF.3070806@dronecode.org.uk> Date: Tue, 24 Sep 2013 18:49:00 -0000 From: Jon TURNEY Reply-To: cygwin-xfree User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:17.0) Gecko/20130801 Thunderbird/17.0.8 MIME-Version: 1.0 To: cygwin-xfree@cygwin.com CC: falk.tannhauser@free.fr Subject: Re: Strange interaction between Cygwin/X and Mozilla Firefox Bookmarks References: <51EBBE8E.3030000@free.fr> <51EE7E1E.2000805@dronecode.org.uk> <51EEF274.2020402@free.fr> In-Reply-To: <51EEF274.2020402@free.fr> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-SW-Source: 2013-09/txt/msg00022.txt.bz2 On 23/07/2013 22:15, Falk Tannhäuser wrote: > Am 23.07.2013 14:59, schrieb Jon TURNEY: >> I can't reproduce this. >> >> I think there must be some other factor at work: the XWin error message >> relates to a timeout during X -> Windows clipboard conversion, but I can't >> make clicking on a firefox bookmark cause that conversion to happen. >> >> There are definitely bugs in this area, so any additional information you can >> provide would be helpful. > > After deeper investigation, it occurs that the problem is triggered by gnuplot > in particular (I was effectively unable to reproduce it with a few other X11 > applications, as xterm, xfig, xdvi or ddd). Most of the time I use gnuplot > from within Octave, but the easiest way to reproduce the problem is by > launching gnuplot directly in a Cygwin terminal window, then entering "plot > sin(x), cos(x)" on the gnuplot prompt to open an X11 pop-up window containing > a plot. Here is the terminal output from gnuplot: > > $ gnuplot > > G N U P L O T > Version 4.6 patchlevel 3 last modified 2013-04-12 > Build System: CYGWIN_NT-5.1 i686 > > Copyright (C) 1986-1993, 1998, 2004, 2007-2013 > Thomas Williams, Colin Kelley and many others > > gnuplot home: http://www.gnuplot.info > faq, bugs, etc: type "help FAQ" > immediate help: type "help" (plot window: hit 'h') > > Terminal type set to 'x11' > gnuplot> plot sin(x), cos(x) > gnuplot> > > After this, clicking on Firefox bookmarks shows the problem - also when using > the bookmark window opened with Ctrl-Shift-B. I also tried to relaunch FF in > "safe mode" i.e. with add-ons disabled, with the same result. After closing > gnuplot it is necessary to wait for a few minutes until FF's behaviour returns > to normal; alternatively one can close the X server to restore the normal > function of FF immediately. Thanks for taking the time to investigate this, and the detailed reproduction steps. This is indeed a strange interaction. The problem seems to be (i) (for some reason) Firefox asks for the current clipboard contents when any of the bookmarks are clicked on, (ii) gnuplot puts an image of the current plot in the PRIMARY selection, and (iii) a previous fix to clipboard integration code [1] has the unforeseen negative side-effect that when the monitored selection cannot be converted to text, the clipboard integration code sits there waiting for up to a second, which blocks the Windows application which asked for the clipboard contents (Firefox in this case) Thanks for reporting this problem. I've added a patch which tries to fix this behaviour by actually checking if the selection can be converted to a text format before trying, and uploaded a snapshot at [2]. Perhaps you could try that and see if it improves things for you? [1] http://cgit.freedesktop.org/xorg/xserver/commit/?id=a9aca218f557c723e637287272819a7c17174e1e [2] ftp://cygwin.com/pub/cygwinx/XWin.20130924-git-d5a9aea0e48a088b.exe.bz2 -- 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/