Civilization 4 OpenGL problem, Wine 1.3.31 on Mac OS Lion

Questions about Wine on macOS.
Locked
Snowcat
Newbie
Newbie
Posts: 4
Joined: Tue Oct 25, 2011 2:16 am

Civilization 4 OpenGL problem, Wine 1.3.31 on Mac OS Lion

Post by Snowcat »

Hello, all.

I have a two Mac mini 4.1 (mid 2010: Intel Core 2 Duo P8600, 4Gb RAM, NVIDIA GeForce 320M, Intel HDA)

One has Snowleopard 10.6.8 (32-bit) installed,
another - Lion 10.7.2 (64-bit).

I have installed Wine 1.3.31 from MacPorts repository on both of them
and attempts to run Civilization 4 Complete Edition.

I've made dll substitution specific for this game using winetrics
(msxml3, vcrun2005).

On Snowleopard installation game runs just fine, but on Lion it produces
a lot of d3d errors after intro movie/logo are shown.

Most of problems reported are:
fixme:d3d:debug_fbostatus Unrecognied FBO status 0x00000000
err:d3d:buffer_create_buffer_object Failed to create a VBO with error GL_NO_ERROR (0)

The begining of errors log is:



Code: Select all

Mac:~/.wine/drive_c/Relax/Civilization4.Complete/Beyond the Sword$ wine Civ4BeyondSword.exe &
[1] 809
fixme:system:SystemParametersInfoW Unimplemented action: 55 (SPI_SETMOUSEKEYS)
fixme:system:SystemParametersInfoW Unimplemented action: 59 (SPI_SETSTICKYKEYS)
fixme:gameux:GameExplorerImpl_VerifyAccess (0x13c090, L"C:\\Relax\\Civilization4.Complete\\Beyond the Sword\\Civ4BeyondSword.exe", 0x32fb58)

fixme:wtsapi:WTSRegisterSessionNotification Stub 0x200f6 0x00000000
'import site' failed; use -v for traceback
fixme:win:EnumDisplayDevicesW ((null),0,0x32ef10,0x00000000), stub!
fixme:win:EnumDisplayDevicesW ((null),0,0x32f450,0x00000000), stub!
fixme:win:EnumDisplayDevicesW ((null),0,0x32f460,0x00000000), stub!
fixme:d3d:resource_check_usage Unhandled usage flags 0x8.
fixme:d3d:resource_check_usage Unhandled usage flags 0x8.
fixme:d3d:resource_check_usage Unhandled usage flags 0x8.
fixme:d3d:resource_check_usage Unhandled usage flags 0x8.
fixme:win:EnumDisplayDevicesW ((null),0,0x32efa0,0x00000000), stub!

fixme:d3d:debug_fbostatus Unrecognied FBO status 0x00000000
fixme:d3d:context_check_fbo_status FBO status unrecognized (0)
fixme:d3d:context_check_fbo_status 	Location SFLAG_INRB_MULTISAMPLE (0x200000).
fixme:d3d:context_check_fbo_status 	Color attachment 0: (0x1809b728) WINED3DFMT_B8G8R8X8_UNORM 1024x768 2 samples.
fixme:d3d:context_check_fbo_status 	Depth attachment: (0x18097628) WINED3DFMT_D24_UNORM_S8_UINT 1024x768 2 samples.

fixme:d3d:debug_fbostatus Unrecognied FBO status 0x00000000
fixme:d3d:context_check_fbo_status FBO status unrecognized (0)
fixme:d3d:context_check_fbo_status 	Location SFLAG_INRB_MULTISAMPLE (0x200000).
fixme:d3d:context_check_fbo_status 	Color attachment 0: (0x1809b728) WINED3DFMT_B8G8R8X8_UNORM 1024x768 2 samples.
fixme:d3d:context_check_fbo_status 	Depth attachment: (0x18097628) WINED3DFMT_D24_UNORM_S8_UINT 1024x768 2 samples.
fixme:d3d:resource_check_usage Unhandled usage flags 0x8.

err:d3d:buffer_create_buffer_object Failed to create a VBO with error GL_NO_ERROR (0)
err:d3d:buffer_create_buffer_object Failed to create a vertex buffer object. Continuing, but performance issues may occur
fixme:d3d_shader:gen_arbfp_ffp_shader Fragment program error at position 1121140005: (null)

fixme:d3d_shader:shader_arb_dump_program_source     !!ARBfp1.0
fixme:d3d_shader:shader_arb_dump_program_source     PARAM const = {1, 2, 4, 0.5};
fixme:d3d_shader:shader_arb_dump_program_source     TEMP TMP;
fixme:d3d_shader:shader_arb_dump_program_source     TEMP ret;
fixme:d3d_shader:shader_arb_dump_program_source     TEMP arg0;
fixme:d3d_shader:shader_arb_dump_program_source     TEMP arg1;
fixme:d3d_shader:shader_arb_dump_program_source     TEMP arg2;
fixme:d3d_shader:shader_arb_dump_program_source     PARAM specular_enable = program.env[1];
fixme:d3d_shader:shader_arb_dump_program_source     MOV ret, fragment.color.primary;
fixme:d3d_shader:shader_arb_dump_program_source     MAD result.color, fragment.color.secondary, specular_enable, ret;
fixme:d3d_shader:shader_arb_dump_program_source     END
fixme:d3d_shader:shader_arb_dump_program_source 
Can anyone give a clue how to solve this problem ?
jjmckenzie
Moderator
Moderator
Posts: 1153
Joined: Wed Apr 27, 2011 11:01 pm

Civilization 4 OpenGL problem, Wine 1.3.31 on Mac OS Lion

Post by jjmckenzie »

On Tue, Oct 25, 2011 at 12:28 AM, Snowcat <[email protected]> wrote:
Hello, all.

I have a two Mac mini 4.1 (mid 2010: Intel Core 2 Duo P8600, 4Gb RAM, NVIDIA GeForce 320M, Intel HDA)

One has Snowleopard 10.6.8 (32-bit) installed,
What kind of video card does this system have?
another - Lion 10.7.2 (64-bit).
And this one?

Also are you using XQuartz on the 10.6.8 system? It might have been
installed by MacPorts.

James
Snowcat
Newbie
Newbie
Posts: 4
Joined: Tue Oct 25, 2011 2:16 am

Re: Civilization 4 OpenGL problem, Wine 1.3.31 on Mac OS Lio

Post by Snowcat »

jjmckenzie wrote:On Tue, Oct 25, 2011 at 12:28 AM, Snowcat <[email protected]> wrote:

What kind of video card does this system have?
Writiing 'two Mac mini' i meant: two IDENTICAL mac mini.

So both of them have a NVIDIA GeForce 320M integrated chipset, which uses
up to 256Mb of RAM memory and supports DirectX 10.1, Shader 4.1.
jjmckenzie wrote: Also are you using XQuartz on the 10.6.8 system?
Both versions of Mac OS uses XQuartz as system default (i.e. installed by OS).

Snowleopard (10.6.8 ) utilizes XQuartz 2.3.6 (xorg-server 1.4.2-apple56),
while Lion (10.7.2) uses XQuartz 2.6.3 (xorg-server 1.10.3)

On both OS wine executable is a 'Mach-O executable i386'
but OpenGL errors occur only on Lion.
Ryan Woodsmall

Civilization 4 OpenGL problem, Wine 1.3.31 on Mac OS Lion

Post by Ryan Woodsmall »

Both versions of Mac OS uses XQuartz as system default (i.e. installed by OS).
Use the aftermarket Xquartz on both:

http://xquartz.macosforge.org/trac/wiki

The X server in Lion may have the same version number, but there are some fixes in the download package that didn't make it into the OS-supplied package. These will install into /opt/X11 on both 10.6 & 10.7. There's also an RC of a new Xquartz that will probably be released in the next few weeks.

I've heard of a number of issues on Lion though, and my Macs are on 10.6 so YMMV.-r
doh123
Level 8
Level 8
Posts: 1227
Joined: Tue Jul 14, 2009 1:21 pm

Post by doh123 »

make sure you've run the recent nvidia graphics update from Apple for 10.7.2 also if you have not. nvidia cards have had some minor issues with drivers so far in 10.7
Snowcat
Newbie
Newbie
Posts: 4
Joined: Tue Oct 25, 2011 2:16 am

Re: Civilization 4 OpenGL problem, Wine 1.3.31 on Mac OS Lio

Post by Snowcat »

doh123 wrote: .. recent nvidia graphics update from Apple for 10.7.2
i've installed it.
Ryan Woodsmall wrote: The X server in Lion may have the same version number, but there are some fixes in the download package that didn't make it into the OS-supplied package.
I've read descriptions of additional bug fixes in XQuartz 2.6.3 - they don't look like reason of my problem.

in any case i'll try XQuartz 2.7.0 that comes in two weeks.
Charles Davis

Civilization 4 OpenGL problem, Wine 1.3.31 on Mac OS Lion

Post by Charles Davis »

On Oct 26, 2011, at 8:20 PM, Snowcat wrote:
doh123 wrote:
.. recent nvidia graphics update from Apple for 10.7.2
i've installed it.


Ryan Woodsmall wrote:
The X server in Lion may have the same version number, but there are some fixes in the download package that didn't make it into the OS-supplied package.
I've read descriptions of additional bug fixes in XQuartz 2.6.3 - they don't look like reason of my problem.

in any case i'll try XQuartz 2.7.0 that comes in two weeks.
Don't. Stick with 2.6.3. At least, for now. See http://xquartz.macosforge.org/trac/ticket/512 .

Chip
Snowcat
Newbie
Newbie
Posts: 4
Joined: Tue Oct 25, 2011 2:16 am

SOLVED: OpenGL problem, Wine 1.3.31 on Mac OS Lion

Post by Snowcat »

Don't. Stick with 2.6.3. At least, for now.
Chip
You were right.
As i finally discovered the problematic packages are:
libpixman and xrender.

Applying recent patches to them solves the problem.
I've used MacPorts packages:
libpixman-0.24.0_0+universal.darwin_11.i386-x86_64.
xrender-0.9.6_1+universal.darwin_11.i386-x86_64
Locked