railwaycat / homebrew-emacsmacport

Emacs mac port formulae for the Homebrew package manager
BSD 2-Clause "Simplified" License
1.68k stars 126 forks source link

Memory leak from date change #371

Open sorawee opened 11 months ago

sorawee commented 11 months ago

I already submitted this bug report via email almost two years ago. Recently, I experienced this bug again, so I want to re-report on a different channel, in case the original report was missed.

I can consistently trigger a memory leak that rapidly consumes a lot of memory, freezing Emacs (and also the whole system if I don't kill the application).

Steps to reproduce:

  1. Open the Emacs GUI
  2. Go to "Date & Time" setting. Uncheck "Set date and time automatically" (I presume that this option is on by default). Adjust the date to tomorrow. Click "Save".
  3. Go back to the Emacs GUI. It should still function normally.
  4. Go to the "Date & Time" setting again. Check "Set date and time automatically".
  5. Go back to the Emacs GUI. It should now be unresponsive. On my computer, htop shows that "MEM%" gradually increases by 0.2% every refresh. If left alone, the system will soon be unresponsive.

The official Emacs release doesn't have this problem.