[Bug 40267] New: ChoosePixelFormat and SetPixelFormat always fail on X11 with invalid format error
https://bugs.winehq.org/show_bug.cgi?id=40267 Bug ID: 40267 Summary: ChoosePixelFormat and SetPixelFormat always fail on X11 with invalid format error Product: Wine Version: unspecified Hardware: x86 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: opengl Assignee: wine-bugs(a)winehq.org Reporter: alexchandel(a)gmail.com Distribution: --- Created attachment 53892 --> https://bugs.winehq.org/attachment.cgi?id=53892 Anomalous ChoosePixelFormat and SetPixelFormat error Attempting to run a T3 emulator with wine 1.9.5-1 on Arch always produces two error popup boxes saying "ChoosePixelFormat failed" and "SetPixelFormat failed". After the ChoosePixelFormat error, the following is logged: fixme:event:wait_for_withdrawn_state window 0x10072/e00004 wait timed out err:wgl:set_pixel_format Invalid format 0 Then after the SetPixelFormat error, the following is logged: fixme:event:wait_for_withdrawn_state window 0x20072/e00006 wait timed out I've attached a complete log with WINEDEBUG=trace+wgl that yields ore information. From the log, the PIXELFORMATDESCRIPTOR clearly has a valid format, despite Wine's "Invalid format 0" error. Despite these popup errors, the program paints a mostly correct window. But it detects the errors through error code checking, and they are sufficient to prevent the program from functioning at all. -- 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=40267 winetest(a)luukku.com changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |winetest(a)luukku.com --- Comment #1 from winetest(a)luukku.com --- Can you try this patch? --- a/dlls/opengl32/wgl.c +++ a/dlls/opengl32/wgl.c @@ -443,7 +443,7 @@ INT WINAPI wglChoosePixelFormat(HDC hdc, const PIXELFORMATDESCRIPTOR* ppfd) { if (!wglDescribePixelFormat( hdc, i, sizeof(format), &format )) continue; - if (ppfd->iPixelType != format.iPixelType) + if ((ppfd->iPixelType == PFD_TYPE_COLORINDEX ? PFD_TYPE_COLORINDEX : PFD_TYPE_RGBA) != format.iPixelType) { TRACE( "pixel type mismatch for iPixelFormat=%d\n", i ); continue; If it works for you then this bug is most likely a dupe of bug 14640. -- 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=40267 Bruno Jesus <00cpxxx(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEEDINFO Ever confirmed|0 |1 --- Comment #2 from Bruno Jesus <00cpxxx(a)gmail.com> --- Is this still an issue in wine 2.0-rc3 (or newer)? What is the application name? -- 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=40267 --- Comment #3 from alexchandel(a)gmail.com --- It's the USI T3 emulator, an industrial program. I'll have to check. -- 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=40267 Anastasius Focht <focht(a)gmx.net> changed: What |Removed |Added ---------------------------------------------------------------------------- Version|unspecified |1.9.5 CC| |focht(a)gmx.net Summary|ChoosePixelFormat and |USI T3 emulator crashes, |SetPixelFormat always fail |ChoosePixelFormat and |on X11 with invalid format |SetPixelFormat fail on X11 |error |with invalid format error -- 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=40267 Anastasius Focht <focht(a)gmx.net> changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|USI T3 emulator crashes, |USI T3 emulator reports |ChoosePixelFormat and |"ChoosePixelFormat failed" |SetPixelFormat fail on X11 |and "SetPixelFormat failed" |with invalid format error |(err:wgl:set_pixel_format | |Invalid format 0) Status|NEEDINFO |RESOLVED Resolution|--- |DUPLICATE --- Comment #4 from Anastasius Focht <focht(a)gmx.net> --- Hello folks, since OP didn't provide an answer, assuming dupe of bug 14640 Regards *** This bug has been marked as a duplicate of bug 14640 *** -- 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=40267 Alistair Leslie-Hughes <leslie_alistair(a)hotmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED --- Comment #5 from Alistair Leslie-Hughes <leslie_alistair(a)hotmail.com> --- Closing Duplicate. -- 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)
-
wine-bugs@winehq.org