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

Error keyboard manager #34798

Open
IamVokope opened this issue Sep 11, 2024 · 25 comments
Open

Error keyboard manager #34798

IamVokope opened this issue Sep 11, 2024 · 25 comments
Assignees
Labels
Issue-Bug Something isn't working Needs-Team-Response An issue author responded so the team needs to follow up Needs-Triage For issues raised to be triaged and prioritized by internal Microsoft teams

Comments

@IamVokope
Copy link

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

@IamVokope IamVokope added Issue-Bug Something isn't working Needs-Triage For issues raised to be triaged and prioritized by internal Microsoft teams labels Sep 11, 2024
Copy link

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
Copy link

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 gokcekantarci self-assigned this Sep 19, 2024
@gokcekantarci
Copy link
Contributor

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
Copy link

marcorotondi commented Sep 19, 2024

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
Copy link
Author

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

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

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

Спасибо,

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

@chaoscreater
Copy link

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

@gokcekantarci
Copy link
Contributor

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
Copy link
Contributor

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
Copy link

spaze commented Sep 20, 2024

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
Copy link
Author

Привет, у меня есть вопросы по этой проблеме. Я пытаюсь найти первопричину проблемы. Я воспроизвел похожую ошибку после попытки быстро использовать ярлык при запуске 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
Copy link
Contributor

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

@microsoft-github-policy-service microsoft-github-policy-service bot added Needs-Author-Feedback The original author of the issue/PR needs to come back and respond to something and removed Needs-Triage For issues raised to be triaged and prioritized by internal Microsoft teams labels Sep 23, 2024
@spaze
Copy link

spaze commented Sep 24, 2024

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
Copy link
Contributor

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
Copy link

marcorotondi commented Sep 24, 2024

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
Copy link
Contributor

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
Copy link

spaze commented Sep 24, 2024

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
Copy link

spaze commented Sep 24, 2024

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.

@microsoft-github-policy-service microsoft-github-policy-service bot added the Status-No recent activity no activity in the past 5 days when follow up's are needed label Sep 30, 2024
@spaze
Copy link

spaze commented Sep 30, 2024

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

@microsoft-github-policy-service microsoft-github-policy-service bot removed the Status-No recent activity no activity in the past 5 days when follow up's are needed label Sep 30, 2024
@marcorotondi
Copy link

For Me.
no!

@gokcekantarci
Copy link
Contributor

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
Copy link

spaze commented Sep 30, 2024

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

@microsoft-github-policy-service microsoft-github-policy-service bot added the Status-No recent activity no activity in the past 5 days when follow up's are needed label Oct 5, 2024
@IamVokope
Copy link
Author

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

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.

@microsoft-github-policy-service microsoft-github-policy-service bot added Needs-Triage For issues raised to be triaged and prioritized by internal Microsoft teams Needs-Team-Response An issue author responded so the team needs to follow up and removed Needs-Author-Feedback The original author of the issue/PR needs to come back and respond to something Status-No recent activity no activity in the past 5 days when follow up's are needed labels Oct 5, 2024
@gokcekantarci
Copy link
Contributor

Hi @IamVokope,

#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
Copy link

@gokcekantarci any news related this PR not alredy merged?

Thanks

@chaoscreater
Copy link

@gokcekantarci it seems the merge got blocked?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Issue-Bug Something isn't working Needs-Team-Response An issue author responded so the team needs to follow up Needs-Triage For issues raised to be triaged and prioritized by internal Microsoft teams
Projects
Status: No status
Development

No branches or pull requests

5 participants