[GH-ISSUE #4073] [APP BUG]: Like a Dragon: Infinite Wealth - Crashes with EmitSetAttribute StencilRef #1211

Closed
opened 2026-02-27 21:10:31 +03:00 by kerem · 2 comments
Owner

Originally created by @himanshusdas on GitHub (Feb 24, 2026).
Original GitHub issue: https://github.com/shadps4-emu/shadPS4/issues/4073

Checklist

  • I have searched for a similar issue in this repository and did not find one.
  • I am using an official build obtained from releases or updated one of those builds using its in-app updater.

Describe the Bug

When attempting to boot Like a Dragon: Infinite Wealth, the emulator crashes completely during shader translation. The crash is triggered by an unimplemented Vulkan/SPIR-V instruction when the game attempts to write to the StencilRef attribute. The console outputs a critical "Unreachable code!" exception from the GPU command processor.
Error:-
[Debug] (shadPS4:GpuCommandProcessor) emit_spirv_context_get_set.cpp:258 EmitSetAttribute: Unreachable code! Write attribute StencilRef
[Kernel.Vmm] (pxd::file_callback) memory.cpp:575 sceKernelMemoryPoolCommit: addr = 0x187ff10000, len = 0x20000, type = 0x0, prot = 0x3, flags = 0x0

Reproduction Steps

1)Open shadPS4 version [407d287].
2)Launch Like a Dragon: Infinite Wealth (Title ID: [32137]).
3)Wait for the game to initialize the rendering/graphics engine.
4)Observe the hard crash and check the log file for the StencilRef error.

Expected Behavior

The emulator should either successfully translate the StencilRef attribute to Vulkan/SPIR-V, or safely stub/ignore the instruction without triggering a hard crash, allowing the game engine to attempt to boot further (even if it results in graphical glitches).

Specify OS Version

Windows 11

CPU

Intel core i5 -11400H

GPU

NVIDIA RTX 3050

Amount of RAM in GB

16 GB

Originally created by @himanshusdas on GitHub (Feb 24, 2026). Original GitHub issue: https://github.com/shadps4-emu/shadPS4/issues/4073 ### Checklist - [x] I have searched for a similar issue in this repository and did not find one. - [x] I am using an official build obtained from [releases](https://github.com/shadps4-emu/shadPS4/releases) or updated one of those builds using its in-app updater. ### Describe the Bug When attempting to boot Like a Dragon: Infinite Wealth, the emulator crashes completely during shader translation. The crash is triggered by an unimplemented Vulkan/SPIR-V instruction when the game attempts to write to the StencilRef attribute. The console outputs a critical "Unreachable code!" exception from the GPU command processor. Error:- [Debug] <Critical> (shadPS4:GpuCommandProcessor) emit_spirv_context_get_set.cpp:258 EmitSetAttribute: Unreachable code! Write attribute StencilRef [Kernel.Vmm] <Info> (pxd::file_callback) memory.cpp:575 sceKernelMemoryPoolCommit: addr = 0x187ff10000, len = 0x20000, type = 0x0, prot = 0x3, flags = 0x0 ### Reproduction Steps 1)Open shadPS4 version [407d287]. 2)Launch Like a Dragon: Infinite Wealth (Title ID: [32137]). 3)Wait for the game to initialize the rendering/graphics engine. 4)Observe the hard crash and check the log file for the StencilRef error. ### Expected Behavior The emulator should either successfully translate the StencilRef attribute to Vulkan/SPIR-V, or safely stub/ignore the instruction without triggering a hard crash, allowing the game engine to attempt to boot further (even if it results in graphical glitches). ### Specify OS Version Windows 11 ### CPU Intel core i5 -11400H ### GPU NVIDIA RTX 3050 ### Amount of RAM in GB 16 GB
kerem closed this issue 2026-02-27 21:10:31 +03:00
Author
Owner

@himanshusdas commented on GitHub (Feb 24, 2026):

This seems to be a common hurdle for modern Dragon Engine titles on shadPS4.

I'm reporting this to help track unimplemented SPIR-V instructions for higher-end PS4 titles.

<!-- gh-comment-id:3949321341 --> @himanshusdas commented on GitHub (Feb 24, 2026): This seems to be a common hurdle for modern Dragon Engine titles on shadPS4. I'm reporting this to help track unimplemented SPIR-V instructions for higher-end PS4 titles.
Author
Owner

@himanshusdas commented on GitHub (Feb 24, 2026):

This seems to be a common hurdle for modern Dragon Engine titles on shadPS4.

I'm reporting this to help track unimplemented SPIR-V instructions for higher-end PS4 titles.

<!-- gh-comment-id:3949562565 --> @himanshusdas commented on GitHub (Feb 24, 2026): This seems to be a common hurdle for modern Dragon Engine titles on shadPS4. I'm reporting this to help track unimplemented SPIR-V instructions for higher-end PS4 titles.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/shadPS4#1211
No description provided.