http://bugs.winehq.org/show_bug.cgi?id=28743
Bug #: 28743 Summary: Pathologic fails to start: 'Error creating renderer' Product: Wine Version: 1.3.30 Platform: x86 URL: http://www.fileplanet.com/162269/160000/fileinfo/Patho logic-Demo OS/Version: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: directx-d3d AssignedTo: wine-bugs@winehq.org ReportedBy: gyebro69@gmail.com CC: stefan@codeweavers.com Classification: Unclassified Regression SHA1: 4365d2905c6d1b5f530b077bec0d152e327be23b
Created attachment 36926 --> http://bugs.winehq.org/attachment.cgi?id=36926 plain terminal output
The game shows an error message right after started, saying 'Error creating renderer'. Pressing on the <Ok> button launches the game configuration utility. Pressing on <Cancel> quits the game. Thus the game is unable to start.
The game starts correctly up until this commit:
4365d2905c6d1b5f530b077bec0d152e327be23b is the first bad commit commit 4365d2905c6d1b5f530b077bec0d152e327be23b Author: Stefan Dösinger stefan@codeweavers.com Date: Tue Sep 27 09:17:18 2011 -0500
d3d9: Remove the palette implementation methods.
:040000 040000 df2948ddf8d1215e8278e3375244b8adf7a6211d 8b95a8e0e4e7524170ba43bc2ffe369359b9811d M dlls
The patch cannot be reverted on wine-1.3.30-145-g7a4349b (compilation of the source ended with errors), but git checkout 4365d2905c6d1b5f530b077bec0d152e327be23b >> the game errors out git reset --hard HEAD^ >> the game starts correctly
Steps to reproduce the problem in the demo: 1. Install the demo as usual. The game requires the following native components: wmp9 quartz devenum. You can install them via winetricks (actually, the error message appears well before the intro video). 2. Run the game by executing ../Buka/Pathologic Demo/bin/Final/Game.exe. On the first launch the config utility will appear; you don't need to change anything, just press on <Ok>... here comes the trouble: 'Error creating renderer'.
Let me know if you need a log with debug channels enabled.
Fedora 15 x86 Nvidia 250 / driver 280.13 X.Org X Server 1.10.4
http://bugs.winehq.org/show_bug.cgi?id=28743
GyB gyebro69@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |download, regression
http://bugs.winehq.org/show_bug.cgi?id=28743
--- Comment #1 from Stefan Dösinger stefan@codeweavers.com 2011-10-16 04:35:11 CDT --- Yay, a game that needs d3d9 palettized surfaces! I'll download it, let's see what it expects.
Out of curiosity, did you test if this game runs on Windows with modern GPUs(like a Geforce 6+ or Radeon 9500+)?
http://bugs.winehq.org/show_bug.cgi?id=28743
--- Comment #2 from GyB gyebro69@gmail.com 2011-10-16 04:51:07 CDT --- (In reply to comment #1)
Out of curiosity, did you test if this game runs on Windows with modern GPUs(like a Geforce 6+ or Radeon 9500+)?
I don't have native Windows installed (except for one running in Virtualbox), but presumably yes: the game is still sold worldwide by digital distribution services like Gamersgate or Direct2Drive. The game still has an active community nowadays.
http://bugs.winehq.org/show_bug.cgi?id=28743
--- Comment #3 from Stefan Dösinger stefan@codeweavers.com 2011-10-16 05:02:54 CDT --- Created attachment 36929 --> http://bugs.winehq.org/attachment.cgi?id=36929 P8 surface debug patch
The game doesn't seem to create any P8 surfaces :-( . As far as I can see the game only tries to set palette entries. I made it happy by returning D3D_OK instead of an error. Then it crashes because it can't create a 4294967295x4294967295 sized texture(-1 x -1). I guess that's because I don't have Windows Media Player installed.
Can you give the attached patch a try? It should make the first check happy. If the game tries to create a P8 surface or texture d3d9 will write a debug message and exit the game right away. If the game runs just fine it doesn't actually use P8 surfaces and just sets a palette.
http://bugs.winehq.org/show_bug.cgi?id=28743
--- Comment #4 from GyB gyebro69@gmail.com 2011-10-16 05:23:53 CDT --- Created attachment 36930 --> http://bugs.winehq.org/attachment.cgi?id=36930 P8 surface debug log
The game starts fine with your patch, without erroring out and it loads to the main menu. Here I'm attaching the log with your patch applied. I do have wmp9, native quartz and devenum dlls installed.
http://bugs.winehq.org/show_bug.cgi?id=28743
--- Comment #5 from Stefan Dösinger stefan@codeweavers.com 2011-10-31 13:45:18 CDT --- I've written some tests for palette setters and getters. A complication I've hit is that the current palette index(but not the palette entries themselves) are recorded in stateblocks.
The options we have now: 1) Ignore the entire issue, just return D3D_OK from the stubs and wait until we find a game that actually needs the functionality 2) Put the d3d8/9 palette API back into wined3d 3) Add stateblock recording functionality to d3d8/9 to record the current texture palette there
I'll probably go for 2, even though I don't like having the useless d3d8/9 palette code there.
http://bugs.winehq.org/show_bug.cgi?id=28743
--- Comment #6 from Stefan Dösinger stefan@codeweavers.com 2011-11-04 08:22:01 CDT --- While testing an entirely unrelated matter on my Radeon X1600 GPU I noticed that this GPU doesn't support P8 surfaces on Windows XP, and SetPaletteEntries returns D3DERR_INVALIDCALL. Yet the game works on this system, but it isn't clear to me why. Not advertising P8 surface support does not help, the game's logfile doesn't reveal anything of value and reporting the X1600's device IDs doesn't change the behavior. I also noticed that we report D3DPTEXTURECAPS_ALPHAPALETTE, which is probably wrong given that we don't support palettized textures, but changing that doesn't make the game happy either.
http://bugs.winehq.org/show_bug.cgi?id=28743
--- Comment #7 from GyB gyebro69@gmail.com 2012-05-02 13:03:57 CDT --- Still an issue as of wine-1.5.3-73-g93a0ca7.
http://bugs.winehq.org/show_bug.cgi?id=28743
Mystic-Mirage mm@m10e.net changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |mm@m10e.net
http://bugs.winehq.org/show_bug.cgi?id=28743
Mystic-Mirage mm@m10e.net changed:
What |Removed |Added ---------------------------------------------------------------------------- CC|mm@m10e.net |
http://bugs.winehq.org/show_bug.cgi?id=28743
Mystic-Mirage mm@m10e.net changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |mm@m10e.net
http://bugs.winehq.org/show_bug.cgi?id=28743
Frédéric Delanoy frederic.delanoy@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- URL|http://www.fileplanet.com/1 |ftp://ftp.4players.de/pub/p |62269/160000/fileinfo/Patho |c/pathologic/Pathologic_Dem |logic-Demo |o.zip CC| |frederic.delanoy@gmail.com
http://bugs.winehq.org/show_bug.cgi?id=28743
Stefan Dösinger stefan@codeweavers.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Fixed by SHA1| |c57511ce4adede3a248ae89fc8e | |a6fd7257b92f1 Status|UNCONFIRMED |RESOLVED Resolution| |FIXED
--- Comment #8 from Stefan Dösinger stefan@codeweavers.com 2013-01-14 16:32:59 CST --- Fixed by c57511ce4adede3a248ae89fc8ea6fd7257b92f1.
At least the SetPaletteEntries crash should be gone now. I still cannot start the game because of what I think are problems with our Windows Media Player libraries.
http://bugs.winehq.org/show_bug.cgi?id=28743
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #9 from Alexandre Julliard julliard@winehq.org 2013-01-18 14:56:46 CST --- Closing bugs fixed in 1.5.22.