http://bugs.winehq.org/show_bug.cgi?id=23706
Summary: Ship Simulator 2008 demo needs D3DXSaveSurfaceToFileInMemory Product: Wine Version: unspecified Platform: x86 URL: http://www.shipsim.com/downloads/trailers OS/Version: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: directx-d3dx9 AssignedTo: wine-bugs@winehq.org ReportedBy: misha680@gmail.com CC: wine-bugs@winehq.org
Once this bug is fixed: http://bugs.winehq.org/show_bug.cgi?id=22918
for example with bugs in this repository: http://github.com/misha680/wine/commits/
Ship Simulator 2008 demo crashes with this requirement: wine: Call from 0x7b8369f2 to unimplemented function d3dx9_36.dll.D3DXSaveSurfaceToFileInMemory, aborting wine: Unimplemented function d3dx9_36.dll.D3DXSaveSurfaceToFileInMemory called at address 0x7b8369f2 (thread 001c), starting debugger...
Misha
http://bugs.winehq.org/show_bug.cgi?id=23706
--- Comment #1 from Dmitry Timoshkov dmitry@codeweavers.com 2010-07-19 00:57:57 --- There is no need to cc: wine-bugs.
http://bugs.winehq.org/show_bug.cgi?id=23706
Dmitry Timoshkov dmitry@codeweavers.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC|wine-bugs@winehq.org |
http://bugs.winehq.org/show_bug.cgi?id=23706
Dmitry Timoshkov dmitry@codeweavers.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Version|unspecified |1.2
http://bugs.winehq.org/show_bug.cgi?id=23706
--- Comment #2 from Misha Koshelev misha680@gmail.com 2011-02-16 16:19:37 CST --- For what its worth I've started working on this.
Misha
http://bugs.winehq.org/show_bug.cgi?id=23706
--- Comment #3 from Misha Koshelev misha680@gmail.com 2011-02-17 15:17:51 CST --- Created an attachment (id=33321) --> (http://bugs.winehq.org/attachment.cgi?id=33321) Implement D3DXSaveSurfaceToFileInMemory
fixme:wincodecs:ImagingFactory_CreateEncoder (0x1a0a58,{0af1d87e-fcfe-4188-bdeb-a7906471cbe3},(null),0x32fb64): stub 978 surface.c:532: Test failed: Got result 8876086c, expected 0 (D3D_OK)
Unfortunately, ImagingFactory_CreateEncoder is not yet implemented.
Misha
http://bugs.winehq.org/show_bug.cgi?id=23706
--- Comment #4 from Vincent Povirk madewokherd@gmail.com 2011-02-17 16:10:01 CST --- CreateEncoder is just a wrapper around IWICBitmapEncoderInfo and CoCreateInstance. You shouldn't need it.
http://bugs.winehq.org/show_bug.cgi?id=23706
--- Comment #5 from Misha Koshelev misha680@gmail.com 2011-02-17 19:34:57 CST --- I see... sort of.(In reply to comment #4)
CreateEncoder is just a wrapper around IWICBitmapEncoderInfo and CoCreateInstance. You shouldn't need it.
I see... sort of.
I understand that once I have a IWICBitmapEncoderInfo, I simply call IWICBitmapEncoderInfo_CreateInstance(bitmapencoderinfo, &bitmapencoder).
However, I am a little unclear on the CoCreateInstance part.
For example, for the imaging factory, I use: CoCreateInstance(&CLSID_WICImagingFactory, NULL, CLSCTX_INPROC_SERVER, &IID_IWICImagingFactory, (void**)&factory); to create the instance.
If I have a GUID, such as GUID_ContainerFormatBmp, how do I use CoCreateInstance to create an instance of the appropriate IWICBitmapEncoderInfo? Is this then the CLSID? For example: CoCreateInstance(&GUID_ContainerFormatBmp, NULL, CLSCTX_INPROC_SERVER, &IID_IWICBitmapEncoderInfo, (void**)&bitmapencoderinfo);
Also, would this not work then? CoCreateInstance(&GUID_ContainerFormatBmp, NULL, CLSCTX_INPROC_SERVER, &IID_IWICBitmapEncoder, (void**)&bitmapencoderinfo); and save the call to IWICBitmapEncoderInfo_CreateInstance?
I don't mean to sound naive... but I learn on the fly.
Thank you Misha
http://bugs.winehq.org/show_bug.cgi?id=23706
--- Comment #6 from Vincent Povirk madewokherd@gmail.com 2011-02-17 19:43:51 CST --- You need a CLSID for the encoder you want. Either CLSID_WICBmpEncoder or CLSID_WICPngEncoder. The rest are currently unimplemented.
http://bugs.winehq.org/show_bug.cgi?id=23706
Misha Koshelev misha680@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Attachment #33321|0 |1 is patch| |
http://bugs.winehq.org/show_bug.cgi?id=23706
Józef Kucia joseph.kucia@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |joseph.kucia@gmail.com
--- Comment #7 from Józef Kucia joseph.kucia@gmail.com 2012-05-22 06:44:28 CDT --- Also affects King's Bounty demo.
http://bugs.winehq.org/show_bug.cgi?id=23706
Alexey Loukianov mooroon2@mail.ru changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |mooroon2@mail.ru
--- Comment #8 from Alexey Loukianov mooroon2@mail.ru 2012-05-24 01:12:56 CDT --- I can confirm that KB:Legend and rest of the games from that series running the same engine are affected by this one.
Game crashes as soon as I enter the game and try to open up in-game menu either by pressing "Menu" button with mouse or pressing "ESC" button on keyboard. Crash log consists of one simple string, so I post it here:
wine: Call from 0x7b83a2b2 to unimplemented function d3dx9_36.dll.D3DXSaveSurfaceToFileInMemory, aborting
http://bugs.winehq.org/show_bug.cgi?id=23706
--- Comment #9 from Józef Kucia joseph.kucia@gmail.com 2012-05-24 12:38:15 CDT --- Created attachment 40281 --> http://bugs.winehq.org/attachment.cgi?id=40281 Implement SaveSurfaceToFileInMemory
http://bugs.winehq.org/show_bug.cgi?id=23706
runetmember@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |runetmember@gmail.com
http://bugs.winehq.org/show_bug.cgi?id=23706
Wylda wylda@volny.cz changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |download, patch Status|UNCONFIRMED |NEW CC| |wylda@volny.cz Summary|Ship Simulator 2008 demo |d3dx9_36.dll.D3DXSaveSurfac |needs |eToFileInMemory is needed |D3DXSaveSurfaceToFileInMemo |by Ship Simulator 2008 |ry |demo, King's Bounty demo Ever Confirmed|0 |1
--- Comment #10 from Wylda wylda@volny.cz 2012-05-25 03:23:26 CDT ---
Updating bug's fields...
http://bugs.winehq.org/show_bug.cgi?id=23706
--- Comment #11 from Alexey Loukianov mooroon2@mail.ru 2012-05-25 06:47:29 CDT --- I can confirm that wine-1.5.4-336-g91e95e1 patched with attachment from comment #9 fixes King'g Bounty: The Lgend and other games that are based on the same engine. No visual glitches had been noticed so far so I assume it'd be safe to submit this patch for review and inclusion as soon as there would be some positive reports from other people concerning this patch.
http://bugs.winehq.org/show_bug.cgi?id=23706
--- Comment #12 from Wylda wylda@volny.cz 2012-05-25 22:52:45 CDT ---
Works for me too. No more crashes under full version of KB:Legend & wine-1.5.5 & comment #9's patch :-D
http://bugs.winehq.org/show_bug.cgi?id=23706
--- Comment #13 from Alexey Loukianov mooroon2@mail.ru 2012-05-27 14:25:27 CDT --- Ship Simulator 2008 is also "fixed" by patch from attachment #40281 - i.e. it does start up and no longer crashes on unimplemented D3DXSaceSurfaceToFileInMemory shortly after start up. Instead it crashes with something that looks like a heap and/or stack corruption (winedbg memory map post-mortem output seems to be bogus) inside libc having ID3DXBaseEffectImpl_GetTechniqueByName+0x78() being the callee in backtrace soon after accessing D3DXCreateEffect* stuff which is known to be broken currently. This crash is offtopic for this bug so I would post it to bug #13632.
http://bugs.winehq.org/show_bug.cgi?id=23706
Julian Rüger jr98@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |jr98@gmx.net
http://bugs.winehq.org/show_bug.cgi?id=23706
Bruno Jesus 00cpxxx@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |00cpxxx@gmail.com
--- Comment #14 from Bruno Jesus 00cpxxx@gmail.com 2012-05-31 23:27:34 CDT --- Patch commited: http://source.winehq.org/git/wine.git/commitdiff/70b1bff69520c2ba82bb54b1233...
http://bugs.winehq.org/show_bug.cgi?id=23706
--- Comment #15 from Alexey Loukianov mooroon2@mail.ru 2012-06-02 06:42:01 CDT --- Confirming fixed in wine-1.5.5-131-gbdd4294. Fixed by commit 70b1bf.
King's Bounty now works well despite some fixmes in logs about unhandled filter 0x5 in D3DXLoadSurfaceFromMemory.
Józef, thanks for your hard work on improving d3dx.
http://bugs.winehq.org/show_bug.cgi?id=23706
Bruno Jesus 00cpxxx@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Fixed by SHA1| |70b1bff69520c2ba82bb54b1233 | |8a76664c9e60a Status|NEW |RESOLVED Resolution| |FIXED
--- Comment #16 from Bruno Jesus 00cpxxx@gmail.com 2012-06-02 14:18:38 CDT --- Fixed.
http://bugs.winehq.org/show_bug.cgi?id=23706
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #17 from Alexandre Julliard julliard@winehq.org 2012-06-08 15:28:05 CDT --- Closing bugs fixed in 1.5.6.