App asks for multiple back buffers, but

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
A Nonny Moose
Level 4
Level 4
Posts: 217
Joined: Sun May 09, 2010 5:53 pm

App asks for multiple back buffers, but

Post by A Nonny Moose »

Seems wine isn't there yet. I think it only allocates one buffer, and my debug output indicates this is causing a problem. I got 15,000+ lines of output, and I am sure we don't want to put them on this database. However, here are the last few lines:

err:ddraw:IDirectDrawImpl_CreateNewSurface IWineD3DDevice::CreateSurface failed. hr = 8876017c
err:ddraw:IDirectDrawImpl_CreateSurface IDirectDrawImpl_CreateNewSurface failed with 8876017c
err:d3d:resource_init Out of adapter memory
err:ddraw:IDirectDrawImpl_CreateNewSurface IWineD3DDevice::CreateSurface failed. hr = 8876017c
err:ddraw:IDirectDrawImpl_CreateSurface IDirectDrawImpl_CreateNewSurface failed with 8876017c
err:d3d:resource_init Out of adapter memory
err:ddraw:IDirectDrawImpl_CreateNewSurface IWineD3DDevice::CreateSurface failed. hr = 8876017c
err:ddraw:IDirectDrawImpl_CreateSurface IDirectDrawImpl_CreateNewSurface failed with 8876017c
err:d3d_shader:arbfp_blit_unset >>>>>>>>>>>>>>>>> GL_INVALID_ENUM (0x500) from glDisable(GL_FRAGMENT_PROGRAM_ARB) @ arb_program_shader.c / 7054
err:d3d:resource_init Out of adapter memory
err:ddraw:IDirectDrawImpl_CreateNewSurface IWineD3DDevice::CreateSurface failed. hr = 8876017c
err:ddraw:IDirectDrawImpl_CreateSurface IDirectDrawImpl_CreateNewSurface failed with 8876017c
err:d3d_shader:arbfp_blit_unset >>>>>>>>>>>>>>>>> GL_INVALID_ENUM (0x500) from glDisable(GL_FRAGMENT_PROGRAM_ARB) @ arb_program_shader.c / 7054

The running program is SimCity 4 Rush Hour with all updates. This is an example of the graphics going haywire. WINEDEBUG was set to warn+heap because I was suspicious that heap space was the problem. The program running this particular tile goes wild for its graphical output, now, in less than five minutes of play. Symptoms are bad dialogue boxes, blank dialogue boxes, random garbage graphics.

What I think is happening is that when heap allocation is refused, the graphics drivers get stepped on, and the graphics in the frame buffer(s) become corrupt. I get RGBK garbage all over my screen at random, in squares showing one colour in each quadrant. This is an indication of a memory management problem or perhaps a problem with the page tables. It could also be associated with the fact that this program wants as many buffers as it can get, and expects to get more than one or two.

Is there any way to convince the system to give a program up to, say, 10 buffers?
vitamin
Moderator
Moderator
Posts: 6605
Joined: Sat Feb 23, 2008 2:29 pm

Re: App asks for multiple back buffers, but

Post by vitamin »

A Nonny Moose wrote:err:d3d:resource_init Out of adapter memory
You should increase amount of video memory Wine reports to the program. See VideoMemorySize key on http://wiki.winehq.org/UsefulRegistryKeys Note that it is a _text_ value not dword.
A Nonny Moose
Level 4
Level 4
Posts: 217
Joined: Sun May 09, 2010 5:53 pm

That seems to have worked.

Post by A Nonny Moose »

The key wasn't even there, so I built it. Ran the app way past the time when the trouble would occur. Thanks very much for that.

This will probably close all my problems with this game, and I have items in other forums that I will have to clean up.

I hate windows registry almost as much as I dislike Microsoft. The registry is an overcomplicated idea, and now they are stuck with it. It is almost as bad as Access and its Jet flame out engine.
Locked