Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 950987 - app-emulation/dxvk-9999: compiling without -mno-avx causes memory access violation at runtime
Summary: app-emulation/dxvk-9999: compiling without -mno-avx causes memory access viol...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-03-09 14:17 UTC by Esad Katmer
Modified: 2025-03-09 19:14 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info (emerge--info.txt,6.25 KB, text/plain)
2025-03-09 14:17 UTC, Esad Katmer
Details
cuphead.tar.zst (cuphead.tar.zst,3.36 KB, application/zstd)
2025-03-09 14:18 UTC, Esad Katmer
Details

Note You need to log in before you can comment on or make changes to this bug.
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