Skip to content

Fix macro scheduler lockup.#1579

Merged
kareltucek merged 1 commit into
masterfrom
fix_macro_scheduler_lockup
Jun 23, 2026
Merged

Fix macro scheduler lockup.#1579
kareltucek merged 1 commit into
masterfrom
fix_macro_scheduler_lockup

Conversation

@kareltucek

Copy link
Copy Markdown
Collaborator

This would happen when macro end aligns with the macro quota running out.

This is reproducible with this config by flashing
UserConfiguration_macro_deadlock.json onto an uhk 80 and then repeatedly tapping backspace. The keyboard freezes in the Init keymap.

Changelog:

  • Fix: macro scheduler bug that would make uhk lock up on macros of a certain length.

This would happen when macro end aligns with the macro quota running out.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Fixes a macro scheduler edge case where the macro engine could stop being scheduled when a macro finishes exactly as the scheduler’s execution quota is exhausted, leading to a lockup (repro described in the PR).

Changes:

  • Keep EventVector_MacroEngine asserted when SchedulerPostponing is true, even if no macros are currently awake.

@kareltucek
kareltucek merged commit 977d9f3 into master Jun 23, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants