-
Notifications
You must be signed in to change notification settings - Fork 170
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
wvkbd crashes when touching a key #1355
Comments
Is it a problem of |
You should share the debug log output, the most important part is in the debug output of Smithay, which will tell you that the xkbcommon call failed. |
Do I need to do something or do I just check the system log? |
I have replicated this on Cosmic-comp and niri, this is my post from wvkbd below, Same thing applies I can grab squeekboard logs if necessary since it seems to work. I added some fprintfs to make it easier to find since I wanted to take a look at this when I could too
seems to be this line https://github.com/jjsullivan5196/wvkbd/blob/8106d7606d5d0ea24d23b3f0fadeafe7e6e528f6/keyboard.c#L391 Keymap does seem to be sent first which is odd. EDIT: let me know if you want squeekboards logs, I need to reset my compositor so I havent provided them yet but can if needed. EDIT2: looks like this was also reported to smithay so it seems like cosmic-comp might not be the only issue |
@Quackdoc I don't think the issue is with the keymap being sent first. With debug logs included you should get an error that the keymap could not be loaded, since it's invalid. The reason why the "mods before keymap" error is emitted is because no valid keymap is ever received. |
Yeah I booted niri and cosmic-comp into nested mode and both of them spit this error
Any more steps I can go to debug this aside from patching smithay to print out whatever this is? |
The offset will refer to this string: https://github.com/jjsullivan5196/wvkbd/blob/8106d7606d5d0ea24d23b3f0fadeafe7e6e528f6/keymap.mobintl.h#L9 . Your debug output showed:
So I would guess 61418 is Wvkbd < 0.14 used to send too many |
Looking at the xkbcommon-rs code, it looks like Wvkbd sends no Should wvkbd send a Here's a patch for wvkbd you can try to see if it resolves the issue: jjsullivan5196/wvkbd@master...issue70 , but I think that may be patching the wrong thing (also considering other compositors like sway, wayfire, hyprland have no issues) and we'd better look at xkbcommon-rs (or I may be missing some handling in the middle in smithay itself). |
I can confirm the patch does indeed get wvkbd working on cosmic. |
@proycon is there something blocking that patch from being merged upstream? It would be nice to have support for it. or should this be forwarded to |
The bug is in xkbcommon-rs yes, and it should be solved there.
|
I had this in
catacomb
.Is it maybe possible for Smithay to remove trailing \0s in a keymap and strip them?
Or whatever fixes this.
The text was updated successfully, but these errors were encountered: