https://bugs.winehq.org/show_bug.cgi?id=53276
Bug ID: 53276 Summary: user32:edit - test_paste() sometimes fails to access the clipboard on Windows Product: Wine Version: unspecified Hardware: x86-64 OS: Windows Status: NEW Severity: normal Priority: P2 Component: user32 Assignee: wine-bugs@winehq.org Reporter: fgouget@codeweavers.com
user32:edit - test_paste() sometimes fails to access the clipboard on Windows:
edit.c:3222: Test failed: expected 1, got 0 le=5 edit.c:3224: Test failed: expected 1, got 0 edit.c:3226: Test failed: expected 00000000008500A8, got 0000000000000000 edit.c:3228: Test failed: expected 1, got 0 edit.c:3234: Test failed: got 21 edit.c:3240: Test failed: got 21
https://test.winehq.org/data/patterns.html#user32:edit
Where 5 is ERROR_ACCESS_DENIED and indicates that the clipboard has already been opened in another thread, process, etc.
This happens a lot on machines with an AMD GPU due to known interference from the Radeon driver (see bug 47888).
But it also happens sometimes on machines with an Nvidia GPU (cw-gtx560) and even on pure QEmu VMs such as w1064-1qxl (or fgtb-w10pro64). So there is either some other source of interference, maybe from some Windows component, or an issue (a race condition?) in the test itself.
It would be nice to identify the source of interference, if any, to see if it can be neutralized. But maybe the only solution is to work around the issue as in user32:clipboard (see commit 316eec8f6658).
https://bugs.winehq.org/show_bug.cgi?id=53276
François Gouget fgouget@codeweavers.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |source, testcase
https://bugs.winehq.org/show_bug.cgi?id=53276
François Gouget fgouget@codeweavers.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Summary|user32:edit - test_paste() |comctl32:edit & user32:edit |sometimes fails to access |- test_paste() sometimes |the clipboard on Windows |fails to access the | |clipboard on Windows
--- Comment #1 from François Gouget fgouget@codeweavers.com --- The same issue happens in comctl32:edit, most likely for the same reasons:
edit.c:3226: Test failed: expected 1, got 0 edit.c:3228: Test failed: expected 1, got 0 edit.c:3230: Test failed: expected 00000000028400A8, got 0000000000000000 edit.c:3232: Test failed: expected 1, got 0 edit.c:3238: Test failed: got 21 edit.c:3244: Test failed: got 21
See https://test.winehq.org/data/patterns.html#comctl32:edit
This happens at least on Windows 10 1809 to 21H2 but the failure is quite rare, probably a bit under two instances per month.
https://bugs.winehq.org/show_bug.cgi?id=53276
François Gouget fgouget@codeweavers.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Assignee|wine-bugs@winehq.org |fgouget@codeweavers.com
https://bugs.winehq.org/show_bug.cgi?id=53276
François Gouget fgouget@codeweavers.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |FIXED
--- Comment #2 from François Gouget fgouget@codeweavers.com --- The data I have goes back to 2023-02-06 and shows that this did not happen since then. So it must have been fixed some time before that.
https://bugs.winehq.org/show_bug.cgi?id=53276
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #3 from Alexandre Julliard julliard@winehq.org --- Closing bugs fixed in 8.18.