Whisky-App / Whisky

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

[Bug]: Unexpected Crash Launch Granblue Fantasy Relink #805

Open HouseYeung opened 5 months ago

HouseYeung commented 5 months ago

Description

when attempting to launch Granblue Fantasy Relink encountered program error:

The program granbue_fantasy_relink.exe has encountered a serious problem and needs to close. We are sorry for the inconvenience.

This can be caused by a problem in the program or a deficiency in Wine. You may want to check http://www.codeweavers.com/compatibility for tips about running this application.

Steps to reproduce

Set up whisky on macOS Install Granblue Fantasy Relink in the Wine environment. win 10 19042 esync Attempt to launch the game.

Expected behaviour

Expected the game Granblue Fantasy: Relink to launch successfully

Logs

Unhandled exception: illegal instruction in 64-bit code (0x00000141dc4b0a).
Register dump:
 rip:0000000141dc4b0a rsp:000000000011fcd0 rbp:0000000000000000 eflags:00000202 (   - --  I   - - - )
 rax:0000000141dc95e0 rbx:000000014513d0f0 rcx:0000000000000000 rdx:000000000f8b8b15
 rsi:0000000000000000 rdi:000000014513d0f8  r8:0000000000000000  r9:0000000000000001 r10:d30527475e523070
 r11:0000000000340000 r12:0000000000000000 r13:0000000000000000 r14:0000000000000000 r15:0000000000000000
Stack dump:
0x0000000011fcd0 <wine-loader>+0x11fcd0:  000000014592dfd0 0000000170059876
0x0000000011fce0 <wine-loader>+0x11fce0:  000000007b06bb90 000000007b600000
0x0000000011fcf0 <wine-loader>+0x11fcf0:  0000000000000000 000000007b61a875
0x0000000011fd00 <wine-loader>+0x11fd00:  0000000000000000 000000014513d0f8
0x0000000011fd10 <wine-loader>+0x11fd10:  0000000000000000 0000000000000000
0x0000000011fd20 <wine-loader>+0x11fd20:  0000000000000fa0 0000000000000000
0x0000000011fd30 <wine-loader>+0x11fd30:  000000014592e000 000000007b06b7b3
0x0000000011fd40 <wine-loader>+0x11fd40:  0000000000000000 000000014592dfd0
0x0000000011fd50 <wine-loader>+0x11fd50:  0000000000000000 0000000000000000
0x0000000011fd60 <wine-loader>+0x11fd60:  000000014513d0f0 000000014513d0f8
0x0000000011fd70 <wine-loader>+0x11fd70:  0000000000000000 0000000141dc95ec
0x0000000011fd80 <wine-loader>+0x11fd80:  0000000000000000 000000014512ceb8
Backtrace:
=>0 0x00000141dc4b0a msgpack_object_equal+0x18cfda() in granblue_fantasy_relink (0000000000000000)
  1 0x00000141dc95ec msgpack_object_equal+0x191abc() in granblue_fantasy_relink (0000000000000000)
  2 0x00000143bb2835 EntryPoint+0x1a765() in granblue_fantasy_relink (0000000000000000)
  3 0x00000143b97fb7 ??0ReadBytesMem@AK@@QEAA@PEBXH@Z+0x256be7() in granblue_fantasy_relink (0000000000000000)
  4 0x0000007b62a889 BaseThreadInitThunk+0x9(unknown=<internal error>, entry=<internal error>, arg=<internal error>) [Z:\private\tmp\game-porting-toolkit-20240118-10340-j1tlls\wine\dlls\kernel32\thread.c:61] in kernel32 (0000000000000000)
  5 0x0000017005b3b8 __wine_pop_frame(unknown=<internal error>, entry=<internal error>, arg=<internal error>) [Z:\private\tmp\game-porting-toolkit-20240118-10340-j1tlls\wine\include\wine\exception.h:275] in ntdll (0000000000000000)
  6 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-20240118-10340-j1tlls\wine\dlls\ntdll\thread.c:240] in ntdll (0000000000000000)
0x00000141dc4b0a granblue_fantasy_relink+0x1dc4b0a: ldsl    0x0000000000007f <wine-loader>+0x7f(%rcx),%edi
Modules:
Module  Address                 Debug info  Name (72 modules)
ELF 0000000000000000-00000000001dc000   Stabs           <wine-loader>
PE  0000000000430000-0000000000441000   Deferred        psapi
PE  0000000000450000-000000000046c000   Deferred        d3d11
PE  0000000000470000-0000000000480000   Deferred        dxgi
PE  0000000000480000-00000000004a0000   Deferred        amd_ags_x64
PE  00000000004a0000-000000000050a000   Deferred        bink2w64
ELF 0000000068042000-0000000068046000   Deferred        <wine-loader>
PE  00000000680a0000-00000000680ac000   Deferred        libwine.1.0.dylib
ELF 00000000680c1000-00000000680d1000   Deferred        user32.so
ELF 00000000680e7000-00000000681d7000   Deferred        ntdll.so
PE  0000000068499000-00000000684b5000   Deferred        libd3dshared.dylib
ELF 00000000686c3000-00000000686d3000   Deferred        ws2_32.so
ELF 00000000686f1000-0000000068705000   Deferred        crypt32.so
ELF 0000000068729000-0000000068741000   Deferred        bcrypt.so
PE  0000000068785000-00000000687b5000   Deferred        libpng16.16.dylib
ELF 0000000068875000-0000000068a7d000   Deferred        win32u<elf>
  \-PE  0000000068880000-0000000068a39000   \               win32u
PE  0000000068cd1000-0000000068d71000   Deferred        libfreetype.6.dylib
PE  000000006ada5000-000000006add9000   Deferred        libdxccontainer.dylib
ELF 000000006aee5000-000000006afc5000   Deferred        winemac<elf>
  \-PE  000000006aef0000-000000006af89000   \               winemac
PE  000000006b08f000-000000006b0b3000   Deferred        libintl.8.dylib
PE  000000006b0d7000-000000006b0f3000   Deferred        libtasn1.6.dylib
PE  000000006b112000-000000006b14e000   Deferred        libidn2.0.dylib
PE  000000006b1b0000-000000006b5cc000   Deferred        d3dmetal
PE  000000006d3e4000-000000006d434000   Deferred        libnettle.8.8.dylib
PE  000000006d487000-000000006d4cf000   Deferred        libhogweed.6.8.dylib
PE  000000006d936000-000000006da6e000   Deferred        libp11-kit.0.dylib
PE  000000006dc3b000-000000006ddf3000   Deferred        libunistring.5.dylib
PE  000000006de7a000-000000006deea000   Deferred        libgmp.10.dylib
PE  000000006e0a8000-00000000708a8000   Deferred        libmetalirconverter.dylib
PE  000000007b000000-000000007b558000   Deferred        kernelbase
PE  000000007b600000-000000007b7a4000   Dwarf-4-5       kernel32
PE  000000007d400000-000000007d405000   Deferred        wine64-preloader
PE  0000000140000000-0000000146c3c000   Export          granblue_fantasy_relink
PE  0000000170000000-0000000170333000   Dwarf-4-5       ntdll
PE  0000000180000000-0000000180113000   Deferred        steam_api64
PE  00000001c69e0000-00000001c7768000   Deferred        shell32
PE  00000001c8b40000-00000001c8bb8000   Deferred        msacm32
PE  00000001c8db0000-00000001c90c6000   Deferred        msvcrt
PE  00000001dd3f0000-00000001dd76c000   Deferred        crypt32
PE  00000001ec2b0000-00000001ec356000   Deferred        ws2_32
PE  00000001f51e0000-00000001f5213000   Deferred        hid
PE  000000021a380000-000000021a3b6000   Deferred        xinput9_1_0
PE  000000021a7e0000-000000021a9c4000   Deferred        setupapi
PE  0000000231ae0000-0000000231d71000   Deferred        rpcrt4
PE  000000023d820000-000000023df01000   Deferred        user32
PE  000000026b4c0000-000000026b756000   Deferred        gdi32
PE  00000002739c0000-0000000273ea5000   Deferred        oleaut32
PE  00000002a4090000-00000002a40c1000   Deferred        wtsapi32
PE  00000002bb750000-00000002bbca6000   Deferred        comctl32
PE  00000002d4d40000-00000002d4d92000   Deferred        bcrypt
PE  00000002e3540000-00000002e3656000   Deferred        shlwapi
PE  00000002e8f10000-00000002e9495000   Deferred        ole32
PE  00000002f1fa0000-00000002f1fc0000   Deferred        version
PE  00000002f7230000-00000002f72f0000   Deferred        uxtheme
PE  0000000308050000-000000030816d000   Deferred        dinput8
PE  00000003126f0000-0000000312745000   Deferred        shcore
PE  0000000327020000-00000003271af000   Deferred        combase
PE  000000032a700000-000000032a7c1000   Deferred        sechost
PE  0000000330260000-000000033038e000   Deferred        advapi32
PE  00000003af670000-00000003af9f8000   Deferred        ucrtbase
PE  00000003afd00000-00000003afd66000   Deferred        imm32
PE  00000003b8f00000-00000003b90b9000   Deferred        winmm
PE  00007ff80e1ea000-00007ff80e226000   Deferred        libsystem_kernel.dylib
PE  00007ff80e225000-00007ff80e231000   Deferred        libsystem_pthread.dylib
PE  00007ff80e256000-00007ff80e262000   Deferred        libsystem_platform.dylib
PE  00007ff81cd9d000-00007ff81cdc1000   Deferred        liblzma.5.dylib
PE  00007ff81df78000-00007ff81df9c000   Deferred        libpng.dylib
PE  00007ff81dfa5000-00007ff81e011000   Deferred        libtiff.dylib
PE  00007ff81e037000-00007ff81e0e3000   Deferred        libgif.dylib
PE  00007ff81e037000-00007ff81e0e3000   Deferred        libjpeg.dylib
Threads:
process  tid      prio    name (all IDs are in hex)
00000030 services.exe
    00000034    0     
    00000038    0     
    00000044    0     
    0000005c    0     
    00000078    0     
    0000009c    0     
    000000e0    0     
0000003c svchost.exe
    00000040    0     
    0000004c    0     
    00000050    0     
00000054 winedevice.exe
    00000058    0     
    00000060    0     
    00000064    0     
    00000068    0     
    0000006c    0     
    000000ac    0     
    0000017c    0     
00000070 winedevice.exe
    00000074    0     
    0000007c    0     
    00000080    0     
    00000084    0     
    00000088    0     
    0000008c    0     
    00000090    0     
00000094 plugplay.exe
    00000098    0     
    000000a0    0     
    000000a4    0     
    000000a8    0     
000000bc granblue_fantasy_relink.exe
    000000c0    0     
    00000110    0     
000000c4 explorer.exe
    000000c8    0     
    000000cc    0     
    000000d0    0     
000000d8 rpcss.exe
    000000dc    0     
    000000e8    0     
    000000ec    0     
    000000f0    0     
    000000f4    0     
    000000f8    0     
00000100 winedbg.exe
    00000104    0     
    00000114    0     
00000108 conhost.exe
    0000010c    0     
0000015c (D) C:\Games\Granblue Fantasy Relink\granblue_fantasy_relink.exe
    00000160    0 <== 
    00000174    0     
0000016c conhost.exe
    00000170    0     
System information:
    Wine build: wine-7.7
    Platform: x86_64
    Version: Windows 10
    Host system: Darwin
    Host version: 23.2.0

What version of Whisky are you using?

2.2.3

What version of macOS are you using?

Sonoma (macOS 14)

Issue Language

HouseYeung commented 5 months ago

I suspect this error is due to AVX instructions. So its unplayable?

Coulin9 commented 5 months ago

I suspect this error is due to AVX instructions. So its unplayable? The instruction set requirements of this game are as follows: 截屏2024-02-02 22 34 11 It do require AVX and AVX2 instructions.But strangely, ea app installer and rockstar games launcher also need AVX and AVX2 instruction sets, but they can all run through crossover translation. 截屏2024-02-02 22 38 51 So I guess it may not work for other reasons.

Coulin9 commented 5 months ago

It may indeed be related to the avx instruction set, because e3-1230v1 cannot run this game too.

Zheyres commented 5 months ago

there is the possibility for the devs to build two paths one with SSE 4.2 and one with AVX2 for the same assembler code. CP2077 was only a flag that was removed from the EXE. but for example, god eater 3 was patched in less than a month. some games like Project Cars 1 had two exe files.
let's hope they add support for non AVX CPU as they did with Granblue versus patch 1.03

iantsai0616 commented 4 months ago

Hi,have u found any way to solve this?I faced the same problem while trying to open Overwatch2.

Zheyres commented 2 months ago

Hi,have u found any way to solve this?I faced the same problem while trying to open Overwatch2.

the only fix is devs patch or buying a new CPU

zrll12 commented 3 weeks ago

Will this be supported as Apple has announced AVX2 support for gptk 2.0 on WWDC 24?

Coulin9 commented 3 weeks ago

Will this be supported as Apple has announced AVX2 support for gptk 2.0 on WWDC 24?

I have tried it with gptk2.0, it launches and then immediately crashes.Maybe the avx support is not reliable enough at its first beta version.

Coulin9 commented 3 weeks ago

Will this be supported as Apple has announced AVX2 support for gptk 2.0 on WWDC 24?

Now it's playable with DXVK and macOS15 or AVX2 patch for Rosseta2

zrll12 commented 3 weeks ago

Will this be supported as Apple has announced AVX2 support for gptk 2.0 on WWDC 24?

Now it's playable with DXVK and macOS15 or AVX2 patch for Rosseta2

So does avx2 patch install it self when I update to macOS 15?

Coulin9 commented 3 weeks ago

Will this be supported as Apple has announced AVX2 support for gptk 2.0 on WWDC 24?

Now it's playable with DXVK and macOS15 or AVX2 patch for Rosseta2

So does avx2 patch install it self when I update to macOS 15?

Yes,just upgrade to macOS 15 and you will get avx2 support.

zrll12 commented 2 weeks ago

It is playable now, but you cannot change the video settings. The game will be running under 1 fps if you change them.

Which means, you have to play it under 1080p and window mode. But the performance is not bad on my machine(M2 Max, game running 60fps).