unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#59408: Emacs infinitely load when opening .py file
@ 2022-11-20 10:35 Rodrigo Morales
  2022-11-20 10:52 ` Eli Zaretskii
  0 siblings, 1 reply; 4+ messages in thread
From: Rodrigo Morales @ 2022-11-20 10:35 UTC (permalink / raw)
  To: 59408

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

# Description of the bug

I've attached a file named "main.py". I've tried opening it with
"emacs -Q main.py" in a tty and Emacs infinitely loads.

# Reproducing the bug

1. Open the file I've attached in this message with "emacs -Q main.py".

At this point, Emacs will infinitely load (at least that's what I can
infer since I waited 30 seconds and then decided to kill the process)

# Additional information

I noticed a sudden increase in the usage of my CPU (because of the
sound that my computer produced), so I executed the following command
to see which processes were using more CPU resources.

```
$ watch -n 0.5 -d "ps -e -o tname,pid,%cpu,args | sort -nk3 | tail"
```

The following are the three last lines of the command that is being watched.

```
pts/0      15153  6.9 /usr/lib/firefox/firefox
?          14687  8.4 emacs --daemon -f exwm-enable
tty4       39122 98.5 emacs -Q main.py
```

As you can see above, the Emacs process that is opening that file is
using the most of the CPU.

It's worth mentioning that the attached file is a simplified version
of the file that I was editing. When I first found this bug, I was
editing a .py file with more lines and I found this infinite loading
when I executed M-x occur and searched for any string. Fortunately, I
was able to cancel the infinite loading with C-g, so I used the
profiler-* functions to see what was causing this unexpected behavior.
The attached files named profiler-report-cpu.txt and
profiler-report-memory.txt contain the output of profiler-report. As
you can see in the output of those reports, syntax-ppss is the last
function that is shown as a function that is using more than 80% of
memory and CPU. Recall that I mentioned that I pressed C-g to cancel
the infinite loading, that's the reason why other functions are shown
below with 0% usage of cpu and memory.

# System information

I'm using Emacs 28.2 in Arch Linux (see proof below).

```
$ emacs --version
GNU Emacs 28.2
Copyright (C) 2022 Free Software Foundation, Inc.
GNU Emacs comes with ABSOLUTELY NO WARRANTY.
You may redistribute copies of GNU Emacs
under the terms of the GNU General Public License.
For more information about these matters, see the file named COPYING.
```

[-- Attachment #2: profiler-report-cpu.txt --]
[-- Type: text/plain, Size: 2467 bytes --]

15970  97% - command-execute
15970  97%  - call-interactively
15956  97%   - funcall-interactively
15949  97%    - occur
15949  97%     - occur-1
15938  97%      - occur-engine
15938  97%       - occur-engine-line
15938  97%        - font-lock-ensure
15938  97%         - jit-lock-fontify-now
15938  97%          - jit-lock--run-functions
15938  97%           - run-hook-wrapped
15938  97%            - #<compiled 0x19ba162a5d12b47d>
15938  97%             - font-lock-fontify-region
15938  97%              - font-lock-default-fontify-region
15938  97%               - font-lock-fontify-syntactically-region
15938  97%                - python-font-lock-syntactic-face-function
15935  97%                 - python-info-docstring-p
15932  97%                  - python-nav-backward-sexp
15932  97%                   - python-nav-forward-sexp
15932  97%                    - python-nav--forward-sexp
15932  97%                     - python-info-statement-ends-block-p
15894  96%                      - python-nav-end-of-block
15749  96%                       - python-nav-end-of-statement
14528  88%                        - syntax-ppss
    3   0%                           #<compiled 0xb89c2b0b9052852>
    3   0%                  - python-info-assignment-statement-p
    3   0%                   - python-nav-beginning-of-statement
    3   0%                      back-to-indentation
    7   0%      profiler-stop
   14   0%   - byte-code
   14   0%    - occur-read-primary-args
   14   0%     - read-regexp
   10   0%        read-from-minibuffer
    4   0%      - read-regexp-suggestions
    4   0%       - find-tag-default-as-symbol-regexp
    4   0%        - find-tag-default-as-regexp
    4   0%         - find-tag-default
    4   0%          - find-tag-default-bounds
    4   0%             bounds-of-thing-at-point
  427   2% - ...
  427   2%    Automatic GC
    3   0% - timer-event-handler
    3   0%  - apply
    3   0%   - exwm-input--update-focus-commit
    3   0%      exwm-input--update-focus
    1   0% - redisplay_internal (C function)
    1   0%  - exwm-layout--refresh
    1   0%   - exwm-layout--refresh-workspace
    1   0%    - exwm-layout--show
    1   0%     - exwm--set-geometry
    1   0%      - xcb:-+request
    1   0%       - apply
    1   0%        - #<compiled -0x45cb681d6ecf89c>
    1   0%         - xcb:-cache-request
    1   0%          - apply
    1   0%           - #<compiled 0x18a73da279a289d1>
    1   0%              slot-value

[-- Attachment #3: main.py --]
[-- Type: text/x-python, Size: 109 bytes --]

class Class1():

        " " '

def foo(self):
    """
    """

def bar(self):
    """
    foo ' bar
    """

[-- Attachment #4: profiler-report-memory.txt --]
[-- Type: text/plain, Size: 18454 bytes --]

29,811,751  99% - command-execute
29,811,751  99%  - call-interactively
29,783,435  99%   - funcall-interactively
28,938,790  96%    - occur
28,938,790  96%     - occur-1
28,780,038  95%      - occur-engine
28,587,986  95%       - occur-engine-line
28,587,986  95%        - font-lock-ensure
28,587,986  95%         - jit-lock-fontify-now
28,587,986  95%          - jit-lock--run-functions
28,587,986  95%           - run-hook-wrapped
28,587,986  95%            - #<compiled 0x19ba162a5d12b47d>
28,587,986  95%             - font-lock-fontify-region
28,587,986  95%              - font-lock-default-fontify-region
28,587,986  95%               - font-lock-fontify-syntactically-region
28,587,986  95%                - python-font-lock-syntactic-face-function
28,587,986  95%                 - python-info-docstring-p
28,584,562  95%                  - python-nav-backward-sexp
28,584,562  95%                   - python-nav-forward-sexp
28,584,562  95%                    - python-nav--forward-sexp
28,577,682  95%                     - python-info-statement-ends-block-p
28,577,682  95%                      - python-nav-end-of-block
28,570,674  95%                       - python-nav-end-of-statement
28,566,450  95%                        - syntax-ppss
    72,240   0%                           #<compiled 0xb89c2b0b9052852>
     4,224   0%                        - python-info-line-ends-backslash-p
     4,224   0%                           syntax-ppss
     7,008   0%                       - python-nav-beginning-of-block
     4,800   0%                        - python-nav-backward-block
     4,800   0%                         - python-nav-forward-block
     2,112   0%                          - python-nav-beginning-of-statement
     2,112   0%                             syntax-ppss
     1,056   0%                          - python-syntax-context-type
     1,056   0%                             syntax-ppss
     1,152   0%                          python-info-current-line-empty-p
     1,056   0%                        - python-nav-beginning-of-statement
     1,056   0%                         - python-info-line-ends-backslash-p
     1,056   0%                            syntax-ppss
     2,688   0%                     - python-info-beginning-of-block-p
     1,632   0%                        python-info-statement-starts-block-p
     1,056   0%                      - python-info-beginning-of-statement-p
     1,056   0%                       - python-nav-beginning-of-statement
     1,056   0%                        - python-info-line-ends-backslash-p
     1,056   0%                           syntax-ppss
     2,080   0%                     - python-info-end-of-block-p
     2,080   0%                      - python-info-end-of-statement-p
     2,080   0%                       - python-nav-end-of-statement
     1,056   0%                        - python-info-line-ends-backslash-p
     1,056   0%                           syntax-ppss
     1,056   0%                     - python-info-beginning-of-statement-p
     1,056   0%                      - python-nav-beginning-of-statement
     1,056   0%                       - python-info-line-ends-backslash-p
     1,056   0%                          syntax-ppss
     1,056   0%                     - python-info-statement-starts-block-p
     1,056   0%                      - python-nav-beginning-of-statement
     1,056   0%                         syntax-ppss
     1,056   0%                  - python-nav-beginning-of-statement
     1,056   0%                   - python-info-line-ends-backslash-p
     1,056   0%                      syntax-ppss
     1,024   0%                    python-info-assignment-statement-p
    18,544   0%         apply
     1,152   0%        isearch-no-upper-case-p
   844,014   2%    - profiler-stop
     2,697   0%       profiler-memory-running-p
     2,673   0%       fboundp
       631   0%      profiler-start
    28,316   0%   - byte-code
    28,316   0%    - occur-read-primary-args
    28,316   0%     - read-regexp
    16,136   0%      - read-from-minibuffer
       824   0%       - timer-event-handler
       696   0%        - apply
       696   0%         - exwm-input--update-focus-commit
       696   0%            exwm-input--update-focus
        80   0%        - timer-inc-time
        56   0%           timer-relative-time
        24   0%           timer--time-setter
        24   0%        - timer-activate
        24   0%         - timer--activate
        24   0%            timer--time-less-p
       740   0%       - redisplay_internal (C function)
       740   0%        - tab-bar-make-keymap
       740   0%         - tab-bar-make-keymap-1
       740   0%          - tab-bar-format-list
       740   0%           - mapcar
       740   0%            - #<compiled 0x9fe99f83bd1e83a>
       676   0%             - tab-bar-format-tabs
       676   0%              - mapcan
       676   0%               - #<compiled -0x1b6064e689da6fe>
       676   0%                - tab-bar--format-tab
       172   0%                   tab-bar-tab-name-format-default
        64   0%               tab-bar-format-global
       288   0%       - run-hooks
       288   0%        - exwm-input--on-buffer-list-update
       288   0%         - exwm-input--update-focus-defer
       288   0%          - run-with-timer
       288   0%           - apply
       288   0%            - run-at-time
       144   0%               timer-relative-time
        72   0%             - timer-set-time
        72   0%                timer--time-setter
        72   0%             - timer-activate
        72   0%              - timer--activate
        72   0%                 timer--time-less-p
        32   0%       - command-execute
        32   0%          call-interactively
         8   0%         exwm-layout--on-minibuffer-setup
     1,444   0%      - read-regexp-suggestions
     1,234   0%       - find-tag-default-as-regexp
     1,234   0%        - find-tag-default
     1,234   0%         - find-tag-default-bounds
     1,234   0%          - bounds-of-thing-at-point
     1,234   0%           - #<compiled 0xaef75e8c1a537>
     1,234   0%            - forward-thing
     1,024   0%               forward-symbol
       210   0%       - find-tag-default-as-symbol-regexp
       210   0%        - find-tag-default-as-regexp
       210   0%         - find-tag-default
       210   0%          - find-tag-default-bounds
       210   0%           - bounds-of-thing-at-point
       210   0%            - #<compiled 0xaef75e8c1a537>
       210   0%               forward-thing
       253   0%        format-prompt
   119,795   0% - timer-event-handler
   112,531   0%  - apply
    85,240   0%   - vterm--delayed-redraw
    77,056   0%    - vterm--redraw
    46,464   0%     - vterm--insert
    46,464   0%      - apply
     9,504   0%       - #<subr insert>
     9,504   0%          jit-lock-after-change
     1,024   0%       vterm--delete-lines
    16,896   0%     posframe-hidehandler-daemon-function
     3,168   0%   - exwm-layout--on-echo-area-change
     3,168   0%      frame-width
     2,317   0%   - display-time-event-handler
     2,293   0%    - display-time-update
     1,141   0%       display-time-update--load
     1,056   0%     - mapconcat
     1,056   0%      - eval
     1,056   0%       - propertize
     1,056   0%        - `
     1,056   0%         - #<compiled 0x8c45cf4244714>
     1,056   0%            backquote-process
        64   0%       display-time-update--mail
     1,406   0%   - #<compiled 0x6d593b940592e96>
     1,406   0%    - eldoc-print-current-symbol-info
       350   0%     - eldoc--invoke-strategy
       350   0%      - eldoc-documentation-default
       350   0%       - run-hook-with-args-until-success
       350   0%        - python-eldoc-function
       294   0%         - python-eldoc--get-doc-at-point
       294   0%          - python-shell-get-process
       294   0%           - python-shell-get-buffer
       126   0%              python-shell-get-process-name
        56   0%         - run-with-timer
        56   0%          - apply
        56   0%           - run-at-time
        24   0%            - timer-set-time
        24   0%               timer--time-setter
        24   0%            - timer-activate
        24   0%             - timer--activate
        24   0%                timer--time-less-p
         8   0%              timer-relative-time
     1,392   0%   - exwm-input--update-focus-commit
     1,392   0%      exwm-input--update-focus
     1,056   0%   - #<compiled 0x12c7fa6896d41e0a>
     1,056   0%      jit-lock-context-fontify
     3,392   0%  - timer-inc-time
     1,128   0%     timer--time-setter
       152   0%     timer-relative-time
     2,112   0%  - timer-activate-when-idle
     2,112   0%   - timer--activate
     2,112   0%      timer--time-less-p
       480   0%  - timer-activate
       480   0%   - timer--activate
       480   0%      timer--time-less-p
        32   0%    timer-until
        24   0%    timer-next-integral-multiple-of-time
        24   0%    timer--time-setter
    76,614   0% - redisplay_internal (C function)
    33,528   0%  - exwm-layout--refresh
    33,528   0%   - exwm-layout--refresh-workspace
    22,968   0%    - exwm-layout--show
    11,352   0%     - exwm--set-geometry
    10,296   0%      - xcb:-+request
    10,296   0%       - apply
    10,296   0%        - #<compiled -0x45cb681d6ecf89c>
    10,296   0%         - xcb:-cache-request
    10,296   0%          - apply
    10,296   0%           - #<compiled 0x18a73da279a289d1>
     8,184   0%            - replace-regexp-in-string
     8,184   0%               apply
     2,112   0%            - xcb:marshal
     2,112   0%             - apply
     2,112   0%              - #<compiled -0x16b745c455aa3448>
     1,056   0%               - xcb:-marshal-field
     1,056   0%                - apply
     1,056   0%                 - #<compiled 0x1a471c450a5d1361>
     1,056   0%                    eieio-class-slots
     1,056   0%                 eieio-class-slots
     1,056   0%      - make-instance
     1,056   0%         apply
     4,224   0%     - exwm-layout--set-state
     3,168   0%      - xcb:-+request
     3,168   0%       - apply
     3,168   0%        - #<compiled -0x45cb681d6ecf89c>
     3,168   0%         - xcb:-cache-request
     3,168   0%          - apply
     3,168   0%           - #<compiled 0x18a73da279a289d1>
     3,168   0%            - xcb:marshal
     3,168   0%             - apply
     3,168   0%              - #<compiled 0x19cf4aae41a3bf3d>
     3,168   0%               - apply
     3,168   0%                - #<compiled 0xd56fcd532ed0219>
     2,112   0%                 - #<compiled -0x192c4e1d88572d18>
     2,112   0%                  - apply
     2,112   0%                   - #<compiled -0x109e12af6045d6b1>
     2,112   0%                    - apply
     2,112   0%                     - #<compiled -0x15b16eac51ebb319>
     2,112   0%                      - #<compiled 0x7a56ae8828c804e>
     2,112   0%                       - apply
     2,112   0%                        - #<compiled -0x16b745c455aa3448>
     1,056   0%                         - xcb:-marshal-field
     1,056   0%                          - apply
     1,056   0%                           - #<compiled 0x1a471c450a5d1361>
     1,056   0%                            - mapconcat
     1,056   0%                               #<compiled -0x1bae138900314d0f>
     1,056   0%                   eieio-class-slots
     1,056   0%      - make-instance
     1,056   0%       - apply
     1,056   0%        - #<compiled 0x78e13525ff5c6de>
     1,056   0%         - initialize-instance
     1,056   0%          - apply
     1,056   0%             #<compiled -0x1924449c02bb671>
     3,168   0%     - xcb:flush
     3,168   0%      - apply
     3,168   0%         #<compiled 0x1a3b9abaceb888e1>
     2,112   0%     - exwm-layout--set-ewmh-state
     2,112   0%      - xcb:-+request
     2,112   0%       - apply
     2,112   0%        - #<compiled -0x45cb681d6ecf89c>
     2,112   0%         - xcb:-cache-request
     2,112   0%          - apply
     2,112   0%           - #<compiled 0x18a73da279a289d1>
     2,112   0%            - xcb:marshal
     2,112   0%             - apply
     2,112   0%              - #<compiled -0x109e12af6045d6b1>
     2,112   0%               - apply
     2,112   0%                - #<compiled -0x15b16eac51ebb319>
     2,112   0%                 - #<compiled 0x7a566aa828c804e>
     2,112   0%                  - apply
     2,112   0%                   - #<compiled -0x16b745c455aa3448>
     1,056   0%                      eieio-class-slots
     1,056   0%     - window-inside-absolute-pixel-edges
     1,056   0%      - window-edges
     1,056   0%         window-current-scroll-bars
     1,056   0%     - make-instance
     1,056   0%      - apply
     1,056   0%         #<compiled 0x78e13525ff5c6de>
     5,280   0%      exwm-workspace--active-p
     3,168   0%    - exwm-layout--set-client-list-stacking
     3,168   0%     - xcb:-+request
     3,168   0%      - apply
     3,168   0%       - #<compiled -0x45cb681d6ecf89c>
     3,168   0%        - xcb:-cache-request
     3,168   0%         - apply
     3,168   0%          - #<compiled 0x18a73da279a289d1>
     3,168   0%           - xcb:marshal
     3,168   0%            - apply
     3,168   0%             - #<compiled 0x17dee649b287aa3e>
     3,168   0%              - apply
     2,112   0%               - #<compiled -0x15b16eac51ebb319>
     2,112   0%                - #<compiled 0x7a566aa828c804e>
     2,112   0%                 - apply
     2,112   0%                  - #<compiled -0x16b745c455aa3448>
     1,056   0%                     eieio-class-slots
     1,056   0%               - #<compiled -0x3663407e31c8c0e>
     1,056   0%                - #<compiled -0x192c49bf88572d18>
     1,056   0%                 - apply
     1,056   0%                  - #<compiled -0x109e12af6045d6b1>
     1,056   0%                   - apply
     1,056   0%                    - #<compiled -0x15b16eac51ebb319>
     1,056   0%                     - #<compiled 0x7a566aa828c804e>
     1,056   0%                      - apply
     1,056   0%                         #<compiled -0x16b745c455aa3448>
     1,056   0%    - xcb:flush
     1,056   0%     - apply
     1,056   0%        #<compiled 0x1a3b9abaceb888e1>
     1,056   0%    - derived-mode-p
     1,056   0%       apply
    22,176   0%  - eval
    16,896   0%     if
     4,224   0%   - propertize
     4,224   0%    - when
     4,224   0%     - if
     4,224   0%      - cl-some
     2,112   0%         #<lambda 0xae41a996da2f9>
     2,112   0%         #<lambda 0xae41a996da2f9>
    19,854   0%  - tab-bar-make-keymap
    19,854   0%   - tab-bar-make-keymap-1
    17,742   0%    - tab-bar-format-list
    17,742   0%     - mapcar
    17,742   0%      - #<compiled 0x9fe99f83bd1e83a>
    16,590   0%       - tab-bar-format-tabs
    10,254   0%        - mapcan
    10,254   0%         - #<compiled -0x1b6064e689da6fe>
     9,198   0%          - tab-bar--format-tab
     8,442   0%             tab-bar-tab-name-format-default
     6,336   0%          tab-bar-tabs
        96   0%         tab-bar-format-global
     1,056   0%  - window--adjust-process-windows
     1,056   0%   - window--process-window-list
     1,056   0%    - walk-windows
     1,056   0%     - internal--before-save-selected-window
     1,056   0%      - mapcar
     1,056   0%       - #<compiled -0x92a50daaade278a>
     1,056   0%        - frames-on-display-list
     1,056   0%           filtered-frame-list
    14,784   0% - xcb:-connection-filter
    14,784   0%  - xcb:-process-events
    14,784   0%   - apply
    14,784   0%    - #<compiled -0xea24063d87f9afb>
     7,392   0%     - exwm--on-ClientMessage
     7,392   0%      - xcb:unmarshal
     7,392   0%       - apply
     7,392   0%        - #<compiled 0xf27a7909c3a598e>
     6,336   0%         - xcb:-unmarshal-field
     6,336   0%          - apply
     6,336   0%           - #<compiled -0x115fd2b1ed0a0717>
     5,280   0%            - xcb:unmarshal
     5,280   0%             - apply
     5,280   0%              - #<compiled -0xb1c18ed54be164a>
     5,280   0%               - xcb:-unmarshal-field
     5,280   0%                - apply
     5,280   0%                 - #<compiled -0x115fd2b1ed0a0717>
     1,056   0%                  - xcb:-unmarshal-field
     1,056   0%                     apply
     1,056   0%            - make-instance
     1,056   0%             - apply
     1,056   0%              - #<compiled 0x78e13525ff5c6de>
     1,056   0%               - initialize-instance
     1,056   0%                - apply
     1,056   0%                   #<compiled -0x1924449c02bb671>
     7,392   0%     - exwm--on-PropertyNotify
     6,336   0%      - xcb:unmarshal
     6,336   0%       - apply
     6,336   0%        - #<compiled 0xf27a7909c3a598e>
     1,056   0%         - xcb:-unmarshal-field
     1,056   0%            apply
     1,056   0%      - make-instance
     1,056   0%       - apply
     1,056   0%        - #<compiled 0x78e13525ff5c6de>
     1,056   0%         - initialize-instance
     1,056   0%          - apply
     1,056   0%             #<compiled -0x1924449c02bb671>
     3,528   0% - vterm--filter
     1,224   0%  - vterm--update
     1,224   0%   - vterm--invalidate
     1,224   0%    - run-with-timer
     1,224   0%     - apply
     1,224   0%      - run-at-time
     1,104   0%       - timer-set-time
     1,104   0%          timer--time-setter
        72   0%         timer-relative-time
        48   0%       - timer-activate
        48   0%        - timer--activate
        48   0%           timer--time-less-p
     3,168   0% - exwm-layout--on-echo-area-change
     3,168   0%    frame-width
     1,104   0% - eldoc-schedule-timer
     1,104   0%  - run-with-idle-timer
     1,056   0%   - timer-activate-when-idle
     1,056   0%    - timer--activate
     1,056   0%       timer--time-less-p
        48   0%   - timer-set-idle-time
        48   0%      timer--time-setter
     1,077   0% - #<compiled -0x8775e1d76493b99>
     1,077   0%  - apply
     1,077   0%   - command-error-default-function
     1,077   0%    - substitute-command-keys
     1,056   0%       #<compiled -0x1c8bcf74bd8d0da3>
        21   0%       generate-new-buffer
     1,056   0% - winner-save-old-configurations
     1,056   0%    winner-remember
         0   0%   ...

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

* bug#59408: Emacs infinitely load when opening .py file
  2022-11-20 10:35 bug#59408: Emacs infinitely load when opening .py file Rodrigo Morales
@ 2022-11-20 10:52 ` Eli Zaretskii
  2022-11-20 16:49   ` Rodrigo Morales
  0 siblings, 1 reply; 4+ messages in thread
From: Eli Zaretskii @ 2022-11-20 10:52 UTC (permalink / raw)
  To: Rodrigo Morales; +Cc: 59408

> From: Rodrigo Morales <moralesrodrigo1100@gmail.com>
> Date: Sun, 20 Nov 2022 05:35:34 -0500
> 
> I've attached a file named "main.py". I've tried opening it with
> "emacs -Q main.py" in a tty and Emacs infinitely loads.
> 
> # Reproducing the bug
> 
> 1. Open the file I've attached in this message with "emacs -Q main.py".
> 
> At this point, Emacs will infinitely load (at least that's what I can
> infer since I waited 30 seconds and then decided to kill the process)

Thanks.  I can reproduce this in Emacs 28, but not in Emacs 29.  So I think
this bug was already fixed for the upcoming Emacs 29 release.

> It's worth mentioning that the attached file is a simplified version
> of the file that I was editing. When I first found this bug, I was
> editing a .py file with more lines and I found this infinite loading
> when I executed M-x occur and searched for any string.

Can you try the master branch of the Emacs Git repository, and see if your
actual Python file loads reasonably fast with Emacs 29?





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

* bug#59408: Emacs infinitely load when opening .py file
  2022-11-20 10:52 ` Eli Zaretskii
@ 2022-11-20 16:49   ` Rodrigo Morales
  2022-11-20 17:17     ` Eli Zaretskii
  0 siblings, 1 reply; 4+ messages in thread
From: Rodrigo Morales @ 2022-11-20 16:49 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: 59408

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

> Can you try the master branch of the Emacs Git repository, and see if
> your actual Python file loads reasonably fast with Emacs 29?

Done. I compiled Emacs from master branch, and I didn't find that
issue when opening my actual Python file, so, as you said, it seems
that the problem has been fixed in Emacs 29.

For the record, I compiled Emacs from the commit shown below (last
commit in master branch as of the time of this writing)

```
$ git log -n 1
commit 8874cd908c0ea0e2200f6f4f596bf645e76a0c0c (HEAD -> master,
origin/master, origin/HEAD)
Author: Po Lu <luangruo@yahoo.com>
Date:   Sun Nov 20 21:01:10 2022 +0800

    Coalesce duplicate scroll valuator handling code

    Also, write more commentary.

    * src/xterm.c (xi_populate_scroll_valuator): New function.
    Describe the meaning of each field in xi_scroll_valuator_t.
    (xi_populate_device_from_info, xi_handle_new_classes): Factor
    out duplicate code to that function.
```

On Sun, Nov 20, 2022 at 5:52 AM Eli Zaretskii <eliz@gnu.org> wrote:

> > From: Rodrigo Morales <moralesrodrigo1100@gmail.com>
> > Date: Sun, 20 Nov 2022 05:35:34 -0500
> >
> > I've attached a file named "main.py". I've tried opening it with
> > "emacs -Q main.py" in a tty and Emacs infinitely loads.
> >
> > # Reproducing the bug
> >
> > 1. Open the file I've attached in this message with "emacs -Q main.py".
> >
> > At this point, Emacs will infinitely load (at least that's what I can
> > infer since I waited 30 seconds and then decided to kill the process)
>
> Thanks.  I can reproduce this in Emacs 28, but not in Emacs 29.  So I think
> this bug was already fixed for the upcoming Emacs 29 release.
>
> > It's worth mentioning that the attached file is a simplified version
> > of the file that I was editing. When I first found this bug, I was
> > editing a .py file with more lines and I found this infinite loading
> > when I executed M-x occur and searched for any string.
>
> Can you try the master branch of the Emacs Git repository, and see if your
> actual Python file loads reasonably fast with Emacs 29?
>

[-- Attachment #2: Type: text/html, Size: 2740 bytes --]

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

* bug#59408: Emacs infinitely load when opening .py file
  2022-11-20 16:49   ` Rodrigo Morales
@ 2022-11-20 17:17     ` Eli Zaretskii
  0 siblings, 0 replies; 4+ messages in thread
From: Eli Zaretskii @ 2022-11-20 17:17 UTC (permalink / raw)
  To: Rodrigo Morales; +Cc: 59408-done

> From: Rodrigo Morales <moralesrodrigo1100@gmail.com>
> Date: Sun, 20 Nov 2022 11:49:15 -0500
> Cc: 59408@debbugs.gnu.org
> 
> > Can you try the master branch of the Emacs Git repository, and see if
> > your actual Python file loads reasonably fast with Emacs 29?
> 
> Done. I compiled Emacs from master branch, and I didn't find that
> issue when opening my actual Python file, so, as you said, it seems
> that the problem has been fixed in Emacs 29.
> 
> For the record, I compiled Emacs from the commit shown below (last
> commit in master branch as of the time of this writing)
> 
> ```
> $ git log -n 1
> commit 8874cd908c0ea0e2200f6f4f596bf645e76a0c0c (HEAD -> master, origin/master, origin/HEAD)
> Author: Po Lu <luangruo@yahoo.com>
> Date:   Sun Nov 20 21:01:10 2022 +0800

Great, thanks for testing.  I'm therefore closing this bug.





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

end of thread, other threads:[~2022-11-20 17:17 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-11-20 10:35 bug#59408: Emacs infinitely load when opening .py file Rodrigo Morales
2022-11-20 10:52 ` Eli Zaretskii
2022-11-20 16:49   ` Rodrigo Morales
2022-11-20 17:17     ` 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).