Unhandled exception: illegal instruction in Direct3D

Questions about Wine on Linux
Locked
jeisom
Newbie
Newbie
Posts: 4
Joined: Wed Mar 06, 2013 5:00 pm

Unhandled exception: illegal instruction in Direct3D

Post by jeisom »

Hi.

I am hoping someone can lead me to a solution. I cannot seem to get any Direct3D games to run, ex. Crysis, Farcry,Tomb Raider (2013) . OpenGL Wine games work fine, ex Bioshock. I am using latest trunk. For help, I am going to use Crysis. I have tried recompiling glibc, wine, kernel, etc. Different kernel versions, differnet wine versions(1.5.x, 1.7.x, trunk). I have tried using the original exe and a no disk patched exe. Patched exe worked at some point for Crysis. Not idea how long ago that was though. This is the upatched version. Can't seem to get the 1.2 update to install. msiexec patch crash. May be related may not. One problem at a time though. 32-bit instruction adreess stays the same between runs btw.

Any help would be appreciated. Thanks.

Jonathan

System:

Code: Select all

Amd FX-8120 processor
16GB Ram
nVidia GTX 465

Gentoo AMD64
Linux kernel 3.13.6
glibc-2.19
nVidia drivers 334.21 (Tried earliers versions as well) Dual screens, but single failed as well.
xorg-server-1.15.0
Enviroment and command executed:

Code: Select all

WINEARCH=win32
WINEPREFIX="/MultiMedia/Games/Crysis/wine/"
WINEDEBUG is unset

cd "$WINEPREFIX/drive_c/Program Files/Electronic Arts/Crytek/Crysis/Bin32/"

winedbg  Crysis.exe +r_width 1600 +r_height 900 -dx9
Output and some dissassably:

Code: Select all

WineDbg starting on pid 0022
fixme:dbghelp_dwarf:dwarf2_parse_subprogram_block Unhandled Tag type 0x15 at ctx(0x32c20c,L"kernel32<elf>"), for debug_info(abbrev:0x33
1440,symt:(nil))
fixme:dbghelp_dwarf:dwarf2_parse_subprogram_block Unhandled Tag type 0xf at ctx(0x32c20c,L"kernel32<elf>"), for debug_info(abbrev:0x331
440,symt:(nil))
fixme:dbghelp_dwarf:dwarf2_parse_udt_type Unhandled Tag type 0x1 at ctx(0x32c20c,L"ntdll<elf>"), for debug_info(abbrev:0x842588,symt:0x
a72cb8)
fixme:dbghelp_dwarf:dwarf2_parse_udt_type Unhandled Tag type 0x1 at ctx(0x32c20c,L"ntdll<elf>"), for debug_info(abbrev:0x842588,symt:0x
a72cb8)
fixme:dbghelp_dwarf:dwarf2_parse_subprogram Unhandled Tag type 0xf at ctx(0x32c20c,L"ntdll<elf>"), for debug_info(abbrev:0x842e38,symt:
0xa72b64)
start_process () at /var/tmp/portage/app-emulation/wine-9999/work/wine-9999/dlls/kernel32/process.c:1097
0x7b86602f start_process+0x5f [/var/tmp/portage/app-emulation/wine-9999/work/wine-9999/dlls/kernel32/process.c:1097] in kernel32: movl%
edi,0x4(%esp)
Unable to access file '/var/tmp/portage/app-emulation/wine-9999/work/wine-9999/dlls/kernel32/process.c'
Wine-dbg>c
Thread ID=0023 renamed using MS VC6 extension (name=="Main")
Thread ID=0025 not in our list of threads -> can't rename
Thread ID=0026 renamed using MS VC6 extension (name=="NetAddres")
Thread ID=0027 renamed using MS VC6 extension (name=="NetworkWa")
fixme:win:EnumDisplayDevicesW ((null),0,0x53e308,0x00000000), stub!
fixme:win:EnumDisplayDevicesW ((null),0,0x53e0f8,0x00000000), stub!
Thread ID=0028 renamed using MS VC6 extension (name=="ShaderCom")
fixme:win:EnumDisplayDevicesW ((null),0,0x53e328,0x00000000), stub!
fixme:d3d:wined3d_check_device_format_conversion wined3d 0x34c8d20, adapter_idx 0, device_type WINED3D_DEVICE_TYPE_HAL, src_format WINED3DFMT_B8G8R8A8_UNORM, dst_format WINED3DFMT_B8G8R8X8_UNORM stub!
fixme:d3d:wined3d_check_device_format_conversion wined3d 0x34c8d20, adapter_idx 0, device_type WINED3D_DEVICE_TYPE_HAL, src_format WINED3DFMT_B8G8R8X8_UNORM, dst_format WINED3DFMT_B8G8R8X8_UNORM stub!
fixme:d3d:wined3d_check_device_format_conversion wined3d 0x34c8d20, adapter_idx 0, device_type WINED3D_DEVICE_TYPE_HAL, src_format WINED3DFMT_B10G10R10A2_UNORM, dst_format WINED3DFMT_B8G8R8X8_UNORM stub!
fixme:d3d:wined3d_check_device_format_conversion wined3d 0x34c8d20, adapter_idx 0, device_type WINED3D_DEVICE_TYPE_HAL, src_format WINED3DFMT_B5G6R5_UNORM, dst_format WINED3DFMT_B8G8R8X8_UNORM stub!
fixme:d3d:wined3d_check_device_format_conversion wined3d 0x34c8d20, adapter_idx 0, device_type WINED3D_DEVICE_TYPE_HAL, src_format WINED3DFMT_B5G5R5A1_UNORM, dst_format WINED3DFMT_B8G8R8X8_UNORM stub!
fixme:d3d:wined3d_check_device_format_conversion wined3d 0x34c8d20, adapter_idx 0, device_type WINED3D_DEVICE_TYPE_HAL, src_format WINED3DFMT_B5G5R5X1_UNORM, dst_format WINED3DFMT_B8G8R8X8_UNORM stub!
fixme:d3d:wined3d_check_device_format_conversion wined3d 0x34c8d20, adapter_idx 0, device_type WINED3D_DEVICE_TYPE_HAL, src_format WINED3DFMT_B8G8R8A8_UNORM, dst_format WINED3DFMT_B5G6R5_UNORM stub!
fixme:d3d:wined3d_check_device_format_conversion wined3d 0x34c8d20, adapter_idx 0, device_type WINED3D_DEVICE_TYPE_HAL, src_format WINED3DFMT_B8G8R8X8_UNORM, dst_format WINED3DFMT_B5G6R5_UNORM stub!
fixme:d3d:wined3d_check_device_format_conversion wined3d 0x34c8d20, adapter_idx 0, device_type WINED3D_DEVICE_TYPE_HAL, src_format WINED3DFMT_B10G10R10A2_UNORM, dst_format WINED3DFMT_B5G6R5_UNORM stub!
fixme:d3d:wined3d_check_device_format_conversion wined3d 0x34c8d20, adapter_idx 0, device_type WINED3D_DEVICE_TYPE_HAL, src_format WINED3DFMT_B5G6R5_UNORM, dst_format WINED3DFMT_B5G6R5_UNORM stub!
fixme:d3d:wined3d_check_device_format_conversion wined3d 0x34c8d20, adapter_idx 0, device_type WINED3D_DEVICE_TYPE_HAL, src_format WINED3DFMT_B5G5R5A1_UNORM, dst_format WINED3DFMT_B5G6R5_UNORM stub!
fixme:d3d:wined3d_check_device_format_conversion wined3d 0x34c8d20, adapter_idx 0, device_type WINED3D_DEVICE_TYPE_HAL, src_format WINED3DFMT_B5G5R5X1_UNORM, dst_format WINED3DFMT_B5G6R5_UNORM stub!
fixme:d3d:wined3d_check_device_format_conversion wined3d 0x34c8d20, adapter_idx 0, device_type WINED3D_DEVICE_TYPE_SW, src_format WINED3DFMT_B8G8R8A8_UNORM, dst_format WINED3DFMT_B8G8R8X8_UNORM stub!
fixme:d3d:wined3d_check_device_format_conversion wined3d 0x34c8d20, adapter_idx 0, device_type WINED3D_DEVICE_TYPE_SW, src_format WINED3DFMT_B8G8R8X8_UNORM, dst_format WINED3DFMT_B8G8R8X8_UNORM stub!
fixme:d3d:wined3d_check_device_format_conversion wined3d 0x34c8d20, adapter_idx 0, device_type WINED3D_DEVICE_TYPE_SW, src_format WINED3DFMT_B10G10R10A2_UNORM, dst_format WINED3DFMT_B8G8R8X8_UNORM stub!
fixme:d3d:wined3d_check_device_format_conversion wined3d 0x34c8d20, adapter_idx 0, device_type WINED3D_DEVICE_TYPE_SW, src_format WINED3DFMT_B5G6R5_UNORM, dst_format WINED3DFMT_B8G8R8X8_UNORM stub!
fixme:d3d:wined3d_check_device_format_conversion wined3d 0x34c8d20, adapter_idx 0, device_type WINED3D_DEVICE_TYPE_SW, src_format WINED3DFMT_B5G5R5A1_UNORM, dst_format WINED3DFMT_B8G8R8X8_UNORM stub!
fixme:d3d:wined3d_check_device_format_conversion wined3d 0x34c8d20, adapter_idx 0, device_type WINED3D_DEVICE_TYPE_SW, src_format WINED3DFMT_B5G5R5X1_UNORM, dst_format WINED3DFMT_B8G8R8X8_UNORM stub!
fixme:d3d:wined3d_check_device_format_conversion wined3d 0x34c8d20, adapter_idx 0, device_type WINED3D_DEVICE_TYPE_SW, src_format WINED3DFMT_B8G8R8A8_UNORM, dst_format WINED3DFMT_B5G6R5_UNORM stub!
fixme:d3d:wined3d_check_device_format_conversion wined3d 0x34c8d20, adapter_idx 0, device_type WINED3D_DEVICE_TYPE_SW, src_format WINED3DFMT_B8G8R8X8_UNORM, dst_format WINED3DFMT_B5G6R5_UNORM stub!
fixme:d3d:wined3d_check_device_format_conversion wined3d 0x34c8d20, adapter_idx 0, device_type WINED3D_DEVICE_TYPE_SW, src_format WINED3DFMT_B10G10R10A2_UNORM, dst_format WINED3DFMT_B5G6R5_UNORM stub!
fixme:d3d:wined3d_check_device_format_conversion wined3d 0x34c8d20, adapter_idx 0, device_type WINED3D_DEVICE_TYPE_SW, src_format WINED3DFMT_B5G6R5_UNORM, dst_format WINED3DFMT_B5G6R5_UNORM stub!
fixme:d3d:wined3d_check_device_format_conversion wined3d 0x34c8d20, adapter_idx 0, device_type WINED3D_DEVICE_TYPE_SW, src_format WINED3DFMT_B5G5R5A1_UNORM, dst_format WINED3DFMT_B5G6R5_UNORM stub!
fixme:d3d:wined3d_check_device_format_conversion wined3d 0x34c8d20, adapter_idx 0, device_type WINED3D_DEVICE_TYPE_SW, src_format WINED3DFMT_B5G5R5X1_UNORM, dst_format WINED3DFMT_B5G6R5_UNORM stub!
fixme:d3d:wined3d_check_device_format_conversion wined3d 0x34c8d20, adapter_idx 0, device_type WINED3D_DEVICE_TYPE_REF, src_format WINED3DFMT_B8G8R8A8_UNORM, dst_format WINED3DFMT_B8G8R8X8_UNORM stub!
fixme:d3d:wined3d_check_device_format_conversion wined3d 0x34c8d20, adapter_idx 0, device_type WINED3D_DEVICE_TYPE_REF, src_format WINED3DFMT_B8G8R8X8_UNORM, dst_format WINED3DFMT_B8G8R8X8_UNORM stub!
fixme:d3d:wined3d_check_device_format_conversion wined3d 0x34c8d20, adapter_idx 0, device_type WINED3D_DEVICE_TYPE_REF, src_format WINED3DFMT_B10G10R10A2_UNORM, dst_format WINED3DFMT_B8G8R8X8_UNORM stub!
fixme:d3d:wined3d_check_device_format_conversion wined3d 0x34c8d20, adapter_idx 0, device_type WINED3D_DEVICE_TYPE_REF, src_format WINED3DFMT_B5G6R5_UNORM, dst_format WINED3DFMT_B8G8R8X8_UNORM stub!
fixme:d3d:wined3d_check_device_format_conversion wined3d 0x34c8d20, adapter_idx 0, device_type WINED3D_DEVICE_TYPE_REF, src_format WINED3DFMT_B5G5R5A1_UNORM, dst_format WINED3DFMT_B8G8R8X8_UNORM stub!
fixme:d3d:wined3d_check_device_format_conversion wined3d 0x34c8d20, adapter_idx 0, device_type WINED3D_DEVICE_TYPE_REF, src_format WINED3DFMT_B5G5R5X1_UNORM, dst_format WINED3DFMT_B8G8R8X8_UNORM stub!
fixme:d3d:wined3d_check_device_format_conversion wined3d 0x34c8d20, adapter_idx 0, device_type WINED3D_DEVICE_TYPE_REF, src_format WINED3DFMT_B8G8R8A8_UNORM, dst_format WINED3DFMT_B5G6R5_UNORM stub!
fixme:d3d:wined3d_check_device_format_conversion wined3d 0x34c8d20, adapter_idx 0, device_type WINED3D_DEVICE_TYPE_REF, src_format WINED3DFMT_B8G8R8X8_UNORM, dst_format WINED3DFMT_B5G6R5_UNORM stub!
fixme:d3d:wined3d_check_device_format_conversion wined3d 0x34c8d20, adapter_idx 0, device_type WINED3D_DEVICE_TYPE_REF, src_format WINED3DFMT_B10G10R10A2_UNORM, dst_format WINED3DFMT_B5G6R5_UNORM stub!
fixme:d3d:wined3d_check_device_format_conversion wined3d 0x34c8d20, adapter_idx 0, device_type WINED3D_DEVICE_TYPE_REF, src_format WINED3DFMT_B5G6R5_UNORM, dst_format WINED3DFMT_B5G6R5_UNORM stub!
fixme:d3d:wined3d_check_device_format_conversion wined3d 0x34c8d20, adapter_idx 0, device_type WINED3D_DEVICE_TYPE_REF, src_format WINED3DFMT_B5G5R5A1_UNORM, dst_format WINED3DFMT_B5G6R5_UNORM stub!
fixme:d3d:wined3d_check_device_format_conversion wined3d 0x34c8d20, adapter_idx 0, device_type WINED3D_DEVICE_TYPE_REF, src_format WINED3DFMT_B5G5R5X1_UNORM, dst_format WINED3DFMT_B5G6R5_UNORM stub!
fixme:d3d:debug_d3dformat Unrecognized 0x34324644 (as fourcc: DF24) WINED3DFORMAT!
fixme:d3d:wined3d_get_format Can't find format unrecognized (0x34324644) in the format lookup table
fixme:d3d:debug_d3dformat Unrecognized 0x36314644 (as fourcc: DF16) WINED3DFORMAT!
fixme:d3d:wined3d_get_format Can't find format unrecognized (0x36314644) in the format lookup table
fixme:win:EnumDisplayDevicesW ((null),0,0x53de78,0x00000000), stub!
err:d3d:wined3d_caps_gl_ctx_destroy Failed to restore previous GL context.
fixme:d3d:debug_d3dformat Unrecognized 0x434f5441 (as fourcc: ATOC) WINED3DFORMAT!
fixme:d3d:wined3d_get_format Can't find format unrecognized (0x434f5441) in the format lookup table
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: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: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: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: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: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: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: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: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:d3d:resource_check_usage Unhandled usage flags 0x8.
Thread ID=002a renamed using MS VC6 extension (name=="InputWork")
fixme:xinput:XInputGetCapabilities (0 1 0xf54e9a8)
fixme:avrt:AvSetMmThreadCharacteristicsW (L"Pro Audio",0x53e564): 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:d3d:resource_check_usage Unhandled usage flags 0x8.
fixme:system:SystemParametersInfoW Unimplemented action: 59 (SPI_SETSTICKYKEYS)                                                                                                                                                                                                                            [274/1015]
fixme:system:SystemParametersInfoW Unimplemented action: 53 (SPI_SETTOGGLEKEYS)
fixme:system:SystemParametersInfoW Unimplemented action: 51 (SPI_SETFILTERKEYS)
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: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: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: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: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: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: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: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: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:d3d:resource_check_usage Unhandled usage flags 0x8.
Unhandled exception: illegal instruction in 32-bit code (0x380094a1).
Register dump:
 CS:0023 SS:002b DS:002b ES:002b FS:0063 GS:006b
 EIP:380094a1 ESP:0053eb78 EBP:0053ebb8 EFLAGS:00010206(  R- --  I   - -P- )
 EAX:034d07b8 EBX:fffffffe ECX:00000005 EDX:034d0778
 ESI:034d0778 EDI:034d07f8
Stack dump:
0x0053eb78:  c30869e7 42c80000 c2997724 c38869e7
0x0053eb88:  00000000 00000000 430869e7 00000000
0x0053eb98:  42997724 3f800000 00000000 3f800000
0x0053eba8:  5dc3cc22 00000000 00000000 380a7fad
0x0053ebb8:  0013fca4 38065e91 034d07b8 034d0778
0x0053ebc8:  034d06fc 034d06fc 38066a6c 034ab27c
Backtrace:
=>0 0x380094a1 in cryrenderd3d9 (+0x94a1) (0x0053ebb8)
  1 0x38065e91 in cryrenderd3d9 (+0x65e90) (0x0013fca4)
  2 0x366bc5a0 in crysystem (+0x1bc59f) (0x366bc5a8)
  3 0x3662f870 in crysystem (+0x12f86f) (0x3654f6d0)
0x380094a1: 
Wine-dbg>disas 0x380094a1,0x38009513
0x380094a1: 
0x380094a3: jmp 0x926fa463
0x380094a8: xorb        %cl,0x0(%edi)
0x380094aa: psrad       %mm7,0xf026f0f(%ebx)
0x380094b1: psllq       %mm7,0xbbfa0f0f(%ebx)
0x380094b8: 
0x380094ba: call        0x180fa473
0x380094bf: movb        $0xf,%ah
0x380094c1: (bad)
0x380094c3: movb        $0xf,%ah
0x380094c5: 
0x380094c7: movl        $0xb4f90f0f,%ebx
0x380094cc: 
0x380094ce: inb %dx,%al
0x380094cf: movb        0x0(%edi),%cl
0x380094d1: bswapl      %eax
0x380094d3: movb        $0xf,%ah
0x380094d5: (bad)
0x380094d7: movb        $0xf,%ah
0x380094d9: maskmovq    %mm1,0x8aca0f0f(%edx)
0x380094e0: movq        0x38(%edx),%mm0
0x380094e4: movq        %mm6,%mm2
0x380094e7: movq        %mm1,%mm4
0x380094ea: movq        0x28(%edx),%mm7
0x380094ee: punpckhdq   %edx,%mm2
0x380094f1: movq        %mm1,%mm3
0x380094f4: punpckhdq   %esp,%mm4
0x380094f7: 
0x380094f9: shlb        $1,0xf0fdb62(%edi,%ecx,1)
0x38009500: boundl      0x0(%eax),%ebx
0x38009502: movb        $0xf,%ah
0x38009504: pandn       %mm6,0xf9ed40f(%edi,%ecx,1)
0x3800950c: jnle        0x38009502
0x3800950e: 
0x38009510: rcrl        %cl,0xfcb7f0f(%edx)
User avatar
Bob Wya
Level 12
Level 12
Posts: 3068
Joined: Sat Oct 16, 2010 7:40 pm

Re: Unhandled exception: illegal instruction in Direct3D

Post by Bob Wya »

@jeisom,

Ahh, so pleasant to have a civilised question asked on these forums - with the necessary background information provided. I have already started to use your question as a model I quote for other users on how to ask for support online (I hope this is OK with you)!!

My Desktop rig has a similar set-up to yours:
  • Intel Core i7 920 CPU
  • 24GB DDR3 RAM
  • Nvidia Geforce 8800 GTX
I've got Gentoo installed on my rig in a multiboot with some other distros.
  • Gentoo AMD64
  • Linux kernel 3.11.10-gentoo
  • sys-libs/glibc 2.18-rc1
  • gcc (Gentoo 4.7.3 p1.2, pie-0.5.5) 4.7.3
  • x11-base/xorg-server-1.14.5:0/1.14.5
  • x11-drivers/nvidia-drivers-334.21
Details of my relevant (installed software):

Code: Select all

emerge -pv nvidia-drivers
[ebuild   R    ] x11-drivers/nvidia-drivers-334.21  USE="X acpi (multilib) -pax_kernel -tools -uvm" 0 kB

emerge -pv wine
[ebuild   R   *] app-emulation/wine-9999  USE="X alsa cups fontconfig gecko gphoto2 gsm jpeg lcms ldap mono mp3 ncurses nls openal opencl opengl perl png prelink realtime run-exes scanner ssl threads truetype udisks xinerama xml -capi -custom-cflags -dos -gstreamer -netapi -odbc -osmesa -oss (-pulseaudio) -samba (-selinux) {-test} -v4l -xcomposite" ABI_X86="32 64 (-x32)" LINGUAS="en -ar -bg -ca -cs -da -de -el -en_US -eo -es -fa -fi -fr -he -hi -hr -hu -it -ja -ko -lt -ml -nb_NO -nl -or -pa -pl -pt_BR -pt_PT -rm -ro -ru -sk -sl -sr_RS@cyrillic -sr_RS@latin -sv -te -th -tr -uk -wa -zh_CN -zh_TW" 0 kB

emerge -pv mesa
[ebuild     U ~] media-libs/mesa-10.1.0 [9.2.5-r1] USE="classic dri3%* egl gles2 llvm-shared-libs* nptl -bindist -debug -gallium -gbm -gles1 -llvm -opencl -openvg -osmesa -pax_kernel -pic -r600-llvm-compiler (-selinux) -vdpau -wayland -xa -xvmc (-xorg%)" ABI_X86="32 (64) (-x32)" VIDEO_CARDS="(-freedreno) -i915 -i965 -ilo -intel -nouveau -r100 -r200 -r300 -r600 -radeon -radeonsi -vmware" 0 kB

emerge -pv opengl
[ebuild   R   ~] virtual/opengl-7.0-r1  ABI_X86="32 (64) (-x32)" 0 kB
I've got a few Portage Overlays enabled but they are (currently) just used for a smattering of non-core applications (~10 or so). I've masked off the Overlays and white-listed the applications I actually need.

I have recently completed S.T.A.L.K.E.R.: SOC, running on Wine-git (currently: wine-1.7.14-142-gbd69346). I've been using the Steam version running in a 64-bit Wineprefix. So my DX9 Wine support is working OK.

I've attached my make.conf. Ignore the stupid "ricing" compile settings (doubt these make much difference really). I've a massive file of application overrides to put these back to stock no-lto / no-graphite anyway!! :oops:

I presume you are adding the tiny patch into your Wine ebuild - for this Wine "bug" mentioned here...

Do reference the WineHQ AppDB Crysis page - but with a pinch of salt (since most of that Wiki is very outdated).
Remember to disable DX10 support in winetricks. DX1/11 support is very incomplete in Wine at present.

I would start with a simpler DX9 game you own - if was you. Crysis can be a bit more fiddly to get running. Although I've certainly had it running before - both on the Nvidia and AMD proprietary drivers.

Hopefully that will punt you forwards a little!

Bob
Attachments
make.conf.tar
(10 KiB) Downloaded 201 times
jeisom
Newbie
Newbie
Posts: 4
Joined: Wed Mar 06, 2013 5:00 pm

Re: Unhandled exception: illegal instruction in Direct3D

Post by jeisom »

Thanks for the make.conf Bob. I am in the process of using the info and I really liked how you have your's formatted. I had a similar USE catagory variable system at one point. Don't quite remember why I stop using that one. I decided to convert some of yours into mine and update use flags, ie remove non-existant ones. I will post how it goes.

Thanks
User avatar
Bob Wya
Level 12
Level 12
Posts: 3068
Joined: Sat Oct 16, 2010 7:40 pm

Re: Unhandled exception: illegal instruction in Direct3D

Post by Bob Wya »

jeisom wrote:Thanks for the make.conf Bob. I am in the process of using the info and I really liked how you have your's formatted. I had a similar USE catagory variable system at one point. Don't quite remember why I stop using that one. I decided to convert some of yours into mine and update use flags, ie remove non-existant ones. I will post how it goes.

Thanks
Hi,

Yeh I used to spend hours tinkering about with Gentoo. I've even written a BASH/Gawk script to sort/tidy-up all my Portage configuration files (OCD or what :lol: )...

I can PM Pastie links with my other configuration files if that's useful (don't want to SPAM the WineHQ Forums)... Obviously my make.conf only shows you my Global USE flags. Although I guess I've supplied the main local package USE flags you'll need to (hopefully) troubleshoot your issue!

Do take all my stuff with a pinch of salt as my Desktop rig+Gentoo currently hangs when I try to log out of KDE or shutdown... Bizarrely everything else appears reasonably OK!! :? (Probably some systemd issue, etc.).

Yeh, anyway do post back if you get the issue sorted out. I remember spending about 4 weeks just trying to get mouse and keyboard working in the KDM login screen - hopefully won't take you as long!! :lol:

Bob
jeisom
Newbie
Newbie
Posts: 4
Joined: Wed Mar 06, 2013 5:00 pm

Re: Unhandled exception: illegal instruction in Direct3D

Post by jeisom »

Hi.

I been working on this some and haven't made much progress. I did finally manage to get Crysis updated to 1.2.1. I have been running testing, but merged as much as I can from yours that I thought would be useful. I ruled out the nvidia driver. I installed nouveau and it crashes at the same spot. I was surprised that nouveau works as well as it does so far. Running it now, but will switch back to nvidia's driver. Performace needs work, power management and all. I am in the process of building a chroot now. I have a nagging feeling about glibc, but won't know till I have the chroot up. I am currently at 2.19. Going to try 2.13 to start in the chroot. I have a hang with shutdown as well. I have cifs mount and it turns off the network before it unmounts the filesystem. No hang on logout, just sometimes don't get a logout menu. I think it has to do with systemd getting X up so fast that the system isn't for me to login to kde. I do take breaks from the project of getting this working, so it may take longer than I'd like.

Will be in touch on my progress.

Jonathan
User avatar
dimesio
Moderator
Moderator
Posts: 13367
Joined: Tue Mar 25, 2008 10:30 pm

Re: Unhandled exception: illegal instruction in Direct3D

Post by dimesio »

jeisom wrote:I have a nagging feeling about glibc,
Take a look at this thread: http://forum.winehq.org/viewtopic.php?f=8&t=20734.
User avatar
Bob Wya
Level 12
Level 12
Posts: 3068
Joined: Sat Oct 16, 2010 7:40 pm

Re: Unhandled exception: illegal instruction in Direct3D

Post by Bob Wya »

jeisom wrote: I been working on this some and haven't made much progress. I did finally manage to get Crysis updated to 1.2.1. I have been running testing, but merged as much as I can from yours that I thought would be useful. I ruled out the nvidia driver. I installed nouveau and it crashes at the same spot. I was surprised that nouveau works as well as it does so far. Running it now, but will switch back to nvidia's driver. Performace needs work, power management and all. I am in the process of building a chroot now. I have a nagging feeling about glibc, but won't know till I have the chroot up.
Is the game menu working? Or have you only managed to apply the Crysis update patches... It's not quite clear what stage you are at...

I am currently at 2.19. Going to try 2.13 to start in the chroot. I have a hang with shutdown as well. I have cifs mount and it turns off the network before it unmounts the filesystem. No hang on logout, just sometimes don't get a logout menu. I think it has to do with systemd getting X up so fast that the system isn't for me to login to kde. I do take breaks from the project of getting this working, so it may take longer than I'd like.
FYI I upgraded my laptop's Gentoo install to systemd-211 this week... It appears that it no longer takes 4 hours to (not) shutdown now (running KDE as well). 8)

Bob
jeisom
Newbie
Newbie
Posts: 4
Joined: Wed Mar 06, 2013 5:00 pm

Re: Unhandled exception: illegal instruction in Direct3D

Post by jeisom »

I was having a problem applying th patches too. I still get no where near a menu yet. I can install the game and updates but that is as far as I can get. I have tried just wine and tutorials with winetricks. It does some screen resolution changes and the closes or if winedbg, gives an illegal instruction. I had Crysis working sometime ago (Possibly over a year ago) on this same system with an older install. Still working on the chroot though.

Jonathan
User avatar
Bob Wya
Level 12
Level 12
Posts: 3068
Joined: Sat Oct 16, 2010 7:40 pm

Re: Unhandled exception: illegal instruction in Direct3D

Post by Bob Wya »

@jeisom,

I tested out the Steam and DVD/retails installs of Crysis on my laptop today. There appears to be a regression with 64-bit support - so you have to use a 32-bit Wineprefix (seeing a lot of spamming windows from an obscure .dll called ISBEW64.exe). I am sure a 64-bit Wineprefix used to work (I think)...

I've still got to do some troubleshooting about why the intro videos and menu are black! I can hear the audio for intro videos and the audio overlayed on the menus. Videos and 3D are working fine for the likes of BF2 (including online play!!) - so I think my system is configured OK. In fact since I "tuned" the fragment settings for Pulseaudio (5.0) - my sound in Wine is working much more clearly than ever before!!

Bob
Attachments
Crysis - 64bit Wineprefix setup bug.jpg
User avatar
dimesio
Moderator
Moderator
Posts: 13367
Joined: Tue Mar 25, 2008 10:30 pm

Re: Unhandled exception: illegal instruction in Direct3D

Post by dimesio »

Bob Wya wrote: There appears to be a regression with 64-bit support - so you have to use a 32-bit Wineprefix (seeing a lot of spamming windows from an obscure .dll called ISBEW64.exe). I am sure a 64-bit Wineprefix used to work (I think)...
Not a regression. ISBEW64.exe is InstallShield. One bug that prevented it from in working in 64 bit wineprefixes has been fixed (http://bugs.winehq.org/show_bug.cgi?id=24611), but there's still another one open. http://bugs.winehq.org/show_bug.cgi?id=35268
Locked