[Bug 1234673] New: Emacs freeze for a few seconds when opening any python file, with 100% Xorg usage
https://bugzilla.suse.com/show_bug.cgi?id=1234673 Bug ID: 1234673 Summary: Emacs freeze for a few seconds when opening any python file, with 100% Xorg usage Classification: openSUSE Product: openSUSE Tumbleweed Version: Current Hardware: Other OS: Other Status: NEW Severity: Normal Priority: P5 - None Component: Other Assignee: screening-team-bugs@suse.de Reporter: pujos.michael@gmail.com QA Contact: qa-bugs@suse.de Target Milestone: --- Found By: --- Blocker: --- Observed on TW20241215 Here's a weird one: When I open any Python file (whether existing or not, size of file does not matter) with 'emacs file.py', emacs freezes up to 10 seconds before I can type in the frame. No other file type cause this issue. top shows that Xorg is taking 100% CPU usage while the emacs process itself has low CPU usage. starting emacs with -q to not load .emacs and friends does not fix it. However starting 'emacs -nw file.py' does not freeze, as Xorg is not used. So it seems to be a weird Xorg + emacs Python mode issue that I have a hard time comprehend. -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1234673 https://bugzilla.suse.com/show_bug.cgi?id=1234673#c1 --- Comment #1 from Michael Pujos <pujos.michael@gmail.com> --- Urgh. Python files load instantly with 'emacs -q --no-site-lisp' (both arguments are required). Investigating... -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1234673 https://bugzilla.suse.com/show_bug.cgi?id=1234673#c2 --- Comment #2 from Michael Pujos <pujos.michael@gmail.com> --- I found the cause: emacs native compilation of elisp files, populating ~/.emacs.d/eln-cache. For now I can workaround this issue disabling native compilation adding this line to ~/.emacs.d/early-init.el: (setq native-comp-deferred-compilation nil) Though it would be nice to find the bottom line of this issue. Native compilation + Python mode + emacs running graphically (Xorg) makes Xorg go berserk and take 100% CPU for a few seconds... -- You are receiving this mail because: You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@suse.com