http://bugs.winehq.org/show_bug.cgi?id=23240
Summary: "Ambient Lighting" sample D3D program crashes Product: Wine Version: 1.2-rc3 Platform: x86 URL: http://www.applicachia.com/HLSLAmbientLighting.zip OS/Version: Linux Status: NEW Keywords: download, source Severity: normal Priority: P2 Component: directx-d3d AssignedTo: wine-bugs@winehq.org ReportedBy: dank@kegel.com
I ran into http://www.applicachia.com while looking for direct3d sample code. The simplest HLSL demo crashes with:
Unhandled exception: page fault on write access to 0x00002c10 in 32-bit code (0x00121b13). Backtrace: =>0 0x00121b13 1 IDirect3DDevice9Impl_GetDirect3D+0x90(iface=0x122308, ppD3D9=0x69be14) [dlls/d3d9/device.c:340] 2 IDirect3DDevice9Impl_GetDirect3D+0x90(iface=0x123ef8, ppD3D9=(nil)) [dlls/d3d9/device.c:340] 3 0x00498a84 in d3dx9_26 (+0x58a83)
'winetricks d3dx9' does not work around the problem.
http://bugs.winehq.org/show_bug.cgi?id=23240
Andrew Millington andrew.millington@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |andrew.millington@gmail.com
--- Comment #1 from Andrew Millington andrew.millington@gmail.com 2010-07-24 04:07:25 ---
From HLSLAmbientLighting.exe I get
wine: Call from 0x7b836902 to unimplemented function d3dx9_36.dll.D3DXLoadMeshFromXA, aborting
http://bugs.winehq.org/show_bug.cgi?id=23240
--- Comment #2 from Dan Kegel dank@kegel.com 2010-07-24 08:22:13 --- Does 'winetricks d3dx9_36' work around that for you?
http://bugs.winehq.org/show_bug.cgi?id=23240
--- Comment #3 from Andrew Millington andrew.millington@gmail.com 2010-07-24 23:48:00 --- wine-1.2-422-ge158bb0 'winetricks d3dx9_36' does not work around this bug.
http://bugs.winehq.org/show_bug.cgi?id=23240
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |wine-bugs@winehq.org Component|directx-d3d |directx-d3dx9
--- Comment #4 from Austin English austinenglish@gmail.com 2010-07-25 18:32:49 --- Crashes here as well, on my laptop: I get the D3DXLoadMeshFromXA crash, then after winetricks d3dx9_36, I get: Backtrace: =>0 0x685b6582 IWineD3DImpl_GetParent+0x12(iface=0x128628, pParent=0x32eb78) [/home/austin/wine-git/dlls/wined3d/directx.c:4845] in wined3d (0x0032eb24) 1 0x6853fe90 IDirect3DDevice9Impl_GetDirect3D+0x6f(iface=0x129d40, ppD3D9=0x32eb78) [/home/austin/wine-git/dlls/d3d9/device.c:340] in d3d9 (0x0032eb94) 2 0x685442a5 IDirect3DDevice9Impl_QueryInterface+0x204(iface=0x129d40, riid=<is not available>, ppobj=0x32ebb4) [/home/austin/wine-git/dlls/d3d9/device.c:213] in d3d9 (0x0032ebbc) 3 0x005d3a3e in d3dx9_36 (+0x193a3d) (0x0032ebe4)
http://bugs.winehq.org/show_bug.cgi?id=23240
--- Comment #5 from Andrew Millington andrew.millington@gmail.com 2011-02-21 01:18:00 CST --- wine: Call from 0x7b8397a2 to unimplemented function d3dx9_36.dll.D3DXLoadMeshFromXA, aborting
Tank'd : https://www.digipen.edu/?id=1170&proj=466
http://bugs.winehq.org/show_bug.cgi?id=23240
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED
--- Comment #6 from Austin English austinenglish@gmail.com 2011-06-08 13:01:29 CDT --- The D3DXLoadMeshFromXA crash is fixed by: http://source.winehq.org/git/wine.git/commitdiff/c6f5f10434c3f6b9844f83e9259...
now it does: fixme:d3dx:ID3DXMeshImpl_OptimizeInplace D3DXMESHOPT_VERTEXCACHE not implemented. fixme:d3dx:D3DXGetImageInfoFromFileInMemory (0x7f0000, 196664, 0x33f9dc): partially implemented fixme:d3dx:D3DXCreateEffectEx (0x12a828, 0x3e0000, 1801, (nil), (nil), (nil), 0, (nil), 0x4a2a04, (nil)): semi-stub fixme:d3dx:d3dx9_base_effect_init HLSL ascii effects not supported, yet fixme:d3dx:ID3DXEffectImpl_SetTechnique (0x173268)->(0x490ddc): stub fixme:d3dx:ID3DXBaseEffectImpl_SetMatrix iface 0x173288, parameter 0x490dcc, matrix 0x33fb34 stub fixme:d3dx:ID3DXBaseEffectImpl_SetTexture iface 0x173288, parameter 0x490db4, texture 0x128948 stub
and an infinite flood of: fixme:d3dx:ID3DXEffectImpl_BeginPass (0x173268)->(47372): stub fixme:d3dx:ID3DXEffectImpl_EndPass (0x173268)->(): stub
but never crashes.
http://bugs.winehq.org/show_bug.cgi?id=23240
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #7 from Alexandre Julliard julliard@winehq.org 2011-06-10 13:17:32 CDT --- Closing bugs fixed in 1.3.22.