http://bugs.winehq.org/show_bug.cgi?id=35223
Bug ID: 35223 Summary: King's Bounty Crossworlds crashes in the new campaign when entering the sea tower on the first island Product: Wine Version: 1.7.8 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: -unknown Assignee: wine-bugs@winehq.org Reporter: i30817@gmail.com Classification: Unclassified
As in the title. The error window it presents is: ".\BMRender\rmode.cpp(4050): DirectX call failed: 1, 1, D3ERR_INVALIDCALL (The method call is invalid. For example, a method's parameter may not be a valid pointer)"
This game already had crashes when loading levels or combat (probably) due to the implemented messages wine emits with it: "fixme:d3dx:D3DXCreateTextureFromFileInMemoryEx Generation of mipmaps for compressed pixel formats is not implemented yet"
These could be worked around by setting texture quality to minimum (on the Gallium 0.4 radeon driver). This error can't be worked around with that as far as i can tell. A similar, but different (different line number, -1 instead of 1) error on windows, apparently has a workaround of disabling vsync but that doesn't work in this case.
http://bugs.winehq.org/show_bug.cgi?id=35223
GyB gyebro69@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |gyebro69@gmail.com
--- Comment #1 from GyB gyebro69@gmail.com --- Please attach terminal output (http://wiki.winehq.org/FAQ#get_log) Does native d3dx9_36 work around the crash?
http://bugs.winehq.org/show_bug.cgi?id=35223
--- Comment #2 from paulo i30817@gmail.com --- Yes, d3dx9_36 works around the crash
http://bugs.winehq.org/show_bug.cgi?id=35223
--- Comment #3 from paulo i30817@gmail.com --- Created attachment 46979 --> http://bugs.winehq.org/attachment.cgi?id=46979 wine kb.exe &> logkb.txt
http://bugs.winehq.org/show_bug.cgi?id=35223
--- Comment #4 from paulo i30817@gmail.com --- Created attachment 46980 --> http://bugs.winehq.org/attachment.cgi?id=46980 crashing save
A save from inside the tower also crashes in the same way when loading in normal wine, if you want something to reproduce.
http://bugs.winehq.org/show_bug.cgi?id=35223
GyB gyebro69@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |regression Status|UNCONFIRMED |NEW CC| |stefan@codeweavers.com Component|-unknown |directx-d3d Ever confirmed|0 |1 Regression SHA1| |df5a0976e9f28836489e8977122 | |844fe053278b3
--- Comment #5 from GyB gyebro69@gmail.com --- I get the same crash in KB:Crossworlds when starting a new campaign, so can confirm this bug. I remembered not having this problem with earlier Wine versions, the game used to start fine with the built-in d3dx9_36. Indeed, it's not just native d3dx9_36 that works around the crash, but reverting the following commit also makes the crash go away:
df5a0976e9f28836489e8977122844fe053278b3 is the first bad commit commit df5a0976e9f28836489e8977122844fe053278b3 Author: Stefan Dösinger stefan@codeweavers.com Date: Fri Sep 6 00:11:12 2013 +0200
wined3d: Check the format block size before creating textures.
Sizes of textures and stand-alone surfaces must be multiples of the format's block size for DXTN formats. Since we create a texture for everything (except in ddraw), this check also takes care of stand-alone surfaces.
:040000 040000 708a8e23ff2885672a0f69c0780f1218443b49b7 94d43a126dbf43dbae065582afcbec32f346554d M dlls
This may very well be the same as bug #34692.
wine-1.7.9-19-ge54503f Fedora 19 x86 Nvidia binary drivers 325.15
http://bugs.winehq.org/show_bug.cgi?id=35223
--- Comment #6 from paulo i30817@gmail.com --- I'm sorry. When i wrote 'These could be worked around by setting texture quality to minimum' i meant maximum.
https://bugs.winehq.org/show_bug.cgi?id=35223
--- Comment #7 from Austin English austinenglish@gmail.com --- This is your friendly reminder that there has been no bug activity for over a year. Is this still an issue in current (1.7.37 or newer) wine? If so, please attach the terminal output in 1.7.37 (see http://wiki.winehq.org/FAQ#get_log).
https://bugs.winehq.org/show_bug.cgi?id=35223
--- Comment #8 from Béla Gyebrószki gyebro69@gmail.com --- Still present in 1.7.37
https://bugs.winehq.org/show_bug.cgi?id=35223
Stefan Dösinger stefandoesinger@gmx.at changed:
What |Removed |Added ---------------------------------------------------------------------------- CC|stefan@codeweavers.com |stefandoesinger@gmx.at
https://bugs.winehq.org/show_bug.cgi?id=35223
Józef Kucia joseph.kucia@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Component|directx-d3d |directx-d3dx9 CC| |joseph.kucia@gmail.com
--- Comment #9 from Józef Kucia joseph.kucia@gmail.com --- This is similar to bug 24983. The game creates 4x4 texture from 1x1 DXT1 file. DXTn compression is probably needed to make this work properly in d3dx9.
The following commit also affects the current behaviour with built-in d3dx9:
commit 190877422e644eb1eb7f43c2e817a7d163853175 Author: Matteo Bruni mbruni@codeweavers.com Date: Fri Feb 14 15:53:10 2014 +0100
d3dx9: Enforce minimum texture dimensions for block-based pixel formats.
Referencing df5a0976e9f28836489e8977122844fe053278b3 or 190877422e644eb1eb7f43c2e817a7d163853175 as the source of regression is not useful. These commits are correct and they only uncover the missing functionality in built-in d3dx9.
https://bugs.winehq.org/show_bug.cgi?id=35223
Józef Kucia joseph.kucia@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- See Also| |https://bugs.winehq.org/sho | |w_bug.cgi?id=21806
https://bugs.winehq.org/show_bug.cgi?id=35223
Józef Kucia joseph.kucia@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- See Also| |https://bugs.winehq.org/sho | |w_bug.cgi?id=24983
https://bugs.winehq.org/show_bug.cgi?id=35223
--- Comment #10 from Józef Kucia joseph.kucia@gmail.com --- Created attachment 54428 --> https://bugs.winehq.org/attachment.cgi?id=54428 Hack
https://bugs.winehq.org/show_bug.cgi?id=35223
Beta Version betaversiondot@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |betaversiondot@gmail.com
--- Comment #11 from Beta Version betaversiondot@gmail.com --- Still an issue in 3.0.
https://bugs.winehq.org/show_bug.cgi?id=35223
kiss.this.then@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |kiss.this.then@gmail.com
--- Comment #12 from kiss.this.then@gmail.com --- Created attachment 63013 --> https://bugs.winehq.org/attachment.cgi?id=63013 kb.exe log
Still an issue with wine-3.0.4.
Attached terminal output.
I also installed native d3dx9_36 and d3dx9_43 through winetricks, which did NOT fix the crash.
Machine specs: Model Name: MacBook Pro Model Identifier: MacBookPro12,1 Processor Name: Intel Core i5 Processor Speed: 2.7 GHz Chipset Model: Intel Iris Graphics 6100 Type: GPU Bus: Built-In VRAM (Dynamic, Max): 1536 MB
https://bugs.winehq.org/show_bug.cgi?id=35223
--- Comment #13 from Matteo Bruni matteo.mystral@gmail.com --- (In reply to kiss.this.then from comment #12)
I also installed native d3dx9_36 and d3dx9_43 through winetricks, which did NOT fix the crash.
You need to figure out which exact version of the dll the game uses (e.g. with a +loaddll trace), installing only d3dx9_36.dll is not enough anymore.
https://bugs.winehq.org/show_bug.cgi?id=35223
joaopa jeremielapuree@yahoo.fr changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |jeremielapuree@yahoo.fr
--- Comment #14 from joaopa jeremielapuree@yahoo.fr --- This bug is fixed by commit 376182062ff1ab8e7835fd67bc650da83c2cc75d
Can an administrator close this bug as FIXED?
https://bugs.winehq.org/show_bug.cgi?id=35223
Olivier F. R. Dierick o.dierick@piezo-forte.be changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Fixed by SHA1| |376182062ff1ab8e7835fd67bc6 | |50da83c2cc75d CC| |o.dierick@piezo-forte.be Resolution|--- |FIXED
--- Comment #15 from Olivier F. R. Dierick o.dierick@piezo-forte.be --- Hello,
Marking fixed.
Regards.
https://bugs.winehq.org/show_bug.cgi?id=35223
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #16 from Alexandre Julliard julliard@winehq.org --- Closing bugs fixed in 4.18.