https://bugs.winehq.org/show_bug.cgi?id=47888
Bug ID: 47888 Summary: user32:clipboard fails on Win 8.1 since the RX 460 GPU got installed Product: Wine-Testbot Version: unspecified Hardware: x86 OS: Windows Status: NEW Severity: normal Priority: P2 Component: unknown Assignee: wine-bugs@winehq.org Reporter: fgouget@codeweavers.com
user32:clipboard fails on cw-rx460 / Windows 8.1 since the RX 460 GPU got installed (2019-09-25):
clipboard.c:760: Test failed: 0: gle 5 clipboard.c:765: Test failed: 0.0: got 0000 instead of 0001 clipboard.c:805: Test failed: 0: gle 1418 clipboard.c:815: Test failed: 0: count 4 clipboard.c:818: Test failed: 0: gle 1418 clipboard.c:852: Test failed: 0: format 0001 got data 00798D08 clipboard.c:853: Test failed: 0.0: formats 00000000 have been rendered clipboard.c:858: Test failed: 0.0: formats 00000000 have been rendered clipboard.c:852: Test failed: 0: format 0007 got data 00798C78 clipboard.c:853: Test failed: 0.2: formats 00000000 have been rendered clipboard.c:858: Test failed: 0.2: formats 00000000 have been rendered clipboard.c:852: Test failed: 0: format 000d got data 007A12D0 clipboard.c:853: Test failed: 0.3: formats 00000000 have been rendered clipboard.c:858: Test failed: 0.3: formats 00000000 have been rendered clipboard.c:717: Test failed: 4: gle 5 clipboard.c:719: Test failed: 4: gle 1418 clipboard.c:746: Test failed: 4: count 2 clipboard.c:749: Test failed: 4: gle 1418 clipboard.c:765: Test failed: 4.0: got 000e instead of 0003 clipboard.c:717: Test failed: 6: gle 5 clipboard.c:719: Test failed: 6: gle 1418 clipboard.c:746: Test failed: 6: count 3 clipboard.c:749: Test failed: 6: gle 1418 clipboard.c:765: Test failed: 6.0: got 0002 instead of 0008 clipboard.c:717: Test failed: 7: gle 5 clipboard.c:719: Test failed: 7: gle 1418 clipboard.c:746: Test failed: 7: count 3 clipboard.c:749: Test failed: 7: gle 1418 clipboard.c:765: Test failed: 7.0: got 0008 instead of 0011 clipboard.c:1040: multi-threaded test clipboard.c:1130: Test failed: OpenClipboard failed: 5 clipboard.c:1142: Test failed: WM_RENDERFORMAT received 0000 clipboard.c:1146: Test failed: didn't get data for CF_OEMTEXT clipboard.c:1148: Test failed: WM_RENDERFORMAT received 0000 clipboard.c:1152: Test failed: sequence diff 0 clipboard.c:1155: Test failed: CloseClipboard failed: 1418 clipboard.c:1017: Test failed: wait failed clipboard.c:1157: Test failed: WM_DRAWCLIPBOARD not received clipboard.c:1157: Test failed: WM_CLIPBOARDUPDATE not received
https://test.winehq.org/data/tests/user32:clipboard.html
It's strange that changing the GPU and updating the graphics driver would cause permission denied errors when handling the clipboard.
https://bugs.winehq.org/show_bug.cgi?id=47888
François Gouget fgouget@codeweavers.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |hardware, source, testcase
https://bugs.winehq.org/show_bug.cgi?id=47888
--- Comment #1 from François Gouget fgouget@codeweavers.com --- *** Bug 47889 has been marked as a duplicate of this bug. ***
https://bugs.winehq.org/show_bug.cgi?id=47888
François Gouget fgouget@codeweavers.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Assignee|wine-bugs@winehq.org |fgouget@codeweavers.com
--- Comment #2 from François Gouget fgouget@codeweavers.com --- Something causes the Radeon driver to call OpenClipboard() during our tests, our calls to fail with ERROR_ACCESS_DENIED at random (it's a race condition).
This can either happen pretty systematically as was the case initially and is still the case in a number of disk snapshots, or about 1 time out of 30 after disabling (and optionally then re-enabling) a bunch of driver settings. Because the tests don't break when re-enabling the settings the root cause of the issue is unclear. (Note that reboots make no difference)
It's still unclear if the tinkering is sufficient to consider the issue resolved, or if further steps, such as retrying the OpenClipboard() call, are necessary.
It's also unclear why a graphics driver needs to access the clipboard.
https://bugs.winehq.org/show_bug.cgi?id=47888
François Gouget fgouget@codeweavers.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Summary|user32:clipboard fails on |ole32:clipboard, |Win 8.1 since the RX 460 |user32:clipboard and |GPU got installed |user32:edit fail due to the | |Radeon driver on cw-rx460
--- Comment #3 from François Gouget fgouget@codeweavers.com --- The following ole32:clipboard failures are also caused by the Radeon driver: https://test.winehq.org/data/patterns.html#ole32:clipboard
clipboard.c:1006: Test failed: Failed to clear clipboard, hr = 0x800401d0 clipboard.c:1010: Test failed: got 00780054 clipboard.c:1345: Test failed: got 800401d0 clipboard.c:1346: Test failed: got 0
The following test_paste() user32:edit failure is also caused by the Radeon driver: https://test.winehq.org/data/patterns.html#user32:edit
edit.c:3216: Test failed: expected 1, got 0 edit.c:3218: Test failed: expected 1, got 0 edit.c:3220: Test failed: expected 0000000001FA00A8, got 0000000000000000 edit.c:3222: Test failed: expected 1, got 0 edit.c:3228: Test failed: got 21 edit.c:3234: Test failed: got 21
https://bugs.winehq.org/show_bug.cgi?id=47888
François Gouget fgouget@codeweavers.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Summary|ole32:clipboard, |ole32:clipboard, |user32:clipboard and |riched20:richole, |user32:edit fail due to the |user32:clipboard and |Radeon driver on cw-rx460 |user32:edit fail due to the | |Radeon driver on cw-rx460
--- Comment #4 from François Gouget fgouget@codeweavers.com --- The following test_clipboard() riched20:richole failures are also caused by the Radeon driver:
richole.c:4219: Test failed: OpenClipboard failed: 5 richole.c:4219: Test failed: GetClipboardData failed: 0000000000000000 richole.c:4219: Test failed: GlobalLock failed: 0000000000000000 richole.c:4219: this is the last test seen before the exception 1e8c:richole: unhandled exception c0000005 at 00007FF85DFDD50D
richole.c:4220: Test failed: Copy failed: 0x800401d0 richole.c:4220: Test failed: unexpected contents: "ab\r\n c"
richole.c:4231: Test failed: Cut failed: 0x800401d0
etc.
https://bugs.winehq.org/show_bug.cgi?id=47888
Jactry Zeng jactry92@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |jactry92@gmail.com
https://bugs.winehq.org/show_bug.cgi?id=47888
Eric Pouech eric.pouech@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |eric.pouech@gmail.com
--- Comment #5 from Eric Pouech eric.pouech@gmail.com --- For the record, I have the same kind of errors on VirtualBox vm (where VB installs a specific app to enable bidir clipboard between host and guest).
So either we ensure that no app accesses the clipboard during the tests (seems hard to get given all the cases we known of, and likely the ones we don't know of yet), or we harden the code to allow failures when opening the clipboard. Note also, if we go for the later, we need also to take care of WM_PASTE which can also fail for the same reasons. And WM_PASTE doesn't return status code.