Whisky-App / Whisky

A modern Wine wrapper for macOS built with SwiftUI
https://getwhisky.app
GNU General Public License v3.0
12.35k stars 261 forks source link

[Bug]: Resident Evil Remake 2 & 3 - CRASH - 0118: thread_get_state failed on Apple Silicon - faking zero debug registers #270

Closed anatblsv closed 1 year ago

anatblsv commented 1 year ago

Description

Hello! Game crashed after loading save or starting new game and logs have records

Steps to reproduce

Start game via RUN button and select EXE (in logs will Arguments: record /unix /Users/anatoliy/Library/Containers/com.isaacmarovitz.Whisky/Bottles/4FFCE1A4-7A01-4971-A812-0696DE700D25/drive_c/Program Files/RESIDENT EVIL 2/re2.exe )

If start from shortcut of program menu item - then just black screen without any graphics (in logs will record Arguments: start C:\Program Files\RESIDENT EVIL 2\re2.exe)

Expected behaviour

If start game via RUN button and select path to EXE then game started normally, but if i select start or load game and loading after loading 10-20% window freezed and show shortcut in Dock of preloader64 and still nothing doing.

Logs

Whisky Version: 1.0.1
Date: 28.07.2023, 12:21:18
macOS Version: Версия 14.0 (Выпуск 23A5301g)
Bottle Name: Resident Evil 2 Remake
Wine Version: 7.7.0
Wine Binary Version: 4
Windows Version: win10
Bottle URL: /Users/anatoliy/Library/Containers/com.isaacmarovitz.Whisky/Bottles/4FFCE1A4-7A01-4971-A812-0696DE700D25

Arguments: start /unix /Users/anatoliy/Library/Containers/com.isaacmarovitz.Whisky/Bottles/4FFCE1A4-7A01-4971-A812-0696DE700D25/drive_c/Program Files/RESIDENT EVIL 2/re2.exe 

Launched Wine (68847)
esync: up and running.
0068:err:module:open_builtin_so_file failed to load .so lib "/Users/anatoliy/Library/Application Support/com.isaacmarovitz.Whisky/Libraries/Wine/lib/wine/x86_64-unix/wineusb.sys.so"
0068:err:ntoskrnl:ZwLoadDriver failed to create driver L"\\Registry\\Machine\\System\\CurrentControlSet\\Services\\wineusb": c0000142
0118: thread_get_state failed on Apple Silicon - faking zero debug registers
Process exited with code 0

What version of Whisky are you using?

1.0.1

What version of macOS are you using?

Sonoma (macOS 14)

Issue Language

IsaacMarovitz commented 1 year ago

Stale

Ephenodrom commented 1 year ago

@anatblsv Did you find any solution ? I am facing the similar error with RE3.

anatblsv commented 1 year ago

@anatblsv Did you find any solution ? I am facing the similar error with RE3.

hello! yes, i use latest version of whisky and gptk and Resident Evil 3 only DX11 (not DX12) and it works

Ephenodrom commented 1 year ago

@anatblsv Thanks for the reply, but no chance so far. I reinstalled the game via steam with the DX11 patch. The game starts well and the menu works smoothly, once i start the game the loading screen appears and it reaches around 90% really fast and the crashes with 2 terminal icons appearing in the dock. Nothing special in the logs :

Whisky Version: 2.0.2
Date: 12.10.2023, 19:08:38
macOS Version: Version 14.0 (Build 23A344)
Bottle Name: Bottle1
Wine Version: 7.7.0
Windows Version: win10
Bottle URL: /Users/**/Library/Containers/com.isaacmarovitz.Whisky/Bottles/88BD3ADC-DD2B-4322-B4A1-26C055881DCA

Arguments: start /unix /Users/**/Library/Containers/com.isaacmarovitz.Whisky/Bottles/88BD3ADC-DD2B-4322-B4A1-26C055881DCA/drive_c/Program Files (x86)/Steam/steamapps/common/RE3/re3.exe 

Launched Wine (2927)
Process exited with code 0

Any last idea or something special you have done while installing / running it ?

anatblsv commented 1 year ago

@Ephenodrom No, i did not any special things for it. Was same issue on whisky version 1.0.1, but after updating for new whisky and gptk this issue was solved, but on DX12 version game crashed in any time randomly, but on DX11 version works stable without crashing. Try reinstall gptk and double check about version of game (DX11 patch is official or not? In menu settings you select DX11 mode?) Also I enable MSync, Retina mode and version of Windows 10 - 18362

Ephenodrom commented 1 year ago

@anatblsv No luck so far, but thank you for your help. At least some error log is now visible, after a new window pops up that says that the application crashed:

Unhandled exception: page fault on read access to 0x0000000000000000 in 64-bit code (0x0000014273eabb).
Register dump:
 rip:000000014273eabb rsp:0000000066ddfad0 rbp:0000000000000000 eflags:00000246 (   - --  I  Z- -P- )
 rax:00005fc8ab594ef5 rbx:0000000000000002 rcx:0000000000000000 rdx:0000000000000000
 rsi:00000000060961c0 rdi:0000000000000000  r8:0000000000000000  r9:0000000066ddfaf8 r10:0000000000be0138
 r11:0000000066ddfb58 r12:0000000000000000 r13:0000000000000000 r14:0000000000000000 r15:0000000060795878
Stack dump:
0x00000066ddfad0:  0000000066ddfbc0 0000000000000000
0x00000066ddfae0:  0000000000000000 00000003a6d4dc1d
0x00000066ddfaf0:  0000000000000000 0000000000000000
0x00000066ddfb00:  00000000069ea823 0000000000000000
0x00000066ddfb10:  0000000000000000 0000000000000000
0x00000066ddfb20:  00005fc8ab594ef5 0000000000000002
0x00000066ddfb30:  0000000000000000 0000000000000000
0x00000066ddfb40:  00000000060961c0 0000000000000000
0x00000066ddfb50:  0000000066ddfbc0 000000014274186d
0x00000066ddfb60:  0000000000000002 0000000000000002
0x00000066ddfb70:  0000000060795878 0000000142a4e249
0x00000066ddfb80:  0000000000000000 dcd2000027eea5f0
Backtrace:
=>0 0x0000014273eabb ?Bytes@WriteBytesMem@AK@@UEBAPEAEXZ+0x3c907b() in re3 (0000000000000000)
  1 0x0000014274186d ?Bytes@WriteBytesMem@AK@@UEBAPEAEXZ+0x3cbe2d() in re3 (0x00000066ddfbc0)
  2 0x000001427422c8 ?Bytes@WriteBytesMem@AK@@UEBAPEAEXZ+0x3cc888() in re3 (0x00000000000e5d)
  3 0x0000014273d2c6 ?Bytes@WriteBytesMem@AK@@UEBAPEAEXZ+0x3c7886() in re3 (0x00000000000e5d)
  4 0x000001447d50a0 ??0ReadBytesMem@AK@@QEAA@PEBXJ@Z+0x1aff10() in re3 (0000000000000000)
  5 0x000001422643ef ?GetPoolName@MemoryMgr@AK@@YAPEA_WJ@Z+0x2034b6f() in re3 (0000000000000000)
  6 0x00000142265f4c ?GetPoolName@MemoryMgr@AK@@YAPEA_WJ@Z+0x20366cc() in re3 (0000000000000000)
  7 0x00000142266119 ?GetPoolName@MemoryMgr@AK@@YAPEA_WJ@Z+0x2036899() in re3 (0x0000bfed8239e1)
  8 0x0000014233f0e6 ?GetPoolName@MemoryMgr@AK@@YAPEA_WJ@Z+0x210f866() in re3 (0000000000000000)
  9 0x0000007b62a889 BaseThreadInitThunk+0x9(unknown=<internal error>, entry=<internal error>, arg=<internal error>) [Z:\private\tmp\game-porting-toolkit-20231011-31662-17jrh04\wine\dlls\kernel32\thread.c:61] in kernel32 (0000000000000000)
  10 0x0000017005b3b8 __wine_pop_frame(unknown=<internal error>, entry=<internal error>, arg=<internal error>) [Z:\private\tmp\game-porting-toolkit-20231011-31662-17jrh04\wine\include\wine\exception.h:275] in ntdll (0000000000000000)
  11 0x0000017005b3b8 RtlUserThreadStart+0x88(entry=[<register RSP not accessible in this frame>, arg=[<register RSP not accessible in this frame>) [Z:\private\tmp\game-porting-toolkit-20231011-31662-17jrh04\wine\dlls\ntdll\thread.c:240] in ntdll (0000000000000000)
0x0000014273eabb re3+0x273eabb: movq    (%rcx),%rax
Modules:
Module  Address                 Debug info  Name (71 modules)
PE  0000000000750000-0000000000760000   Deferred        dxgi
PE  0000000000760000-000000000078d000   Deferred        amd_ags_x64
PE  00000000018c0000-0000000001a4a000   Deferred        gameoverlayrenderer64
PE  0000000001a50000-0000000001a61000   Deferred        psapi
PE  000000005ff90000-0000000060004000   Deferred        izotope
PE  00000000614a0000-00000000614b2000   Deferred        d3d12
PE  00000000619c0000-00000000619da000   Deferred        atidxx64
PE  0000000068870000-0000000068873000   Deferred        win32u
PE  000000006af30000-000000006af36000   Deferred        winemac
PE  000000007b000000-000000007b558000   Deferred        kernelbase
PE  000000007b600000-000000007b7a4000   Dwarf-4-5       kernel32
PE  0000000138000000-0000000139619000   Deferred        steamclient64
PE  000000013b400000-000000013b44a000   Deferred        steam_api64
PE  000000013f000000-000000013f197000   Deferred        tier0_s64
PE  000000013f600000-000000013f6b3000   Deferred        vstdlib_s64
PE  0000000140000000-00000001493e6000   Export          re3
PE  0000000170000000-0000000170333000   Dwarf-4-5       ntdll
PE  0000000180000000-000000018001c000   Deferred        d3d11
PE  00000001c1ef0000-00000001c1f88000   Deferred        atl100
PE  00000001c4ee0000-00000001c4fb3000   Deferred        winspool
PE  00000001c69e0000-00000001c7768000   Deferred        shell32
PE  00000001c8b40000-00000001c8bb8000   Deferred        msacm32
PE  00000001c8db0000-00000001c90c6000   Deferred        msvcrt
PE  00000001c92d0000-00000001c934e000   Deferred        winecoreaudio
PE  00000001dc810000-00000001dc831000   Deferred        schannel
PE  00000001dd3f0000-00000001dd76c000   Deferred        crypt32
PE  00000001ec2b0000-00000001ec356000   Deferred        ws2_32
PE  00000001f51e0000-00000001f5213000   Deferred        hid
PE  0000000201cf0000-0000000201d99000   Deferred        secur32
PE  000000021a7e0000-000000021a9c4000   Deferred        setupapi
PE  0000000228450000-00000002284c9000   Deferred        propsys
PE  0000000231ae0000-0000000231d71000   Deferred        rpcrt4
PE  000000023d820000-000000023df01000   Deferred        user32
PE  0000000240030000-00000002400bd000   Deferred        iphlpapi
PE  00000002419a0000-0000000241b04000   Deferred        wbemprox
PE  0000000253cc0000-0000000253cf7000   Deferred        xinput1_3
PE  000000026b4c0000-000000026b756000   Deferred        gdi32
PE  000000026ed50000-000000026ed69000   Deferred        vcruntime140
PE  00000002739c0000-0000000273ea5000   Deferred        oleaut32
PE  0000000274a50000-0000000274a7c000   Deferred        kerberos
PE  000000028dfa0000-000000028dfc0000   Deferred        nsi
PE  000000029cfc0000-000000029d00c000   Deferred        dnsapi
PE  00000002bb750000-00000002bbca6000   Deferred        comctl32
PE  00000002bc640000-00000002bc67c000   Deferred        imagehlp
PE  00000002bcfe0000-00000002bcffc000   Deferred        mswsock
PE  00000002c83b0000-00000002c85ee000   Deferred        winegstreamer
PE  00000002d4d40000-00000002d4d92000   Deferred        bcrypt
PE  00000002de970000-00000002dea2d000   Deferred        rsaenh
PE  00000002e3540000-00000002e3656000   Deferred        shlwapi
PE  00000002e8f10000-00000002e9495000   Deferred        ole32
PE  00000002f1fa0000-00000002f1fc0000   Deferred        version
PE  00000002f6140000-00000002f6275000   Deferred        xaudio2_8
PE  00000002f7230000-00000002f72f0000   Deferred        uxtheme
PE  0000000308050000-000000030816d000   Deferred        dinput8
PE  00000003126f0000-0000000312745000   Deferred        shcore
PE  0000000319900000-000000031999f000   Deferred        mfreadwrite
PE  0000000327020000-00000003271af000   Deferred        combase
PE  000000032a700000-000000032a7c1000   Deferred        sechost
PE  0000000330260000-000000033038e000   Deferred        advapi32
PE  0000000335260000-0000000335297000   Deferred        rtworkq
PE  0000000336850000-00000003368f4000   Deferred        mmdevapi
PE  0000000346ba0000-0000000346bee000   Deferred        jsproxy
PE  0000000358120000-0000000358250000   Deferred        winhttp
PE  0000000360e10000-0000000360ea2000   Deferred        msvcp140
PE  0000000375160000-00000003751b4000   Deferred        atiadlxx
PE  00000003871c0000-000000038720d000   Deferred        concrt140
PE  00000003a6d40000-00000003a6f35000   Deferred        mfplat
PE  00000003af670000-00000003af9f8000   Deferred        ucrtbase
PE  00000003afd00000-00000003afd66000   Deferred        imm32
PE  00000003b8f00000-00000003b90b9000   Deferred        winmm
PE  00000003be590000-00000003be868000   Deferred        dbghelp
Threads:
process  tid      prio    name (all IDs are in hex)
00000030 services.exe
    00000034    0     
    00000038    0     
    00000044    0     
    00000080    0     
    000000a4    0     
    000000bc    0     
    000000f8    0     
0000003c winedevice.exe
    00000040    0     
    0000004c    0     
    00000050    0     
    00000054    0     
    00000058    0     
    000000c8    0     
00000074 winedevice.exe
    00000078    0     
    00000084    0     
    00000088    0     
    0000008c    0     
    00000090    0     
    00000094    0     
    00000098    0     
0000009c plugplay.exe
    000000a0    0     
    000000a8    0     
    000000ac    0     
    000000b0    0     
    00000130    0     
    00000134    0     
    000001e8    0     
    000001ec    0     
    0000046c    0     
    0000058c    0     
    00000594    0     
000000b4 svchost.exe
    000000b8    0     
    000000c0    0     
    000000c4    0     
000000d4 steam.exe
    000000d8    0     
    00000114    0     
    00000118    0     
    00000124    0     
    00000128    0     
    0000012c    0     
    00000140    0     
    00000144    0     
    0000014c    0     
    00000160    0     
    00000164    2     
    0000016c    0     
    00000174    0     
    00000178    2     
    0000017c    2     
    00000184    0     
    00000188    0     
    0000018c    0     
    00000200    0     
    00000204    0     
    00000208    0     
    00000214    0     
    00000218    2     
    0000021c    0     
    00000230    0     
    00000234    0     
    000002ec    0     
    000002f0    0     
    000002fc    0     
    00000314    0     
    00000318    0     
    00000324    0     
    00000420    0     
    00000424    0     
    000005fc    2     
000000dc explorer.exe
    000000e0    0     
    000000e4    0     
    000000e8    0     
000000f0 rpcss.exe
    000000f4    0     
    000000fc    0     
    00000100    0     
    00000104    0     
    00000108    0     
    0000010c    0     
    0000030c    0     
    00000320    0     
00000138 steamwebhelper.exe
    0000013c    0     
    00000150    0     
    00000154    0     
    00000194    0     
    00000198    0     
    000001a0   -2     
    000001a4    0     
    000001a8    0     
    000001ac    0     
    000001b0    0     
    000001b4    0     
    000001b8    0     
    000001c0    0     
    000001c8    0     
    000001cc    1     
    000001d0    0     
    000001d4    0     
    000001d8    0     
    000001dc    0     
    000001e0    0     
    000001e4    1     
    000001f0   -2     
    000001f4    0     
    000001f8    0     
    00000224    0     
    00000238    0     
    00000308    0     
00000228 steamwebhelper.exe
    0000022c    0     
    00000244    0     
    00000248    0     
    00000250   -2     
    00000254    0     
    00000258    0     
    0000025c    0     
    00000264    0     
    000002c8    0     
0000023c steamwebhelper.exe
    00000240    0     
    00000274    0     
    00000278    0     
    00000280   -2     
    00000284    1     
    00000288    0     
    0000028c    0     
    00000290    0     
    00000294    1     
    00000298    0     
    0000029c    0     
    000002a0    0     
    000002a4   -2     
    00000304    0     
    0000031c    0     
    0000053c    0     
    00000614    0     
00000378 steamwebhelper.exe
    0000037c    0     
    00000388    0     
    0000038c    0     
    00000390    0     
    00000394   -2     
    00000398    1     
    0000039c    0     
    000003a0    0     
    000003a4    0     
    000003a8    1     
    000003ac    0     
    000003b0    0     
    000003b4    0     
    000003b8   -2     
    000003bc    0     
    000003c4    0     
    000003c8    0     
    000003cc    0     
    000003d0    1     
    000003d4    1     
    000003d8    1     
    000003dc    1     
00000554 (D) C:\Program Files (x86)\Steam\steamapps\common\RE3\re3.exe
    00000558    0     
    0000056c    0     
    00000574    0     
    00000578    0     
    0000057c    0     
    00000584  -15     
    00000588    0     
    00000590    0     
    00000598    0     
    0000059c    0     
    000005a0    0     
    000005a4    1     
    000005a8    0     
    000005ac    0     
    000005b0    0     
    000005b4    0     
    000005b8    0     
    000005bc    0     
    000005c0    0     
    000005c4    0     
    000005c8    0     
    000005cc    2 <== 
    000005d0    0     
    000005d4    0     
    000005d8    0     
    000005dc    0     
    000005e4    0     
    000005e8   15     
    000005ec    0     
    000005f0   15     
    000005f4   15     
    000005f8    0     
    00000600    0     
    00000604    0     
    00000608    0     
    00000618    0     
00000628 conhost.exe
    0000062c    0     
System information:
    Wine build: wine-7.7
    Platform: x86_64
    Version: Windows 10
    Host system: Darwin
    Host version: 23.0.0