[KeyboardManager] Error keyboard manager
Microsoft PowerToys version
0.84.1
Installation method
Microsoft Store
Running as admin
None
Area(s) with issue?
Keyboard Manager
Steps to reproduce
The reassigned keys do not work after restarting the system. It is necessary to force open the settings section of the Keyboard Manager and press the on/off function. There has already been a similar problem. She was fixed and now she's back again.
✔️ Expected Behavior
No response
❌ Actual Behavior
No response
Other Software
No response
We've found some similar issues:
- #30285 , similarity score: 90%
- #26840 , similarity score: 83%
- #25590 , similarity score: 82%
- #28608 , similarity score: 82%
- #27112 , similarity score: 81%
- #22833 , similarity score: 81%
If any of the above are duplicates, please consider closing this issue out and adding additional context in the original issue.
Note: You can give me feedback by 👍 or 👎 this comment.
I have some problem. I have 2 key mapping and not works on system start. Start to woork after disable and re-enable toggle
Hi, I have questions about the issue. I'm trying to find the root cause of the problem. I reproduced a similar bug after trying to use a shortcut quickly when starting Powertoys. I request you to follow the steps below.
-
Reboot your computer or just restart Powertoys.
-
Wait to start Powertoys.(You can check system tray icon at the bottom right of the screen)
-
After the Powertoys icon appears, wait for 20 seconds before pressing any key.
-
Press your shortcut keys. Does shortcut work as expected? If not, can you please try again, this time waiting a little longer?
Also if you encounter same bug, can you lock and unlock Windows and press the shortcut keys again to check if it is working properly?
Thanks,
Hi @gokcekantarci
OK I found when Keyboard Manager hang.
I map tilde and back-tick with ctrl + \ and ctrl + ' as images
if i press AltGr + ' or AltGr + ì keyboard manager hangs. to restard normal working mapping I need to disable and enable on powertoys app
I use Windows 11 with it keyboard
Привет, у меня есть вопросы по этой проблеме. Я пытаюсь найти первопричину проблемы. Я воспроизвел похожую ошибку после попытки быстро использовать ярлык при запуске Powertoys. Я прошу вас выполнить следующие шаги.
- Перезагрузите компьютер или просто перезапустите Powertoys.
- Дождитесь запуска Powertoys. (Вы можете проверить значок на панели задач в правом нижнем углу экрана)
![]()
- После появления значка Powertoys подождите 20 секунд, прежде чем нажимать любую клавишу.
- Нажмите ваши сочетания клавиш. Сочетание клавиш работает так, как ожидалось? Если нет, попробуйте еще раз, на этот раз подождав немного дольше?
Если вы столкнулись с той же ошибкой, можете ли вы заблокировать и разблокировать Windows и снова нажать сочетания клавиш, чтобы проверить, правильно ли она работает?
Спасибо,
Everything is working for me again, thank you very much :)
Same issue. Constantly restarting Power Toys is not the solution here. This was never a problem in older versions.
if i press AltGr + ' or AltGr + ì keyboard manager hangs. to restard normal working mapping I need to disable and enable on powertoys app
Hi @marcorotondi,
Thank you for your feedback.
This seems to be another problem with Alt Gr. I will also examine this problem.
Same issue. Constantly restarting Power Toys is not the solution here. This was never a problem in older versions.
Hi @chaoscreater,
Thank you for your feedback.
Can you follow these steps:
- Run PowerToys
- Open Task manager and find "PowerToys.KeyboardManagerEngine"
- Restart PowerToys and dont press any key until you see "PowerToys.KeyboardManagerEngine" again
- Try your shortcuts.
Check if shortcuts working as expected. If not please lock windows and unlock again. After that try shortcuts again.
If the problem still persists, please share the screenshot of the Keyboard Manager shortcuts with me and share the steps you see the issue so that I can test it.
I'm facing the same problem, it started with 0.84.
- Run PowerToys
- Open Task manager and find "PowerToys.KeyboardManagerEngine"
- Restart PowerToys and dont press any key until you see "PowerToys.KeyboardManagerEngine" again
- Try your shortcuts.
I have tried these steps by @gokcekantarci and while it brings back the shortcuts again, the PowerToys.KeyboardManagerEngine process probably crashes after a while as it disappears from task manager. Switching the Keyboard Manager in PowerToys settings on and off brings it back, and shortcuts work again. But after a while it crashes again.
This is my configuration while using a Czech keyboard:
And this while using an English keyboard:
Mostly using the first two shortcuts. Hope that helps.
Привет, у меня есть вопросы по этой проблеме. Я пытаюсь найти первопричину проблемы. Я воспроизвел похожую ошибку после попытки быстро использовать ярлык при запуске Powertoys. Я прошу вас выполнить следующие шаги.
- Перезагрузите компьютер или просто перезапустите Powertoys.
- Дождитесь запуска Powertoys. (Вы можете проверить значок на панели задач в правом нижнем углу экрана)
![]()
- После появления значка Powertoys подождите 20 секунд, прежде чем нажимать любую клавишу.
- Нажмите ваши сочетания клавиш. Сочетание клавиш работает так, как ожидалось? Если нет, попробуйте еще раз, на этот раз подождав немного дольше?
Если вы столкнулись с той же ошибкой, можете ли вы заблокировать и разблокировать Windows и снова нажать сочетания клавиш, чтобы проверить, правильно ли она работает?
Спасибо,
Either it seemed to me, or I turned the keyboard manager on/off before that, but it doesn't work for me again. Until I forcibly turn on/off the manager, then it does not work after starting the system.
I have tried these steps by @gokcekantarci and while it brings back the shortcuts again, the
PowerToys.KeyboardManagerEngineprocess probably crashes after a while as it disappears from task manager. Switching the Keyboard Manager in PowerToys settings on and off brings it back, and shortcuts work again. But after a while it crashes again.
Can you share bugreport please?
/bugreport
Can you share bugreport please?
Can you be more specific please? What file or folder from the .zip archive would help you?There's a lot of private information in the full bug report archive that I don't feel comfortable sharing neither privately nor publicly.
Can you be more specific please? What file or folder from the .zip archive would help you?There's a lot of private information in the full bug report archive that I don't feel comfortable sharing neither privately nor publicly.
I would appreciate it if you could share the Keyboard Manager folder if it is convenient for you. From there I will examine your logs and configuration.
I add my log:
ENGINE: [2024-09-16 07:59:08.318070] [p-16440] [t-15688] [info] keyboard-manager logger is initialized [2024-09-16 07:59:08.365112] [p-16440] [t-15688] [trace] SettingsHelper::LoadSettings() [2024-09-16 14:56:46.491627] [p-16440] [t-15688] [trace] ChordKeyboardHandler:keyEventList.size:5 [2024-09-16 14:56:47.369969] [p-16440] [t-15688] [error] --- ABORT [2024-09-16 14:56:47.370949] [p-16440] [t-15688] [error] Failed to get a symbol. Tentativo di accedere ad un indirizzo non valido. [2024-09-16 14:56:47.371031] [p-16440] [t-15688] [error] Failed to get a symbol. Tentativo di accedere ad un indirizzo non valido. [2024-09-16 14:56:47.371171] [p-16440] [t-15688] [error] Failed to get a symbol. Tentativo di accedere ad un indirizzo non valido. [2024-09-16 14:56:47.371198] [p-16440] [t-15688] [error] Failed to get a symbol. Tentativo di accedere ad un indirizzo non valido. [2024-09-16 14:56:47.371215] [p-16440] [t-15688] [error] Failed to get a symbol. Tentativo di accedere ad un indirizzo non valido. [2024-09-16 14:56:47.371233] [p-16440] [t-15688] [error] Failed to get a symbol. Tentativo di accedere ad un indirizzo non valido. [2024-09-16 14:56:47.371251] [p-16440] [t-15688] [error] Failed to get a symbol. Tentativo di accedere ad un indirizzo non valido. [2024-09-16 14:56:47.371268] [p-16440] [t-15688] [error] Failed to get a symbol. Tentativo di accedere ad un indirizzo non valido. [2024-09-16 14:56:47.371287] [p-16440] [t-15688] [error] Failed to get a symbol. Tentativo di accedere ad un indirizzo non valido. [2024-09-16 14:56:47.371353] [p-16440] [t-15688] [error] Failed to get a symbol. Tentativo di accedere ad un indirizzo non valido. [2024-09-16 14:56:47.371840] [p-16440] [t-15688] [error] Failed to get a symbol. Tentativo di accedere ad un indirizzo non valido. [2024-09-16 14:56:47.371861] [p-16440] [t-15688] [error] Failed to get a symbol. Tentativo di accedere ad un indirizzo non valido. [2024-09-16 14:56:47.371879] [p-16440] [t-15688] [error] Failed to get a symbol. Tentativo di accedere ad un indirizzo non valido. [2024-09-16 14:56:47.372095] [p-16440] [t-15688] [error] Failed to get a symbol. Tentativo di accedere ad un indirizzo non valido. [2024-09-16 14:56:47.372488] [p-16440] [t-15688] [error] Failed to get a symbol. Tentativo di accedere ad un indirizzo non valido. [2024-09-16 14:56:47.372511] [p-16440] [t-15688] [error] Failed to get a symbol. Tentativo di accedere ad un indirizzo non valido. [2024-09-16 14:56:47.372539] [p-16440] [t-15688] [error] Failed to get a symbol. Tentativo di accedere ad un indirizzo non valido. [2024-09-16 14:56:47.372731] [p-16440] [t-15688] [error] STACK TRACE C:\Users\rot\AppData\Local\PowerToys\KeyboardManagerEngine! C:\Users\rot\AppData\Local\PowerToys\KeyboardManagerEngine! C:\Users\rot\AppData\Local\PowerToys\KeyboardManagerEngine! C:\Users\rot\AppData\Local\PowerToys\KeyboardManagerEngine! C:\Users\rot\AppData\Local\PowerToys\KeyboardManagerEngine! C:\Users\rot\AppData\Local\PowerToys\KeyboardManagerEngine! C:\Users\rot\AppData\Local\PowerToys\KeyboardManagerEngine! C:\Users\rot\AppData\Local\PowerToys\KeyboardManagerEngine! C:\Users\rot\AppData\Local\PowerToys\KeyboardManagerEngine! C:\Users\rot\AppData\Local\PowerToys\KeyboardManagerEngine! C:\Windows\SYSTEM32!_chkstk C:\Windows\SYSTEM32!RtlFindCharInUnicodeString C:\Windows\SYSTEM32!RtlRaiseException C:\Windows\System32!RaiseException C:\Users\rot\AppData\Local\PowerToys\KeyboardManagerEngine! C:\Users\rot\AppData\Local\PowerToys\KeyboardManagerEngine! C:\Users\rot\AppData\Local\PowerToys\KeyboardManagerEngine! C:\Users\rot\AppData\Local\PowerToys\KeyboardManagerEngine! C:\Windows\System32!GetAsyncKeyState C:\Windows\System32!CreateSystemThreads C:\Windows\SYSTEM32!KiUserCallbackDispatcher C:\Windows\System32!NtUserGetMessage C:\Windows\System32!GetMessageW C:\Users\rot\AppData\Local\PowerToys\KeyboardManagerEngine! C:\Users\rot\AppData\Local\PowerToys\KeyboardManagerEngine! C:\Users\rot\AppData\Local\PowerToys\KeyboardManagerEngine! C:\Windows\System32!BaseThreadInitThunk C:\Windows\SYSTEM32!RtlUserThreadStart
[2024-09-16 14:57:10.661755] [p-31068] [t-8520] [info] keyboard-manager logger is initialized [2024-09-16 14:57:10.691723] [p-31068] [t-8520] [trace] SettingsHelper::LoadSettings() [2024-09-16 14:57:14.399773] [p-31068] [t-8520] [trace] ChordKeyboardHandler:keyEventList.size:5 [2024-09-16 19:25:20.170892] [p-31068] [t-34096] [trace] PowerToys runner exited. [2024-09-16 19:25:20.171008] [p-31068] [t-34096] [trace] Exiting KeyboardManager engine [2024-09-16 21:30:10.085679] [p-8044] [t-7308] [info] keyboard-manager logger is initialized [2024-09-16 21:30:10.132288] [p-8044] [t-7308] [trace] SettingsHelper::LoadSettings()
I update with full log for Keyboard Manager Keyboard Manager.zip
I add my log:
ENGINE: [2024-09-16 07:59:08.318070] [p-16440] [t-15688] [info] keyboard-manager logger is initialized [2024-09-16 07:59:08.365112] [p-16440] [t-15688] [trace] SettingsHelper::LoadSettings() [2024-09-16 14:56:46.491627] [p-16440] [t-15688] [trace] ChordKeyboardHandler:keyEventList.size:5 [2024-09-16 14:56:47.369969] [p-16440] [t-15688] [error] --- ABORT [2024-09-16 14:56:47.370949] [p-16440] [t-15688] [error] Failed to get a symbol. Tentativo di accedere ad un indirizzo non valido. [2024-09-16 14:56:47.371031] [p-16440] [t-15688] [error] Failed to get a symbol. Tentativo di accedere ad un indirizzo non valido. [2024-09-16 14:56:47.371171] [p-16440] [t-15688] [error] Failed to get a symbol. Tentativo di accedere ad un indirizzo non valido. [2024-09-16 14:56:47.371198] [p-16440] [t-15688] [error] Failed to get a symbol. Tentativo di accedere ad un indirizzo non valido. [2024-09-16 14:56:47.371215] [p-16440] [t-15688] [error] Failed to get a symbol. Tentativo di accedere ad un indirizzo non valido. [2024-09-16 14:56:47.371233] [p-16440] [t-15688] [error] Failed to get a symbol. Tentativo di accedere ad un indirizzo non valido. [2024-09-16 14:56:47.371251] [p-16440] [t-15688] [error] Failed to get a symbol. Tentativo di accedere ad un indirizzo non valido. [2024-09-16 14:56:47.371268] [p-16440] [t-15688] [error] Failed to get a symbol. Tentativo di accedere ad un indirizzo non valido. [2024-09-16 14:56:47.371287] [p-16440] [t-15688] [error] Failed to get a symbol. Tentativo di accedere ad un indirizzo non valido. [2024-09-16 14:56:47.371353] [p-16440] [t-15688] [error] Failed to get a symbol. Tentativo di accedere ad un indirizzo non valido. [2024-09-16 14:56:47.371840] [p-16440] [t-15688] [error] Failed to get a symbol. Tentativo di accedere ad un indirizzo non valido. [2024-09-16 14:56:47.371861] [p-16440] [t-15688] [error] Failed to get a symbol. Tentativo di accedere ad un indirizzo non valido. [2024-09-16 14:56:47.371879] [p-16440] [t-15688] [error] Failed to get a symbol. Tentativo di accedere ad un indirizzo non valido. [2024-09-16 14:56:47.372095] [p-16440] [t-15688] [error] Failed to get a symbol. Tentativo di accedere ad un indirizzo non valido. [2024-09-16 14:56:47.372488] [p-16440] [t-15688] [error] Failed to get a symbol. Tentativo di accedere ad un indirizzo non valido. [2024-09-16 14:56:47.372511] [p-16440] [t-15688] [error] Failed to get a symbol. Tentativo di accedere ad un indirizzo non valido. [2024-09-16 14:56:47.372539] [p-16440] [t-15688] [error] Failed to get a symbol. Tentativo di accedere ad un indirizzo non valido. [2024-09-16 14:56:47.372731] [p-16440] [t-15688] [error] STACK TRACE C:\Users\rot\AppData\Local\PowerToys\KeyboardManagerEngine! C:\Users\rot\AppData\Local\PowerToys\KeyboardManagerEngine! C:\Users\rot\AppData\Local\PowerToys\KeyboardManagerEngine! C:\Users\rot\AppData\Local\PowerToys\KeyboardManagerEngine! C:\Users\rot\AppData\Local\PowerToys\KeyboardManagerEngine! C:\Users\rot\AppData\Local\PowerToys\KeyboardManagerEngine! C:\Users\rot\AppData\Local\PowerToys\KeyboardManagerEngine! C:\Users\rot\AppData\Local\PowerToys\KeyboardManagerEngine! C:\Users\rot\AppData\Local\PowerToys\KeyboardManagerEngine! C:\Users\rot\AppData\Local\PowerToys\KeyboardManagerEngine! C:\Windows\SYSTEM32!_chkstk C:\Windows\SYSTEM32!RtlFindCharInUnicodeString C:\Windows\SYSTEM32!RtlRaiseException C:\Windows\System32!RaiseException C:\Users\rot\AppData\Local\PowerToys\KeyboardManagerEngine! C:\Users\rot\AppData\Local\PowerToys\KeyboardManagerEngine! C:\Users\rot\AppData\Local\PowerToys\KeyboardManagerEngine! C:\Users\rot\AppData\Local\PowerToys\KeyboardManagerEngine! C:\Windows\System32!GetAsyncKeyState C:\Windows\System32!CreateSystemThreads C:\Windows\SYSTEM32!KiUserCallbackDispatcher C:\Windows\System32!NtUserGetMessage C:\Windows\System32!GetMessageW C:\Users\rot\AppData\Local\PowerToys\KeyboardManagerEngine! C:\Users\rot\AppData\Local\PowerToys\KeyboardManagerEngine! C:\Users\rot\AppData\Local\PowerToys\KeyboardManagerEngine! C:\Windows\System32!BaseThreadInitThunk C:\Windows\SYSTEM32!RtlUserThreadStart
[2024-09-16 14:57:10.661755] [p-31068] [t-8520] [info] keyboard-manager logger is initialized [2024-09-16 14:57:10.691723] [p-31068] [t-8520] [trace] SettingsHelper::LoadSettings() [2024-09-16 14:57:14.399773] [p-31068] [t-8520] [trace] ChordKeyboardHandler:keyEventList.size:5 [2024-09-16 19:25:20.170892] [p-31068] [t-34096] [trace] PowerToys runner exited. [2024-09-16 19:25:20.171008] [p-31068] [t-34096] [trace] Exiting KeyboardManager engine [2024-09-16 21:30:10.085679] [p-8044] [t-7308] [info] keyboard-manager logger is initialized [2024-09-16 21:30:10.132288] [p-8044] [t-7308] [trace] SettingsHelper::LoadSettings()
Can you share default.json file too under Keyboard Manager folder.
I would appreciate it if you could share the Keyboard Manager folder
Thanks, that would work :-) Here's the folder: PowerToysReport_2024-09-23-14-08-32.zip
I can quite often reproduce it (often as in probably always): When using a Czech keyboard, I press AltGr+L, the PowerToys.KeyboardManagerEngine process crashes either immediately, or in a second or two. I can even tell it crashed as the letter that's supposed to appear in the input box after pressing the AltGr+L combination (Ł) appears with a slight delay when the process crashes immediately, or the next letter I press after the combination appears after a slight delay.
The process also crashes after pressing AltGr+the key right of L (probably " but my keyboard has like 17.5 labels on that key 😅) and probably also other keys. It doesn't matter how long I wait before typing a letter after starting the process back after toggling the switch off and back on in PoeerToys setting. Tried waiting for a minute then typed my AltGr combinations, more than one, and it took a few seconds but then it crashed again.
Is there anything more we could provide that would help to fix it? :-)
For Me. no!
These are enough for now. Thank you! I'm investigating the problem. We will solve it as soon as possible and fix it in next releases.
Thanks @gokcekantarci! (Just didn't want the issue to be auto-closed, no pressure 😊)
На данный момент этого достаточно. Спасибо! Я изучаю проблему. Мы решим ее как можно скорее и исправим в следующих релизах.
A new version 0.85 was released and there was great hope that the problem with the keyboard manager had been fixed... but alas, the problem is there, which is very upsetting and not only for me.
Hi @IamVokope,
https://github.com/microsoft/PowerToys/pull/35201 I fixed the issue and opened PR after 0.85 release. I'm sorry about that. It will be in next releases after it is reviewed and approved.
@gokcekantarci any news related this PR not alredy merged?
Thanks
@gokcekantarci it seems the merge got blocked?
@haoliuu please refer to https://github.com/microsoft/PowerToys/pull/35201 to the context, let's re-prioritize this fixing. Please share out detailed schedule later when you have it.
@spaze Thank you for the comment in https://github.com/microsoft/PowerToys/pull/35201#issuecomment-2761605099. I tried to reproduce the problem following the Validation Steps (attached below) in PR https://github.com/microsoft/PowerToys/pull/35201 but I could not replicate the issue. However, I find the problem described in this issue might be related to https://github.com/microsoft/PowerToys/issues/17035.
Bug 1 Test Steps:
Set KBM shortcuts.
Close PowerToys.
Press AltGR and dont release.
Open Powertoys.
Press Action keys. Check shortcuts don't work.
Release all keys and press again shortcuts. Check this time shortcuts work properly.
Bug 2 Test Steps:
Set keyboard layout to Italian (Italy)
Set KBM shortcuts as above in screenshot.
Press AltGr + I and check X is pressed.
Release only I and press " \ " or " ' " . Check related text is sent. ( ■ , ... )
All shortcuts above have same AltGr modifier keys. Test with combination of those shortcuts working properly.
I checked the cases reported in this issue. It seems all remappings are related to Left/Right Modifier keys, e.g., AltGr. The "crash" here might be caused by the Modifier key getting stuck, which makes it feel like the KBM is crashing and not responding.
Here's the fix for modifier key stuck issue https://github.com/microsoft/PowerToys/pull/37930. It's approved, but we need to wait until the .90 release is fully released before we can merge it. (It's not included in .90 but will be in next release after merge.) Could you please pull and test if you can still reproduce the problem with that fix after we merge it? Thank you!
Hi @haoliuu and thanks for the update. I'll happily check it once released, however the problem doesn't seem to be related to a modifier key getting stuck. In my case the process really crashes, it disappears from the task list, and all other keyboard mappings stop working, even the ones that do not use any modifier key. I have Caps lock mapped to None (see my mapping here) and after the crash I can press it and it will work as Caps lock does. But I'll confirm after that fix is released. Thanks!
@haoliuu I can confirm this is still happening with 0.91.0. After some time, the PowerToys.KeyboardManagerEngine crashes.
@haoliuu I can confirm this is still happening with 0.91.0. After some time, the
PowerToys.KeyboardManagerEnginecrashes.
I can confirm as well. Here's my settings: