Subject: bug#30543: 25.2; Emacs overuses CPU on session startup in separate virtual desktop

From: Noam Postavsky <[email-masked]>
Date: Tue, 20 Feb 2018 07:53:51 -0500

Quentin Jankosky <[email-masked]> writes:

> To have this bug occur, you must have emacs saved in a desktop session,
> and have more than one virtual desktop. This seems to happen in XFCE.
>
> 1) Start emacs (gtk mode) in a virtual desktop.
> 2) Select a different virtual desktop.
> 3) Logout of the DE, effectively saving the current session and saving
> the previously selected desktop.
> 4) Log back in
> ISSUE) Emacs will run on the desktop it was saved on in the session, but
> will use massive amounts of CPU until the desktop is selected.
>
> Once emacs is focused on, it properly loads and stops using large
> amounts of CPU.
>
> This is not a major bug, but it is a nuisance.

This sounds similar to Bug#24091, could you check if it still occurs in
the emacs 26 pretest versions?  If it does, attaching a debugger to see
where it's spinning would be helpful.

https://debbugs.gnu.org/cgi/bugreport.cgi?bug=24091