GNU bug report logs - #48406
28.0.50; Emacs stuck in infinite loop in wait_reading_process_output when opening in fullscreen (NS)

Previous Next

Package: emacs;

Reported by: Illia Ostapyshyn <ilya.ostapyshyn <at> gmail.com>

Date: Thu, 13 May 2021 21:00:02 UTC

Severity: normal

Merged with 41055

Found in version 28.0.50

Done: Alan Third <alan <at> idiocy.org>

Bug is archived. No further changes may be made.

Full log


Message #41 received at 48406 <at> debbugs.gnu.org (full text, mbox):

From: Illia Ostapyshyn <ilya.ostapyshyn <at> gmail.com>
To: Alan Third <alan <at> idiocy.org>
Cc: 48406 <at> debbugs.gnu.org, fgunbin <at> fastmail.fm,
 Andrii Kolomoiets <andreyk.mad <at> gmail.com>
Subject: Re: bug#48406: 28.0.50; Emacs stuck in infinite loop in
 wait_reading_process_output when opening in fullscreen (NS)
Date: Sat, 15 May 2021 10:34:44 +0200
[Message part 1 (text/plain, inline)]
> Now I've dug out my Mac I can confirm I see this hang as well.
> 
> The problem is that we never reach the NS run loop and therefore
> windowDidEnterFullScreen is never called.
> 
> It appears ns_select returns in this code:
> 
>   if (hold_event_q.nr > 0)
>     {
>       /* We already have events pending.  */
>       raise (SIGIO);
>       errno = EINTR;
>       return -1;
>     }
> 
> hmmmm.......
> 
> This fixes it for me, but whether it's a good idea or not I don't know:

I can confirm that the patch has worked for me as well.

As Andrii suggested, I'm attaching the output produced by nstrace (without the patch)
[nstrace.txt (text/plain, attachment)]
[Message part 3 (text/plain, inline)]


This bug report was last modified 4 years and 40 days ago.

Previous Next


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