Ghost of Yōtei (PPSA26344): unsupported scalar source operand code 235 at program counter 856 #1920

Closed
opened 2026-10-08 23:59:56 +00:00 by Dextroid17 · 4 comments
Dextroid17 commented 2026-10-08 23:59:56 +00:00 (Migrated from github.com)
Contributor

Imported from boykopovar/AnyPS5. Originally posted by Dextroid17 on 2026-10-08T23:59:56Z.


What

Ghost of Yōtei (PPSA26344, 01.008) aborts after roughly 13 minutes of running:

[libc] unhandled exception 'St16invalid_argument' thrown from 0x7f0d1c5bdfe9
terminate called after throwing an instance of 'std::invalid_argument'
  what():  unsupported scalar source operand code 235 at program counter 856

Nothing in the tracker matches this message — searched unsupported scalar, scalar source operand, code 235, program counter 856.

How it was measured

  • decrypted eboot.bin relinked (822 NID references), staged runtime layout, RTX 3080 Ti, Linux
  • stack: main + #757 (image/sampler tables at runtime offsets) + #1836 (defer shaders that cannot be prepared at registration)
  • both are prerequisites to reach this point: on main alone the title dies at presentation with GetImageResource dword 0 is not a valid runtime value, and with #757 only it dies at startup with computed/data-dependent s_swappc_b64 call target at program counter 0x74 is not statically resolvable (#1817)

How far it gets before the abort

~13 minutes of running, 841 shaders compiled, 105 deferrals, the controller initialised:

[src/PadInput.cpp:50 openController] Pad: connected game controller: Xbox Series X Controller (type 2, …)
[shader-disk-cache] totals: 56 hits, 842 misses, 841 writes

then the abort above. So this is a late-run failure, not a start-up one.

Written with AI assistance.

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5770631532 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/1920). Originally posted by [Dextroid17](https://github.com/Dextroid17) on 2026-10-08T23:59:56Z. --- ### What Ghost of Yōtei (PPSA26344, 01.008) aborts after roughly 13 minutes of running: ``` [libc] unhandled exception 'St16invalid_argument' thrown from 0x7f0d1c5bdfe9 terminate called after throwing an instance of 'std::invalid_argument' what(): unsupported scalar source operand code 235 at program counter 856 ``` Nothing in the tracker matches this message — searched `unsupported scalar`, `scalar source operand`, `code 235`, `program counter 856`. ### How it was measured - decrypted `eboot.bin` relinked (822 NID references), staged runtime layout, RTX 3080 Ti, Linux - stack: `main` + **#757** (image/sampler tables at runtime offsets) + **#1836** (defer shaders that cannot be prepared at registration) - both are prerequisites to reach this point: on `main` alone the title dies at presentation with `GetImageResource dword 0 is not a valid runtime value`, and with #757 only it dies at startup with `computed/data-dependent s_swappc_b64 call target at program counter 0x74 is not statically resolvable` (#1817) ### How far it gets before the abort ~13 minutes of running, 841 shaders compiled, 105 deferrals, the controller initialised: ``` [src/PadInput.cpp:50 openController] Pad: connected game controller: Xbox Series X Controller (type 2, …) [shader-disk-cache] totals: 56 hits, 842 misses, 841 writes ``` then the abort above. So this is a late-run failure, not a start-up one. Written with AI assistance.
Dextroid17 commented 2026-10-09 00:04:12 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by Dextroid17 on 2026-10-09T00:04:12Z.


Correction and cross-reference after digging further: this case is not new — it is already documented, in the technical-debt entry that #1190 adds (not yet on main, which is why searching the tracker for the message found nothing, and gh search prs does not index diffs):

src_shared_base, src_shared_limit, src_private_base and src_private_limit (scalar source codes 235 to 238) are not modelled: decoding throws unsupported scalar source operand code with the code and the program counter, so a shader that reads one does not compile. Operand 235 (src_shared_base) was reported on #1182 from PPSA26344 …

So codes 235–238 are a known unmodelled set, and PPSA26344 is the title that keeps surfacing them — this is the second report of the same operand, after #1182. If the maintainers would rather this knowledge live only in #1190's debt entry, close this and I will not reopen it; I am leaving it because nothing in the issue tracker points at the gap.

What this report adds to that entry is the surrounding context:

  • with #757 + #1836 the title runs for ~13 minutes and compiles 841 shaders before dying here, so 235–238 are a mid-run blocker, not a start-up one (the earlier two walls were start-up ones);
  • in the same window 105 shaders were deferred by #1836, so this abort is the one that still escapes the deferral path;
  • the stack that reaches it (main + #757 + #1836) is the only one that does — on main alone the title dies two walls earlier.

The open question for whoever implements it: what the base operands should evaluate to when a shader actually reads one. The debt entry says the flat aperture routing does not read the base, so shapes that build an aperture address without reading it can be modelled; shapes that read it cannot yet.

Written with AI assistance.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6071478709 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/1920#issuecomment-6071478709). Originally posted by [Dextroid17](https://github.com/Dextroid17) on 2026-10-09T00:04:12Z. --- Correction and cross-reference after digging further: this case is not new — it is already documented, in the technical-debt entry that **#1190** adds (not yet on `main`, which is why searching the tracker for the message found nothing, and `gh search prs` does not index diffs): > `src_shared_base`, `src_shared_limit`, `src_private_base` and `src_private_limit` (scalar source codes **235 to 238**) are not modelled: decoding throws `unsupported scalar source operand code` with the code and the program counter, so a shader that reads one does not compile. Operand 235 (`src_shared_base`) was reported on **#1182** from **PPSA26344** … So codes 235–238 are a known unmodelled set, and PPSA26344 is the title that keeps surfacing them — this is the second report of the same operand, after #1182. If the maintainers would rather this knowledge live only in #1190's debt entry, close this and I will not reopen it; I am leaving it because nothing in the issue tracker points at the gap. What this report adds to that entry is the surrounding context: - with **#757** + **#1836** the title runs for ~13 minutes and compiles **841 shaders** before dying here, so 235–238 are a *mid-run* blocker, not a start-up one (the earlier two walls were start-up ones); - in the same window **105 shaders were deferred** by #1836, so this abort is the one that still escapes the deferral path; - the stack that reaches it (`main` + #757 + #1836) is the only one that does — on `main` alone the title dies two walls earlier. The open question for whoever implements it: what the base operands should evaluate to when a shader actually **reads** one. The debt entry says the flat aperture routing does not read the base, so shapes that build an aperture address without reading it can be modelled; shapes that read it cannot yet. Written with AI assistance.
Dextroid17 commented 2026-10-09 01:28:41 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by Dextroid17 on 2026-10-09T01:28:41Z.


Fixed by #1940: the four codes now decode to their own operand kinds and names, and a read of one refuses with a message that names the source (the value stays unmodelled, so a shader that reads one is left unprepared rather than given a plausible address).

Measured on the title: with #757 + #1836 + #1940, PPSA26344 no longer aborts at this call — it runs about 24 minutes (897 shaders, 106 deferrals) and its next wall is a different one, filed as a separate issue because it is a decode-side miss in another decoder.

Note for the fix: readScalarCode's default answered 0, so decoding alone would have produced a silently wrong aperture base on the code path that uses scalar codes rather than decoded operands; #1940 adds explicit refusal cases there too.

Written with AI assistance.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6072389155 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/1920#issuecomment-6072389155). Originally posted by [Dextroid17](https://github.com/Dextroid17) on 2026-10-09T01:28:41Z. --- Fixed by #1940: the four codes now decode to their own operand kinds and names, and a *read* of one refuses with a message that names the source (the value stays unmodelled, so a shader that reads one is left unprepared rather than given a plausible address). Measured on the title: with #757 + #1836 + #1940, PPSA26344 no longer aborts at this call — it runs about 24 minutes (897 shaders, 106 deferrals) and its next wall is a different one, filed as a separate issue because it is a decode-side miss in another decoder. Note for the fix: `readScalarCode`'s `default` answered 0, so decoding alone would have produced a silently wrong aperture base on the code path that uses scalar codes rather than decoded operands; #1940 adds explicit refusal cases there too. Written with AI assistance.
adriadam10 commented 2026-10-10 22:26:53 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-10T22:26:53Z.


#1940 decodes scalar sources 235..238 and refuses a read with the source named, covered by aperture_sources; the value of the apertures is still not modelled and the title was not run here.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6102843242 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/1920#issuecomment-6102843242). Originally posted by [adriadam10](https://github.com/adriadam10) on 2026-10-10T22:26:53Z. --- #1940 decodes scalar sources 235..238 and refuses a read with the source named, covered by `aperture_sources`; the value of the apertures is still not modelled and the title was not run here.
oneandonlydean commented 2026-10-11 05:06:17 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-11T05:06:17Z.


Closing: #1940 decodes scalar sources 235 to 238, and with it the reporter's run gets past this stop. A shader that reads one of the aperture bases is still refused with the source named (TechnicalDebt); reopen if the title stops on that.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6105686452 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/1920#issuecomment-6105686452). Originally posted by [oneandonlydean](https://github.com/oneandonlydean) on 2026-10-11T05:06:17Z. --- Closing: #1940 decodes scalar sources 235 to 238, and with it the reporter's run gets past this stop. A shader that reads one of the aperture bases is still refused with the source named (TechnicalDebt); reopen if the title stops on that.
Sign in to join this conversation.
No labels
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.

Reference
boykopovar/AnyPS5#1920
No description provided.