[Bug 48932] New: Wine does not display any windows unless `xrandr --auto` has been run
https://bugs.winehq.org/show_bug.cgi?id=48932 Bug ID: 48932 Summary: Wine does not display any windows unless `xrandr --auto` has been run Product: Wine Version: unspecified Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: winex11.drv Assignee: wine-bugs(a)winehq.org Reporter: claude(a)mathr.co.uk Distribution: --- Created attachment 66899 --> https://bugs.winehq.org/attachment.cgi?id=66899 `xrandr` output at the start of the X11 session (when Wine displays no windows) Recent versions of Wine do not display any GUI windows on my Debian testing (bullseye) desktop, unless I have previously run `xrandr --auto` in my X11 session. I thought it was this bug but the cause is surely different: https://bugs.winehq.org/show_bug.cgi?id=48647 Bisecting git between 4.0.3 (good) and 5.6 (bad) shows: ``` be54adcffc249a44cb52c24320a7ad3db758ba54 is the first bad commit commit be54adcffc249a44cb52c24320a7ad3db758ba54 Author: Zhiyi Zhang <zzhang(a)codeweavers.com> Date: Fri Sep 20 16:55:22 2019 +0800 winex11.drv: Support XRandR display device handler. XRandR supports multiple GPUs and runtime device change compared to Xinerama. Signed-off-by: Zhiyi Zhang <zzhang(a)codeweavers.com> Signed-off-by: Huw Davies <huw(a)codeweavers.com> Signed-off-by: Alexandre Julliard <julliard(a)winehq.org> configure | 20 ++ configure.ac | 7 +- dlls/winex11.drv/x11drv.h | 1 + dlls/winex11.drv/xinerama.c | 2 +- dlls/winex11.drv/xrandr.c | 488 ++++++++++++++++++++++++++++++++++++++++++++ include/config.h.in | 3 + 6 files changed, 519 insertions(+), 2 deletions(-) ``` I will attach the output from `xrandr` before and after running `xrandr --auto` for the first time in a session. The diff shows that disconnected displays have their resolutions removed by `xrandr --auto`, though they are labelled disconnected in both instances. BTW, my first attempts to bisect this were full of spurious failures, I finally fixed it with shell stanza: ``` rm -fr ~/.wine && git clean -xf && CC="ccache gcc" CFLAGS="-g -O0" ./configure --enable-win64 --disable-tests && make -j 32 -k && ./wine winecfg # observe whether GUI is displayed, run `git bisect good` / `git bisect bad` accordingly ``` -- 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.
https://bugs.winehq.org/show_bug.cgi?id=48932 --- Comment #1 from Claude Heiland-Allen <claude(a)mathr.co.uk> --- Created attachment 66900 --> https://bugs.winehq.org/attachment.cgi?id=66900 `xrandr` output after running `xrandr --auto` (when Wine does display windows) -- 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.
https://bugs.winehq.org/show_bug.cgi?id=48932 Zhiyi Zhang <zzhang(a)codeweavers.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |zzhang(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.
https://bugs.winehq.org/show_bug.cgi?id=48932 --- Comment #2 from Zhiyi Zhang <zzhang(a)codeweavers.com> --- Could you get me a wine +xrandr,+x11drv log and xrandr --verbose terminal output for the bad case? -- 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.
https://bugs.winehq.org/show_bug.cgi?id=48932 Austin English <austinenglish(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Regression SHA1| |be54adcffc249a44cb52c24320a | |7ad3db758ba54 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.
https://bugs.winehq.org/show_bug.cgi?id=48932 --- Comment #3 from Claude Heiland-Allen <claude(a)mathr.co.uk> --- Created attachment 66902 --> https://bugs.winehq.org/attachment.cgi?id=66902 `WINEDEBUG="+xrandr,+x11drv" wine winecfg` before running `xrandr --auto` -- 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.
https://bugs.winehq.org/show_bug.cgi?id=48932 --- Comment #4 from Claude Heiland-Allen <claude(a)mathr.co.uk> --- Created attachment 66903 --> https://bugs.winehq.org/attachment.cgi?id=66903 `WINEDEBUG="+xrandr,+x11drv" wine winecfg` after running `xrandr --auto` -- 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.
https://bugs.winehq.org/show_bug.cgi?id=48932 --- Comment #5 from Claude Heiland-Allen <claude(a)mathr.co.uk> --- Created attachment 66904 --> https://bugs.winehq.org/attachment.cgi?id=66904 `xrandr --verbose` before running `xrandr --auto` -- 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.
https://bugs.winehq.org/show_bug.cgi?id=48932 --- Comment #6 from Claude Heiland-Allen <claude(a)mathr.co.uk> --- Created attachment 66905 --> https://bugs.winehq.org/attachment.cgi?id=66905 `xrandr --verbose` after running `xrandr --auto` -- 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.
https://bugs.winehq.org/show_bug.cgi?id=48932 --- Comment #7 from Zhiyi Zhang <zzhang(a)codeweavers.com> --- Could you redo the log in comment 3? This time make sure wineserver is completely shut off before taking the log. Otherwise, the initialization process will be skipped automatically. It should have something like "X11DRV_DisplayDevices_Init via "XRandR 1.4". Thanks. -- 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.
https://bugs.winehq.org/show_bug.cgi?id=48932 --- Comment #8 from Claude Heiland-Allen <claude(a)mathr.co.uk> --- Created attachment 66906 --> https://bugs.winehq.org/attachment.cgi?id=66906 `WINEDEBUG="+xrandr,+x11drv" wine winecfg` before running `xrandr --auto` (first Wine invocation after reboot) Here is the log directly after reboot. I ran it again a short time later, after using `ps aux` to verify no wineserver was running, I can attach that log if necessary, there are some differences in the numbers at the starts of lines but I don't know if there is anything significantly different. -- 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.
https://bugs.winehq.org/show_bug.cgi?id=48932 Zhiyi Zhang <zzhang(a)codeweavers.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Ever confirmed|0 |1 Status|UNCONFIRMED |NEW --- Comment #9 from Zhiyi Zhang <zzhang(a)codeweavers.com> --- Confirmed with Wine 5.6. -- 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.
https://bugs.winehq.org/show_bug.cgi?id=48932 --- Comment #10 from Zhiyi Zhang <zzhang(a)codeweavers.com> --- Created attachment 66908 --> https://bugs.winehq.org/attachment.cgi?id=66908 patch Could you try this patch? -- 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.
https://bugs.winehq.org/show_bug.cgi?id=48932 --- Comment #11 from Claude Heiland-Allen <claude(a)mathr.co.uk> --- Created attachment 66911 --> https://bugs.winehq.org/attachment.cgi?id=66911 `WINEDEBUG="+xrandr,+x11drv" ./wine winecfg` before running `xrandr --auto` with patch applied the patch seems to fix it, thanks! additional log attached in case it is useful. this log is from the second run of ./wine, started without any wineserver running, before any xrandr calls. -- 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.
https://bugs.winehq.org/show_bug.cgi?id=48932 Zhiyi Zhang <zzhang(a)codeweavers.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |FIXED --- Comment #12 from Zhiyi Zhang <zzhang(a)codeweavers.com> --- Fixed by 562702c69bd2f02ead53be6b10db0817a48b1496 -- 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.
https://bugs.winehq.org/show_bug.cgi?id=48932 Zhiyi Zhang <zzhang(a)codeweavers.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Fixed by SHA1| |562702c69bd2f02ead53be6b10d | |b0817a48b1496 -- 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.
https://bugs.winehq.org/show_bug.cgi?id=48932 Alexandre Julliard <julliard(a)winehq.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED --- Comment #13 from Alexandre Julliard <julliard(a)winehq.org> --- Closing bugs fixed in 5.7. -- 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.
https://bugs.winehq.org/show_bug.cgi?id=48932 Michael Stefaniuc <mstefani(a)winehq.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|--- |5.0.x -- 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.
https://bugs.winehq.org/show_bug.cgi?id=48932 Michael Stefaniuc <mstefani(a)winehq.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|5.0.x |--- --- Comment #14 from Michael Stefaniuc <mstefani(a)winehq.org> --- Removing the 5.0.x milestone from bug fixes included in 5.0.2. -- 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