unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#48406: 28.0.50; Emacs stuck in infinite loop in wait_reading_process_output when opening in fullscreen (NS)
@ 2021-05-13 20:39 Illia Ostapyshyn
  2021-05-13 21:15 ` Alan Third
  2021-05-14  6:22 ` Eli Zaretskii
  0 siblings, 2 replies; 22+ messages in thread
From: Illia Ostapyshyn @ 2021-05-13 20:39 UTC (permalink / raw)
  To: 48406

[-- Attachment #1: Type: text/plain, Size: 1289 bytes --]

When starting with

    (push '(fullscreen . fullboth) default-frame-alist)

in early-init.el, apparently Emacs get stuck in an infinite loop after calling [EmacsView waitFullScreenTransition]. Please see the attached backtrace. I also tried moving that command around: in init.el, in emacs-startup-hook, all yield the same result. 

Toggling fullscreen after successful startup (by not trying to start in fullscreen) works ok. Also creating new frames with '(fullscreen . fullboth) in default-frame-alist works well.

Looks like this bug was introduced by bbc48b263485c26c6823eabdbbd7e9af62178e34

In GNU Emacs 28.0.50 (build 7, x86_64-apple-darwin20.4.0, NS appkit-2022.44 Version 11.3.1 (Build 20E241))
 of 2021-05-13 built on mbp2018.local
Repository revision: ff8bf8c8dfff2e4fc0fae50e3fcfcf3022bd0bb8
Repository branch: master
Windowing system distributor 'Apple', version 10.3.2022
System Description:  macOS 11.3.1

Configured using:
 'configure --with-json --with-native-compilation --with-xwidgets
 CPPFLAGS=-I/usr/local/opt/llvm/include
 LDFLAGS=-L/usr/local/opt/llvm/lib'

Configured features:
ACL DBUS GIF GLIB GMP GNUTLS JPEG JSON LCMS2 LIBXML2 MODULES
NATIVE_COMP NOTIFY KQUEUE NS PDUMPER PNG RSVG THREADS TIFF
TOOLKIT_SCROLL_BARS XIM XWIDGETS ZLIB

[-- Attachment #2: backtrace.txt --]
[-- Type: text/plain, Size: 5670 bytes --]

(lldb) bt
* thread #1, queue = 'com.apple.main-thread', stop reason = signal SIGIO
  * frame #0: 0x00007fff203e5946 libsystem_kernel.dylib`__pthread_kill + 10
    frame #1: 0x00007fff20414615 libsystem_pthread.dylib`pthread_kill + 263
    frame #2: 0x00007fff202f8be5 libsystem_c.dylib`raise + 26
    frame #3: 0x00000001001f8bee emacs`ns_select(nfds=0, readfds=0x00007ffeefbfe6c0, writefds=0x00007ffeefbfe610, exceptfds=0x0000000000000000, timeout=0x00007ffeefbfe7e0, sigmask=0x0000000000000000) at nsterm.m:4700:7 [opt]
    frame #4: 0x00000001001bbd87 emacs`wait_reading_process_output(time_limit=<unavailable>, nsecs=<unavailable>, read_kbd=<unavailable>, do_display=true, wait_for_cell=0x0000000000000000, wait_proc=<unavailable>, just_wait_proc=0) at process.c:5568:18 [opt]
    frame #5: 0x00000001002024b0 emacs`-[EmacsView waitFullScreenTransition](self=0x000000014e1665d0, _cmd=<unavailable>) at nsterm.m:7977:7 [opt]
    frame #6: 0x000000010020265a emacs`-[EmacsView toggleFullScreen:](self=0x000000014e1665d0, _cmd=<unavailable>, sender=0x000000014e1665d0) at nsterm.m:8065:11 [opt]
    frame #7: 0x0000000100202c6e emacs`-[EmacsView handleFS](self=0x000000014e1665d0, _cmd=<unavailable>) at nsterm.m:8193:11 [opt]
    frame #8: 0x00000001001f6fed emacs`ns_make_frame_visible(f=0x0000000146c77430) at nsterm.m:1651:11 [opt]
    frame #9: 0x00000001000132ff emacs`Fmake_frame_visible(frame=<unavailable>) at frame.c:2697:5 [opt]
    frame #10: 0x000000014820a5d5 faces-b9447c93-edafd36b.eln`F782d6372656174652d6672616d652d776974682d6661636573_x_create_frame_with_faces_0 + 805
    frame #11: 0x000000010016295d emacs`funcall_subr(subr=0x000000014727c398, numargs=1, args=<unavailable>) at eval.c:3111:19 [opt]
    frame #12: 0x0000000100161f3f emacs`Ffuncall(nargs=<unavailable>, args=<unavailable>) at eval.c:3036:11 [opt]
    frame #13: 0x00000001001a8209 emacs`exec_byte_code(bytestr=<unavailable>, vector=0x000000014727c35d, maxdepth=<unavailable>, args_template=<unavailable>, nargs=<unavailable>, args=<unavailable>) at bytecode.c:632:12 [opt]
    frame #14: 0x0000000100162b31 emacs`funcall_lambda [inlined] fetch_and_exec_byte_code(fun=<unavailable>, syms_left=<unavailable>, nargs=<unavailable>, args=<unavailable>) at eval.c:3160:10 [opt] [artificial]
    frame #15: 0x0000000100161ecf emacs`Ffuncall(nargs=<unavailable>, args=<unavailable>) at eval.c:0:4 [opt]
    frame #16: 0x0000000100161f3f emacs`Ffuncall(nargs=<unavailable>, args=<unavailable>) at eval.c:3036:11 [opt]
    frame #17: 0x00000001001a8209 emacs`exec_byte_code(bytestr=<unavailable>, vector=0x000000014727bb05, maxdepth=<unavailable>, args_template=<unavailable>, nargs=<unavailable>, args=<unavailable>) at bytecode.c:632:12 [opt]
    frame #18: 0x0000000100162b31 emacs`funcall_lambda [inlined] fetch_and_exec_byte_code(fun=<unavailable>, syms_left=<unavailable>, nargs=<unavailable>, args=<unavailable>) at eval.c:3160:10 [opt] [artificial]
    frame #19: 0x0000000100161ecf emacs`Ffuncall(nargs=<unavailable>, args=<unavailable>) at eval.c:0:4 [opt]
    frame #20: 0x0000000148251c39 frame-b40fc590-39d0621d.eln`F6d616b652d6672616d65_make_frame_0 + 1529
    frame #21: 0x000000010016295d emacs`funcall_subr(subr=0x000000014732fc90, numargs=1, args=<unavailable>) at eval.c:3111:19 [opt]
    frame #22: 0x0000000100161f3f emacs`Ffuncall(nargs=<unavailable>, args=<unavailable>) at eval.c:3036:11 [opt]
    frame #23: 0x000000014824f04e frame-b40fc590-39d0621d.eln`F6672616d652d696e697469616c697a65_frame_initialize_0 + 542
    frame #24: 0x00000001001628fb emacs`funcall_subr(subr=0x000000014775a460, numargs=0, args=<unavailable>) at eval.c:3109:19 [opt]
    frame #25: 0x0000000100161f3f emacs`Ffuncall(nargs=<unavailable>, args=<unavailable>) at eval.c:3036:11 [opt]
    frame #26: 0x00000001484692b6 startup-bbc6ea72-dc110ad4.eln`F636f6d6d616e642d6c696e65_command_line_0 + 8198
    frame #27: 0x00000001001628fb emacs`funcall_subr(subr=0x00000001475c29e0, numargs=0, args=<unavailable>) at eval.c:3109:19 [opt]
    frame #28: 0x0000000100161f3f emacs`Ffuncall(nargs=<unavailable>, args=<unavailable>) at eval.c:3036:11 [opt]
    frame #29: 0x00000001484654f6 startup-bbc6ea72-dc110ad4.eln`F6e6f726d616c2d746f702d6c6576656c_normal_top_level_0 + 4166
    frame #30: 0x000000010015d695 emacs`eval_sub(form=<unavailable>) at eval.c:2508:15 [opt]
    frame #31: 0x00000001001614aa emacs`Feval(form=0x0000000147831b13, lexical=<unavailable>) at eval.c:2340:28 [opt]
    frame #32: 0x00000001000e8f95 emacs`top_level_2 at keyboard.c:1103:10 [opt] [artificial]
    frame #33: 0x000000010015ff4f emacs`internal_condition_case(bfun=(emacs`top_level_2 at keyboard.c:1102), handlers=0x0000000000000090, hfun=(emacs`cmd_error at keyboard.c:922)) at eval.c:1475:25 [opt]
    frame #34: 0x00000001000e8d2d emacs`top_level_1(ignore=0x0000000000000000) at keyboard.c:1111:5 [opt]
    frame #35: 0x000000010015f4ee emacs`internal_catch(tag=0x000000000000dd10, func=(emacs`top_level_1 at keyboard.c:1108), arg=0x0000000000000000) at eval.c:1198:25 [opt]
    frame #36: 0x0000000100236826 emacs`recursive_edit_1.cold.1 at keyboard.c:1072:2 [opt]
    frame #37: 0x00000001000d7995 emacs`recursive_edit_1 [inlined] command_loop at keyboard.c:1070:5 [opt]
    frame #38: 0x00000001000d7990 emacs`recursive_edit_1 at keyboard.c:720 [opt]
    frame #39: 0x00000001000d7b2b emacs`Frecursive_edit at keyboard.c:789:3 [opt]
    frame #40: 0x00000001000d6b72 emacs`main(argc=<unavailable>, argv=0x00007ffeefbff938) at emacs.c:2297:3 [opt]
    frame #41: 0x00007fff2042ff3d libdyld.dylib`start + 1
    frame #42: 0x00007fff2042ff3d libdyld.dylib`start + 1

^ permalink raw reply	[flat|nested] 22+ messages in thread

end of thread, other threads:[~2021-06-09 21:01 UTC | newest]

Thread overview: 22+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-05-13 20:39 bug#48406: 28.0.50; Emacs stuck in infinite loop in wait_reading_process_output when opening in fullscreen (NS) Illia Ostapyshyn
2021-05-13 21:15 ` Alan Third
2021-05-14  6:07   ` Andrii Kolomoiets
2021-05-14  9:13     ` Illia Ostapyshyn
2021-05-14 19:32       ` Andrii Kolomoiets
2021-05-14 20:34         ` Alan Third
2021-05-15 19:44           ` Andrii Kolomoiets
2021-05-15 22:47             ` Alan Third
2021-05-16 20:09               ` Andrii Kolomoiets
2021-05-26 20:26                 ` Alan Third
2021-05-26 20:28                   ` Alan Third
2021-06-05 13:45                 ` Alan Third
2021-06-05 16:21                   ` Illia Ostapyshyn
2021-06-05 16:33                     ` Alan Third
2021-06-09 21:01                       ` Alan Third
2021-05-14 22:53         ` Filipp Gunbin
2021-05-15  8:34         ` Illia Ostapyshyn
2021-05-14  6:22 ` Eli Zaretskii
2021-05-14  9:22   ` Illia Ostapyshyn
2021-05-14 10:55     ` Eli Zaretskii
2021-05-14 11:09       ` Illia Ostapyshyn
2021-05-14 11:13         ` Eli Zaretskii

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).