https://bugs.winehq.org/show_bug.cgi?id=55346
Bug ID: 55346 Summary: ddraw:ddraw2 - test_coop_level_mode_set() sometimes gets unexpected screen size in Wine Product: Wine Version: unspecified Hardware: x86-64 OS: Linux Status: NEW Severity: normal Priority: P2 Component: d3d Assignee: wine-bugs@winehq.org Reporter: fgouget@codeweavers.com Distribution: ---
ddraw:ddraw2 - test_coop_level_mode_set() sometimes gets unexpected screen size in Wine:
ddraw2.c:3237: Test failed: Got unexpected screen size 320x240. ddraw2.c:3243: Test failed: Expected message 0x7e, but didn't receive it. ddraw2.c:3292: Test marked flaky: Expected message 0x46, but didn't receive it. ddraw2.c:3295: Test marked flaky: Expected screen size 1024x768, got 0x0. ddraw2.c:3302: Test marked flaky: Expected (0,0)-(1024,768), got (0,0)-(320,240). [the messages above don't always happen] ddraw2.c:3326: Test failed: Expected surface width 1024, got 320. ddraw2.c:3328: Test failed: Expected surface height 768, got 240. ddraw2.c:3333: Test marked flaky: Expected (0,0)-(1024,768), got (0,0)-(320,240). ddraw2.c:3341: Test marked flaky: Expected (0,0)-(1024,768), got (0,0)-(320,240). ddraw2.c:3346: Test failed: Expected surface width 1024, got 320. ddraw2.c:3348: Test failed: Expected surface height 768, got 240. ddraw2.c:3361: Test failed: Expected surface width 1024, got 320. ddraw2.c:3363: Test failed: Expected surface height 768, got 240. ddraw2.c:3368: Test marked flaky: Expected (0,0)-(1024,768), got (0,0)-(320,240). ddraw2.c:3384: Test marked todo: Got unexpected hr 0. ddraw2.c:3392: Test marked flaky: Expected (0,0)-(1024,768), got (0,0)-(320,240). ddraw2.c:3412: Test failed: Got unexpected hr 0. ddraw2.c:3414: Test failed: Got unexpected hr 0. ddraw2.c:3422: Test marked flaky: Expected (0,0)-(1024,768), got (0,0)-(320,240). ddraw2.c:3427: Test failed: Expected surface width 1024, got 320. ddraw2.c:3429: Test failed: Expected surface height 768, got 240. ddraw2.c:3449: Test marked flaky: Expected (0,0)-(1024,768), got (0,0)-(320,240). ddraw2.c:3464: Test failed: Expected message 0x7e, but didn't receive it. ddraw2.c:3470: Test marked flaky: Expected (0,0)-(1024,768), got (0,0)-(320,240). ddraw2.c:3483: Test failed: Expected resolution 1024x768, got 320x240. ddraw2.c:3500: Test failed: Expected surface width 1024, got 320. ddraw2.c:3502: Test failed: Expected surface height 768, got 240. ddraw2.c:3507: Test marked flaky: Expected (0,0)-(1024,768), got (0,0)-(320,240). ddraw2.c:3518: Test marked flaky: Expected (0,0)-(1024,768), got (0,0)-(320,240). ddraw2.c:3523: Test failed: Expected surface width 1024, got 320. ddraw2.c:3525: Test failed: Expected surface height 768, got 240. ddraw2.c:3538: Test failed: Expected surface width 1024, got 320. ddraw2.c:3540: Test failed: Expected surface height 768, got 240. ddraw2.c:3545: Test marked flaky: Expected (0,0)-(1024,768), got (0,0)-(320,240). ddraw2.c:3561: Test marked todo: Got unexpected hr 0. ddraw2.c:3569: Test marked flaky: Expected (0,0)-(1024,768), got (0,0)-(320,240). ddraw2.c:3582: Test failed: Got unexpected hr 0. ddraw2.c:3584: Test failed: Got unexpected hr 0. ddraw2.c:3592: Test marked flaky: Expected (0,0)-(1024,768), got (0,0)-(320,240). ddraw2.c:3597: Test failed: Expected surface width 1024, got 320. ddraw2.c:3599: Test failed: Expected surface height 768, got 240. ddraw2.c:3619: Test marked flaky: Expected (0,0)-(1024,768), got (0,0)-(320,240). ddraw2.c:3634: Test failed: Expected message 0x7e, but didn't receive it. ddraw2.c:3640: Test marked flaky: Expected (0,0)-(1024,768), got (0,0)-(320,240). ddraw2.c:3653: Test failed: Expected resolution 1024x768, got 320x240. ddraw2.c:3670: Test failed: Expected surface width 1024, got 320. ddraw2.c:3672: Test failed: Expected surface height 768, got 240. ddraw2.c:3678: Test marked flaky: Expected (0,0)-(1024,768), got (0,0)-(320,240). ddraw2.c:3695: Test failed: Expected message 0x5, but didn't receive it. ddraw2.c:3697: Test failed: Expected screen size 1024x768, got 0x0. ddraw2.c:3704: Test failed: Expected (0,0)-(1024,768), got (0,0)-(320,240). ddraw2.c:3716: Test failed: Expected surface width 1024, got 320. ddraw2.c:3718: Test failed: Expected surface height 768, got 240. ddraw2.c:3765: Test failed: Expected message 0x47, but didn't receive it. ddraw2.c:3769: Test failed: Expected screen size 2 1024x768, got 0x0. ddraw2.c:3777: Test failed: Expected (0,0)-(1024,768), got (0,0)-(119,100). ddraw2.c:3789: Test failed: Expected surface width 1024, got 320. ddraw2.c:3791: Test failed: Expected surface height 768, got 240.
See https://test.winehq.org/data/patterns.html#ddraw:ddraw2
Where 0x46 == WM_WINDOWPOSCHANGING 0x7e == WM_DISPLAYCHANGE
Both the expected and unexpected resolutions change from one run to the next: 1024x768 / 320x240 like here or 3840x2160 / 640x480 or 640x480 / 720x480 or 1024x768 / 640x480 or 1024x768 / 400x300. Note that these WineTest reports have no prior test failure.
There are not too many instances of this in the nightly tests besides the rbernon-* machines where it happens regularly. However it can also happen for merge requests (3 known cases but there may be more): * 2023-07-26 MR3413 * 2023-06-15 gitlab-debian-32 * 2023-05-12 MR2792 * 2023-02-22 fg-deb64-t32 * 2022-11-29 fgtb-debian11-win32 * 2022-11-28 MR1561