microsoft / PowerToys

Windows system utilities to maximize productivity
MIT License
111.9k stars 6.59k forks source link

Error keyboard manager #34798

Open IamVokope opened 2 months ago

IamVokope commented 2 months ago

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

similar-issues-ai[bot] commented 2 months ago

We've found some similar issues:

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.

marcorotondi commented 2 months ago

I have some problem. I have 2 key mapping and not works on system start. Start to woork after disable and re-enable toggle

gokcekantarci commented 2 months ago

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.

  1. Reboot your computer or just restart Powertoys.

  2. Wait to start Powertoys.(You can check system tray icon at the bottom right of the screen) System tray

  3. After the Powertoys icon appears, wait for 20 seconds before pressing any key.

  4. 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,

marcorotondi commented 2 months ago

Hi @gokcekantarci

OK I found when Keyboard Manager hang.

I map tilde and back-tick with ctrl + \ and ctrl + ' as images

image

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

image

IamVokope commented 2 months ago

Привет, у меня есть вопросы по этой проблеме. Я пытаюсь найти первопричину проблемы. Я воспроизвел похожую ошибку после попытки быстро использовать ярлык при запуске Powertoys. Я прошу вас выполнить следующие шаги.

  1. Перезагрузите компьютер или просто перезапустите Powertoys.
  2. Дождитесь запуска Powertoys. (Вы можете проверить значок на панели задач в правом нижнем углу экрана) Системный лоток
  3. После появления значка Powertoys подождите 20 секунд, прежде чем нажимать любую клавишу.
  4. Нажмите ваши сочетания клавиш. Сочетание клавиш работает так, как ожидалось? Если нет, попробуйте еще раз, на этот раз подождав немного дольше?

Если вы столкнулись с той же ошибкой, можете ли вы заблокировать и разблокировать Windows и снова нажать сочетания клавиш, чтобы проверить, правильно ли она работает?

Спасибо,

Everything is working for me again, thank you very much :)

chaoscreater commented 2 months ago

Same issue. Constantly restarting Power Toys is not the solution here. This was never a problem in older versions.

gokcekantarci commented 2 months ago

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.

gokcekantarci commented 2 months ago

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: Task Manager

  1. Run PowerToys
  2. Open Task manager and find "PowerToys.KeyboardManagerEngine"
  3. Restart PowerToys and dont press any key until you see "PowerToys.KeyboardManagerEngine" again
  4. 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.

spaze commented 2 months ago

I'm facing the same problem, it started with 0.84.

  1. Run PowerToys
  2. Open Task manager and find "PowerToys.KeyboardManagerEngine"
  3. Restart PowerToys and dont press any key until you see "PowerToys.KeyboardManagerEngine" again
  4. 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:

image

And this while using an English keyboard:

image

Mostly using the first two shortcuts. Hope that helps.

IamVokope commented 2 months ago

Привет, у меня есть вопросы по этой проблеме. Я пытаюсь найти первопричину проблемы. Я воспроизвел похожую ошибку после попытки быстро использовать ярлык при запуске Powertoys. Я прошу вас выполнить следующие шаги.

  1. Перезагрузите компьютер или просто перезапустите Powertoys.
  2. Дождитесь запуска Powertoys. (Вы можете проверить значок на панели задач в правом нижнем углу экрана) Системный лоток
  3. После появления значка Powertoys подождите 20 секунд, прежде чем нажимать любую клавишу.
  4. Нажмите ваши сочетания клавиш. Сочетание клавиш работает так, как ожидалось? Если нет, попробуйте еще раз, на этот раз подождав немного дольше?

Если вы столкнулись с той же ошибкой, можете ли вы заблокировать и разблокировать 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.

gokcekantarci commented 2 months ago

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.

Can you share bugreport please?

/bugreport

spaze commented 2 months ago

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.

gokcekantarci commented 2 months ago

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.

marcorotondi commented 2 months ago

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

gokcekantarci commented 2 months ago

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.

spaze commented 2 months ago

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

spaze commented 2 months ago

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.

spaze commented 2 months ago

Is there anything more we could provide that would help to fix it? :-)

marcorotondi commented 2 months ago

For Me. no!

gokcekantarci commented 2 months ago

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.

spaze commented 2 months ago

Thanks @gokcekantarci! (Just didn't want the issue to be auto-closed, no pressure 😊)

IamVokope commented 1 month ago

На данный момент этого достаточно. Спасибо! Я изучаю проблему. Мы решим ее как можно скорее и исправим в следующих релизах.

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.

gokcekantarci commented 1 month ago

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.

marcorotondi commented 2 weeks ago

@gokcekantarci any news related this PR not alredy merged?

Thanks