Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 950987

Summary: app-emulation/dxvk-9999: compiling without -mno-avx causes memory access violation at runtime
Product: Gentoo Linux Reporter: Esad Katmer <esadkatmer>
Component: Current packagesAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED FIXED    
Severity: normal CC: esadkatmer
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: emerge --info
cuphead.tar.zst

Description Esad Katmer 2025-03-09 14:17:09 UTC
Created attachment 920431 [details]
emerge --info

Cuphead crashes with memory access voilation after trying to load save.
See https://github.com/doitsujin/dxvk/issues/4746 for more information.

Steps to Reproduce:
1. emerge -1q '=mesa-9999'
2. Setup wine
```
$ export WINEPREFIX="/tmp/gaming/wine"
$ export WINEHOME="$WINEPREFIX/drive_c/users/$USER" 
$ wineboot
$ wineserver -w
```

3. Setup dxvk
```
$ setup_dxvk.sh install
```

4. Load Save File cuphead.tar.zst
```
$ tar xf cuphead.tar.zst -C "$WINEHOME"
```

5. Start Cuphead
```
$ cd Cuphead
$ wine Cuphead.exe
```

6. Try to start the game from save
Press Any Button > Start > Cuphead A > Player Select

This bug fixed by adding bugfix again from `dxvk-2.5.3.ebuild`
```
  # -mavx with mingw-gcc has a history of obscure issues and
  # disabling is seen as safer, e.g. `WINEARCH=win32 winecfg`
  # crashes with -march=skylake >=wine-8.10, similar issues with
  # znver4: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110273
  append-flags -mno-avx
```
Comment 1 Esad Katmer 2025-03-09 14:18:09 UTC
Created attachment 920432 [details]
cuphead.tar.zst