[Bug 58915] New: Some RPG Maker MZ games experience issues with input handling
http://bugs.winehq.org/show_bug.cgi?id=58915 Bug ID: 58915 Summary: Some RPG Maker MZ games experience issues with input handling Product: Wine Version: 10.17 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: win32u Assignee: wine-bugs(a)winehq.org Reporter: lorenzofer(a)live.it Distribution: --- Hi, Some RPG Maker games, epsecially the ones from the MZ variant, where sometimes some key press events aren't handled properly and are replayed in a delayed manner often more then once. Most games experience this issues in dialogue, where the dialogue start skipping fast without any user input, but there is a game Mansion Tour that is having issues even in the map or in battle mode. The +key log show that when this happen it register a KeyPRess but after the NtUserTranslateMessage 1 -> PostMessageW(0x300ba,WM_CHAR,<x>,001c0001) for <x> in L"\r" there is not corresponding KeyRelease. This key is the key that after other inputs start replaying more the once delayed. bisect shows d3cb94b543e8ccc4a6baa7a8a2c31142a7b1a814 is the first bad commit commit d3cb94b543e8ccc4a6baa7a8a2c31142a7b1a814 Author: Rémi Bernon <rbernon(a)codeweavers.com> Date: Fri Oct 3 10:46:25 2025 +0200 win32u: Check QS_DRIVER bit before calling ProcessEvents. dlls/win32u/message.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) while it doesn't revert cleanly, removing the if (check_internal_bits( QS_DRIVER )) before user_driver->pProcessEvents remove this regression -- 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=58915 Lorenzo Ferrillo <lorenzofer(a)live.it> changed: What |Removed |Added ---------------------------------------------------------------------------- Regression SHA1| |d3cb94b543e8ccc4a6baa7a8a2c | |31142a7b1a814 -- 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=58915 Lorenzo Ferrillo <lorenzofer(a)live.it> changed: What |Removed |Added ---------------------------------------------------------------------------- Distribution|--- |ArchLinux -- 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=58915 --- Comment #1 from Lorenzo Ferrillo <lorenzofer(a)live.it> --- This seems linked to the QS_DRIVER bits to be setted in msg_queue_poll_event but then removed from set_queue_mask. I checked that removing the bit clear from set_queue_mask correct the issue too (even if not correct) -- 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=58915 Austin English <austinenglish(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |regression -- 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=58915 Lorenzo Ferrillo <lorenzofer(a)live.it> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |rbernon(a)codeweavers.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=58915 --- Comment #2 from Lorenzo Ferrillo <lorenzofer(a)live.it> --- Hi Rémi Bernon, sorry I put you in the CC list becouse the bisected commit was yours. If there is need to test this game is a visible reproducer for me: https://kathinkapng.itch.io/mansion-tour -- 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=58915 --- Comment #3 from Rafał Mużyło <galtgendo(a)o2.pl> --- Dupe of bug 58908, though it seems the solution from bug 58893 won't help neither here nor there. -- 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=58915 --- Comment #4 from Lorenzo Ferrillo <lorenzofer(a)live.it> --- (In reply to Rafał Mużyło from comment #3)
Dupe of bug 58908, though it seems the solution from bug 58893 won't help neither here nor there.
The user that reported that bug reported that adding that XFlush worked for him, but it doesn't work here, not surprisingly. Seems another XFLush, somewhere near input handling should be needed. Not sure if the mix of poll and epoll can cause some issues. -- 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=58915 --- Comment #5 from Lorenzo Ferrillo <lorenzofer(a)live.it> --- (In reply to Lorenzo Ferrillo from comment #4)
(In reply to Rafał Mużyło from comment #3)
Dupe of bug 58908, though it seems the solution from bug 58893 won't help neither here nor there.
The user that reported that bug reported that adding that XFlush worked for him, but it doesn't work here, not surprisingly. Seems another XFLush, somewhere near input handling should be needed. Not sure if the mix of poll and epoll can cause some issues.
edit: for some reason I read the 2 bugs as the same, so the first part of the post before doesn't make much sense. -- 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=58915 --- Comment #6 from Rémi Bernon <rbernon(a)codeweavers.com> --- (In reply to Lorenzo Ferrillo from comment #2)
Hi Rémi Bernon, sorry I put you in the CC list becouse the bisected commit was yours.
If there is need to test this game is a visible reproducer for me: https://kathinkapng.itch.io/mansion-tour
I've tried that game but it doesn't seem to start, is there anything that needs to be installed first? I tried a couple of other itch.io games tagged as RPG Maker MZ but also not been able to reproduce the issue. Which desktop environment are you using? X11 or XWayland? Any IME involved maybe? Would you mind making a log with WINEDEBUG=+timestamp,+pid,+x11drv,+event,+win,+key,+msg,+message,+imm,+xim -- 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=58915 --- Comment #7 from Lorenzo Ferrillo <lorenzofer(a)live.it> --- Hi Rémi, This is under X11 and KDE Plasma 6.5.1. No IME involved. I didn't install any prerequisite for it to work (and prefix is new) -- 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=58915 --- Comment #8 from Lorenzo Ferrillo <lorenzofer(a)live.it> --- Created attachment 79616 --> http://bugs.winehq.org/attachment.cgi?id=79616 log with requested debug This is the requested log, with experiencing lost input in main menu and with fast skipping dialogue (generally triggered by Enter key, enter was one of the input skipped in main menu) in the new game scenario Added a -dxgi to prevent some spam from a semi stub dxgi function -- 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=58915 --- Comment #9 from Lorenzo Ferrillo <lorenzofer(a)live.it> --- of it may be important keyboard layout is italian (but it do happen also with mouse inputs) -- 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=58915 --- Comment #11 from Lorenzo Ferrillo <lorenzofer(a)live.it> --- Hi Rémi, the attached patch (included only the winex11 changes) seems to fix the issue for good -- 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=58915 Rémi Bernon <rbernon(a)codeweavers.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Fixed by SHA1| |0a7082d37efba17f5badea361c8 | |727f424192e68 Status|UNCONFIRMED |RESOLVED Resolution|--- |FIXED --- Comment #12 from Rémi Bernon <rbernon(a)codeweavers.com> --- Thanks, this should be fixed after 0a7082d37efba17f5badea361c8727f424192e68 then. -- 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=58915 drakinosh84(a)gmail.com changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |drakinosh84(a)gmail.com --- Comment #13 from drakinosh84(a)gmail.com --- *** Bug 58948 has been marked as a duplicate of this bug. *** -- 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=58915 Alexandre Julliard <julliard(a)winehq.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED --- Comment #14 from Alexandre Julliard <julliard(a)winehq.org> --- Closing bugs fixed in 10.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 (1)
-
WineHQ Bugzilla