Skip to content
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

Bug: sleeping/closing lid on macOS can cause crash #1357

Open
2 tasks done
JasonBoyett opened this issue Nov 16, 2024 · 1 comment
Open
2 tasks done

Bug: sleeping/closing lid on macOS can cause crash #1357

JasonBoyett opened this issue Nov 16, 2024 · 1 comment
Assignees
Labels
bug Something isn't working macos Issue pertains to macos; jtroo has no macOS devices and does not maintain the support for it.

Comments

@JasonBoyett
Copy link

Requirements

Describe the bug

I have an M1 MacBook pro and I run kanata as a launchctl service. every time I close my laptop for more than a minute or so I get a message in my terminal like this:
Screenshot 2024-11-16 at 1 15 16 AM

If I leave the computer closed for an extended time I will get many iterations of this message and Kanata will crash.

I am running the latest main branch of Kanata which I cloned and built from source.

Relevant kanata config

;; I'm not sure if my config has anything to do with the issue, but here it is:
(defcfg
  process-unmapped-keys yes
)

(defsrc
  f1   f2   f3   f4   f5   f6   f7   f8   f9   f10   f11   f12
  caps a s d f j k l ; lsft rsft
)
(defvar
  tap-time 150
  hold-time 200
)

(defalias
  ;; aliases for base layer
  escctrl (tap-hold 300 300 esc lctl)
  a (tap-hold $tap-time $hold-time a lmet)
  s (tap-hold $tap-time $hold-time s lalt)
  f (tap-hold $tap-time $hold-time f lsft)
  d (tap-hold $tap-time $hold-time d lctl)
  k (tap-hold $tap-time $hold-time k rctl)
  j (tap-hold $tap-time $hold-time j rsft)
  l (tap-hold $tap-time $hold-time l ralt)
  ; (tap-hold $tap-time $hold-time ; rmet)

  lscaps (tap-dance $tap-time (lsft caps))
  rscaps (tap-dance $tap-time (rsft caps))
  
)

(deflayer base
  brdn  brup  _    _    _    _   prev  pp  next  mute  vold  volu
  @escctrl @a @s @d @f @j @k @l @; @lscaps @rscaps 
)

(deflayer fn
  f1   f2   f3   f4   f5   f6   f7   f8   f9   f10   f11   f12
  @escctrl _ _ _ _ _ _ _ _ _ _
)

To Reproduce

  • run Kanata as a launchctl service
  • close laptop for extended period of time
  • open laptop and check terminal

Expected behavior

I expected nothing of note to happen. Just for my computer to wake from sleep normally.

Kanata version

built from source with latest main branch version

Debug logs

No response

Operating system

macOS 13.0.1

Additional context

No response

@JasonBoyett JasonBoyett added the bug Something isn't working label Nov 16, 2024
@jtroo
Copy link
Owner

jtroo commented Nov 16, 2024

Thanks for the details so far!

Please fix the title. Also please add any relevant text when the crash happens; e.g. is there just more of driver connected 0|1 with no other text, or is there different text?

@jtroo jtroo closed this as completed Nov 16, 2024
@jtroo jtroo reopened this Nov 16, 2024
@jtroo jtroo added the macos Issue pertains to macos; jtroo has no macOS devices and does not maintain the support for it. label Nov 16, 2024
@jtroo jtroo changed the title Bug: title_goes_here Bug: sleeping/closing lid on macOS can cause crash Nov 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working macos Issue pertains to macos; jtroo has no macOS devices and does not maintain the support for it.
Projects
None yet
Development

No branches or pull requests

2 participants