GNU bug report logs -
#39824
26.2; timers sometimes stop working when coming back from sleep
Previous Next
Reported by: ndame <emacsuser <at> freemail.hu>
Date: Fri, 28 Feb 2020 15:57:01 UTC
Severity: normal
Tags: notabug
Found in version 26.2
Done: Stefan Kangas <stefan <at> marxist.se>
Bug is archived. No further changes may be made.
Full log
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
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.
[Message part 2 (text/html, inline)]
This bug report was last modified 4 years and 273 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.