KoKuToru / koku-xinput-wine

Adds xinput support to wine, without changing the source of wine.
BSD 2-Clause "Simplified" License
69 stars 21 forks source link

No Longer Works - Causes Wine to Crash #23

Closed Enverex closed 6 years ago

Enverex commented 6 years ago

Wine games now crash immediately at startup when trying to use this library. An example (Pro Evo 2016) Wine crash is below:

Unhandled exception: page fault on write access to 0x7e4724c0 in 32-bit code (0xf7fa9763).
Register dump:
 CS:0023 SS:002b DS:002b ES:002b FS:0063 GS:006b
 EIP:f7fa9763 ESP:02ccf2d4 EBP:02ccf338 EFLAGS:00010216(  R- --  I   -A-P- )
 EAX:7e4724c0 EBX:00000079 ECX:8b55ff8b EDX:000000ec
 ESI:f7fae140 EDI:f7fae000
Stack dump:
0x02ccf2d4:  00152c20 02ccf318 7e46ebea 00152d80
0x02ccf2e4:  7e592240 f7fa9dce 00000001 00000000
0x02ccf2f4:  02198684 02ccf3a4 02198694 02ccf49c
0x02ccf304:  02ccf39c 7e159000 8b55ff8b 0243aeec
0x02ccf314:  01ee6558 00000006 9abc7900 02ccf33c
0x02ccf324:  01ee6558 02ccf350 00000000 0243aec8
Backtrace:
=>0 0xf7fa9763 _ZN4koku16CoCreateInstanceERK5_GUIDP8IUnknownjS2_PPv+0xb3() in koku-xinput-wine.so (0x02ccf338)
  1 0x004834ef in pes2016 (+0x1934ee) (0x02ccf8c0)
  2 0x00481035 in pes2016 (+0x191034) (0x02ccfccc)
  3 0x0048270e in pes2016 (+0x19270d) (0x02ccfd10)
  4 0x004828e2 in pes2016 (+0x1928e1) (0x02ccfd58)
  5 0x0047bd70 in pes2016 (+0x18bd6f) (0x02ccfd90)
  6 0x0047656c in pes2016 (+0x18656b) (0x02ccfda0)
  7 0x002f10e6 in pes2016 (+0x10e5) (0x02ccfe40)
  8 0x7b462d29 call_process_entry+0x18() in kernel32 (0x02ccfe68)
  9 0x7b463e4c in kernel32 (+0x43e4b) (0x02ccfeb8)
  10 0x7bca8440 call_thread_func_wrapper+0xb() in ntdll (0x02ccfedc)
  11 0x7bcaba26 in ntdll (+0x6ba25) (0x02ccffcc)
  12 0x7bca841e RtlRaiseException+0x49() in ntdll (0x02ccffec)
0xf7fa9763 _ZN4koku16CoCreateInstanceERK5_GUIDP8IUnknownjS2_PPv+0xb3 in koku-xinput-wine.so: movl   %ecx,0x0(%eax)
Modules:
Module  Address         Debug info  Name (120 modules)
PE    230000-  292000   Deferred        steam_api
PE    2f0000- 2bc4000   Export          pes2016
PE   2cd0000- 2ecf000   Deferred        d3dx9_43
PE  10000000-10086000   Deferred        sdkencryptedappticket
ELF 7a800000-7a93e000   Deferred        opengl32<elf>
  \-PE  7a820000-7a93e000   \               opengl32
ELF 7b400000-7b7ee000   Dwarf           kernel32<elf>
  \-PE  7b420000-7b7ee000   \               kernel32
ELF 7bc00000-7bd2d000   Dwarf           ntdll<elf>
  \-PE  7bc40000-7bd2d000   \               ntdll
ELF 7c000000-7c004000   Deferred        <wine-loader>
ELF 7cdba000-7cdc0000   Deferred        libtxc_dxtn.so
ELF 7cdc0000-7ce4a000   Deferred        libgmp.so.10
ELF 7ce4a000-7ce80000   Deferred        libhogweed.so.4
ELF 7ce80000-7cebe000   Deferred        libnettle.so.6
ELF 7cef2000-7d034000   Deferred        libp11-kit.so.0

This is with Wine Staging 2.19. Are there compatibility issues with the latest Wine versions?

Enverex commented 6 years ago

I recompiled Koku again (I'd already done this before testing) and now it seems to be working. Not sure why it's now working. I'll leave this open in case there's something in here that stands out as possibly being an actual issue.

Enverex commented 6 years ago

I'm going to close this as I can't recreate it and it looks like it may have just been a weird quirk.