https://bugs.winehq.org/show_bug.cgi?id=42749
Bug ID: 42749 Summary: VRC 1.2.4: fails to display main window under wine-2.5 Product: Wine Version: 2.5 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: major Priority: P2 Component: winex11.drv Assignee: wine-bugs@winehq.org Reporter: m.g.j.janicki@gmail.com Distribution: ---
VRC 1.2.4, available at http://www1.metacraft.com/VRC/download.shtml, is a Virtual Radar Client for use with the VATSIM network. This application functions correctly under wine-2.4 in its own Wine prefix.
Under wine-2.5, the application starts and displays its "profile select" page just fine. However, upon selecting a profile, the main application window never displays. Process table indicates the application is running, just not displaying anything.
Regression conducted between wine-2.4 and wine-2.5 resulted in:
e75bc6228ebcbdc1a3877a6ac6954611dedf8a71 is the first bad commit commit e75bc6228ebcbdc1a3877a6ac6954611dedf8a71 Author: Henri Verbeet hverbeet@codeweavers.com Date: Thu Mar 23 23:58:10 2017 +0100
winex11: Use GLX_OML_sync_control to synchronise buffer swaps with X11DRV_FL
Signed-off-by: Henri Verbeet hverbeet@codeweavers.com Signed-off-by: Alexandre Julliard julliard@winehq.org
:040000 040000 a8fb7403a75148b9f8c2307155bfc2c5cd1d2ad3 d6ff7ac6fdd2f00282733b13
https://bugs.winehq.org/show_bug.cgi?id=42749
Bruno Jesus 00cpxxx@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |download Severity|major |normal URL| |http://www1.metacraft.com/V | |RC/download.shtml
--- Comment #1 from Bruno Jesus 00cpxxx@gmail.com --- I cannot confirm unfortunately. May be related to different hardware, tested on Intel HD Graphics 520 and Nvidia 940M, but in my case Nvidia is not affected by the patch.
After selecting the profile I get the main black screen with some controls on top and a log in the lower area.
https://bugs.winehq.org/show_bug.cgi?id=42749
--- Comment #2 from m.g.j.janicki@gmail.com --- Yea, probably interaction with the hardware. For me, this is on an old laptop with an integrated Intel HD 4000 graphics card, so I suspect it has to do with the old hardware. It'd be great if there were a fix, but thanks for looking into it.
https://bugs.winehq.org/show_bug.cgi?id=42749
--- Comment #3 from Henri Verbeet hverbeet@gmail.com --- (In reply to m.g.j.janicki from comment #2)
Yea, probably interaction with the hardware. For me, this is on an old laptop with an integrated Intel HD 4000 graphics card, so I suspect it has to do with the old hardware. It'd be great if there were a fix, but thanks for looking into it.
Could you attach the output of "glxinfo"? Also, is there any debug output in the terminal?
https://bugs.winehq.org/show_bug.cgi?id=42749
--- Comment #4 from m.g.j.janicki@gmail.com --- Created attachment 57762 --> https://bugs.winehq.org/attachment.cgi?id=57762 output of glxinfo
https://bugs.winehq.org/show_bug.cgi?id=42749
--- Comment #5 from m.g.j.janicki@gmail.com --- Using WINEDEBUG=+debug provides no noticeable output when running the application manually in a console.
Output of glxinfo is attached.
https://bugs.winehq.org/show_bug.cgi?id=42749
--- Comment #6 from Henri Verbeet hverbeet@gmail.com --- Created attachment 57765 --> https://bugs.winehq.org/attachment.cgi?id=57765 debug patch
(In reply to m.g.j.janicki from comment #5)
OpenGL version string: 3.0 Mesa 9.1.7
Mesa 9.1.7 is from October 2013, that's fairly old as far as OpenGL drivers are concerned. If reasonably possible, it would be best to retry with more current drivers. Still, in principle this should work. Could you apply the attached patch and post the output?
https://bugs.winehq.org/show_bug.cgi?id=42749
--- Comment #7 from m.g.j.janicki@gmail.com --- I patched wine-2.5, as opposed to the git code. Hopefully that's alright.
With WINEDEBUG=fixme+all, the added FIXME code produces:
fixme:wgl:glxdrv_wglSwapBuffers Waiting for target_sbc 4dfdc8.
one time. I hope that's helpful.
https://bugs.winehq.org/show_bug.cgi?id=42749
--- Comment #8 from Henri Verbeet hverbeet@gmail.com --- (In reply to m.g.j.janicki from comment #7)
fixme:wgl:glxdrv_wglSwapBuffers Waiting for target_sbc 4dfdc8.
one time. I hope that's helpful.
That's certainly not the expected value, the sbc counter is supposed to start at 0, so the first expected value for target_sbc would be 1. I think it's likely that this is a driver bug, although perhaps more likely in the ddx driver than in Mesa.
https://bugs.winehq.org/show_bug.cgi?id=42749
--- Comment #9 from Henri Verbeet hverbeet@gmail.com --- In fact, https://cgit.freedesktop.org/xorg/xserver/commit/hw/xfree86/dri2/dri2.c?id=1... looks like it might be related. Is your X server from before that commit?
https://bugs.winehq.org/show_bug.cgi?id=42749
--- Comment #10 from m.g.j.janicki@gmail.com --- Yes, my X server is definitely from prior to that commit. And I think you were spot on about it also being related to the video driver itself, in my case the "intel" driver. I temporarily configured X to use the "modesetting" driver and the problem went away. That's not a solution since it destroys all my other applications; but, at least I know I should look at rebuilding my drivers and xserver with that diff applied.
Thanks very much for expending so much effort into looking into this. I really appreciate it.
https://bugs.winehq.org/show_bug.cgi?id=42749
--- Comment #11 from m.g.j.janicki@gmail.com --- Henri, you hit it perfectly. Rebuilding xserver with the indicated diff applied allows the application to operate under wine-2.5. The FIXME you added produces:
fixme:wgl:glxdrv_wglSwapBuffers Waiting for target_sbc 1. fixme:wgl:glxdrv_wglSwapBuffers Waiting for target_sbc 2. fixme:wgl:glxdrv_wglSwapBuffers Waiting for target_sbc 3. fixme:wgl:glxdrv_wglSwapBuffers Waiting for target_sbc 4. fixme:wgl:glxdrv_wglSwapBuffers Waiting for target_sbc 5.
and so on as the application runs.
You can close this as an xserver issue instead of a wine issue. Again, thank you very much for taking the time to track down this problem. Take care.
https://bugs.winehq.org/show_bug.cgi?id=42749
Henri Verbeet hverbeet@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |NOTOURBUG Status|UNCONFIRMED |RESOLVED
--- Comment #12 from Henri Verbeet hverbeet@gmail.com --- Resolving NOTOURBUG.
https://bugs.winehq.org/show_bug.cgi?id=42749
Matteo Bruni matteo.mystral@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #13 from Matteo Bruni matteo.mystral@gmail.com --- Fixed upstream, closing.