Hi,
I'm running current CVS with a fresh tools/wineinstall. Only changes to the config-file:
"Drivers" = "winealsa.drv" "HardwareAcceleration" = "Emulation"
; Zoo Tycoon 2 Demo install [AppDefaults\Zoo2Trial.exe\Version] "Windows" = "winxp" ; Zoo Tycoon 2 Demo run [AppDefaults\zt2demoretail.exe\x11drv] "Desktop" = "800x600"
installation of the app is fine (set version to winxp). When trying to run the demo it immediately fails:
fixme:d3d9:IDirect3DDevice9Impl_CreateSurface (0x77e38ea8) call to IWineD3DDevice_CreateRenderTarget failed First chance exception: page fault on read access to 0x00000000 in 32-bit code (0x14a9481a).
Fixed/circumvented that by:
Index: dlls/wined3d/directx.c =================================================================== RCS file: /home/wine/wine/dlls/wined3d/directx.c,v retrieving revision 1.25 diff -u -p -r1.25 directx.c --- dlls/wined3d/directx.c 2 Mar 2005 13:44:58 -0000 1.25 +++ dlls/wined3d/directx.c 5 Mar 2005 16:11:45 -0000 @@ -1578,7 +1578,8 @@ HRESULT WINAPI IWineD3DImpl_CreateDevi object->render_ctx = object->glCtx; object->renderTarget = object->backBuffer;
- IWineD3DSurface_AddRef((IWineD3DSurface *) object->renderTarget); + if (NULL != object->renderTarget) + IWineD3DSurface_AddRef((IWineD3DSurface *) object->renderTarget); /* TODO: Depth Stencil support object->stencilBufferTarget = object->depthStencilBuffer; if (NULL != object->stencilBufferTarget) {
It comes a bit further now but fails again:
trace:d3d:IWineD3DDeviceImpl_SetViewport glDepthRange call ok device.c / 1811 trace:d3d:IWineD3DDeviceImpl_SetViewport This->renderTarget : ((nil)) First chance exception: page fault on read access to 0x0000003c in 32-bit code (0x4658033a).
The extra trace was added by me. Again this points to *->renderTarget being NULL. So there must be more to it.
Any ideas? Oliver?
Cheers,
Paul.
On Sat, 2005-03-05 at 17:19, Paul Vriens wrote:
Hi,
I'm running current CVS with a fresh tools/wineinstall. Only changes to the config-file:
"Drivers" = "winealsa.drv" "HardwareAcceleration" = "Emulation"
; Zoo Tycoon 2 Demo install [AppDefaults\Zoo2Trial.exe\Version] "Windows" = "winxp" ; Zoo Tycoon 2 Demo run [AppDefaults\zt2demoretail.exe\x11drv] "Desktop" = "800x600"
installation of the app is fine (set version to winxp). When trying to run the demo it immediately fails:
fixme:d3d9:IDirect3DDevice9Impl_CreateSurface (0x77e38ea8) call to IWineD3DDevice_CreateRenderTarget failed First chance exception: page fault on read access to 0x00000000 in 32-bit code (0x14a9481a).
Fixed/circumvented that by:
Index: dlls/wined3d/directx.c
RCS file: /home/wine/wine/dlls/wined3d/directx.c,v retrieving revision 1.25 diff -u -p -r1.25 directx.c --- dlls/wined3d/directx.c 2 Mar 2005 13:44:58 -0000 1.25 +++ dlls/wined3d/directx.c 5 Mar 2005 16:11:45 -0000 @@ -1578,7 +1578,8 @@ HRESULT WINAPI IWineD3DImpl_CreateDevi object->render_ctx = object->glCtx; object->renderTarget = object->backBuffer;
- IWineD3DSurface_AddRef((IWineD3DSurface *) object->renderTarget);
- if (NULL != object->renderTarget)
IWineD3DSurface_AddRef((IWineD3DSurface *) object->renderTarget);
/* TODO: Depth Stencil support object->stencilBufferTarget = object->depthStencilBuffer; if (NULL != object->stencilBufferTarget) {
It comes a bit further now but fails again:
trace:d3d:IWineD3DDeviceImpl_SetViewport glDepthRange call ok device.c / 1811 trace:d3d:IWineD3DDeviceImpl_SetViewport This->renderTarget : ((nil)) First chance exception: page fault on read access to 0x0000003c in 32-bit code (0x4658033a).
The extra trace was added by me. Again this points to *->renderTarget being NULL. So there must be more to it.
Hi (again),
some more info.
It looks like we have no front- or backbuffer:
trace:d3d:IWineD3DImpl_CreateDevice Creating initial device surfaces trace:d3d9:IDirect3DDevice9Impl_CreateRenderTarget Relay trace:d3d9:IDirect3DDevice9Impl_CreateSurface (0x77e39258) Relay trace:d3d9:IDirect3DDevice9Impl_CreateSurface (0x77e39258) : w(800) h(600) fmt(22) surf@(nil) trace:d3d:IWineD3DDeviceImpl_CreateSurface (0x77e796f0) Create surface fixme:d3d9:IDirect3DDevice9Impl_CreateSurface (0x77e39258) call to IWineD3DDevice_CreateRenderTarget failed trace:d3d9:IDirect3DDevice9Impl_CreateRenderTarget Relay trace:d3d9:IDirect3DDevice9Impl_CreateSurface (0x77e39258) Relay trace:d3d9:IDirect3DDevice9Impl_CreateSurface (0x77e39258) : w(800) h(600) fmt(22) surf@(nil) trace:d3d:IWineD3DDeviceImpl_CreateSurface (0x77e796f0) Create surface fixme:d3d9:IDirect3DDevice9Impl_CreateSurface (0x77e39258) call to IWineD3DDevice_CreateRenderTarget failed trace:d3d:IWineD3DImpl_CreateDevice FrontBuf : ((nil)), BackBuf : ((nil))
The last trace was added by me. Should we continue if we have neither?
Paul.
Hello Paul, you wrote:
installation of the app is fine (set version to winxp). When trying to run the demo it immediately fails:
fixme:d3d9:IDirect3DDevice9Impl_CreateSurface (0x77e38ea8) call to IWineD3DDevice_CreateRenderTarget failed First chance exception: page fault on read access to 0x00000000 in 32-bit code (0x14a9481a).
I can confirm this bug which was introduced on March, 2nd by one of the patches by Oliver Stieber. I want to play the demo of Beyond Divinity [1] and get now the same error as Paul.
Regards
Henning
On Sun, 2005-03-06 at 06:48, Henning Gerhardt wrote:
Hello Paul, you wrote:
installation of the app is fine (set version to winxp). When trying to run the demo it immediately fails:
fixme:d3d9:IDirect3DDevice9Impl_CreateSurface (0x77e38ea8) call to IWineD3DDevice_CreateRenderTarget failed First chance exception: page fault on read access to 0x00000000 in 32-bit code (0x14a9481a).
I can confirm this bug which was introduced on March, 2nd by one of the patches by Oliver Stieber. I want to play the demo of Beyond Divinity [1] and get now the same error as Paul.
Regards
Henning
OK,
the cause of the problem:
trace:d3d:IWineD3DDeviceImpl_CreateSurface pow2Width : 1024, Width : 800, pow2Height : 1024, Height : 600 fixme:d3d:IWineD3DDeviceImpl_CreateSurface Add support for non power two compressed textures
(trace and fixme added by me).
so we have to wait on the WINED3D Guru's.
Paul.