https://bugs.winehq.org/show_bug.cgi?id=46785
Bug ID: 46785 Summary: Battle Realms fails to start: "Could not initialize rasterizer API" Product: Wine-staging Version: 4.3 Hardware: x86 URL: https://www.fileplanet.com/archive/p-6817/Battle-Realm s-Demo OS: Linux Status: NEW Keywords: download Severity: normal Priority: P2 Component: -unknown Assignee: wine-bugs@winehq.org Reporter: gyebro69@gmail.com CC: andrew@fatbag.net, leslie_alistair@hotmail.com, z.figura12@gmail.com Distribution: ---
Created attachment 63800 --> https://bugs.winehq.org/attachment.cgi?id=63800 terminal output
Battle Realms from GOG.com shows the error message "Could not initialize rasterizer API" on launch then it crashes. The crash can be reproduced in the demo version too (minus the error message which is not presented in the demo).
The patch to blame:
https://github.com/wine-staging/wine-staging/blob/master/patches/ddraw-versi...
wine-4.3-95-g968eda4b18 (Staging) OpenGL vendor string: NVIDIA Corporation OpenGL renderer string: GeForce GT 730/PCIe/SSE2 OpenGL core profile version string: 4.6.0 NVIDIA 418.42.02
https://bugs.winehq.org/show_bug.cgi?id=46785
Alistair Leslie-Hughes leslie_alistair@hotmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Component|-unknown |directx-d3d Product|Wine-staging |Wine
--- Comment #1 from Alistair Leslie-Hughes leslie_alistair@hotmail.com --- Using the demo provided, it crashes in wine and wine-staging. Removing the staging patch doesn't appear to make any difference for me.
https://bugs.winehq.org/show_bug.cgi?id=46785
--- Comment #2 from Alistair Leslie-Hughes leslie_alistair@hotmail.com --- Created attachment 63801 --> https://bugs.winehq.org/attachment.cgi?id=63801 +ddraw,d3d
https://bugs.winehq.org/show_bug.cgi?id=46785
--- Comment #3 from Béla Gyebrószki gyebro69@gmail.com --- Created attachment 63804 --> https://bugs.winehq.org/attachment.cgi?id=63804 +ddraw,+d3d log in plain Wine (WORKS)
Works for me in plain wine-4.3-95-g968eda4b18.
https://bugs.winehq.org/show_bug.cgi?id=46785
--- Comment #4 from Béla Gyebrószki gyebro69@gmail.com --- Created attachment 63805 --> https://bugs.winehq.org/attachment.cgi?id=63805 +ddraw,+d3d log when patch applied (CRASH)
The game crashes when the 'ddraw: Return correct devices based off requested DirectX version.' patch from staging is applied on top of plain Wine (the patch also needs the 'ddraw-Device_Caps' patchset).
https://bugs.winehq.org/show_bug.cgi?id=46785
Béla Gyebrószki gyebro69@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Product|Wine |Wine-staging Component|directx-d3d |-unknown
--- Comment #5 from Béla Gyebrószki gyebro69@gmail.com --- (In reply to Alistair Leslie-Hughes from comment #1)
Using the demo provided, it crashes in wine and wine-staging. Removing the staging patch doesn't appear to make any difference for me.
That's likely a different issue, maybe related to the open source nouveau driver?
As I pointed out earlier, the problem only occurs in staging but not in plain Wine.
https://bugs.winehq.org/show_bug.cgi?id=46785
--- Comment #6 from Alistair Leslie-Hughes leslie_alistair@hotmail.com --- Created attachment 63850 --> https://bugs.winehq.org/attachment.cgi?id=63850 Updated patch
Can you please try this updated patch to see if it fixes the problem?
https://bugs.winehq.org/show_bug.cgi?id=46785
--- Comment #7 from Béla Gyebrószki gyebro69@gmail.com --- (In reply to Alistair Leslie-Hughes from comment #6)
Created attachment 63850 [details] Updated patch
Can you please try this updated patch to see if it fixes the problem?
No, it doesn't. The problem remains with the updated patch.
https://bugs.winehq.org/show_bug.cgi?id=46785
Paul Gofman gofmanp@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |gofmanp@gmail.com
https://bugs.winehq.org/show_bug.cgi?id=46785
--- Comment #8 from Paul Gofman gofmanp@gmail.com --- Created attachment 63939 --> https://bugs.winehq.org/attachment.cgi?id=63939 ddraw: Check device_list[] entry version in d3d7_EnumDevices()
I've tested the demo and could reproduce the problem, it was running fine in Wine for me but crashing in Wine Staging. Removing 0001-ddraw-Return-correct-devices-based-off-requested-Dir.patch was fixing the issue (0003-ddraw-Implement-DDENUMSURFACES_CANBECREATED-flag-in-.patch had to be removed also or it won't compile).
I am attaching the patch on top of current Wine Staging (with all the patches in place) which fixes the issue for me.
https://bugs.winehq.org/show_bug.cgi?id=46785
Alistair Leslie-Hughes leslie_alistair@hotmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |FIXED Status|NEW |RESOLVED
--- Comment #9 from Alistair Leslie-Hughes leslie_alistair@hotmail.com --- (In reply to Paul Gofman from comment #8)
Created attachment 63939 [details] ddraw: Check device_list[] entry version in d3d7_EnumDevices()
I've tested the demo and could reproduce the problem, it was running fine in Wine for me but crashing in Wine Staging. Removing 0001-ddraw-Return-correct-devices-based-off-requested-Dir.patch was fixing the issue (0003-ddraw-Implement-DDENUMSURFACES_CANBECREATED-flag-in-.patch had to be removed also or it won't compile).
I am attaching the patch on top of current Wine Staging (with all the patches in place) which fixes the issue for me.
Thanks Paul.
The patch has been updated.
https://bugs.winehq.org/show_bug.cgi?id=46785
Zebediah Figura z.figura12@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Fixed by SHA1| |d82dea3b216a9dad141359227d2 | |941493fe23713
https://bugs.winehq.org/show_bug.cgi?id=46785
Alistair Leslie-Hughes leslie_alistair@hotmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #10 from Alistair Leslie-Hughes leslie_alistair@hotmail.com --- Closing Fixed Staging bugs.