GNU bug report logs -
#24091
24.5; High CPU usage at startup while hidden
Previous Next
Reported by: aiken <acairncross <at> gmail.com>
Date: Wed, 27 Jul 2016 23:25:01 UTC
Severity: normal
Tags: confirmed, fixed, patch
Merged with 20335
Found in versions 24.4, 24.5, 25.1-rc1
Fixed in version 26.1
Done: npostavs <at> users.sourceforge.net
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
> From: npostavs <at> users.sourceforge.net
> Date: Thu, 28 Jul 2016 21:45:55 -0400
> Cc: clement.pit <at> gmail.com, 24091 <at> debbugs.gnu.org
>
> I guess we would like Emacs to hit this case:
>
> /* If on another desktop, the deiconify/map may be ignored and the
> frame never becomes visible. XMonad does this.
> Prevent an endless loop. */
> if (FRAME_ICONIFIED_P (f) && ++tries > 100)
> break;
>
> But it seems that FRAME_ICONIFIED_P is returning false, because I see
> that tries is never incremented.
The question is: what happens if you bypass that loop and let Emacs
proceed with startup? Does it successfully finish the startup, or
does it error out or crash later on?
If the former, we need to find a way to detect this special situation,
and maybe bypass the loop altogether. If the latter, we will either
need to find a way to avoid that subsequent crash, or continue
waiting, perhaps with some 'usleep' call in the loop, to avoid hogging
the CPU.
Thanks.
This bug report was last modified 7 years and 264 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.