GNU bug report logs - #39824
26.2; timers sometimes stop working when coming back from sleep

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Reported by: ndame <emacsuser@HIDDEN>; dated Fri, 28 Feb 2020 15:57:01 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

Message received at 39824 <at> debbugs.gnu.org:


Received: (at 39824) by debbugs.gnu.org; 6 Mar 2020 17:07:45 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Mar 06 12:07:45 2020
Received: from localhost ([127.0.0.1]:45834 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1jAGRt-0001nD-6C
	for submit <at> debbugs.gnu.org; Fri, 06 Mar 2020 12:07:45 -0500
Received: from eggs.gnu.org ([209.51.188.92]:55613)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1jAGRr-0001mz-0d
 for 39824 <at> debbugs.gnu.org; Fri, 06 Mar 2020 12:07:44 -0500
Received: from fencepost.gnu.org ([2001:470:142:3::e]:51343)
 by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <eliz@HIDDEN>)
 id 1jAGRl-0006Ef-7n; Fri, 06 Mar 2020 12:07:37 -0500
Received: from [176.228.60.248] (port=4897 helo=home-c4e4a596f7)
 by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256)
 (Exim 4.82) (envelope-from <eliz@HIDDEN>)
 id 1jAGRk-0000ws-Qr; Fri, 06 Mar 2020 12:07:37 -0500
Date: Fri, 06 Mar 2020 19:07:34 +0200
Message-Id: <83d09pbeeh.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: ndame <emacsuser@HIDDEN>
In-Reply-To: <AyVqhw.BKWR5t7Fm1tB.S4qHBBffBEC9jIDvbki6@HIDDEN> (message
 from ndame on Fri, 6 Mar 2020 16:30:24 +0000 (GMT))
Subject: Re: bug#39824: 26.2; timers sometimes stop working when coming back
 from sleep
References: <AyUbeA.JBtSsOzpugl.NE4FPtTX0Gjm4WLD7Auq@HIDDEN>
 <83k143zxbm.fsf@HIDDEN>
 <AyU4UA.ybEGuXXkIVFh.zKXNRJsxBKBUmr3aD6cX@HIDDEN>
 <83eeu5j15k.fsf@HIDDEN>
 <AyVqhw.BKWR5t7Fm1tB.S4qHBBffBEC9jIDvbki6@HIDDEN>
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 39824
Cc: 39824 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)

> Date: Fri, 6 Mar 2020 16:30:24 +0000 (GMT)
> From: ndame <emacsuser@HIDDEN>
> Cc: "39824 <at> debbugs.gnu.org" <39824 <at> debbugs.gnu.org>
> 
> Ok, will do if it happens again. I don't know what triggers it, because
> it happens only occasionally.

Thanks.

> The strange thing is it would be a logical explanation that emacs substracts
> the new time from the timer and it makes it go negative (though I haven't 
> checked how it is implemented), but usually only one of the timers go 
> negative, not all of them, so the bug does not affect all timers when it 
> happens.

AFAICS, Emacs doesn't subtract to compute the "next" time, it actually
_adds_.  That's why I asked for data: I don't see any immediate
suspects that could cause what you describe.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#39824; Package emacs. Full text available.

Message received at 39824 <at> debbugs.gnu.org:


Received: (at 39824) by debbugs.gnu.org; 6 Mar 2020 16:35:49 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Mar 06 11:35:49 2020
Received: from localhost ([127.0.0.1]:45809 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1jAFwz-000137-97
	for submit <at> debbugs.gnu.org; Fri, 06 Mar 2020 11:35:49 -0500
Received: from fmfe26.onbox.hu ([46.107.16.231]:64675 helo=web-out.onbox.hu)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <emacsuser@HIDDEN>) id 1jAFwx-00012u-Sg
 for 39824 <at> debbugs.gnu.org; Fri, 06 Mar 2020 11:35:48 -0500
X-fm-smtp-source: yes
Received: from localhost (localhost [94.21.43.27])
 by web-out.onbox.hu (Postfix) with SMTP id 48YtXF3PStz4ZV;
 Fri,  6 Mar 2020 17:35:41 +0100 (CET)
Date: Fri, 6 Mar 2020 16:30:24 +0000 (GMT)
From: ndame <emacsuser@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>
Message-ID: <AyVqhw.BKWR5t7Fm1tB.S4qHBBffBEC9jIDvbki6@HIDDEN>
In-Reply-To: <83eeu5j15k.fsf@HIDDEN>
References: <AyUbeA.JBtSsOzpugl.NE4FPtTX0Gjm4WLD7Auq@HIDDEN>
 <83k143zxbm.fsf@HIDDEN>
 <AyU4UA.ybEGuXXkIVFh.zKXNRJsxBKBUmr3aD6cX@HIDDEN>
 <83eeu5j15k.fsf@HIDDEN>
Subject: Re: bug#39824: 26.2; timers sometimes stop working when coming back
 from sleep
MIME-Version: 1.0
Content-Type: multipart/alternative; 
 boundary="----=_Part_4070_2125656074.1583512224437"
X-AccountId: 57978162
X-Originating-Ip: 94.21.43.27
X-VR-SPAMSTATE: OK
X-VR-SPAMSCORE: -100
X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedugedrudduvddgledvucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuggftfghnshhusghstghrihgsvgdpucfhtffggffotefknfenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujfgurhepfffhvffkjghfufggtghisegrtdersgdttddunecuhfhrohhmpehnuggrmhgvuceovghmrggtshhushgvrhesfhhrvggvmhgrihhlrdhhuheqnecukfhppeelgedrvddurdegfedrvdejnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehhvghloheppdhinhgvthepleegrddvuddrgeefrddvjedpmhgrihhlfhhrohhmpegvmhgrtghsuhhsvghrsehfrhgvvghmrghilhdrhhhupdhrtghpthhtohepvghlihiisehgnhhurdhorhhg
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 39824
Cc: "39824 <at> debbugs.gnu.org" <39824 <at> debbugs.gnu.org>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

------=_Part_4070_2125656074.1583512224437
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

=C2=A0
> When that happens next time, please show the exact value of the
> relevant timer as a Lisp data structure. (You should be able to find
> it in the variable timer-list.) Also, show the value returned by the
> function current-time at that point.

Ok, will do if it happens again. I don't know what triggers it, because
it happens only occasionally.

The strange thing is it would be a logical explanation that emacs substract=
s
the new time from the timer and it makes it go negative (though I haven't=
=C2=A0
checked how it is implemented), but usually only one of the timers go=C2=A0
negative, not all of them, so the bug does not affect all timers when it=C2=
=A0
happens.
------=_Part_4070_2125656074.1583512224437
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit

&#160;<br />
&#62; When that happens next time, please show the exact value of the<br />
&#62; relevant timer as a Lisp data structure. (You should be able to find<br />
&#62; it in the variable timer-list.) Also, show the value returned by the<br />
&#62; function current-time at that point.<br />
<br />
Ok, will do if it happens again. I don&#39;t know what triggers it, because<br />
it happens only occasionally.<br />
<br />
The strange thing is it would be a logical explanation that emacs substracts<br />
the new time from the timer and it makes it go negative (though I haven&#39;t&#160;<br />
checked how it is implemented), but usually only one of the timers go&#160;<br />
negative, not all of them, so the bug does not affect all timers when it&#160;<br />
happens.
------=_Part_4070_2125656074.1583512224437--




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#39824; Package emacs. Full text available.

Message received at 39824 <at> debbugs.gnu.org:


Received: (at 39824) by debbugs.gnu.org; 6 Mar 2020 09:14:31 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Mar 06 04:14:31 2020
Received: from localhost ([127.0.0.1]:44054 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1jA93v-0005Du-78
	for submit <at> debbugs.gnu.org; Fri, 06 Mar 2020 04:14:31 -0500
Received: from eggs.gnu.org ([209.51.188.92]:38971)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1jA93t-0005Dh-FF
 for 39824 <at> debbugs.gnu.org; Fri, 06 Mar 2020 04:14:29 -0500
Received: from fencepost.gnu.org ([2001:470:142:3::e]:32886)
 by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <eliz@HIDDEN>)
 id 1jA93n-0006me-Tz; Fri, 06 Mar 2020 04:14:23 -0500
Received: from [176.228.60.248] (port=3268 helo=home-c4e4a596f7)
 by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256)
 (Exim 4.82) (envelope-from <eliz@HIDDEN>)
 id 1jA93n-0002XJ-70; Fri, 06 Mar 2020 04:14:23 -0500
Date: Fri, 06 Mar 2020 11:14:15 +0200
Message-Id: <83eeu5j15k.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: ndame <emacsuser@HIDDEN>
In-Reply-To: <AyU4UA.ybEGuXXkIVFh.zKXNRJsxBKBUmr3aD6cX@HIDDEN> (message
 from ndame on Mon, 2 Mar 2020 05:22:57 +0000 (GMT))
Subject: Re: bug#39824: 26.2; timers sometimes stop working when coming back
 from sleep
References: <AyUbeA.JBtSsOzpugl.NE4FPtTX0Gjm4WLD7Auq@HIDDEN>
 <83k143zxbm.fsf@HIDDEN>
 <AyU4UA.ybEGuXXkIVFh.zKXNRJsxBKBUmr3aD6cX@HIDDEN>
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 39824
Cc: 39824 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)

> Date: Mon, 2 Mar 2020 05:22:57 +0000 (GMT)
> From: ndame <emacsuser@HIDDEN>
> Cc: "39824 <at> debbugs.gnu.org" <39824 <at> debbugs.gnu.org>
> 
> > Do I understand correctly that the timers you are talking about are
> > those you yourself coded? If so, can you show the code which starts
> > one of those timers which you sometimes find with negative Next time?
> 
> I did not do anything special, I just start them. E.g:
> 
>    (run-with-timer 10 30 'my-function)
> 
> This timer checks my todo list regularly and tells me if there is a scheduled
> todo tasks imminent. Occasionally, it stops working with negative value for
> Next in timer-list when the computer comes back from sleep.

When that happens next time, please show the exact value of the
relevant timer as a Lisp data structure.  (You should be able to find
it in the variable timer-list.)  Also, show the value returned by the
function current-time at that point.

In addition, please show the information collected by
"M-x report-emacs-bug RET", I don't think you included it with your
original report.

Thanks.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#39824; Package emacs. Full text available.

Message received at 39824 <at> debbugs.gnu.org:


Received: (at 39824) by debbugs.gnu.org; 2 Mar 2020 05:30:59 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Mar 02 00:30:59 2020
Received: from localhost ([127.0.0.1]:37176 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1j8dfP-00080s-If
	for submit <at> debbugs.gnu.org; Mon, 02 Mar 2020 00:30:59 -0500
Received: from fmfe22.onbox.hu ([46.107.16.227]:35635 helo=web-out.onbox.hu)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <emacsuser@HIDDEN>) id 1j8dfO-00080c-Ru
 for 39824 <at> debbugs.gnu.org; Mon, 02 Mar 2020 00:30:59 -0500
X-fm-smtp-source: yes
Received: from localhost (localhost [178.164.166.239])
 by web-out.onbox.hu (Postfix) with SMTP id 48W7z11cCPzRts;
 Mon,  2 Mar 2020 06:30:53 +0100 (CET)
Date: Mon, 2 Mar 2020 05:29:33 +0000 (GMT)
From: ndame <emacsuser@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>
Message-ID: <AyU4VQ.x31isJNHHqn.0f5Y3dAHibM1Tz8c6Pgx@HIDDEN>
In-Reply-To: <AyU4UA.ybEGuXXkIVFh.zKXNRJsxBKBUmr3aD6cX@HIDDEN>
References: <AyUbeA.JBtSsOzpugl.NE4FPtTX0Gjm4WLD7Auq@HIDDEN>
 <83k143zxbm.fsf@HIDDEN>
 <AyU4UA.ybEGuXXkIVFh.zKXNRJsxBKBUmr3aD6cX@HIDDEN>
Subject: Re: bug#39824: 26.2; timers sometimes stop working when coming back
 from sleep
MIME-Version: 1.0
Content-Type: multipart/alternative; 
 boundary="----=_Part_24144_1402820287.1583126973680"
X-AccountId: 57978162
X-Originating-Ip: 178.164.166.239
X-VR-SPAMSTATE: OK
X-VR-SPAMSCORE: -100
X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedugedruddtfedgkeefucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuggftfghnshhusghstghrihgsvgdpucfhtffggffotefknfenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujfgurhepfffhvffkjghfufggtghisegrtdersgdttddunecuhfhrohhmpehnuggrmhgvuceovghmrggtshhushgvrhesfhhrvggvmhgrihhlrdhhuheqnecukfhppedujeekrdduieegrdduieeirddvfeelnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehhvghloheppdhinhgvthepudejkedrudeigedrudeiiedrvdefledpmhgrihhlfhhrohhmpegvmhgrtghsuhhsvghrsehfrhgvvghmrghilhdrhhhupdhrtghpthhtohepvghlihiisehgnhhurdhorhhg
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 39824
Cc: "39824 <at> debbugs.gnu.org" <39824 <at> debbugs.gnu.org>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

------=_Part_24144_1402820287.1583126973680
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

> Occasionally, it stops working with negative value for
> Next in timer-list when the computer comes back from sleep.

Instead of timer-list, I wanted to write M-x list-timers.=C2=A0 So it has a=
 negative
value in the Next column of list-timers display.
------=_Part_24144_1402820287.1583126973680
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit

&#62; Occasionally, it stops working with negative value for<br />
&#62; Next in timer-list when the computer comes back from sleep.<br />
<br />
Instead of timer-list, I wanted to write M-x list-timers.&#160; So it has a negative<br />
value in the Next column of list-timers display.
------=_Part_24144_1402820287.1583126973680--




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#39824; Package emacs. Full text available.

Message received at 39824 <at> debbugs.gnu.org:


Received: (at 39824) by debbugs.gnu.org; 2 Mar 2020 05:28:16 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Mar 02 00:28:16 2020
Received: from localhost ([127.0.0.1]:37172 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1j8dcm-0007v7-4U
	for submit <at> debbugs.gnu.org; Mon, 02 Mar 2020 00:28:16 -0500
Received: from fmfe22.onbox.hu ([46.107.16.227]:27600 helo=web-out.onbox.hu)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <emacsuser@HIDDEN>) id 1j8dck-0007ur-B9
 for 39824 <at> debbugs.gnu.org; Mon, 02 Mar 2020 00:28:15 -0500
X-fm-smtp-source: yes
Received: from localhost (localhost [178.164.166.239])
 by web-out.onbox.hu (Postfix) with SMTP id 48W7vr0x94zRtr;
 Mon,  2 Mar 2020 06:28:08 +0100 (CET)
Date: Mon, 2 Mar 2020 05:22:57 +0000 (GMT)
From: ndame <emacsuser@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>
Message-ID: <AyU4UA.ybEGuXXkIVFh.zKXNRJsxBKBUmr3aD6cX@HIDDEN>
In-Reply-To: <83k143zxbm.fsf@HIDDEN>
References: <AyUbeA.JBtSsOzpugl.NE4FPtTX0Gjm4WLD7Auq@HIDDEN>
 <83k143zxbm.fsf@HIDDEN>
Subject: Re: bug#39824: 26.2; timers sometimes stop working when coming back
 from sleep
MIME-Version: 1.0
Content-Type: multipart/alternative; 
 boundary="----=_Part_24141_1918267783.1583126577246"
X-AccountId: 57978162
X-Originating-Ip: 178.164.166.239
X-VR-SPAMSTATE: OK
X-VR-SPAMSCORE: -100
X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedugedruddtfedgkeefucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuggftfghnshhusghstghrihgsvgdpucfhtffggffotefknfenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujfgurhepfffhvffkjghfufggtghisegrtdersgdttdejnecuhfhrohhmpehnuggrmhgvuceovghmrggtshhushgvrhesfhhrvggvmhgrihhlrdhhuheqnecukfhppedujeekrdduieegrdduieeirddvfeelnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehhvghloheppdhinhgvthepudejkedrudeigedrudeiiedrvdefledpmhgrihhlfhhrohhmpegvmhgrtghsuhhsvghrsehfrhgvvghmrghilhdrhhhupdhrtghpthhtohepvghlihiisehgnhhurdhorhhg
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 39824
Cc: "39824 <at> debbugs.gnu.org" <39824 <at> debbugs.gnu.org>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

------=_Part_24141_1918267783.1583126577246
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

=C2=A0
> Do I understand correctly that the timers you are talking about are
> those you yourself coded? If so, can you show the code which starts
> one of those timers which you sometimes find with negative Next time?

I did not do anything special, I just start them. E.g:

=C2=A0 =C2=A0(run-with-timer 10 30 'my-function)

This timer checks my todo list regularly and tells me if there is a schedul=
ed
todo tasks imminent. Occasionally, it stops working with negative value for
Next in timer-list when the computer comes back from sleep.
------=_Part_24141_1918267783.1583126577246
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: 7bit

&#160;<br />
&#62; Do I understand correctly that the timers you are talking about are<br />
&#62; those you yourself coded? If so, can you show the code which starts<br />
&#62; one of those timers which you sometimes find with negative Next time?<br />
<br />
I did not do anything special, I just start them. E.g:<br />
<br />
&#160; &#160;(run-with-timer 10 30 &#39;my-function)<br />
<br />
This timer checks my todo list regularly and tells me if there is a scheduled<br />
todo tasks imminent. Occasionally, it stops working with negative value for<br />
Next in timer-list when the computer comes back from sleep.
------=_Part_24141_1918267783.1583126577246--




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#39824; Package emacs. Full text available.

Message received at 39824 <at> debbugs.gnu.org:


Received: (at 39824) by debbugs.gnu.org; 1 Mar 2020 19:31:42 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Mar 01 14:31:42 2020
Received: from localhost ([127.0.0.1]:36964 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1j8UJS-0004lf-8w
	for submit <at> debbugs.gnu.org; Sun, 01 Mar 2020 14:31:42 -0500
Received: from eggs.gnu.org ([209.51.188.92]:57313)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1j8UJQ-0004lN-0b
 for 39824 <at> debbugs.gnu.org; Sun, 01 Mar 2020 14:31:41 -0500
Received: from fencepost.gnu.org ([2001:470:142:3::e]:52529)
 by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <eliz@HIDDEN>)
 id 1j8UJK-0001PF-76; Sun, 01 Mar 2020 14:31:34 -0500
Received: from [176.228.60.248] (port=2412 helo=home-c4e4a596f7)
 by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256)
 (Exim 4.82) (envelope-from <eliz@HIDDEN>)
 id 1j8UJJ-0002FP-AT; Sun, 01 Mar 2020 14:31:33 -0500
Date: Sun, 01 Mar 2020 21:31:25 +0200
Message-Id: <83k143zxbm.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: ndame <emacsuser@HIDDEN>
In-Reply-To: <AyUbeA.JBtSsOzpugl.NE4FPtTX0Gjm4WLD7Auq@HIDDEN> (message
 from ndame on Fri, 28 Feb 2020 15:52:51 +0000 (GMT))
Subject: Re: bug#39824: 26.2;
 timers sometimes stop working when coming back from sleep
References: <AyUbeA.JBtSsOzpugl.NE4FPtTX0Gjm4WLD7Auq@HIDDEN>
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 39824
Cc: 39824 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)

> Date: Fri, 28 Feb 2020 15:52:51 +0000 (GMT)
> From: ndame <emacsuser@HIDDEN>
> 
> I use Emacs 26.2 on Windows and usually I send my computer to sleep,
> instead of switching it off. That means the same Emacs instance runs
> for weeks or even months unless Emacs crashes for some reason.
> 
> I use several timers for housekeeping tasks and they usually work, but
> from time to time one of them fails to start after coming back from
> sleep.
> 
> When I do an M-x list-timers the affected timer is still there, but
> its value in the Next column is negative. The value keeps decreasing
> like for other timers, but since the value is negative it gets farther
> and farther from zero, so it never fires after that.

Do I understand correctly that the timers you are talking about are
those you yourself coded?  If so, can you show the code which starts
one of those timers which you sometimes find with negative Next time?

Thanks.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#39824; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 28 Feb 2020 15:56:21 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Feb 28 10:56:20 2020
Received: from localhost ([127.0.0.1]:33680 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1j7hzw-0000R4-MP
	for submit <at> debbugs.gnu.org; Fri, 28 Feb 2020 10:56:20 -0500
Received: from lists.gnu.org ([209.51.188.17]:50027)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <emacsuser@HIDDEN>) id 1j7hzu-0000Qw-Lg
 for submit <at> debbugs.gnu.org; Fri, 28 Feb 2020 10:56:19 -0500
Received: from eggs.gnu.org ([2001:470:142:3::10]:50292)
 by lists.gnu.org with esmtp (Exim 4.90_1)
 (envelope-from <emacsuser@HIDDEN>) id 1j7hzt-00075I-Bx
 for bug-gnu-emacs@HIDDEN; Fri, 28 Feb 2020 10:56:18 -0500
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM,
 HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPOOFED_FREEMAIL autolearn=disabled
 version=3.3.2
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <emacsuser@HIDDEN>) id 1j7hzs-0003fn-7Z
 for bug-gnu-emacs@HIDDEN; Fri, 28 Feb 2020 10:56:17 -0500
Received: from fmfe13.onbox.hu ([46.107.16.206]:41653 helo=web-out.onbox.hu)
 by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32)
 (Exim 4.71) (envelope-from <emacsuser@HIDDEN>)
 id 1j7hzs-0003YV-0S
 for bug-gnu-emacs@HIDDEN; Fri, 28 Feb 2020 10:56:16 -0500
X-fm-smtp-source: yes
Received: from localhost (localhost [84.236.81.85])
 by web-out.onbox.hu (Postfix) with SMTP id 48TYzp4ntxzZxJ
 for <bug-gnu-emacs@HIDDEN>; Fri, 28 Feb 2020 16:56:06 +0100 (CET)
Date: Fri, 28 Feb 2020 15:52:51 +0000 (GMT)
From: ndame <emacsuser@HIDDEN>
Message-ID: <AyUbeA.JBtSsOzpugl.NE4FPtTX0Gjm4WLD7Auq@HIDDEN>
Subject: 26.2; timers sometimes stop working when coming back from sleep
MIME-Version: 1.0
Content-Type: multipart/alternative; 
 boundary="----=_Part_17475_292461959.1582905171370"
To: "bug-gnu-emacs@HIDDEN" <bug-gnu-emacs@HIDDEN>
X-AccountId: 57978162
X-Originating-Ip: 84.236.81.85
X-VR-SPAMSTATE: OK
X-VR-SPAMSCORE: 0
X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedugedrleekgdektdcutefuodetggdotefrodftvfcurfhrohhfihhlvgemucggtfgfnhhsuhgsshgtrhhisggvpdcuhfftgffgofetkffnnecuuegrihhlohhuthemuceftddtnecunecujfgurhepfffhkffugggtvfhisegrtdersgdttddunecuhfhrohhmpehnuggrmhgvuceovghmrggtshhushgvrhesfhhrvggvmhgrihhlrdhhuheqnecukfhppeekgedrvdefiedrkedurdekheenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhephhgvlhhopedpihhnvghtpeekgedrvdefiedrkedurdekhedpmhgrihhlfhhrohhmpegvmhgrtghsuhhsvghrsehfrhgvvghmrghilhdrhhhupdhrtghpthhtohepsghughdqghhnuhdqvghmrggtshesghhnuhdrohhrgh
X-detected-operating-system: by eggs.gnu.org: FreeBSD 9.x [fuzzy]
X-Received-From: 46.107.16.206
X-Spam-Score: 0.3 (/)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.7 (/)

------=_Part_17475_292461959.1582905171370
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

I use Emacs 26.2 on Windows and usually I send my computer to sleep,
instead of switching it off. That means the same Emacs instance runs
for weeks or even months unless Emacs crashes for some reason.

I use several timers for housekeeping tasks and they usually work, but
from time to time one of them fails to start after coming back from
sleep.

When I do an M-x list-timers the affected timer is still there, but
its value in the Next column is negative. The value keeps decreasing
like for other timers, but since the value is negative it gets farther
and farther from zero, so it never fires after that.

I assume some calculation between the real time and the expected
elapsed time sets the timer value to negative after sleep.

A possible fix may be to ensure that the Next value of the timer
cannot be negative.
=C2=A0
------=_Part_17475_292461959.1582905171370
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit

I use Emacs 26.2 on Windows and usually I send my computer to sleep,<br />
instead of switching it off. That means the same Emacs instance runs<br />
for weeks or even months unless Emacs crashes for some reason.<br />
<br />
I use several timers for housekeeping tasks and they usually work, but<br />
from time to time one of them fails to start after coming back from<br />
sleep.<br />
<br />
When I do an M-x list-timers the affected timer is still there, but<br />
its value in the Next column is negative. The value keeps decreasing<br />
like for other timers, but since the value is negative it gets farther<br />
and farther from zero, so it never fires after that.<br />
<br />
I assume some calculation between the real time and the expected<br />
elapsed time sets the timer value to negative after sleep.<br />
<br />
A possible fix may be to ensure that the Next value of the timer<br />
cannot be negative.<br />
&#160;
------=_Part_17475_292461959.1582905171370--




Acknowledgement sent to ndame <emacsuser@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#39824; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Fri, 6 Mar 2020 17:15:01 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.