https://bugs.winehq.org/show_bug.cgi?id=56144
Bug ID: 56144 Summary: failed to init opengl apps Product: Wine Version: 9.0-rc3 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: opengl Assignee: wine-bugs@winehq.org Reporter: guillere@adinet.com.uy Distribution: ---
System: Debian SID Kernel: Linux goku 6.5.0-5-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.5.13-1 (2023-11-29) x86_64 GNU/Linux Mesa: 23.3.1-4 GPU: Haswell [Intel(R) Core(TM) i5-4440 CPU @ 3.10GHz]
Try to run any opengl app give this warning and closes.
wine "c:\gunroar\gr.exe" ... MESA-INTEL: warning: Haswell Vulkan support is incomplete MESA-INTEL: warning: Haswell Vulkan support is incomplete MESA-INTEL: warning: Haswell Vulkan support is incomplete X Error of failed request: BadValue (integer parameter out of range for operation) Major opcode of failed request: 152 (GLX) Minor opcode of failed request: 3 (X_GLXCreateContext) Value in failed request: 0x0 Serial number of failed request: 226 Current serial number in output stream: 230 ...
tested in 8.0.1~repack-3 (debian package) tested in compiled from git tag wine-9.0-rc3
This problem is introduced in some update of mesa or linux-kernel (maybe) but only affect wine, other opengl apps works OK. Game gunroar works natively in linux but not gunroar (windows version) through wine
Try to run gunroar inside a tigervnc (1.12.0+dfsg-8) using mesa software render (llvmpipe) guille@goku:~$ wine "c:\gunroar\gr.exe" MESA-INTEL: warning: Haswell Vulkan support is incomplete MESA-INTEL: warning: Haswell Vulkan support is incomplete MESA-INTEL: warning: Haswell Vulkan support is incomplete X Error of failed request: BadValue (integer parameter out of range for operation) Major opcode of failed request: 151 (GLX) Minor opcode of failed request: 3 (X_GLXCreateContext) Value in failed request: 0x0 Serial number of failed request: 210 Current serial number in output stream: 214 guille@goku:~$ wine client error:90: write: Descriptor de fichero errĂ³neo wine client error:d8: write: Descriptor de fichero errĂ³neo IS IN SOFTWARE RENDERING!! Why complain about "MESA-INTEL?!" Same error....
glxgears (linux) works but not wglgears (windows compiled glxgears) http://www2.cs.uidaho.edu/~jeffery/win32/wglgears.c
I compile wine (wine-9.0-rc3) whit this flags CROSSCFLAGS+='-g3 -ggdb -gdwarf-4' CC=gcc-9 CPP=cpp-9 CFLAGS+='-g3 -ggdb -gdwarf-4' ./configure --disable-tests And compile "wglgears.c" also whit all debug flags (note: mingw-w64 (13.2.0-4+26.1) for cross compiling)
Backtrace:... guille@goku:/mnt/data/src/wine$ WINEPREFIX=/home/guille/wine_test/ WINEARCH=win32 ./wine winedbg --gdb programs/wglgears/i386-windows/wglgears.exe 007c:fixme:hid:handle_IRP_MN_QUERY_ID Unhandled type 00000005 007c:fixme:hid:handle_IRP_MN_QUERY_ID Unhandled type 00000005 007c:fixme:hid:handle_IRP_MN_QUERY_ID Unhandled type 00000005 007c:fixme:hid:handle_IRP_MN_QUERY_ID Unhandled type 00000005 MESA-INTEL: warning: Haswell Vulkan support is incomplete MESA-INTEL: warning: Haswell Vulkan support is incomplete 0114:0118: create process 'Z:\mnt\data\src\wine\programs\wglgears\i386-windows\wglgears.exe'/00000000 @00402DE4 (966656<1340>) 0114:0118: create thread I @00402DE4 GNU gdb (Debian 13.2-1) 13.2 Copyright (C) 2023 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-linux-gnu". Type "show configuration" for configuration details. For bug reporting instructions, please see: https://www.gnu.org/software/gdb/bugs/. Find the GDB manual and other documentation resources online at: http://www.gnu.org/software/gdb/documentation/.
For help, type "help". Type "apropos word" to search for commands related to "word". 0114:0118: loads DLL C:\windows\system32\ntdll.dll @7AFA0000 (17084416<5729>) 0114:0118: loads DLL C:\windows\system32\kernel32.dll @7A310000 (13086720<19576>) 0114:0118: loads DLL C:\windows\system32\kernelbase.dll @79550000 (14295040<14518>) 0114:0118: loads DLL C:\windows\system32\gdi32.dll @73A60000 (11055104<7731>) 0114:0118: loads DLL C:\windows\system32\advapi32.dll @78D10000 (8552448<7520>) 0114:0118: loads DLL C:\windows\system32\msvcrt.dll @77EA0000 (15048704<8656>) 0114:0118: loads DLL C:\windows\system32\sechost.dll @779D0000 (4943872<3252>) 0114:0118: loads DLL C:\windows\system32\ucrtbase.dll @769A0000 (16875520<12297>) 0114:0118: loads DLL C:\windows\system32\user32.dll @71710000 (36937728<14997>) 0114:0118: loads DLL C:\windows\system32\win32u.dll @715D0000 (1196032<1968>) 0114:0118: loads DLL C:\windows\system32\opengl32.dll @6A460000 (5808128<7780>) 0114:0118: loads DLL C:\windows\system32\tzres.dll @10000000 (0<0>) 00000114:00000118: unload DLL @10000000 0114:0118: loads DLL C:\windows\system32\tzres.dll @10000000 (0<0>) 00000114:00000118: unload DLL @10000000 0114:0118: loads DLL C:\windows\system32\imm32.dll @65280000 (2949120<3073>) warning: remote target does not support file transfer, attempting to access files from local filesystem. Reading symbols from /mnt/data/src/wine/programs/wglgears/i386-windows/wglgears.exe... 0x7affb705 in DbgBreakPoint@0 () at dlls/ntdll/signal_i386.c:640 640 signal_start_thread( context ); Wine-gdb> break dlls/opengl32/thunks.c:51 Breakpoint 1 at 0x6a4642d1: file dlls/opengl32/thunks.c, line 51. Wine-gdb> continue Continuing. 0114:0118: loads DLL C:\windows\system32\winex11.drv @64E20000 (4476928<4361>) 0114:0118: loads DLL C:\windows\system32\uxtheme.dll @64290000 (8994816<3796>)
Breakpoint 1, wglDescribePixelFormat@16 (hdc=0x20010045, ipfd=0, cjpfd=0, ppfd=0x0) at dlls/opengl32/thunks.c:51 51 if ((status = UNIX_CALL( wglDescribePixelFormat, &args ))) WARN( "wglDescribePixelFormat returned %#lx\n", status ); Wine-gdb> trace Note: breakpoint 1 also set at pc 0x6a4642d1. Tracepoint 2 at 0x6a4642d1: file dlls/opengl32/thunks.c, line 51. Wine-gdb> where #0 wglDescribePixelFormat@16 (hdc=0x20010045, ipfd=0, cjpfd=0, ppfd=0x0) at dlls/opengl32/thunks.c:51 #1 0x6a52c3e7 in wglChoosePixelFormat@8 (hdc=0x20010045, ppfd=0x403060 <pfd>) at dlls/opengl32/wgl.c:127 #2 0x73a8a87d in ChoosePixelFormat@8 (hdc=0x20010045, pfd=0x403060 <pfd>) at dlls/gdi32/opengl.c:53 #3 0x00402948 in make_window (name=0x404112 "glxgears", x=0, y=0, width=300, height=300) at programs/wglgears/wglgears.c:410 #4 0x00402cad in main (argc=1, argv=0x246f18) at programs/wglgears/wglgears.c:484 Wine-gdb> next X Error of failed request: BadValue (integer parameter out of range for operation) Major opcode of failed request: 152 (GLX) Minor opcode of failed request: 3 (X_GLXCreateContext) Value in failed request: 0x0 Serial number of failed request: 206 Current serial number in output stream: 210 00000114:00000118: exit process (0) [Inferior 1 (Remote target) exited normally]
Dead in wglDescribePixelFormat (unix)... It is called BEFORE a GLXCreateContext is created ; try to create and fail. In some forums say wglDescribePixelFormat is a "internal" function of opengl32, can be called directly?
https://bugs.winehq.org/show_bug.cgi?id=56144
--- Comment #1 from Guillermo Reisch guillere@adinet.com.uy --- Created attachment 75823 --> https://bugs.winehq.org/attachment.cgi?id=75823 glxinfo of MESA-INTEL
video driver "i915"
https://bugs.winehq.org/show_bug.cgi?id=56144
--- Comment #2 from Guillermo Reisch guillere@adinet.com.uy --- Created attachment 75824 --> https://bugs.winehq.org/attachment.cgi?id=75824 glxinfo of MESA-LLVM [software rendering]
https://bugs.winehq.org/show_bug.cgi?id=56144
Guillermo Reisch guillere@adinet.com.uy changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Distribution|--- |Debian Resolution|--- |NOTOURBUG
--- Comment #3 from Guillermo Reisch guillere@adinet.com.uy --- debootstrap bookworm => works ; not bug debootstrap trixie => works ; not bug debootstrap sid => works ; not bug
Is a bug in my rootfs! Cannot replicate in clean enviroment. Reinstalling.... Closing bug...
https://bugs.winehq.org/show_bug.cgi?id=56144
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED Resolution|NOTOURBUG |INVALID
--- Comment #4 from Austin English austinenglish@gmail.com --- NOTOURBUG is for a bug in another project (e.g., Mesa/kernel/etc.).
INVALID is more appropriate here.
Thanks for letting us know.