-
-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Emacs is freezed at switch #28
Comments
Same here. When it happens, the process is spinning with 100% CPU utlization. |
Hey thanks for reporting, unfortunatelly I'm tend to get behind maintaining circadian.el. If one of you feels keen enough to debug this, it would be highly appreciated. |
Cool idea, but emacs just freezes for minutes every time we switch. See guidoschmidt/circadian.el#28.
Mine didn't freeze, but Emacs was super-slow for a while. I caught the reason with a profiler (so nice to have the profiler on a hotkey!): 57% CPU on When Emacs was snappy again, I noted the time was 18:01. So perhaps it keeps running for the whole minute? Test specifying the time as 18:00:00 instead of just 18:00. |
I found something interesting, it seems that Emacs' That may or may not be related. If it is, the source of the error must be that circadian is re-scheduling the same theme until the clock is definitely greater. I propose changing the little |
same here. It's cause huge issue in CPU usage on windows. |
If you haven't been able to maintain the package, would you mind if I step up as a maintainer? I've been using this package for almost more than an year and would rather not let this die. |
@divyaranjan1905 happy to accept pull requests or even simple findings here in the ticket. I'm just updating my Windows Emacs to 29.3 now and will test a bit + see how it behaves on my Macbook. |
Ok changing this to Line 105 in 06f3cda
I also couldn't yet reproduce high CPU usage on my macOS system 😢 ... I think we first need to find a reliable way to reproduce this bug (+ which Emacs version on which OS) |
Indeed it looks like |
* EDIT/circadian.el: add print statement to circadian-activate-latest-theme * FIX: potential fix for #28 * FIX/test.el: move timezone test to end * EDIT/.github/workflows/ci.yml: drop Emacs 26.3 support * EDIT/circadian.el: moved check for already enabled theme from `circadian-enable-theme` to `circadian-activate-latest-theme` * EDIT: cleanup
Your last release reintroduced the freeze with Emacs 29.3. Other than using a kill command, nothing is possible via Emacs mini buffer. There is a continues update about the next run time in the minibuffer making it unusable. |
It does not freeze for me. Emacs 30.0.50. Although it does complain about calendar-latitude and longitude, even though my |
* Create FUNDING.yml * PERF/circadian.el: use memoized sunset & sunrise times (#29) * Update issue templates * EDIT: ignore :sunrise and :sunset, if calendar lat/lng settings are missing * FIX: correct testing, filter :sunrise and :sunset if calendar lat/lng is not set * FIX/test.el: re-enable test-circadian-setup-benchmark * FIX/test.el: move timezone test to the end as it changes lat lng * EDIT: check for theme lists to support #16 * FIX/test.el: typo * FIX 28: emacs is freezed at switch (#31) * EDIT/circadian.el: add print statement to circadian-activate-latest-theme * FIX: potential fix for #28 * FIX/test.el: move timezone test to end * EDIT/.github/workflows/ci.yml: drop Emacs 26.3 support * EDIT/circadian.el: moved check for already enabled theme from `circadian-enable-theme` to `circadian-activate-latest-theme` * EDIT: cleanup * FIX: after merge * FIX: remove print statements, make sure timer runs only once * FIX: timer issue + rename circadian-activate-latest-theme to circadian-activate * FIX/circadian.el: proper use of new `circadian-activate-and-schedule` * FIX/test.el: adjust tests to use new API * DOC/README.md: adjust usage section * DOC/README.md * FIX: use format-time-string * FIX: improve timer scheduling * FIX: wrong function in timer * FIX: solve recursive timer calls with timer variable + cancel-timer * FIX/DOC/README.md: proper inner list for random selection from theme list * FIX: endless loop #33 + code cleanup, adjust tests * EDIT: introduce circadian-verbose + circadian-stop * FIX: cleanup, remove circadian-- prefix in favor of single dash prefix * FIX: disable-theme only if requested theme is not part of custom-enabled-themes * FIX: check if next run is today or tomorrow * EDIT/test.el: extend test-circadian-time-comparisons * FIX/circadian.el: ensure a single timer + timer is always set * EDIT/README.md: hint about `circadian-verbose` * FIX #32: proper time zone settings according to Emacs documentation * EDIT/circadian.el: remove print statement * FIX/test.el * UPGRADE/.github: upgrade actions/checkout + actions/cache to version 4 * FIX/circadian.el: check for timer nil + enable theme -> set timer to nil * FIX/circadian.el: proper canceling of previous timer * EDIT/circadian.el: update version in comment --------- Co-authored-by: StrawberryTea <luneth1314@gmail.com>
Hello!
I have a problem - Emacs is completely freezed while swithing process. Theme is swithed but Emacs doesn't respond at all.
Related config:
Full config
appkit-2299.50 Version 13.3.1 (a) (Build 22E772610a)) of 2023-05-04
MacOS 13.4.1 (22F82)
Circadian: 52e336d
Ef-themes: 27bf0ff4d9218c382fbaa512efb754f19b667678
cairo version 1.16.0) of 2023-06-04
Ubuntu 20.04.6 LTS
Circadian: 52e336d
Ef-themes: 27bf0ff4d9218c382fbaa512efb754f19b667678
The text was updated successfully, but these errors were encountered: