Skip to content

[Bug] Memory leak #749

Description

@varna9000

Thank you for the bug report

  • I am using the latest version of doom-modeline related packages.
  • I checked FAQ.
  • You may also try reproduce the issue using clean environment and minimal configurations with
    the command emacs -Q.

Bug description

I'm using Emacs 29.4, built from emacsformacosx.com on Macbook M1. I'm often editing files over VPN with TRAMP. For some reason doom-modeline causes memory leak (Emacs using 80GB ram!) and eventually freezing Emacs when the network is lost/no connenction to the edited file.

I've started commenting my config until I reached doom-modeline. Commenting it, solves the issue. Uncommenting it brings it back. This is the relevant config.

(use-package doom-modeline
  :ensure t
  :init (doom-modeline-mode 1))

Steps to reproduce

  1. Turn VPN on, load a file over TRAMP(ssh) from the vpn’ed server.
  2. Turn off VPN.
  3. Close MacBook lid.
  4. Open MacBook lid.
  5. RAM usage of Emacs start increasing as hell
  6. MacOS marks the app as not-responding when RAM usage reaches around 79GB (apparently OS limit)

Expected behavior

Tramp fallback with no such file/connection error.

OS

MacOS

Emacs Version

29

Emacs Configurations

custom

Error callstack

I can't debug as the app freezes. The only way out. is ti kill it.

Anything else

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions