From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Illia Ostapyshyn Newsgroups: gmane.emacs.bugs Subject: bug#48406: 28.0.50; Emacs stuck in infinite loop in wait_reading_process_output when opening in fullscreen (NS) Date: Thu, 13 May 2021 22:39:55 +0200 Message-ID: <5E1B46C6-1359-4CCF-B4EF-5527FB915F93@gmail.com> Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.80.0.2.43\)) Content-Type: multipart/mixed; boundary="Apple-Mail=_1A8F2080-9737-4162-BC31-ACE1CE867D9A" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="13061"; mail-complaints-to="usenet@ciao.gmane.io" To: 48406@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu May 13 23:00:41 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lhIRk-0003Ho-KA for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 13 May 2021 23:00:40 +0200 Original-Received: from localhost ([::1]:60618 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lhIRi-00056w-Sq for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 13 May 2021 17:00:39 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:36320) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lhIR8-00056e-V0 for bug-gnu-emacs@gnu.org; Thu, 13 May 2021 17:00:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:32885) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lhIR8-00011s-NV for bug-gnu-emacs@gnu.org; Thu, 13 May 2021 17:00:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lhIR8-0006DE-Lo for bug-gnu-emacs@gnu.org; Thu, 13 May 2021 17:00:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Illia Ostapyshyn Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 13 May 2021 21:00:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 48406 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.162093960123845 (code B ref -1); Thu, 13 May 2021 21:00:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 13 May 2021 21:00:01 +0000 Original-Received: from localhost ([127.0.0.1]:44431 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lhIR6-0006CW-Mq for submit@debbugs.gnu.org; Thu, 13 May 2021 17:00:01 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:48676) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lhI7k-0005Yy-Tm for submit@debbugs.gnu.org; Thu, 13 May 2021 16:40:04 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:33484) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lhI7k-0003MB-Ku for bug-gnu-emacs@gnu.org; Thu, 13 May 2021 16:40:00 -0400 Original-Received: from mail-ej1-x633.google.com ([2a00:1450:4864:20::633]:43669) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lhI7i-0004Jp-Lk for bug-gnu-emacs@gnu.org; Thu, 13 May 2021 16:40:00 -0400 Original-Received: by mail-ej1-x633.google.com with SMTP id l4so41680994ejc.10 for ; Thu, 13 May 2021 13:39:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:mime-version:subject:message-id:date:to; bh=i+aOX76p9FRKgny4QnErl94D7iaZWEYbLb/536FojiU=; b=OyIUvtVf7pxkk5RSIjzJvYI3KvMAPRZFzGPiF7l1LZb5KfpM1bV56CPrd0/W+m6b9H Oh7EleEeALOsKGx2sZzqNlUU7sm5sJQqpnaRbfEiIvATn2I4DnlqKojkuJ/gqdhUSTKI Ja2l5Z+NwDfGU8fnWIU8LHDrpGXKkNKoL4556fGX5j9EVgdBwapyAEHp7p2Fer6Y9rg3 FzDfiRCS4enxjOPDTX+eVWanTqWJzCEBfTCPn5PvMcZhwElmw8PP7GlNzd3f+9mUUvgR 3AoNNSIEvWxO7mM1+yCTBldYjqNVwSvbSHbZVjSASOxYE3Ksfp39r7T46nVw80/7zylE VmmQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:mime-version:subject:message-id:date:to; bh=i+aOX76p9FRKgny4QnErl94D7iaZWEYbLb/536FojiU=; b=tadFOGtdltINBQYOAK38lPbqr7gD+fVdPJ9V6AisQfCc2bGr94I7Am1krTUwRmT31F U8FplrabbAZdUL1WdbBEywHjUen4cbUvmJ5HzoEXN/OSa/d5OF/L4fuBlDwIrkOmPP+M RP+vPDautGJwnsTjVhpk3sXFbN3lk8KJuMvLxWfphSxXc2UW9SwMD4+0vrOohg6UgNza n3K/aEqQgW+x5F2iQKFsYN0BXE8gl91PLnx2DYH4ms2ML9nRNLYOuQc/jsiY5w9N9Ca3 LkCeWlFCH+kENR0PCyy5TMmezP0ClZyr3DNPBPDi4005dXD/WawMX11sFQCcNKL2ZctK Q9kA== X-Gm-Message-State: AOAM531jNuTu1K+x+jTwqLhDgj3uvFTIeDyfyPdsB/RxXSBkbO9nQWom rZBui+sYEA/QAr26PRfV6kvOPwRrILsiLw== X-Google-Smtp-Source: ABdhPJwhv/RZubpE2c9BxhywLdDh96lWJ5aN8MSJap0OQPAkjQ7cH0dVNjgHZGnmJYgKk3BBugfjLA== X-Received: by 2002:a17:906:4a81:: with SMTP id x1mr7166492eju.508.1620938396387; Thu, 13 May 2021 13:39:56 -0700 (PDT) Original-Received: from smtpclient.apple (ip185112.wh.uni-hannover.de. [130.75.185.112]) by smtp.gmail.com with ESMTPSA id g22sm2465610ejz.46.2021.05.13.13.39.55 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 13 May 2021 13:39:55 -0700 (PDT) X-Mailer: Apple Mail (2.3654.80.0.2.43) Received-SPF: pass client-ip=2a00:1450:4864:20::633; envelope-from=ilya.ostapyshyn@gmail.com; helo=mail-ej1-x633.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Thu, 13 May 2021 16:59:59 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:206466 Archived-At: --Apple-Mail=_1A8F2080-9737-4162-BC31-ACE1CE867D9A Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii 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.=20 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=3D-I/usr/local/opt/llvm/include LDFLAGS=3D-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 --Apple-Mail=_1A8F2080-9737-4162-BC31-ACE1CE867D9A Content-Disposition: attachment; filename=backtrace.txt Content-Type: text/plain; x-unix-mode=0644; name="backtrace.txt" Content-Transfer-Encoding: quoted-printable (lldb) bt * thread #1, queue =3D 'com.apple.main-thread', stop reason =3D 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=3D0, = readfds=3D0x00007ffeefbfe6c0, writefds=3D0x00007ffeefbfe610, = exceptfds=3D0x0000000000000000, timeout=3D0x00007ffeefbfe7e0, = sigmask=3D0x0000000000000000) at nsterm.m:4700:7 [opt] frame #4: 0x00000001001bbd87 = emacs`wait_reading_process_output(time_limit=3D, = nsecs=3D, read_kbd=3D, do_display=3Dtrue, = wait_for_cell=3D0x0000000000000000, wait_proc=3D, = just_wait_proc=3D0) at process.c:5568:18 [opt] frame #5: 0x00000001002024b0 emacs`-[EmacsView = waitFullScreenTransition](self=3D0x000000014e1665d0, _cmd=3D)= at nsterm.m:7977:7 [opt] frame #6: 0x000000010020265a emacs`-[EmacsView = toggleFullScreen:](self=3D0x000000014e1665d0, _cmd=3D, = sender=3D0x000000014e1665d0) at nsterm.m:8065:11 [opt] frame #7: 0x0000000100202c6e emacs`-[EmacsView = handleFS](self=3D0x000000014e1665d0, _cmd=3D) at = nsterm.m:8193:11 [opt] frame #8: 0x00000001001f6fed = emacs`ns_make_frame_visible(f=3D0x0000000146c77430) at nsterm.m:1651:11 = [opt] frame #9: 0x00000001000132ff = emacs`Fmake_frame_visible(frame=3D) at frame.c:2697:5 [opt] frame #10: 0x000000014820a5d5 = faces-b9447c93-edafd36b.eln`F782d6372656174652d6672616d652d776974682d66616= 36573_x_create_frame_with_faces_0 + 805 frame #11: 0x000000010016295d = emacs`funcall_subr(subr=3D0x000000014727c398, numargs=3D1, = args=3D) at eval.c:3111:19 [opt] frame #12: 0x0000000100161f3f emacs`Ffuncall(nargs=3D, = args=3D) at eval.c:3036:11 [opt] frame #13: 0x00000001001a8209 = emacs`exec_byte_code(bytestr=3D, vector=3D0x000000014727c35d,= maxdepth=3D, args_template=3D, = nargs=3D, args=3D) at bytecode.c:632:12 [opt] frame #14: 0x0000000100162b31 emacs`funcall_lambda [inlined] = fetch_and_exec_byte_code(fun=3D, syms_left=3D, = nargs=3D, args=3D) at eval.c:3160:10 [opt] = [artificial] frame #15: 0x0000000100161ecf emacs`Ffuncall(nargs=3D, = args=3D) at eval.c:0:4 [opt] frame #16: 0x0000000100161f3f emacs`Ffuncall(nargs=3D, = args=3D) at eval.c:3036:11 [opt] frame #17: 0x00000001001a8209 = emacs`exec_byte_code(bytestr=3D, vector=3D0x000000014727bb05,= maxdepth=3D, args_template=3D, = nargs=3D, args=3D) at bytecode.c:632:12 [opt] frame #18: 0x0000000100162b31 emacs`funcall_lambda [inlined] = fetch_and_exec_byte_code(fun=3D, syms_left=3D, = nargs=3D, args=3D) at eval.c:3160:10 [opt] = [artificial] frame #19: 0x0000000100161ecf emacs`Ffuncall(nargs=3D, = args=3D) 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=3D0x000000014732fc90, numargs=3D1, = args=3D) at eval.c:3111:19 [opt] frame #22: 0x0000000100161f3f emacs`Ffuncall(nargs=3D, = args=3D) at eval.c:3036:11 [opt] frame #23: 0x000000014824f04e = frame-b40fc590-39d0621d.eln`F6672616d652d696e697469616c697a65_frame_initia= lize_0 + 542 frame #24: 0x00000001001628fb = emacs`funcall_subr(subr=3D0x000000014775a460, numargs=3D0, = args=3D) at eval.c:3109:19 [opt] frame #25: 0x0000000100161f3f emacs`Ffuncall(nargs=3D, = args=3D) 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=3D0x00000001475c29e0, numargs=3D0, = args=3D) at eval.c:3109:19 [opt] frame #28: 0x0000000100161f3f emacs`Ffuncall(nargs=3D, = args=3D) 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=3D) = at eval.c:2508:15 [opt] frame #31: 0x00000001001614aa emacs`Feval(form=3D0x0000000147831b13, = lexical=3D) 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=3D(emacs`top_level_2 at = keyboard.c:1102), handlers=3D0x0000000000000090, hfun=3D(emacs`cmd_error = at keyboard.c:922)) at eval.c:1475:25 [opt] frame #34: 0x00000001000e8d2d = emacs`top_level_1(ignore=3D0x0000000000000000) at keyboard.c:1111:5 = [opt] frame #35: 0x000000010015f4ee = emacs`internal_catch(tag=3D0x000000000000dd10, func=3D(emacs`top_level_1 = at keyboard.c:1108), arg=3D0x0000000000000000) 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=3D, = argv=3D0x00007ffeefbff938) at emacs.c:2297:3 [opt] frame #41: 0x00007fff2042ff3d libdyld.dylib`start + 1 frame #42: 0x00007fff2042ff3d libdyld.dylib`start + 1 --Apple-Mail=_1A8F2080-9737-4162-BC31-ACE1CE867D9A--