https://bugs.winehq.org/show_bug.cgi?id=41508
Bug ID: 41508 Summary: Menu infinitely loops, the application hangs. Product: Wine Version: 1.9.20 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: user32 Assignee: wine-bugs@winehq.org Reporter: johnfound@asm32.info Distribution: ---
It happens on all programs with main menu.
Example how to reproduce:
Start "wine regedit" (it can be reproduced with any other program with main menu)
Press Alt+E in order to open the Edit submenu (or any other Alf+Key shortcut) While holding the Alt key pressed down, after the Edit submenu is opened, press Left or Right arrow keys.
The active submenu start to cycle infinitely through all submenus and the application does not accept any keyboard input. The mouse is captured to the WINE application and not working for the whole desktop environment (tested with XFCE).
In the same time, the main message loop works, because the refresh of the window is normal and for example the hint text in the status bar cycles according to the currently active submenu. The CPU usage is high at least for one of the cores.
The cycle stops when the active application is changed to any other. This change is possible only by using the keyboard (for example by pressing Alt+Tab or Alt+F4), because of the captured mouse.
https://bugs.winehq.org/show_bug.cgi?id=41508
Dmitry Timoshkov dmitry@baikal.ru changed:
What |Removed |Added ---------------------------------------------------------------------------- Ever confirmed|0 |1 Status|UNCONFIRMED |NEW
--- Comment #1 from Dmitry Timoshkov dmitry@baikal.ru --- Confirming.
https://bugs.winehq.org/show_bug.cgi?id=41508
Alex Henrie alexhenrie24@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |alexhenrie24@gmail.com
--- Comment #2 from Alex Henrie alexhenrie24@gmail.com --- Created attachment 56002 --> https://bugs.winehq.org/attachment.cgi?id=56002 Hack
This patch fixes the problem, but might break something else.
https://bugs.winehq.org/show_bug.cgi?id=41508
Alex Henrie alexhenrie24@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Attachment #56002|0 |1 is obsolete| |
--- Comment #3 from Alex Henrie alexhenrie24@gmail.com --- Created attachment 56003 --> https://bugs.winehq.org/attachment.cgi?id=56003 Hack
Slightly better hack, fixes both left and right keys.
https://bugs.winehq.org/show_bug.cgi?id=41508
--- Comment #4 from Alex Henrie alexhenrie24@gmail.com --- Created attachment 56004 --> https://bugs.winehq.org/attachment.cgi?id=56004 TF_SKIPREMOVE hack
An even better hack: This shows that the problem disappears if TF_SKIPREMOVE is not used. Does anybody know what bug this flag was supposed to fix?
https://bugs.winehq.org/show_bug.cgi?id=41508
Alex Henrie alexhenrie24@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |wijn@online.nl
--- Comment #5 from Alex Henrie alexhenrie24@gmail.com --- The problem also goes away if I revert http://source.winehq.org/git/wine.git/commitdiff/d75b0cdc986f464f3067767cd53aca6b85feb366, which means that it is almost certainly a regression.
https://bugs.winehq.org/show_bug.cgi?id=41508
--- Comment #6 from Dmitry Timoshkov dmitry@baikal.ru --- (In reply to Alex Henrie from comment #5)
The problem also goes away if I revert http://source.winehq.org/git/wine.git/commitdiff/ d75b0cdc986f464f3067767cd53aca6b85feb366, which means that it is almost certainly a regression.
For the reference/background see https://www.winehq.org/pipermail/wine-patches/2009-March/070813.html https://www.winehq.org/pipermail/wine-patches/2009-March/070812.html The latter one claims that the patch fixes bug 17695.
https://bugs.winehq.org/show_bug.cgi?id=41508
Alex Henrie alexhenrie24@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |patch, source CC| |michael@fds-team.de, | |sebastian@fds-team.de
--- Comment #7 from Alex Henrie alexhenrie24@gmail.com --- I wrote patches for this, but Alexandre has not (yet?) taken an interest. Can we add them to Wine Staging at least?
https://source.winehq.org/patches/data/127475 https://source.winehq.org/patches/data/127476
https://bugs.winehq.org/show_bug.cgi?id=41508
Alex Henrie alexhenrie24@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |erich.e.hoover@wine-staging | |.com
--- Comment #8 from Alex Henrie alexhenrie24@gmail.com --- Alexandre rejected those patches, here is a better one:
https://source.winehq.org/patches/data/127623
https://bugs.winehq.org/show_bug.cgi?id=41508
Alex Henrie alexhenrie24@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |regression Regression SHA1| |d75b0cdc986f464f3067767cd53 | |aca6b85feb366
--- Comment #9 from Alex Henrie alexhenrie24@gmail.com --- This bug is undeniably a regression caused by https://source.winehq.org/git/wine.git/commitdiff/d75b0cdc986f464f3067767cd5...
https://bugs.winehq.org/show_bug.cgi?id=41508
Alex Henrie alexhenrie24@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |FIXED Fixed by SHA1| |68ca28a8bc3197a09cd3b82d909 | |69f44f844dc2e Status|NEW |RESOLVED
--- Comment #10 from Alex Henrie alexhenrie24@gmail.com --- Fixed by http://source.winehq.org/git/wine.git/commitdiff/68ca28a8bc3197a09cd3b82d909...
Thanks Alexandre!
https://bugs.winehq.org/show_bug.cgi?id=41508
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #11 from Alexandre Julliard julliard@winehq.org --- Closing bugs fixed in 2.0-rc1.
https://bugs.winehq.org/show_bug.cgi?id=41508
Michael Stefaniuc mstefani@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|--- |1.8.x
https://bugs.winehq.org/show_bug.cgi?id=41508
Michael Stefaniuc mstefani@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|1.8.x |---
--- Comment #12 from Michael Stefaniuc mstefani@redhat.com --- Removing 1.8.x milestone from bugs included in 1.8.7.