[GAME STATUS]: Avatar: Frontiers of Pandora (logo) #2331

Open
opened 2026-11-26 10:18:34 +00:00 by github-bot · 19 comments
Owner

@⁠Crispy81 on GitHub · 2026-11-17 02:07 UTC · original

Game title

Avatar: Frontiers of Pandora

Game ID / serial

PPSA01576

KytyPS5 version

0.3.0 1e87171

Compatibility status

Logo

Last working build / first broken build

No response

Result details

Game boots to logo/splashscreens, then crashes.

shader resource tracking: hash=0x614519413a1067de stage=pixel pc=0x00000130 GetImageResource dword 0 is not a valid runtime value in D:\a\KytyPS5\KytyPS5\src\graphics\shader\recompiler\ir\passes\ResourceTracking.cpp:646

Steps to reproduce the result

  1. Open Translator
  2. Boot Game.

Expected behavior

Game would proceed to cutscene or Main Menu.

OS

Windows 11 Pro 26H2

CPU

AMD Ryzen 7 7700X

GPU

AMD Radeon RX 9070XT, Driver 26.10.1

RAM / VRAM

32 GB RAM / 16GB VRAM

Log file upload

_kyty.txt

Screenshots/video

Screenshot 2026-11-17 130652 Screenshot 2026-11-17 130723

Extra notes

Default settings.

**@⁠Crispy81** on GitHub · 2026-11-17 02:07 UTC · [original](https://github.com/KytyPS5/KytyPS5/issues/2331) ### Game title Avatar: Frontiers of Pandora ### Game ID / serial PPSA01576 ### KytyPS5 version 0.3.0 1e87171 ### Compatibility status Logo ### Last working build / first broken build _No response_ ### Result details Game boots to logo/splashscreens, then crashes. shader resource tracking: hash=0x614519413a1067de stage=pixel pc=0x00000130 GetImageResource dword 0 is not a valid runtime value in D:\a\KytyPS5\KytyPS5\src\graphics\shader\recompiler\ir\passes\ResourceTracking.cpp:646 ### Steps to reproduce the result 1. Open Translator 2. Boot Game. ### Expected behavior Game would proceed to cutscene or Main Menu. ### OS Windows 11 Pro 26H2 ### CPU AMD Ryzen 7 7700X ### GPU AMD Radeon RX 9070XT, Driver 26.10.1 ### RAM / VRAM 32 GB RAM / 16GB VRAM ### Log file upload [_kyty.txt](https://github.com/user-attachments/files/34947179/_kyty.txt) ### Screenshots/video <img width="1917" height="1108" alt="Screenshot 2026-11-17 130652" src="https://github.com/user-attachments/assets/c144229e-4f6a-4d71-a385-16200d00069f" /> <img width="1917" height="1113" alt="Screenshot 2026-11-17 130723" src="https://github.com/user-attachments/assets/fae12718-a8f0-447f-8ab6-40cbf47a1213" /> ### Extra notes Default settings.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 10:18:34 +00:00
Author
Owner

@⁠Nawid3333 on GitHub · 2026-11-17 19:51 UTC · original

@⁠Crispy81 Thanks for the report. The stop is in pixel shader 0x614519413a1067de at pc=0x00000130: the first dword of an image descriptor comes from a value the emulator cannot trace back to where the game stored the descriptor, and the log has no instructions of that shader.

Could you run it once more with the same build and these options added: --printf-direction File --printf-output-file kyty_log.txt --shader-log-direction File, and attach the zipped kyty_log.txt? The lines just before the error then list that shader's instructions, which shows where the descriptor comes from.

**@⁠Nawid3333** on GitHub · 2026-11-17 19:51 UTC · [original](https://github.com/KytyPS5/KytyPS5/issues/2331#issuecomment-6959145170) @⁠Crispy81 Thanks for the report. The stop is in pixel shader `0x614519413a1067de` at `pc=0x00000130`: the first dword of an image descriptor comes from a value the emulator cannot trace back to where the game stored the descriptor, and the log has no instructions of that shader. Could you run it once more with the same build and these options added: `--printf-direction File --printf-output-file kyty_log.txt --shader-log-direction File`, and attach the zipped `kyty_log.txt`? The lines just before the error then list that shader's instructions, which shows where the descriptor comes from.
Author
Owner

@⁠Crispy81 on GitHub · 2026-11-17 20:56 UTC · original · edited 2026-11-17 21:31 UTC

_kyty.txt

**@⁠Crispy81** on GitHub · 2026-11-17 20:56 UTC · [original](https://github.com/KytyPS5/KytyPS5/issues/2331#issuecomment-6960769797) · edited 2026-11-17 21:31 UTC [_kyty.txt](https://github.com/user-attachments/files/34996049/_kyty.txt)
Author
Owner

@⁠Crispy81 on GitHub · 2026-11-17 21:32 UTC · original

correct log uploaded

**@⁠Crispy81** on GitHub · 2026-11-17 21:32 UTC · [original](https://github.com/KytyPS5/KytyPS5/issues/2331#issuecomment-6961592700) correct log uploaded
Author
Owner

@⁠Nawid3333 on GitHub · 2026-11-17 21:53 UTC · original

@⁠Crispy81 Thanks, this one is the Avatar log. It stops at the same place (pixel shader 0x614519413a1067de, pc=0x00000130), but it has only the compile-phase lines of that shader, not its instructions. KytyPS5 writes the instruction listing only when --shader-log-direction is set to something other than Silent, and this log has no such listing.

Could you run it once more with all three options: --printf-direction File --printf-output-file kyty_log.txt --shader-log-direction File, and attach kyty_log.txt (zipped)? It should then contain a line starting with ShaderRecompiler PS decoded RDNA2: just before the error.

(The log you attached on #2321 is from Baldur's Gate 3, title ID PPSA18463, so the Crimson Desert log is still open there.)

**@⁠Nawid3333** on GitHub · 2026-11-17 21:53 UTC · [original](https://github.com/KytyPS5/KytyPS5/issues/2331#issuecomment-6962083272) @⁠Crispy81 Thanks, this one is the Avatar log. It stops at the same place (pixel shader `0x614519413a1067de`, `pc=0x00000130`), but it has only the compile-phase lines of that shader, not its instructions. KytyPS5 writes the instruction listing only when `--shader-log-direction` is set to something other than `Silent`, and this log has no such listing. Could you run it once more with all three options: `--printf-direction File --printf-output-file kyty_log.txt --shader-log-direction File`, and attach `kyty_log.txt` (zipped)? It should then contain a line starting with `ShaderRecompiler PS decoded RDNA2:` just before the error. (The log you attached on #2321 is from Baldur's Gate 3, title ID PPSA18463, so the Crimson Desert log is still open there.)
Author
Owner

@⁠Crispy81 on GitHub · 2026-11-17 21:58 UTC · original

_kyty.txt

**@⁠Crispy81** on GitHub · 2026-11-17 21:58 UTC · [original](https://github.com/KytyPS5/KytyPS5/issues/2331#issuecomment-6962171957) [_kyty.txt](https://github.com/user-attachments/files/34997015/_kyty.txt)
Author
Owner

@⁠Nawid3333 on GitHub · 2026-11-23 13:01 UTC · original

Thank you, that last log has the listing and the shader's IR I needed. The image_sample at pc=0x00000130 sits in a texture loop (from 0x10c) that starts after S_ANDN2_B64 s20, s20, vcc_lo, S_CBRANCH_SCC0 and S_WQM_B64 exec_lo, s20. Kyty could not prove that the loop's first lane mask has an active lane, so it refused the descriptor. The S_CBRANCH_SCC0 branch proves s20 is not zero, and s20 holds only live pixels, so this build accepts that mask. It also lets Kyty resolve this kind of descriptor in pixel shaders, which was compute-only before (Age of Mythology in #2050 stops on the same kind of lookup):

Could you start Avatar with it and attach the _kyty.txt?

**@⁠Nawid3333** on GitHub · 2026-11-23 13:01 UTC · [original](https://github.com/KytyPS5/KytyPS5/issues/2331#issuecomment-7101951806) Thank you, that last log has the listing and the shader's IR I needed. The `image_sample` at `pc=0x00000130` sits in a texture loop (from `0x10c`) that starts after `S_ANDN2_B64 s20, s20, vcc_lo`, `S_CBRANCH_SCC0` and `S_WQM_B64 exec_lo, s20`. Kyty could not prove that the loop's first lane mask has an active lane, so it refused the descriptor. The `S_CBRANCH_SCC0` branch proves s20 is not zero, and s20 holds only live pixels, so this build accepts that mask. It also lets Kyty resolve this kind of descriptor in pixel shaders, which was compute-only before (Age of Mythology in #2050 stops on the same kind of lookup): - https://github.com/Nawid3333/KytyPS5/actions/runs/45171057481/artifacts/14819294811 (Windows, build `e8f958f`) Could you start Avatar with it and attach the `_kyty.txt`?
Author
Owner

@⁠Crispy81 on GitHub · 2026-11-23 13:43 UTC · original

Unresolved import stub called: Yb60K7BST48[PlayGoDialog][PlayGoDialog][Func]
Shaders: VS 31 | PS 81 | CS 157 | GS 42 | LS 0 | HS 0 | TES 0
Shaders: VS 31 | PS 81 | CS 158 | GS 42 | LS 0 | HS 0 | TES 0
Shaders: VS 31 | PS 81 | CS 159 | GS 42 | LS 0 | HS 0 | TES 0
Shaders: VS 31 | PS 82 | CS 159 | GS 42 | LS 0 | HS 0 | TES 0
--- Build ---
Fork build Nawid3333/KytyPS5 e8f958f
--- Error ---
shader resource tracking: hash=0x312e7d3d3b901298 stage=compute pc=0x00000efc GetImageResource dword 0 is not a valid runtime value in D:\a\KytyPS5\KytyPS5\src\graphics\shader\recompiler\ir\passes\ResourceTracking.cpp:646

_kyty.zip

**@⁠Crispy81** on GitHub · 2026-11-23 13:43 UTC · [original](https://github.com/KytyPS5/KytyPS5/issues/2331#issuecomment-7102933683) Unresolved import stub called: Yb60K7BST48[PlayGoDialog][PlayGoDialog][Func] Shaders: VS 31 | PS 81 | CS 157 | GS 42 | LS 0 | HS 0 | TES 0 Shaders: VS 31 | PS 81 | CS 158 | GS 42 | LS 0 | HS 0 | TES 0 Shaders: VS 31 | PS 81 | CS 159 | GS 42 | LS 0 | HS 0 | TES 0 Shaders: VS 31 | PS 82 | CS 159 | GS 42 | LS 0 | HS 0 | TES 0 --- Build --- Fork build Nawid3333/KytyPS5 e8f958f --- Error --- shader resource tracking: hash=0x312e7d3d3b901298 stage=compute pc=0x00000efc GetImageResource dword 0 is not a valid runtime value in D:\a\KytyPS5\KytyPS5\src\graphics\shader\recompiler\ir\passes\ResourceTracking.cpp:646 [_kyty.zip](https://github.com/user-attachments/files/35279031/_kyty.zip)
Author
Owner

@⁠Nawid3333 on GitHub · 2026-11-23 15:04 UTC · original

Thank you. The pixel shader passes now; the next stop is a compute shader (hash=0x312e7d3d3b901298, pc=0x00000efc) with the same kind of texture loop. There the key is loaded under one lane mask, and the loop's mask reaches that mask only through a point where two branches join. Kyty did not follow such a join inside a loop's mask, so it could not show that the loop's lanes are lanes that loaded the key. This build follows those joins:

Could you start Avatar with it and attach the _kyty.txt?

**@⁠Nawid3333** on GitHub · 2026-11-23 15:04 UTC · [original](https://github.com/KytyPS5/KytyPS5/issues/2331#issuecomment-7104992846) Thank you. The pixel shader passes now; the next stop is a compute shader (`hash=0x312e7d3d3b901298`, `pc=0x00000efc`) with the same kind of texture loop. There the key is loaded under one lane mask, and the loop's mask reaches that mask only through a point where two branches join. Kyty did not follow such a join inside a loop's mask, so it could not show that the loop's lanes are lanes that loaded the key. This build follows those joins: - https://github.com/Nawid3333/KytyPS5/actions/runs/45191739133/artifacts/14828840595 (Windows, build `27ad01a`) Could you start Avatar with it and attach the `_kyty.txt`?
Author
Owner

@⁠Crispy81 on GitHub · 2026-11-23 21:36 UTC · original

Unresolved import stub called: Yb60K7BST48[PlayGoDialog][PlayGoDialog][Func]
Shaders: VS 62 | PS 139 | CS 206 | GS 90 | LS 0 | HS 0 | TES 0
Shaders: VS 62 | PS 139 | CS 207 | GS 90 | LS 0 | HS 0 | TES 0
Shaders: VS 62 | PS 139 | CS 208 | GS 90 | LS 0 | HS 0 | TES 0
Shaders: VS 62 | PS 139 | CS 209 | GS 90 | LS 0 | HS 0 | TES 0
Shaders: VS 62 | PS 139 | CS 210 | GS 90 | LS 0 | HS 0 | TES 0
Shaders: VS 62 | PS 139 | CS 211 | GS 90 | LS 0 | HS 0 | TES 0
Shaders: VS 62 | PS 139 | CS 212 | GS 90 | LS 0 | HS 0 | TES 0
Shaders: VS 62 | PS 139 | CS 213 | GS 90 | LS 0 | HS 0 | TES 0
Shaders: VS 62 | PS 139 | CS 214 | GS 90 | LS 0 | HS 0 | TES 0
Shaders: VS 62 | PS 139 | CS 215 | GS 90 | LS 0 | HS 0 | TES 0
Shaders: VS 62 | PS 139 | CS 216 | GS 90 | LS 0 | HS 0 | TES 0
Shaders: VS 62 | PS 139 | CS 217 | GS 90 | LS 0 | HS 0 | TES 0
Shaders: VS 62 | PS 139 | CS 218 | GS 90 | LS 0 | HS 0 | TES 0
Shaders: VS 62 | PS 139 | CS 219 | GS 90 | LS 0 | HS 0 | TES 0
Shaders: VS 62 | PS 140 | CS 219 | GS 90 | LS 0 | HS 0 | TES 0
Shaders: VS 62 | PS 140 | CS 220 | GS 90 | LS 0 | HS 0 | TES 0
--- Build ---
Fork build Nawid3333/KytyPS5 27ad01a
--- Error ---
shader CFG build failed: unsupported decoded instruction in CFG at pc 0x00000288: 0x00000288: unsupported family=VOPC opcode=0xf9 raw=[0x7df2d4f9 0x86060004] reason=VOPC SDWA modifier is not supported for opcode in D:\a\KytyPS5\KytyPS5\src\graphics\shader\recompiler\frontend\cfg\ShaderCFG.cpp:43

Log file a little too large to upload, even zipped.

**@⁠Crispy81** on GitHub · 2026-11-23 21:36 UTC · [original](https://github.com/KytyPS5/KytyPS5/issues/2331#issuecomment-7114680587) Unresolved import stub called: Yb60K7BST48[PlayGoDialog][PlayGoDialog][Func] Shaders: VS 62 | PS 139 | CS 206 | GS 90 | LS 0 | HS 0 | TES 0 Shaders: VS 62 | PS 139 | CS 207 | GS 90 | LS 0 | HS 0 | TES 0 Shaders: VS 62 | PS 139 | CS 208 | GS 90 | LS 0 | HS 0 | TES 0 Shaders: VS 62 | PS 139 | CS 209 | GS 90 | LS 0 | HS 0 | TES 0 Shaders: VS 62 | PS 139 | CS 210 | GS 90 | LS 0 | HS 0 | TES 0 Shaders: VS 62 | PS 139 | CS 211 | GS 90 | LS 0 | HS 0 | TES 0 Shaders: VS 62 | PS 139 | CS 212 | GS 90 | LS 0 | HS 0 | TES 0 Shaders: VS 62 | PS 139 | CS 213 | GS 90 | LS 0 | HS 0 | TES 0 Shaders: VS 62 | PS 139 | CS 214 | GS 90 | LS 0 | HS 0 | TES 0 Shaders: VS 62 | PS 139 | CS 215 | GS 90 | LS 0 | HS 0 | TES 0 Shaders: VS 62 | PS 139 | CS 216 | GS 90 | LS 0 | HS 0 | TES 0 Shaders: VS 62 | PS 139 | CS 217 | GS 90 | LS 0 | HS 0 | TES 0 Shaders: VS 62 | PS 139 | CS 218 | GS 90 | LS 0 | HS 0 | TES 0 Shaders: VS 62 | PS 139 | CS 219 | GS 90 | LS 0 | HS 0 | TES 0 Shaders: VS 62 | PS 140 | CS 219 | GS 90 | LS 0 | HS 0 | TES 0 Shaders: VS 62 | PS 140 | CS 220 | GS 90 | LS 0 | HS 0 | TES 0 --- Build --- Fork build Nawid3333/KytyPS5 27ad01a --- Error --- shader CFG build failed: unsupported decoded instruction in CFG at pc 0x00000288: 0x00000288: unsupported family=VOPC opcode=0xf9 raw=[0x7df2d4f9 0x86060004] reason=VOPC SDWA modifier is not supported for opcode in D:\a\KytyPS5\KytyPS5\src\graphics\shader\recompiler\frontend\cfg\ShaderCFG.cpp:43 Log file a little too large to upload, even zipped.
Author
Owner

@⁠Nawid3333 on GitHub · 2026-11-23 23:39 UTC · original

Thank you. This run stopped at a GPU instruction the emulator could not decode:

  • 0x7df2d4f9 0x86060004 is v_cmpx_nge_f16 in its SDWA form (compare v4 with vcc_lo, write the result to EXEC). The decoder's compare table did not have it, so the error named the SDWA modifier although the compare itself was missing.
  • The new build adds it. Its test runs these two instruction words and the VOP3 form of the compare with a negated v4. The expected values come from running the same instructions on an RDNA2 GPU (NaN, infinity, negative zero, and data in the unused upper 16 bits). Without the change the test stops with the same error as your log.

The build also has the shader changes from the last one, on current main:

Could you run Avatar with it the same way and attach the _kyty.txt? If it is still too large even zipped, the last 20,000 lines are enough.

**@⁠Nawid3333** on GitHub · 2026-11-23 23:39 UTC · [original](https://github.com/KytyPS5/KytyPS5/issues/2331#issuecomment-7117211765) Thank you. This run stopped at a GPU instruction the emulator could not decode: - `0x7df2d4f9 0x86060004` is `v_cmpx_nge_f16` in its SDWA form (compare `v4` with `vcc_lo`, write the result to EXEC). The decoder's compare table did not have it, so the error named the SDWA modifier although the compare itself was missing. - The new build adds it. Its test runs these two instruction words and the VOP3 form of the compare with a negated `v4`. The expected values come from running the same instructions on an RDNA2 GPU (NaN, infinity, negative zero, and data in the unused upper 16 bits). Without the change the test stops with the same error as your log. The build also has the shader changes from the last one, on current `main`: - [KytyPS5-Windows-x64](https://github.com/Nawid3333/KytyPS5/actions/runs/45278582316/artifacts/14871094725) (build `039ab71`) Could you run Avatar with it the same way and attach the `_kyty.txt`? If it is still too large even zipped, the last 20,000 lines are enough.
Author
Owner

@⁠Crispy81 on GitHub · 2026-11-23 23:46 UTC · original

Unresolved import stub called: Yb60K7BST48[PlayGoDialog][PlayGoDialog][Func]
Shaders: VS 55 | PS 160 | CS 226 | GS 76 | LS 0 | HS 0 | TES 0
Unresolved import stub called: Yb60K7BST48[PlayGoDialog][PlayGoDialog][Func]
Shaders: VS 55 | PS 160 | CS 227 | GS 76 | LS 0 | HS 0 | TES 0
--- Build ---
Fork build Nawid3333/KytyPS5 039ab71
--- Error ---
failed to create image: extent=3840x2160x1 format=122 layers=1 levels=1
in D:\a\KytyPS5\KytyPS5\src\graphics\host_gpu\renderer\image\image.cpp:720

Log file a little too large, even zipped.

**@⁠Crispy81** on GitHub · 2026-11-23 23:46 UTC · [original](https://github.com/KytyPS5/KytyPS5/issues/2331#issuecomment-7117344329) Unresolved import stub called: Yb60K7BST48[PlayGoDialog][PlayGoDialog][Func] Shaders: VS 55 | PS 160 | CS 226 | GS 76 | LS 0 | HS 0 | TES 0 Unresolved import stub called: Yb60K7BST48[PlayGoDialog][PlayGoDialog][Func] Shaders: VS 55 | PS 160 | CS 227 | GS 76 | LS 0 | HS 0 | TES 0 --- Build --- Fork build Nawid3333/KytyPS5 039ab71 --- Error --- failed to create image: extent=3840x2160x1 format=122 layers=1 levels=1 in D:\a\KytyPS5\KytyPS5\src\graphics\host_gpu\renderer\image\image.cpp:720 Log file a little too large, even zipped.
Author
Owner

@⁠Nawid3333 on GitHub · 2026-11-24 00:27 UTC · original

Thank you. The v_cmpx_nge_f16 stop is gone, and the game gets to the next one: failed to create image: extent=3840x2160x1 format=122 layers=1 levels=1 (image.cpp:720). Format 122 is B10G11R11_UFLOAT_PACK32. The check right before it found the format usable, so the failure is in creating the image or allocating its memory; the error line does not say which. When that happens, the emulator writes the GPU memory budget (VMA heap ... lines) into the log just before the error.

Could you attach the end of that _kyty.txt, zipped? The last 20,000 lines are enough, for example from PowerShell: Get-Content _kyty.txt -Tail 20000 | Set-Content kyty_end.txt. The heap lines show how much GPU memory was in use, against its budget, at that moment.

I'm opening the v_cmpx_nge_f16 change as a pull request, since this run shows the game gets past that point with this build.

**@⁠Nawid3333** on GitHub · 2026-11-24 00:27 UTC · [original](https://github.com/KytyPS5/KytyPS5/issues/2331#issuecomment-7118094004) Thank you. The `v_cmpx_nge_f16` stop is gone, and the game gets to the next one: `failed to create image: extent=3840x2160x1 format=122 layers=1 levels=1` (image.cpp:720). Format 122 is `B10G11R11_UFLOAT_PACK32`. The check right before it found the format usable, so the failure is in creating the image or allocating its memory; the error line does not say which. When that happens, the emulator writes the GPU memory budget (`VMA heap ...` lines) into the log just before the error. Could you attach the end of that `_kyty.txt`, zipped? The last 20,000 lines are enough, for example from PowerShell: `Get-Content _kyty.txt -Tail 20000 | Set-Content kyty_end.txt`. The heap lines show how much GPU memory was in use, against its budget, at that moment. I'm opening the `v_cmpx_nge_f16` change as a pull request, since this run shows the game gets past that point with this build.
Author
Owner

@⁠Crispy81 on GitHub · 2026-11-24 00:52 UTC · original

kyty_end.txt

**@⁠Crispy81** on GitHub · 2026-11-24 00:52 UTC · [original](https://github.com/KytyPS5/KytyPS5/issues/2331#issuecomment-7118523795) [kyty_end.txt](https://github.com/user-attachments/files/35305560/kyty_end.txt)
Author
Owner

@⁠Nawid3333 on GitHub · 2026-11-24 03:36 UTC · original

@⁠Crispy81 Thank you. The two VMA heap lines show where the memory went:

  • heap 0, by its size the GPU's own memory, was almost empty: 1.02 GB in use of a 15.92 GB budget;
  • heap 1, by its size system memory, was full: 13.75 GB in use of a 13.75 GB budget, with 14.87 GB allocated in it.

The image that failed is 3840x2160 (format 37, R8G8B8A8_UNORM, this time; 122 last time), and the emulator asks for GPU memory first for images, so the full system-memory heap is the more likely cause than that image. The error line does not include the Vulkan error, so the log cannot tell which step failed.

This build adds, when an image cannot be created, the Vulkan error, the image's settings, how many images ended up in system memory, and how much each kind of memory holds (lines starting with [lab-2331], just before the error):

Could you start Avatar with it the same way and attach the end of _kyty.txt as before (Get-Content _kyty.txt -Tail 20000 | Set-Content kyty_end.txt)?

**@⁠Nawid3333** on GitHub · 2026-11-24 03:36 UTC · [original](https://github.com/KytyPS5/KytyPS5/issues/2331#issuecomment-7121258829) @⁠Crispy81 Thank you. The two `VMA heap` lines show where the memory went: - heap 0, by its size the GPU's own memory, was almost empty: 1.02 GB in use of a 15.92 GB budget; - heap 1, by its size system memory, was full: 13.75 GB in use of a 13.75 GB budget, with 14.87 GB allocated in it. The image that failed is 3840x2160 (format 37, `R8G8B8A8_UNORM`, this time; 122 last time), and the emulator asks for GPU memory first for images, so the full system-memory heap is the more likely cause than that image. The error line does not include the Vulkan error, so the log cannot tell which step failed. This build adds, when an image cannot be created, the Vulkan error, the image's settings, how many images ended up in system memory, and how much each kind of memory holds (lines starting with `[lab-2331]`, just before the error): - [KytyPS5-Windows-x64](https://github.com/Nawid3333/KytyPS5/actions/runs/45311041549/artifacts/14886639838) (build `9328291`) Could you start Avatar with it the same way and attach the end of `_kyty.txt` as before (`Get-Content _kyty.txt -Tail 20000 | Set-Content kyty_end.txt`)?
Author
Owner

@⁠Crispy81 on GitHub · 2026-11-24 03:45 UTC · original

kyty_end.txt

**@⁠Crispy81** on GitHub · 2026-11-24 03:45 UTC · [original](https://github.com/KytyPS5/KytyPS5/issues/2331#issuecomment-7121397678) [kyty_end.txt](https://github.com/user-attachments/files/35309980/kyty_end.txt)
Author
Owner

@⁠Nawid3333 on GitHub · 2026-11-24 04:45 UTC · original

@⁠Crispy81 Thank you. The new lines show that I had the two heaps the wrong way round in my last comment: each memory type now lists its heap, and the GPU-memory types (flag DEVICE_LOCAL) are in heap 1. So heap 1 is the GPU's own memory and heap 0 is system memory, and it is the GPU memory that runs out:

  • heap 1 (GPU memory): 13.68 GB in use of a 13.64 GB budget; the plain GPU-memory type holds 13.38 GB in 2,484 allocations, the CPU-visible GPU-memory type another 1.38 GB;
  • heap 0 (system memory): 1.09 GB in use of 15.92 GB; 25 images (446 MB) are already there.

The image that failed this time is 3200x1800, R16G16B16A16_SFLOAT (format 97), and vmaCreateImage returned ErrorOutOfDeviceMemory. The emulator asks VMA for images only within the reported budget (VMA_ALLOCATION_CREATE_WITHIN_BUDGET_BIT), so once the GPU heap is over it, a new image fails unless it can be placed in system memory; whether this one could is not in the log.

This build adds, at the same point, which memory types that image may use, how many images are in each heap, and the 12 largest images with their size and format (more [lab-2331] lines):

Could you start Avatar with it the same way and attach the end of _kyty.txt again (Get-Content _kyty.txt -Tail 20000 | Set-Content kyty_end.txt)?

**@⁠Nawid3333** on GitHub · 2026-11-24 04:45 UTC · [original](https://github.com/KytyPS5/KytyPS5/issues/2331#issuecomment-7122311126) @⁠Crispy81 Thank you. The new lines show that I had the two heaps the wrong way round in my last comment: each memory type now lists its heap, and the GPU-memory types (flag `DEVICE_LOCAL`) are in heap 1. So heap 1 is the GPU's own memory and heap 0 is system memory, and it is the GPU memory that runs out: - heap 1 (GPU memory): 13.68 GB in use of a 13.64 GB budget; the plain GPU-memory type holds 13.38 GB in 2,484 allocations, the CPU-visible GPU-memory type another 1.38 GB; - heap 0 (system memory): 1.09 GB in use of 15.92 GB; 25 images (446 MB) are already there. The image that failed this time is 3200x1800, `R16G16B16A16_SFLOAT` (format 97), and `vmaCreateImage` returned `ErrorOutOfDeviceMemory`. The emulator asks VMA for images only within the reported budget (`VMA_ALLOCATION_CREATE_WITHIN_BUDGET_BIT`), so once the GPU heap is over it, a new image fails unless it can be placed in system memory; whether this one could is not in the log. This build adds, at the same point, which memory types that image may use, how many images are in each heap, and the 12 largest images with their size and format (more `[lab-2331]` lines): - [KytyPS5-Windows-x64](https://github.com/Nawid3333/KytyPS5/actions/runs/45323078983/artifacts/14887944817) (build `1f8bd1c`) Could you start Avatar with it the same way and attach the end of `_kyty.txt` again (`Get-Content _kyty.txt -Tail 20000 | Set-Content kyty_end.txt`)?
Author
Owner

@⁠Crispy81 on GitHub · 2026-11-24 05:03 UTC · original

Now makes it to the main menu.
image

Then loading screen.

image

Then crashes.

Shaders: VS 20 | PS 46 | CS 7 | GS 7 | LS 0 | HS 0 | TES 0
Unresolved import stub called: Yb60K7BST48[PlayGoDialog][PlayGoDialog][Func]
--- Build ---
Fork build Nawid3333/KytyPS5 1f8bd1c
--- Error ---
shader resource tracking: hash=0x1a3a434bd20b8715 stage=compute pc=0x00000c6c GetImageResource dword 0 is not a valid runtime value in D:\a\KytyPS5\KytyPS5\src\graphics\shader\recompiler\ir\passes\ResourceTracking.cpp:646

kyty_end.txt

**@⁠Crispy81** on GitHub · 2026-11-24 05:03 UTC · [original](https://github.com/KytyPS5/KytyPS5/issues/2331#issuecomment-7122587793) Now makes it to the main menu. <img width="1923" height="1108" alt="image" src="https://github.com/user-attachments/assets/36533d65-173a-481f-90c4-82cd9969b0da" /> Then loading screen. <img width="1917" height="1110" alt="image" src="https://github.com/user-attachments/assets/c6ae3703-3f34-4f11-a31a-d30176fbb039" /> Then crashes. Shaders: VS 20 | PS 46 | CS 7 | GS 7 | LS 0 | HS 0 | TES 0 Unresolved import stub called: Yb60K7BST48[PlayGoDialog][PlayGoDialog][Func] --- Build --- Fork build Nawid3333/KytyPS5 1f8bd1c --- Error --- shader resource tracking: hash=0x1a3a434bd20b8715 stage=compute pc=0x00000c6c GetImageResource dword 0 is not a valid runtime value in D:\a\KytyPS5\KytyPS5\src\graphics\shader\recompiler\ir\passes\ResourceTracking.cpp:646 [kyty_end.txt](https://github.com/user-attachments/files/35312215/kyty_end.txt)
Author
Owner

@⁠Nawid3333 on GitHub · 2026-11-24 05:24 UTC · original

@⁠Crispy81 Thank you, that is progress. This run had no image allocation failure (the end of the log has no [lab-2331] or failed to create image line), so the census lines did not print. Why the images fit this time is not in the log; the budget Vulkan reports for the GPU heap also depends on how much GPU memory other programs use, so it can differ between runs.

The new stop is a compute shader (0x1a3a434bd20b8715, pc 0xc6c). Each lane holds an ID; the shader takes the smallest and the largest ID in the wave (a cross-lane min and max) and loops over every ID from the smallest to the largest. For each ID it reads a 128-byte record from one table (s100 + id * 128), takes a texture index from that record (s24), and reads the texture's descriptor from a second table (S_LOAD_DWORDX8 s8, s6, vcc_lo with vcc_lo = s24 << 5). Kyty's resource tracking can't resolve a texture picked through this loop, so it stops. That needs a change in the emulator; nothing to test for it yet.

If the image failure comes back in a later run, this build's [lab-2331] lines will show which images fill the GPU memory.

**@⁠Nawid3333** on GitHub · 2026-11-24 05:24 UTC · [original](https://github.com/KytyPS5/KytyPS5/issues/2331#issuecomment-7122912702) @⁠Crispy81 Thank you, that is progress. This run had no image allocation failure (the end of the log has no `[lab-2331]` or `failed to create image` line), so the census lines did not print. Why the images fit this time is not in the log; the budget Vulkan reports for the GPU heap also depends on how much GPU memory other programs use, so it can differ between runs. The new stop is a compute shader (`0x1a3a434bd20b8715`, pc `0xc6c`). Each lane holds an ID; the shader takes the smallest and the largest ID in the wave (a cross-lane min and max) and loops over every ID from the smallest to the largest. For each ID it reads a 128-byte record from one table (`s100 + id * 128`), takes a texture index from that record (`s24`), and reads the texture's descriptor from a second table (`S_LOAD_DWORDX8 s8, s6, vcc_lo` with `vcc_lo = s24 << 5`). Kyty's resource tracking can't resolve a texture picked through this loop, so it stops. That needs a change in the emulator; nothing to test for it yet. If the image failure comes back in a later run, this build's `[lab-2331]` lines will show which images fill the GPU memory.
Author
Owner

@⁠Nawid3333 on GitHub · 2026-11-24 05:32 UTC · original

At the moment i am also working on a pr to improve the logs in this repo so i do not have to ask for so many runs @⁠Crispy81

**@⁠Nawid3333** on GitHub · 2026-11-24 05:32 UTC · [original](https://github.com/KytyPS5/KytyPS5/issues/2331#issuecomment-7123040833) At the moment i am also working on a pr to improve the logs in this repo so i do not have to ask for so many runs @⁠Crispy81
This discussion has been locked. Commenting is limited to contributors.
No milestone
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
github/KytyPS5--KytyPS5#2331
No description provided.