[Bug 58422] New: Soldier of Fortune II crashes on start
http://bugs.winehq.org/show_bug.cgi?id=58422 Bug ID: 58422 Summary: Soldier of Fortune II crashes on start Product: Wine Version: 10.9 Hardware: x86-64 URL: https://www.moddb.com/games/soldier-of-fortune-ii/down loads/soldier-of-fortune-2-demo-version OS: Linux Status: NEW Keywords: download, regression Severity: normal Priority: P2 Component: opengl Assignee: wine-bugs(a)winehq.org Reporter: gyebro69(a)gmail.com CC: rbernon(a)codeweavers.com Regression SHA1: 17b86a90037004bda1eac142238f21a56b9bfd77 Distribution: --- Created attachment 78844 --> http://bugs.winehq.org/attachment.cgi?id=78844 terminal output This is one of the games affected by bug #25362 so I have to launch the game using the workaround '__GL_ExtensionStringVersion=17700 wine SOF2.exe'. Since Wine-10.9 the game crashes early on start regardless of that workaround. Reverting commit 17b86a90037004bda1eac142238f21a56b9bfd77 opengl32: Move legacy extensions fixup from winex11. fixes the crash for me. Can be reproduced with the demo version. sp_demo.exe md5sum: 25aae86e835747174523861d40facec1 Still present in Wine-10.11. OpenGL vendor string: NVIDIA Corporation OpenGL renderer string: NVIDIA GeForce GTX 1660 SUPER/PCIe/SSE2 OpenGL core profile version string: 4.6.0 NVIDIA 575.64 X.Org X Server 1.21.1.18 XFCE 4.20 -- 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.
http://bugs.winehq.org/show_bug.cgi?id=58422 --- Comment #1 from Rémi Bernon <rbernon(a)codeweavers.com> --- I don't see any difference in the reported GL_EXTENSIONS string before/after the change, with/without these environment variables. Only difference is that the extensions are now reported in glGetStringi as they should. I don't know why this regressed but I think you can use an earlier version instead of 17700 and that it should fix the problem? -- 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.
http://bugs.winehq.org/show_bug.cgi?id=58422 --- Comment #2 from Rémi Bernon <rbernon(a)codeweavers.com> --- Alternatively to these vendor-specific environment variables, I think we could have something like this to fix the original bug, where the new registry key could be used to enable only hand-picked GL extensions used by these games: https://gitlab.winehq.org/wine/wine/-/merge_requests/8473 -- 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.
http://bugs.winehq.org/show_bug.cgi?id=58422 --- Comment #3 from Béla Gyebrószki <gyebro69(a)gmail.com> --- (In reply to Rémi Bernon from comment #1)
I don't see any difference in the reported GL_EXTENSIONS string before/after the change, with/without these environment variables. Only difference is that the extensions are now reported in glGetStringi as they should.
I don't know why this regressed but I think you can use an earlier version instead of 17700 and that it should fix the problem?
I tried SoF II with 16900 but that didn't help either. I should have noted that I tried other games from my GOG library that are known to be affected by bug #25362 but none of them regressed after commit 17b86a90. They do start properly when using the '__GL_ExtensionStringVersion=' workaround. Such games are Return to Castle Wolfenstein, Kingpin, Star Wars: Jedi Academy, Star Wars: Jedi Outcast. Seems only Soldier of Fortune II is affected by this commit. Another game, Neverwinter Nights Diamond Edition which never required the Nvidia workaround to start, also crashes after commit 17b86a90 and reverting the commit fixes the crash. How does your patch from comment #2 actually work? I created a new application profile for the game executable (SOF2.exe) in winecfg, then created manually the regkey OpenGL under HKCU>Wine>AppDefaults>SoF2.exe with the key EnabledExtensions. How should I know which OpenGl extensions should be enabled for a specific game? -- 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.
http://bugs.winehq.org/show_bug.cgi?id=58422 --- Comment #4 from Rémi Bernon <rbernon(a)codeweavers.com> ---
How should I know which OpenGl extensions should be enabled for a specific game?
Probably difficult to tell exactly which are useful, but also probably not many are if it crashes when the list is too long. You could take whatever wglinfo returns with these vendor-specific env variable set, until the list is short enough and use that as the registry value. For me the game is running fine with MESA_EXTENSION_MAX_YEAR=2008. -- 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.
http://bugs.winehq.org/show_bug.cgi?id=58422 --- Comment #5 from Béla Gyebrószki <gyebro69(a)gmail.com> --- Works with current git master when UseEGL=Y registry key is created. wine-10.11-72-g54238a0646c -- 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.
http://bugs.winehq.org/show_bug.cgi?id=58422 --- Comment #6 from Rémi Bernon <rbernon(a)codeweavers.com> --- Eh well... good news? -- 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.
http://bugs.winehq.org/show_bug.cgi?id=58422 --- Comment #7 from Béla Gyebrószki <gyebro69(a)gmail.com> --- (In reply to Rémi Bernon from comment #6)
Eh well... good news?
Yes, definitely :) Will this setting become the default over time, or will it remain experimental? -- 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.
http://bugs.winehq.org/show_bug.cgi?id=58422 Béla Gyebrószki <gyebro69(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |FIXED Status|NEW |RESOLVED Fixed by SHA1| |54238a0646cb1e9fc0c98f4ffd3 | |442ea1d411a9c --- Comment #8 from Béla Gyebrószki <gyebro69(a)gmail.com> --- Fixed when using the new EGL OpenGL backend. -- 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.
http://bugs.winehq.org/show_bug.cgi?id=58422 --- Comment #9 from Rémi Bernon <rbernon(a)codeweavers.com> --- Yes, the goal is to make it the default. Maybe sooner than anticipated if it works so well :) -- 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.
http://bugs.winehq.org/show_bug.cgi?id=58422 Alexandre Julliard <julliard(a)winehq.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED --- Comment #10 from Alexandre Julliard <julliard(a)winehq.org> --- Closing bugs fixed in 10.12. -- 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