[Bug 58572] New: wine crashes on the wayland driver when virtual-keyboard-unstable-v1 is used
http://bugs.winehq.org/show_bug.cgi?id=58572 Bug ID: 58572 Summary: wine crashes on the wayland driver when virtual-keyboard-unstable-v1 is used Product: Wine Version: 10.12 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: winewayland Assignee: wine-bugs(a)winehq.org Reporter: azulbeae(a)icloud.com Distribution: --- https://wayland.app/protocols/virtual-keyboard-unstable-v1 This protocol is used by basically every wayland native/supported on-screen virtual keyboard, and by tools like https://git.sr.ht/~brocellous/wlrctl or https://github.com/atx/wtype Whenever virtual keyboard protocols are used when winewayland.drv is in use, wine immediately crashes. To replicate the issue, install wlrctl or wtype, then make them type any string while wine is running. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=58572 azulbeae(a)icloud.com changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |azulbeae(a)icloud.com -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=58572 sewn(a)disroot.org changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |sewn(a)disroot.org --- Comment #1 from sewn(a)disroot.org --- Created attachment 79128 --> http://bugs.winehq.org/attachment.cgi?id=79128 winecfg closing on wtype -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=58572 --- Comment #2 from sewn(a)disroot.org --- Can reproduce. Wine does not exactly crash, but the compositor closes the connection to Wine. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=58572 lompik <lompikvoila(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |lompikvoila(a)gmail.com --- Comment #3 from lompik <lompikvoila(a)gmail.com> --- Although i did not test with wtype/wlrctl, I think I hit the same bug described in https://bugs.winehq.org/show_bug.cgi?id=58585. I'll attach a patch that should fix both. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=58572 --- Comment #4 from lompik <lompikvoila(a)gmail.com> --- Created attachment 79129 --> http://bugs.winehq.org/attachment.cgi?id=79129 dont segv on null keyboard layout -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=58572 azulbeae@icloud.com changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|wine crashes on the wayland |winewayland assigns wrong |driver when |VK for virtual-keyboard |virtual-keyboard-unstable-v |keymaps whose keycodes do |1 is used |not match physical | |positions -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=58572 --- Comment #5 from azulbeae@icloud.com --- Issue is in dlls/winewayland.drv/wayland_keyboard.c but I don't know how to fix it 'correctly' due to how the virtual-keyboard-unstable-v1 protocol is written (compositors don't use any method of tagging it either it seems). add_xkb_layout in dlls/winewayland.drv/wayland_keyboard.c assigns the Windows VK for each keycode using the respective static table. This causes it to get read as VK ESC and exit winecfg. For some reason, it also cases unity games like Legends of Equestria to crash or exit. I think it also happened on some unreal game, but I remember being in the game's menu for that and forget the title, so it might just be an ESC to exit issue. WINEDEBUG=+key,+keyboard is most useful for testing/verifying. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=58572 azulbeae@icloud.com changed: What |Removed |Added ---------------------------------------------------------------------------- Version|10.12 |11.19 -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
participants (2)
-
WineHQ Bugzilla -
WineHQ Bugzilla