SPIR-V compiler crash with yuzu ASTC decoder

2 min read Original article ↗

Checklist [README]

  • Device is not undervolted nor overclocked
  • Device is using the latest drivers
  • Application is not cracked, modded and use the latest patch

Application [Required]

yuzu

Processor / Processor Number [Required]

Core i5 12600K

Graphic Card [Required]

Arc A770 16GB

GPU Driver Version [Required]

  • 31.0.101.3491 (latest)
  • 31.0.101.3490
  • 31.0.101.3430
  • 31.0.101.3276
  • 30.0.101.3268
  • 30.0.101.3259
  • 30.0.101.1743

Rendering API [Required]

  • Vulkan
  • OpenGL
  • DirectX12
  • DirectX11
  • DirectX10
  • DirectX9
  • Not applicable

Windows Build Number [Required]

  • Windows 11 22H2
  • Windows 11 21H1 (October 2021 Update)
  • Windows 10 21H2 (November 2021 Update)
  • Windows 10 21H1 (May 2021 Update)
  • Windows 10 20H2 (October 2020 Update)
  • Other (Please specify)

Other Windows build number

No response

Intel System Support Utility report

ssu-info.txt

Description and steps to reproduce [Required]

The yuzu Nintendo Switch emulator crashes when loading any application with the Vulkan Arc driver due to a crash in SPIR-V shader compiler. The file was produced with glslangValidator and the Vulkan application has no validation errors.

Integrated graphics drivers are not affected. Mesa is not affected. Other driver families (AMD, Nvidia) are not affected.

Here is a link to the issue report: https://github.com/yuzu-emu/yuzu/issues/9072

Here is a link to the lastest version of yuzu:
https://github.com/yuzu-emu/yuzu-mainline/releases

Here is a link to a zipped homebrew example game to run in the emulator which can trigger the crash:
simple_triangle.zip (free software, compiled from here)


I have created a minimal application which reproduces the crash here: https://github.com/liamwhite/astc-crash/

Steps for the minimal application:

  1. mkdir build
  2. cd build
  3. cmake ..
  4. Open in VS and build main.cpp
  5. Run and it will immediately crash

arc_crash

Device / Platform

No response

Crash dumps [Required]

main.dmp.zip

Application / Windows logs

No response