From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id ANt4GjpgTWVFSwAAG6o9tA:P1 (envelope-from ) for ; Thu, 09 Nov 2023 23:42:02 +0100 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id ANt4GjpgTWVFSwAAG6o9tA (envelope-from ) for ; Thu, 09 Nov 2023 23:42:02 +0100 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 43C2E26C16 for ; Thu, 9 Nov 2023 23:42:02 +0100 (CET) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=riseup.net header.s=squak header.b=MM9VY8ix; dmarc=pass (policy=none) header.from=riseup.net; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1699569722; a=rsa-sha256; cv=none; b=fSuPn1QlWIJpWi8nw2/RT7S5/E0pCI/1f6dYpPttz6v5qEf5xHeYplOUKWA46E7Cm+uGzT bkKo78XoP6BKlljfmoLHGVLDKiRxq8WHgJEAEsGLXY82ejguHfBbIfO4bri6k9+1DPZaO7 usfXDexPLvP7lE/ICoU96BpTziTCQH65vxgtS2f20AR4TQWwvye1+uQDYZHlW9MmVwBZ5J LrGfuwGTL2zDukArz4LXYSrwSilSen9PMEERs8lgsQIYj1120lARLEprPRieUiZNiKQEdX fcAjkqxQVlzEmm2ApcttwIVgmpNudZJPs7ZSz2tir5KoSvYYX3YZkJvbGdDX9g== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=riseup.net header.s=squak header.b=MM9VY8ix; dmarc=pass (policy=none) header.from=riseup.net; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1699569722; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=lhbs39TqqQLS3f+daH8sINdu8zYuVjywYg6KBpeZMz4=; b=bHrYReylR8HH4auDIafZttFf4D8fzfq3XBjpkkELVfFvDgrgxxBzwiqdM8i1SVrbUPbSDc vqhw0wW1CJ6rZUSO/aBGdi5llOWG7bkAqxDZtwuS/FC0Tsj8As51u56cHthQ6/+lq3ra/9 1FE3gA1yc8eesef0QfOd5cgJBUCH/5KcFG/UUXwKD+AsHkB3AuWrTD/Cq0AGSRX7p78wVx NQu+LY1Hlch+EZZ9GfHi/fu/LoZVc2MydVgk1CLWjvUrRkQ3wWTbTDjnwlkb4JsM9XLiJD TYgB0A2XXi6KOGajKb1jKX+t4b+Nd39RJJImkApZLwINh/nK+c3MW+43GwHguw== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1r1Dhw-0008RB-Iv; Thu, 09 Nov 2023 17:41:05 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1r1Dhq-0008Qt-VJ for emacs-orgmode@gnu.org; Thu, 09 Nov 2023 17:40:59 -0500 Received: from mx0.riseup.net ([198.252.153.6]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1r1Dho-0008J1-Qx for emacs-orgmode@gnu.org; Thu, 09 Nov 2023 17:40:58 -0500 Received: from fews01-sea.riseup.net (fews01-sea-pn.riseup.net [10.0.1.109]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx0.riseup.net (Postfix) with ESMTPS id 4SRH3l26PPz9s20 for ; Thu, 9 Nov 2023 22:40:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=riseup.net; s=squak; t=1699569651; bh=eeqLYEzRPGAou5DCZCxfGMY4GYT3pqR6ZWSwdpXfehk=; h=From:To:Subject:Date:From; b=MM9VY8ixLbsUfv3YbLRay52gbS7q7Di7EiEjXYT4hmEoMgkOiCh8bhGm8rETqrm5o aaulFMkvFuzvYlNmVjIC/Ynz0f0pzAJS3qPHTQCQH/8U32KT0M5Rqa+GD7BTCTu/eC sApyEH6f/6xN+aaD5OlxBOwTtXbAA11g4WzOrNdM= X-Riseup-User-ID: 158EFE1F7799C07414628FB795DFC08779A7B722A806A5204A76B178F3742F69 Received: from [127.0.0.1] (localhost [127.0.0.1]) by fews01-sea.riseup.net (Postfix) with ESMTPSA id 4SRH3k5wFfzJn1d for ; Thu, 9 Nov 2023 22:40:50 +0000 (UTC) From: SyedZuhair To: emacs-orgmode@gnu.org Subject: [BUG] org-resolve-clocks use of read-char-exclusive without telling EXWM to change the focus back to Emacs results in deadlock Date: Thu, 09 Nov 2023 17:40:48 -0500 Message-ID: <87zfzmk0sv.fsf@hoborg.mail-host-address-is-not-set> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=198.252.153.6; envelope-from=syed@riseup.net; helo=mx0.riseup.net X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H5=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: emacs-orgmode-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Queue-Id: 43C2E26C16 X-Migadu-Scanner: mx12.migadu.com X-Migadu-Spam-Score: -10.35 X-Spam-Score: -10.35 X-TUID: RcaQB4FP9Fzd The deadlock happens if org-resolve-clocks is called automatically (for resolving idle time) while focus is in a EXWM-mode buffer. The result is that the focus is stuck with the EXWM-mode buffer away from Emacs and the user can not tell EXWM to change the focus to the mini-buffer to interact with org because org is grabbing all the input away from EXWM. The only way out for the user is to kill the application in EXWM buffer from another ttyn terminal to be able to interact with org-resolve-clocks. See the issue discussion here as well: https://github.com/ch11ng/exwm/issues/921 Steps to reproduce: 1. Run X with EXWM as its window manager. 2. Clock in some tasks in an org-buffer. 3. Start some non-Emacs application (like Firefox)) it will run in an EXWM-mode buffer. 4. Leave the input for more than org-clock-idle-time. 5. org-resolve-clocks is get called and you get stuck in your EXWM-mode buffer till you kill the application somehow, because all you keys are all going to the EXWM-buffer and those that are supposed to go to EXWM to interact with Emacs is grabbed by org-resolve-clocks and ignored. Thank you very much. Emacs : GNU Emacs 29.1 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.38, cairo version 1.17.8) Package: Org mode version 9.6.6 (release_9.6.6 @ /usr/share/emacs/29.1/lisp/org/)