Error on launch: D3DERR_SURFACENOTINVIDMEM (MechWarrior 4)

Questions about Wine on Linux
Locked
tropicalpioneer
Newbie
Newbie
Posts: 3
Joined: Tue Sep 28, 2021 8:51 pm

Error on launch: D3DERR_SURFACENOTINVIDMEM (MechWarrior 4)

Post by tropicalpioneer »

When I launch MechWarrior 4 Mercenaries a black window opens and this first message appears:
Screenshot from 2021-10-20 02-01-29.png
Screenshot from 2021-10-20 02-01-29.png (3.51 KiB) Viewed 1959 times
Details:

Code: Select all

STOP      : FAILED (0x887602eb - D3DERR_SURFACENOTINVIDMEM) - CreateDevice(BLADE from 0x1c73a0)

Processor Registers EAX=0x00000000 EBX=0x00000000 ECX=0x00000000 EDX=0x00000000 Flags=0x00000000
=================== ESI=0x00000000 EDI=0x00000000 EBP=0x0031DCB0 ESP=0x0031DB48   EIP=0x00000000
EIP (0x00000000) ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? 
ESP (0x0031DB48) 0031DCA4 001C73A0 887602EB 0079F128 007A6312 00000000 0031DBC8 0031DC2C 
                 001A6DB0 00000001 00000000 00000053 00000006 00000000 00000006 00000076 
                 00000010 697F4DD4 00000000 00000000 00000000 00000001 00000010 00000000 

Machine details
===============
Executable name           : C:\Program Files (x86)\Microsoft Games\Mechwarrior Mercenaries\MW4Mercs.exe
Executable time, date     : 21:07:54 Saturday 11/2/2002
Command line              : 
If I click "Continue" another error pops up:
Screenshot from 2021-10-20 02-09-30.png
Screenshot from 2021-10-20 02-09-30.png (1.95 KiB) Viewed 1959 times
Details:

Code: Select all

STOP      : FAILED (0x80070005 - WINERR_Error: 0x80070005) - CoCreateInstance(IDirectPlayLobby3A)
Try 

Processor Registers EAX=0x00000000 EBX=0x00000000 ECX=0x00000000 EDX=0x00000000 Flags=0x00000000
=================== ESI=0x00000000 EDI=0x00000000 EBP=0x0031DCF4 ESP=0x0031DB8C   EIP=0x00000000
EIP (0x00000000) ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? 
ESP (0x0031DB8C) 0031DCE8 0079EE18 80070005 00000000 0031DD00 0031DC08 00300030 00300037 
                 00300030 00000035 0000005A 00000000 00000000 00000000 00000000 00000000 
                 FFFFFFFF 00000000 00000000 00000000 00000001 00000000 00000000 007A4A00 

Machine details
===============
Executable name           : C:\Program Files (x86)\Microsoft Games\Mechwarrior Mercenaries\MW4Mercs.exe
Executable time, date     : 21:07:54 Saturday 11/2/2002
Command line              : 
Current directory         : C:\Program Files (x86)\Microsoft Games\Mechwarrior Mercenaries
Current time, date        : 02:11:58 Wednesday 10/20/2021
GameOS build version      : Version 1.1 11/2/2000
Software rasterizer       : c:\program files (x86)\microsoft games\mechwarrior mercenaries\blade.dll (Size 286,786 bytes)
User name                 : guestzero
Machine name              : GUEST
Processor                 : 2419MHz Intel Unknown (0x6c0) MMX SSE Model=12, Type=6, Stepping=1 (8 Processors) 
Cache Information         : L1: 0K code / 0K data  L2: 0K
L2 r/w/rw speed           : 0 cycles 0MB/s, 3 cycles 25802MB/s, 0 cycles 0MB/s
Main memory r/w/rw speed  : 3 cycles 25802MB/s, 5 cycles 15481MB/s, 4 cycles 19352MB/s
Video memory r/w/rw speed : 0 cycles 0MB/s, 6 cycles 12901MB/s, 1 cycles 77408MB/s
Operating system          : Windows (6.1.7601)  Service Pack 1
DirectX version           : 9.04.00.0904
Time since booted         : 0h 18m 16s
Time in game logic        : 0h 0m 0.00s (on frame 0)
Time app running          : 0h 0m 0.00s
Physical memory           : 2,147,483,647 bytes (2048 Meg)
Available physical memory : 2,147,483,647 bytes (2048 Meg)
Swapfile size             : 4,294,443,007 bytes (4095 Meg)
Swapfile available        : 4,294,967,295 bytes (0 Meg)
Virtual memory            : 2,147,352,575 bytes (2048 Meg)
Available virtual memory  : 2,147,287,039 bytes (2048 Meg)
Amount of stack used      : 9452 bytes
Memory load               : 45%
Desktop video mode        : 1920,1080 32bpp
Mode when crash occured   : Windowed 800x600x16 (Intel(R) HD Graphics 4000)
Networked Machine         : No
Executable version        : 50.06.09.3002
PCI Chipset               : Unknown

               Processes  Pri Threads Path
==========================================
            MW4Mercs.exe :  2 :   8 : C:\Program Files (x86)\Microsoft Games\Mechwarrior Mercenaries\MW4Mercs.exe

DLL Version numbers
===================
msvcrt.dll    - Version 1.0 - Found in C:\Program Files (x86)\Microsoft Games\Mechwarrior Mercenaries
msvcrtd.dll   - Found in C:\windows\system32 - No info
msvcirt.dll   - Version 6.00.8168.0 - Found in C:\Program Files (x86)\Microsoft Games\Mechwarrior Mercenaries
Could not find 'msvcirtd.dll'
amstream.dll  - Version 6.5
quartz.dll    - Version 6.5
Could not find 'Ir50_32.dll'
dsound.dll    - Version 5.3.1.904
dinput.dll    - Version 5.1
d3dim.dll     - Version 5.3
ddraw.dll     - Version 5.3.1.904
dplayx.dll    - Version 5.3.1.904

Sound device 0 (Current) - (HW Mixing Disabled)
==============
Description        : Pulseaudio
Driver file        : winemm.vxd
Driver file data   : Cannot find driver file
CERTIFIED          : Yes
EMULDRIVER         : No
CONTINUOUSRATE     : Yes
PRIMARYMONO        : Yes
PRIMARYSTEREO      : Yes
PRIMARY8BIT        : Yes
PRIMARY16BIT       : Yes
SECONDARYMONO      : Yes
SECONDARYSTEREO    : Yes
SECONDARY8BIT      : Yes
SECONDARY16BIT     : Yes
MinSecondarySampleRate      : 100
MaxSecondarySampleRate      : 200000
PrimaryBuffers              : 1
MaxHwMixingAllBuffers       : 16
MaxHwMixingStaticBuffers    : 16
MaxHwMixingStreamingBuffers : 16
FreeHwMixingAllBuffers      : 16
FreeHwMixingStaticBuffers   : 16
FreeHwMixingStreamingBuffers: 16
MaxHw3DAllBuffers           : 0
MaxHw3DStaticBuffers        : 0
MaxHw3DStreamingBuffers     : 0
FreeHw3DAllBuffers          : 0
FreeHw3DStaticBuffers       : 0
FreeHw3DStreamingBuffers    : 0
TotalHwMemBytes             : 0
FreeHwMemBytes              : 0
MaxContigFreeHwMemBytes     : 0
UnlockTransferRateHwBuffers : 0
PlayCpuOverheadSwBuffers    : 0

Video device 0
==============
Description        : Intel(R) HD Graphics 4000
Company / Chipset  : Intel / 
Driver file        : igdumdim32.dll
Driver file data   : Cannot find driver file
Version            : 0.0.0000
Hardware ID        : 8086.0162 (Rev 0, Subsys 0x0)
Video memory       : 3,212,931,072 bytes (3064 Meg)
Card texture mem   : 3,212,931,072 bytes (3064 Meg)
AGP texture memory : 3,212,931,072 bytes (3064 Meg)
FourCC modes       : YUY2 UYVY YV12 DXT1 DXT2 DXT3 DXT4 DXT5 ATI2                                    
Texture formats    : 555 1555 4444 565 0888 8888 FourCC (1TXD) FourCC (2TXD) FourCC (3TXD) FourCC (4TXD) FourCC (5TXD) Bump map DuDv (8,8) Bump map DuDv (5,5) Bump map DuDv (8,8) 
Z Buffer formats   : 16 bit Z 32 bit Z (Z=32 (0xffffff) Stencil=8 (0xff000000)) 24 bit Z 
16 bit modes       : 512x384 576x432 640x400 640x480 640x512 680x384 684x384 700x450 700x525 720x405 720x450 800x450 800x512 800x600 840x525 864x486 
32 bit modes       : 512x384 576x432 640x400 640x480 640x512 680x384 684x384 700x450 700x525 720x405 720x450 800x450 800x512 800x600 840x525 864x486 
CERTIFIED          : Yes
DRAWPRIMITIVES2    : Yes
DRAWPRIMITIVES2EX  : Yes
DRAWPRIMTLVERTEX   : Yes
FLIPINTERVAL       : No
FLIPNOVSYNC        : No
NO2DDURING3DSCENE  : No
NONLOCALVIDMEM     : No
NOPAGELOCKREQUIRED : Yes
CALIBRATE GAMMA    : No
PRIMARYGAMMA       : Yes
ZBuffer            : 16 24
Render Depth       : 16 24 32
Texture Size       : 1x1 to 16384x16384
Maximum u,v coords : (for a 256*256 texture) 128.0
Guard Band Clipping: -32768,-32768 to 32768,32768
AlphaTest NotEqual : Yes
Missing Src blend  : 
Missing Dest blend : 
AGP Texture        : No
Texture Coords     : 8
Blend Stages       : 8
Max Textures       : 8
Hardware T&L       : Yes
Vertex Blending    : 4
Maximum Lights     : 8
Clip Planes        : 8
Blend Lightmap     : Ok
Blend Specularmap  : Ok
Blend Detail       : Ok
Linear vid memory  : Yes
SELECTARG1         : Yes
SELECTARG2         : Yes
ADD                : Yes
ADDSIGNED          : Yes
SUBTRACT           : Yes
MODULATE           : Yes
MODULATE2X         : Yes
MODULATE4X         : Yes
BLENDCURRENTALPHA  : Yes
BLENDDIFFUSEALPHA  : No
BLENDTEXTUREALPHA  : Yes
BUMPENVMAP         : Yes
BUMPENVMAPLUMINANCE: Yes
DOTPRODUCT3        : Yes
ANISOTROPY         : Yes
ANTIALIASSORTINDEP : No
FOGTABLE           : Yes
FOGVERTEX          : Yes
FOGRANGE           : Yes
WFOG               : Yes
WBUFFER            : No
MIPMAPLODBIAS      : Yes
WBUFFER            : No
ZBUFFERLESSHSR     : No
MIPNEAREST         : Yes
LINEARMIPLINEAR    : Yes
DONOTSTRIPELEMENTS : No
TEXTURE CLAMP      : Yes
TEXTURE BORDER     : Yes
TEXTURE MIRROR     : Yes
ALPHAGOURAUDBLEND  : Yes
SQUAREONLY         : No
COLORFLATMONO      : No
COLORGOURAUDMONO   : Yes
COLORFLATRGB       : Yes
COLORGOURAUDRGB    : Yes
SPECULARFLATRGB    : Yes
SPECULARGOURAUDRGB : No

Video device 1
==============
Description        : Intel(R) HD Graphics 4000
Company / Chipset  : Intel / 
Driver file        : igdumdim32.dll
Driver file data   : Cannot find driver file
Version            : 0.0.0000
Hardware ID        : 8086.0162 (Rev 0, Subsys 0x0)
Video memory       : 3,212,931,072 bytes (3064 Meg)
Card texture mem   : 3,212,931,072 bytes (3064 Meg)
AGP texture memory : 3,212,931,072 bytes (3064 Meg)
FourCC modes       : YUY2 UYVY YV12 DXT1 DXT2 DXT3 DXT4 DXT5 ATI2                                    
Texture formats    : 555 1555 4444 565 0888 8888 FourCC (1TXD) FourCC (2TXD) FourCC (3TXD) FourCC (4TXD) FourCC (5TXD) Bump map DuDv (8,8) Bump map DuDv (5,5) Bump map DuDv (8,8) 
Z Buffer formats   : 16 bit Z 32 bit Z (Z=32 (0xffffff) Stencil=8 (0xff000000)) 24 bit Z 
16 bit modes       : 512x384 576x432 640x400 640x480 640x512 680x384 684x384 700x450 700x525 720x405 720x450 800x450 800x512 800x600 840x525 864x486 
32 bit modes       : 512x384 576x432 640x400 640x480 640x512 680x384 684x384 700x450 700x525 720x405 720x450 800x450 800x512 800x600 840x525 864x486 
CERTIFIED          : Yes
DRAWPRIMITIVES2    : Yes
DRAWPRIMITIVES2EX  : Yes
DRAWPRIMTLVERTEX   : Yes
FLIPINTERVAL       : No
FLIPNOVSYNC        : No
NO2DDURING3DSCENE  : No
NONLOCALVIDMEM     : No
NOPAGELOCKREQUIRED : Yes
CALIBRATE GAMMA    : No
PRIMARYGAMMA       : Yes
ZBuffer            : 16 24
Render Depth       : 16 24 32
Texture Size       : 1x1 to 16384x16384
Maximum u,v coords : (for a 256*256 texture) 128.0
Guard Band Clipping: -32768,-32768 to 32768,32768
AlphaTest NotEqual : Yes
Missing Src blend  : 
Missing Dest blend : 
AGP Texture        : No
Texture Coords     : 8
Blend Stages       : 8
Max Textures       : 8
Hardware T&L       : Yes
Vertex Blending    : 4
Maximum Lights     : 8
Clip Planes        : 8
Blend Lightmap     : Ok
Blend Specularmap  : Ok
Blend Detail       : Ok
Linear vid memory  : Yes
SELECTARG1         : Yes
SELECTARG2         : Yes
ADD                : Yes
ADDSIGNED          : Yes
SUBTRACT           : Yes
MODULATE           : Yes
MODULATE2X         : Yes
MODULATE4X         : Yes
BLENDCURRENTALPHA  : Yes
BLENDDIFFUSEALPHA  : No
BLENDTEXTUREALPHA  : Yes
BUMPENVMAP         : Yes
BUMPENVMAPLUMINANCE: Yes
DOTPRODUCT3        : Yes
ANISOTROPY         : Yes
ANTIALIASSORTINDEP : No
FOGTABLE           : Yes
FOGVERTEX          : Yes
FOGRANGE           : Yes
WFOG               : Yes
WBUFFER            : No
MIPMAPLODBIAS      : Yes
WBUFFER            : No
ZBUFFERLESSHSR     : No
MIPNEAREST         : Yes
LINEARMIPLINEAR    : Yes
DONOTSTRIPELEMENTS : No
TEXTURE CLAMP      : Yes
TEXTURE BORDER     : Yes
TEXTURE MIRROR     : Yes
ALPHAGOURAUDBLEND  : Yes
SQUAREONLY         : No
COLORFLATMONO      : No
COLORGOURAUDMONO   : Yes
COLORFLATRGB       : Yes
COLORGOURAUDRGB    : Yes
SPECULARFLATRGB    : Yes
SPECULARGOURAUDRGB : No
Then the black window goes unresponsive - force quit.

Any good soul to give me a hint?
jkfloris
Level 12
Level 12
Posts: 3136
Joined: Thu Aug 14, 2014 10:10 am

Re: Error on launch: D3DERR_SURFACENOTINVIDMEM (MechWarrior 4)

Post by jkfloris »

Have you tried the hints that are on the AppDB?
  • Change shadowmode to 1 in options.ini (otherwise game crashes upon play)
  • Empty wine prefix win32 arch + 3 Winetricks (vcrun2005, d3dx9, directplay)
  • Start with specific command line options

    Code: Select all

    wine MW4Mercs.exe -noautoconfig -32 -window -gl /gosnovideo /gosnodialogs /gosusehw /gosnoblade
  • Freeware MekTek MP3.1 release with all patches to 0030c applied
  • No Videos needed
Locked