From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#22534: File notify broken on Windows Date: Fri, 05 Feb 2016 21:31:49 +0200 Message-ID: <83y4azt0m2.fsf@gnu.org> References: <83h9hrytom.fsf@gnu.org> <87lh72xln0.fsf@gmx.de> <838u30wbx5.fsf@gnu.org> <83fux7v56c.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1454700809 5457 80.91.229.3 (5 Feb 2016 19:33:29 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 5 Feb 2016 19:33:29 +0000 (UTC) Cc: 22534@debbugs.gnu.org, michael.albinus@gmx.de To: Fabrice Popineau Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Feb 05 20:33:12 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1aRm80-0002KX-GO for geb-bug-gnu-emacs@m.gmane.org; Fri, 05 Feb 2016 20:33:12 +0100 Original-Received: from localhost ([::1]:50111 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aRm7z-0000c5-Mn for geb-bug-gnu-emacs@m.gmane.org; Fri, 05 Feb 2016 14:33:11 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56282) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aRm7u-0000b2-Su for bug-gnu-emacs@gnu.org; Fri, 05 Feb 2016 14:33:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aRm7q-0002j1-9C for bug-gnu-emacs@gnu.org; Fri, 05 Feb 2016 14:33:06 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:54374) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aRm7q-0002ix-62 for bug-gnu-emacs@gnu.org; Fri, 05 Feb 2016 14:33:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84) (envelope-from ) id 1aRm7q-0000dK-1c for bug-gnu-emacs@gnu.org; Fri, 05 Feb 2016 14:33:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 05 Feb 2016 19:33:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 22534 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 22534-submit@debbugs.gnu.org id=B22534.14547007431925 (code B ref 22534); Fri, 05 Feb 2016 19:33:01 +0000 Original-Received: (at 22534) by debbugs.gnu.org; 5 Feb 2016 19:32:23 +0000 Original-Received: from localhost ([127.0.0.1]:34727 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aRm7C-0000Ux-Oc for submit@debbugs.gnu.org; Fri, 05 Feb 2016 14:32:23 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:36892) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aRm7B-0000TL-2a for 22534@debbugs.gnu.org; Fri, 05 Feb 2016 14:32:21 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aRm71-0002Qd-FH for 22534@debbugs.gnu.org; Fri, 05 Feb 2016 14:32:15 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:59012) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aRm71-0002QZ-BL; Fri, 05 Feb 2016 14:32:11 -0500 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:1987 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1aRm70-0003eo-Gx; Fri, 05 Feb 2016 14:32:10 -0500 In-reply-to: (message from Fabrice Popineau on Fri, 5 Feb 2016 16:34:17 +0100) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:112515 Archived-At: > From: Fabrice Popineau > Date: Fri, 5 Feb 2016 16:34:17 +0100 > Cc: Michael Albinus , 22534@debbugs.gnu.org > > Hmm... actually, I might see a problem. If my reading of the test is > correct, it first creates 2000 files, and then issues 1000 renames, > which on Windows generate 2000 notifications. Together, these add up > to 4000, which is awfully close to the 4096 size of the Emacs input > event queue. So maybe the test fills up the event queue, and the > synchronization between the w32notify thread and the main thread stops > working at that point? Or maybe we are hitting on some limit of > Windows messages that can be enqueued? > > I would have expected some Win32 function to error at some point ? Maybe it does, and we don't check error codes? But these are speculations. And since all my other guesses were wrong, this one most probably is as well. I will look into this later if no one beats me to it. > Also, would it be useful to use the overlap mechanism? Where? in reading Windows messages?