From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: kobarity <kobarity@gmail.com> Newsgroups: gmane.emacs.bugs Subject: bug#74894: 29.4; Emacs not responding when calling python-fix-imports Date: Sun, 22 Dec 2024 10:21:09 +0900 Message-ID: <eke7frmg8qd6.wl-kobarity@gmail.com> References: <5CLIOS.GV2CWQIRVGEG1@gmail.com> <86zfkp7210.fsf@gnu.org> <eke7h66x83ru.wl-kobarity@gmail.com> <86ldw96mn4.fsf@gnu.org> Mime-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="9850"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue) FLIM-LB/1.14.9 (=?UTF-8?Q?Goj=C5=8D?=) APEL-LB/10.8 EasyPG/1.0.0 Emacs/31.0.50 (x86_64-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO) Cc: 74894@debbugs.gnu.org To: Keglo Stephane <stephanekeglo@gmail.com>, Eli Zaretskii <eliz@gnu.org> Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Dec 22 02:23:27 2024 Return-path: <bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org> 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 <bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org>) id 1tPAgo-0002Q8-Mn for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 22 Dec 2024 02:23:26 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from <bug-gnu-emacs-bounces@gnu.org>) id 1tPAgU-00020Q-2q; Sat, 21 Dec 2024 20:23:06 -0500 Original-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 <Debian-debbugs@debbugs.gnu.org>) id 1tPAgQ-000202-UZ for bug-gnu-emacs@gnu.org; Sat, 21 Dec 2024 20:23:04 -0500 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1tPAgQ-0002D2-M2 for bug-gnu-emacs@gnu.org; Sat, 21 Dec 2024 20:23:02 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:References:In-Reply-To:From:Date:To:Subject; bh=V7VDrVpa6GqVaiLfLibnz5VEzlb8wk9X38t+mzr1AzY=; b=VsXL57/eGurRrDEpfuD4t64jp1W0nVxy2uj+M7Mi2PbljBetwJ3tY6sJYgJG8N8inFiVNOxyXs2QZcke+RmrMnOuDNnYtZwv/tqwhvKhObPjZe3hw19A50Eq6HtMYQYq/IAXAmBddpWS+TWb1W2GkNeW04zc+29TdwiNJSvOtpL8sUC/HEhYI4bdgEH3fcmT7HBE1RZlF4WNw2fLC/nl2hoGAFaAFin6KQZzwKaMOPgnIuDpohQJCHOX9PhVN6+Bin7KWP2io6NOEZeGyH2WJ7Gm558o1nBdwoYqZSiqIh0nNAtxbXgvnTDRFVFhExNt2lOO56igpv44v8aovTWoVw==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1tPAgQ-0003PT-5G for bug-gnu-emacs@gnu.org; Sat, 21 Dec 2024 20:23:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: kobarity <kobarity@gmail.com> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces@debbugs.gnu.org> Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 22 Dec 2024 01:23:02 +0000 Resent-Message-ID: <handler.74894.B74894.173483054113041@debbugs.gnu.org> Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 74894 X-GNU-PR-Package: emacs Original-Received: via spool by 74894-submit@debbugs.gnu.org id=B74894.173483054113041 (code B ref 74894); Sun, 22 Dec 2024 01:23:02 +0000 Original-Received: (at 74894) by debbugs.gnu.org; 22 Dec 2024 01:22:21 +0000 Original-Received: from localhost ([127.0.0.1]:48439 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces@debbugs.gnu.org>) id 1tPAfl-0003OF-Bv for submit@debbugs.gnu.org; Sat, 21 Dec 2024 20:22:21 -0500 Original-Received: from mail-pf1-f179.google.com ([209.85.210.179]:50320) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <kobarity@gmail.com>) id 1tPAfj-0003Nx-8r for 74894@debbugs.gnu.org; Sat, 21 Dec 2024 20:22:20 -0500 Original-Received: by mail-pf1-f179.google.com with SMTP id d2e1a72fcca58-728ea1e0bdbso2900749b3a.0 for <74894@debbugs.gnu.org>; Sat, 21 Dec 2024 17:22:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1734830473; x=1735435273; darn=debbugs.gnu.org; h=mime-version:user-agent:references:in-reply-to:subject:cc:to:from :message-id:date:from:to:cc:subject:date:message-id:reply-to; bh=V7VDrVpa6GqVaiLfLibnz5VEzlb8wk9X38t+mzr1AzY=; b=gEyPcNL+MUgZqdvA4Sb+IlEvLrLQcfO+W+pY1QeWuXkPeCqR2IS4LC6haQ34BiEpir /w1nSNl2w5Mw2L6CtDuAh/VOBoh9D3Xsl99Jad9/uM9mR4d/mwyaSkPTQvAXaQrbIuZr AyT59h78+9URAT7YaONyl+lfh86KD8vsdRciwzO+rS3YgicsCRSuUyfLz1YkqOQQMQJ+ ArY+o9sx80OAQ0DtfnaKJ2Ad1BUHc7setb0y+aca+kVsr0qGIGmGHt7327nJVQg4pe7u ZheK2ELxLJMLfhprcklPUvcGzv+NhVOOXNnxHkhmiUEDM/II7pYh8pgZFZgxTT3PpkA+ OHcg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734830473; x=1735435273; h=mime-version:user-agent:references:in-reply-to:subject:cc:to:from :message-id:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=V7VDrVpa6GqVaiLfLibnz5VEzlb8wk9X38t+mzr1AzY=; b=ff1q3AbPSz3KEUNUSg/CVv/5uz2fEA5U+84NNVKTfy3sTbw5sB3Y9xPJfNgqYJwSdm bTKeO3OXtv5j4J6qZ7tvdRTjEzkMrKPU6IduTT1hDGlrexJ2uzIjbzeRUtc3rdS7Gx5A i24/d4BUk8+7ABNzxlgk+cwgtvH29Lp3WGpmVyDfThcWif1DndGycAzLG9LuKkUFn/tW db8jkBY6cWJFPLUJfzKO3YEUEUifijPecL/D/hMvIpO9MM3XRSesygacuOBaiCgqTbjf drGtF0IfE1PHe7YhJkZlz19pnFr8TD21Ccp2WpKSEot8RSomEtllE/PXRF/RkistoLLz CnAA== X-Gm-Message-State: AOJu0YwkzpNjICc6yOr7sGFwcDHdmqLL6o04nR7Yh399k26KVtqEHmqi s9EuBmhOHaNGAe0BKO21qtynLguJu3EDn6vlCxPU+/HMJlUYnMy1 X-Gm-Gg: ASbGncvrN0XDacp5sLNS9wWsCb7DFr18uZ94FLICssxkoNPptd8hkEAjjllv+bsNutN z+0yURcZAhckYUYRzP0gm6dmE6Z8a9trX0CJH7i0b6udwLYR05M5aureAadJopiLWLOnvbV4OMz zr6ACWimYTmPWu7NBcH4mvU9zrdchT7UmFcins6G6jUWtHFFDvi5BaSXjQxpF491hLr/RcX5ZhY dm3yekCW67Ic+a34+zH8pxN3E48REw6J5HHruuf5/50SlPrTr1h0AHpeUkw3whPng/wf7JsAISo CBs5IeroEa0= X-Google-Smtp-Source: AGHT+IERnwRUFBrU4n/y4GhRZ7UF+JhZcHIk7PbDhY3hF/Q0Q+uSfdcP5FoUGSpmF67p0cpJG1QeGw== X-Received: by 2002:a05:6a00:35c6:b0:725:4109:5b5f with SMTP id d2e1a72fcca58-72abdd7bc5dmr15027380b3a.8.1734830473313; Sat, 21 Dec 2024 17:21:13 -0800 (PST) Original-Received: from localhost (58x12x133x161.ap58.ftth.ucom.ne.jp. [58.12.133.161]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-72aad8dbbabsm5526325b3a.101.2024.12.21.17.21.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 21 Dec 2024 17:21:13 -0800 (PST) In-Reply-To: <86ldw96mn4.fsf@gnu.org> 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" <bug-gnu-emacs.gnu.org> List-Unsubscribe: <https://lists.gnu.org/mailman/options/bug-gnu-emacs>, <mailto:bug-gnu-emacs-request@gnu.org?subject=unsubscribe> List-Archive: <https://lists.gnu.org/archive/html/bug-gnu-emacs> List-Post: <mailto:bug-gnu-emacs@gnu.org> List-Help: <mailto:bug-gnu-emacs-request@gnu.org?subject=help> List-Subscribe: <https://lists.gnu.org/mailman/listinfo/bug-gnu-emacs>, <mailto:bug-gnu-emacs-request@gnu.org?subject=subscribe> Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:297560 Archived-At: <http://permalink.gmane.org/gmane.emacs.bugs/297560> Eli Zaretskii wrote: > > > Date: Sun, 22 Dec 2024 00:16:53 +0900 > > From: kobarity <kobarity@gmail.com> > > Cc: Keglo Stephane <stephanekeglo@gmail.com>, > > 74894@debbugs.gnu.org > > > > Eli Zaretskii wrote: > > > > > > > Date: Sun, 15 Dec 2024 02:52:53 +0000 > > > > From: Keglo Stephane <stephanekeglo@gmail.com> > > > > > > > > when writting a python code with a missing import, using > > > > `python-fix-imports' make emacs not responding. > > > > > > Thanks. Could you please show a simple recipe for reproducing this? > > > > > > kobarity, any comments or suggestions? > > > > I have not been able to reproduce this so far, but I have found that > > if the file is large, say 10000 lines, it takes a few seconds. > > > > The other problem I found is that if I run `python-fix-imports' > > without saving the buffer, I get the following error: > > > > python exited with status 1 > > > > This occurs because isort cannot read the lock file (symbolic link) > > such as ".#foo.py", which is created before the modified buffer is > > saved. Although I don't think this has anything to do with the > > non-response issue. > > Thanks. So my request for a reproduction recipe still stands. Keglo > Stephane, could you please provide such a recipe? If it is difficult to establish a reproduction recipe, please do a little research in your environment. While Emacs is not responding, run "top" to see if there is a process with high CPU utilization. It is likely Python or Emacs is using CPU. If the CPU utilization of Python is high, please tell us the arguments of the Python process. If the CPU utilization of Emacs is high, please check if you can abort with Ctrl-G or sending SIGUSR2 signal. If you can abort, please send the backtrace: 1. emacs -Q 2. M-x load-fie Specify the location of python.el (or python.el.gz, not python.elc). You can use M-x locate-library and enter "python" to locate the file. 3. M-x toggle-debug-on-quit 4. Reproduce the issue. 5. Abort with Ctrl-G or SIGUSR2. Thanks in advance.