libSceVideoOut: sceVideoOutGetOutputStatus reports 1080p for a freshly opened handle, and NHL 27 (PPSA34063) dereferences null for its PS5_BASE profile #7635

Open
opened 2026-10-18 18:42:29 +00:00 by ArielWolle · 5 comments
ArielWolle commented 2026-10-18 18:42:29 +00:00 (Migrated from github.com)
Contributor

Imported from boykopovar/AnyPS5. Originally posted by ArielWolle on 2026-10-18T18:42:29Z.


### What happens

NHL 27 (PPSA34063, 01.003.001) crashes about 20 minutes after launch, after the shader warm-up, on a worker thread:

FATAL: unhandled exception 0xc0000005 on thread 4836 'Job6'
  rip 0x00000001479289c6 PPSA34063-app0.exe+0x79289c6
  read of 0x0000000000000074
  rax 0000000000000000

With ANYPS5_OUTPUT_4K=1 from the fork commit poonasor/AnyPS5@ba61a98eb (not on main) the same run does not crash and the picture displays.

Why

Read from the relinked executable's disassembly and the relinker registry; no console was used.

  1. The title builds a hardware profile id at startup:
    • sceVideoOutOpen(0xff, 0, 0, 0) (NID Up36PTk687E), sceVideoOutGetOutputStatus (utPrVdxio-8), then sceVideoOutClose (uquVH4-Du78).
    • is4K = (GetOutputStatus succeeded && status.resolution == 2).
    • sceKernelIsTrinityMode (tU5e3f9gSiU) is combined with it: index = is4K + 2 * trinity.
    • The index selects the string PS5_BASE, PS5_4K, TRINITY_BASE or TRINITY_4K, which maps to the profile ids 0x0d, 0x0e, 0x12 and 0x13.
  2. The title later looks up a profile entry for that id (exe+0x7928b40, level 4 searched downwards) and reads offset 0x74 of the result without a null check (exe+0x79289c6).
  3. In AnyPS5, sceVideoOutGetOutputStatus fills resolution in core/libs/prx/libSceVideoOut/src/Output.cpp from cfg.width/cfg.height, the size of the buffers registered on the port. The title asks right after sceVideoOutOpen, before registering any buffer, so the port still has the default 1920x1080 and resolution is 1. The title then picks PS5_BASE, and the lookup for that profile returns null (inferred from the crash register rax = 0 and the disassembly; not confirmed by tracing the call).

What is not known

  • Why the title has no entry for PS5_BASE. A console connected to a 1080p display should select it, so the entry may be missing because something fails to load rather than because the title does not support it.
  • What a console reports for resolution before any buffer is registered, and on a display below 4K. Console measurements are needed.

Observations

  • The host here has 1920x1080 and 2560x1440 displays, so following the host display instead of the buffer size would still report 1 and pick PS5_BASE.
  • With ANYPS5_OUTPUT_4K=1 the run got past the point where the unmodified run crashed and the picture displays. This is one run each, so it shows the switch avoids the crash in this setup, not that the PS5_BASE lookup is the only cause.
  • Nothing in the existing issues or pull requests covers this (searched sceVideoOutGetOutputStatus, PS5_BASE/PS5_4K/TRINITY, sceKernelIsTrinityMode, NHL 27, PPSA34063, PPSA34015, output status 1080p). Related, same engine (Engine.Render.Core2.PlatformPs5): #3123 (EA Sports UFC 5) reaches its menus and a fight on main with no mention of this crash, so the missing PS5_BASE entry may be specific to this title's data; its comments also confirm the module layout rule used here (the engine module must be converted into app0/, not app0/sce_module/). Open pull requests tagged PPSA34015 (EA FC 27, same engine) are unrelated libc/libSceVoice work. #7011 (docs for video output resolution) and #7480 (force SDR output) do not change resolution.

Environment

Windows 11 Home (build 26200), MinGW-w64 GCC 15.2.0 (WinLibs ucrt-posix-seh r7), RTX 3070, Ryzen 7 5700X, main at f03a2da5e (the local build also had unrelated libc backtrace changes, not involved here). Layout and commands are in docs/user/AI_USAGE.md.

AI-assisted: yes.

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5912850685 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/7635). Originally posted by [ArielWolle](https://github.com/ArielWolle) on 2026-10-18T18:42:29Z. --- ### What happens NHL 27 (PPSA34063, 01.003.001) crashes about 20 minutes after launch, after the shader warm-up, on a worker thread: ``` FATAL: unhandled exception 0xc0000005 on thread 4836 'Job6' rip 0x00000001479289c6 PPSA34063-app0.exe+0x79289c6 read of 0x0000000000000074 rax 0000000000000000 ``` With `ANYPS5_OUTPUT_4K=1` from the fork commit `poonasor/AnyPS5@ba61a98eb` (not on main) the same run does not crash and the picture displays. ### Why Read from the relinked executable's disassembly and the relinker registry; no console was used. 1. The title builds a hardware profile id at startup: - `sceVideoOutOpen(0xff, 0, 0, 0)` (NID `Up36PTk687E`), `sceVideoOutGetOutputStatus` (`utPrVdxio-8`), then `sceVideoOutClose` (`uquVH4-Du78`). - `is4K = (GetOutputStatus succeeded && status.resolution == 2)`. - `sceKernelIsTrinityMode` (`tU5e3f9gSiU`) is combined with it: `index = is4K + 2 * trinity`. - The index selects the string `PS5_BASE`, `PS5_4K`, `TRINITY_BASE` or `TRINITY_4K`, which maps to the profile ids 0x0d, 0x0e, 0x12 and 0x13. 2. The title later looks up a profile entry for that id (`exe+0x7928b40`, level 4 searched downwards) and reads offset `0x74` of the result without a null check (`exe+0x79289c6`). 3. In AnyPS5, `sceVideoOutGetOutputStatus` fills `resolution` in `core/libs/prx/libSceVideoOut/src/Output.cpp` from `cfg.width`/`cfg.height`, the size of the buffers registered on the port. The title asks right after `sceVideoOutOpen`, before registering any buffer, so the port still has the default 1920x1080 and `resolution` is 1. The title then picks `PS5_BASE`, and the lookup for that profile returns null (inferred from the crash register `rax = 0` and the disassembly; not confirmed by tracing the call). ### What is not known - Why the title has no entry for `PS5_BASE`. A console connected to a 1080p display should select it, so the entry may be missing because something fails to load rather than because the title does not support it. - What a console reports for `resolution` before any buffer is registered, and on a display below 4K. Console measurements are needed. ### Observations - The host here has 1920x1080 and 2560x1440 displays, so following the host display instead of the buffer size would still report 1 and pick `PS5_BASE`. - With `ANYPS5_OUTPUT_4K=1` the run got past the point where the unmodified run crashed and the picture displays. This is one run each, so it shows the switch avoids the crash in this setup, not that the `PS5_BASE` lookup is the only cause. - Nothing in the existing issues or pull requests covers this (searched `sceVideoOutGetOutputStatus`, `PS5_BASE`/`PS5_4K`/`TRINITY`, `sceKernelIsTrinityMode`, NHL 27, PPSA34063, PPSA34015, output status 1080p). Related, same engine (`Engine.Render.Core2.PlatformPs5`): #3123 (EA Sports UFC 5) reaches its menus and a fight on `main` with no mention of this crash, so the missing `PS5_BASE` entry may be specific to this title's data; its comments also confirm the module layout rule used here (the engine module must be converted into `app0/`, not `app0/sce_module/`). Open pull requests tagged PPSA34015 (EA FC 27, same engine) are unrelated libc/libSceVoice work. #7011 (docs for video output resolution) and #7480 (force SDR output) do not change `resolution`. ### Environment Windows 11 Home (build 26200), MinGW-w64 GCC 15.2.0 (WinLibs ucrt-posix-seh r7), RTX 3070, Ryzen 7 5700X, `main` at `f03a2da5e` (the local build also had unrelated libc backtrace changes, not involved here). Layout and commands are in `docs/user/AI_USAGE.md`. AI-assisted: yes.
ArielWolle commented 2026-10-18 18:47:49 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by ArielWolle on 2026-10-18T18:47:49Z.


More evidence on why PS5_BASE has no usable entry. Same setup as above (PPSA34063 01.003.001, Windows, main at f03a2da5e). Read from the game's files and the relinked executable; no console data.

  • The game supports base mode. The settings script in Data/initfs_Ps5 branches on platformMode == 'PS5_4K' or 'TRINITY_4K' and on 'TRINITY_BASE' or 'TRINITY_4K'. PS5_BASE has no branch because it is the default, so a 1080p answer is a path the title is written for.
  • Where the null comes from. The function at exe+0x7928700 fills a table of vectors from an array of entries loaded from game data. Each entry carries its platform id at offset 0x70, a kind at 0x4c and a quality level at 0x74; the entry goes into the vector for its id ([table + 0x70 + id*32]). exe+0x7928b40 then searches the vector of the current id for a kind-0 entry, from level 4 downwards. For id 0x0d (PS5_BASE) it finds none, and exe+0x79289c6 reads [rax+0x74] with rax = 0. So the missing piece is an entry in that data array for id 0x0d, not VideoOut code.
  • Not known: whether the array has no 0x0d entry in the shipped data, or the entry is not loaded in our run. The title's reads of its main data do not show up in the sceKernelOpen log, so I could not tell from the log whether Data/ or Patch/ supplies it. The dump's Patch/ has its own initfs_Ps5 (110 KB) and layout.toc next to the Data/ ones.

Taken together, forcing resolution 2 (the fork's ANYPS5_OUTPUT_4K) selects PS5_4K and avoids the empty slot, but does not explain it. A comparison with another title on this engine would help: EA Sports UFC 5 (#3123) is reported past its menus on main without this crash. If someone running a title from this engine on a display below 4K can say which platformMode it reports, that would show whether PS5_BASE works there.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6253731667 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/7635#issuecomment-6253731667). Originally posted by [ArielWolle](https://github.com/ArielWolle) on 2026-10-18T18:47:49Z. --- More evidence on why `PS5_BASE` has no usable entry. Same setup as above (PPSA34063 01.003.001, Windows, `main` at `f03a2da5e`). Read from the game's files and the relinked executable; no console data. - **The game supports base mode.** The settings script in `Data/initfs_Ps5` branches on `platformMode == 'PS5_4K' or 'TRINITY_4K'` and on `'TRINITY_BASE' or 'TRINITY_4K'`. `PS5_BASE` has no branch because it is the default, so a 1080p answer is a path the title is written for. - **Where the null comes from.** The function at `exe+0x7928700` fills a table of vectors from an array of entries loaded from game data. Each entry carries its platform id at offset `0x70`, a kind at `0x4c` and a quality level at `0x74`; the entry goes into the vector for its id (`[table + 0x70 + id*32]`). `exe+0x7928b40` then searches the vector of the current id for a kind-0 entry, from level 4 downwards. For id `0x0d` (`PS5_BASE`) it finds none, and `exe+0x79289c6` reads `[rax+0x74]` with `rax = 0`. So the missing piece is an entry in that data array for id `0x0d`, not VideoOut code. - **Not known:** whether the array has no `0x0d` entry in the shipped data, or the entry is not loaded in our run. The title's reads of its main data do not show up in the `sceKernelOpen` log, so I could not tell from the log whether `Data/` or `Patch/` supplies it. The dump's `Patch/` has its own `initfs_Ps5` (110 KB) and `layout.toc` next to the `Data/` ones. Taken together, forcing resolution 2 (the fork's `ANYPS5_OUTPUT_4K`) selects `PS5_4K` and avoids the empty slot, but does not explain it. A comparison with another title on this engine would help: EA Sports UFC 5 (#3123) is reported past its menus on `main` without this crash. If someone running a title from this engine on a display below 4K can say which `platformMode` it reports, that would show whether `PS5_BASE` works there.
MarcZX10 commented 2026-10-18 18:54:37 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-18T18:54:37Z.


This additional disassembly evidence narrows the failure to the title data lookup: PS5_BASE is a supported/default mode, but the loaded profile table has no kind-0 entry for id 0x0d, and the caller dereferences the missing result. The 4K override only selects another table slot; it does not establish that VideoOut should report 4K before buffers are registered. I do not see a safe AnyPS5 change supported by this evidence. A useful next discriminator would be whether the shipped Data/ or Patch/ profile array contains id 0x0d (and which file populates the runtime table); that would separate missing title data from a load/path issue.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6253800912 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/7635#issuecomment-6253800912). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-18T18:54:37Z. --- This additional disassembly evidence narrows the failure to the title data lookup: `PS5_BASE` is a supported/default mode, but the loaded profile table has no kind-0 entry for id 0x0d, and the caller dereferences the missing result. The 4K override only selects another table slot; it does not establish that VideoOut should report 4K before buffers are registered. I do not see a safe AnyPS5 change supported by this evidence. A useful next discriminator would be whether the shipped `Data/` or `Patch/` profile array contains id 0x0d (and which file populates the runtime table); that would separate missing title data from a load/path issue.
ArielWolle commented 2026-10-18 19:47:26 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by ArielWolle on 2026-10-18T19:47:26Z.


Follow-up on the discriminator: the shipped data has no PS5_BASE entry, so this is missing title data, not a load or path problem on our side.

Checked statically against the shipped Data/ and Patch/ (update 01.003.001), and against a debugger dump of the runtime table taken just before the crash in a run without the 4K switch. Only ids and counts are given here, no game content.

The table the title builds holds entries for these platform-mode ids:

id entries
0x00 15
0x0e (PS5_4K) 10
0x0f 5
0x10 5
0x13 (TRINITY_4K) 5
0x0d (PS5_BASE), 0x11, 0x12 (TRINITY_BASE), 0x14, 0x15 none
  • The entry kinds and levels in the shipped data match the runtime dump entry for entry.
  • The Patch/ layer repeats the same references as Data/ and adds no entry for 0x0d, 0x11 or 0x12. A scan of every asset of that size in both layers found no other entries of this class.
  • So there is nothing for AnyPS5 to serve differently. The shipped content treats an ordinary PS5 as the 4K class (0x0e); for this title to run, the console has to report resolution 2 in the status call.

I'm not claiming sceVideoOutGetOutputStatus should report 4K by default. What is still unknown, and cannot be settled from the files, is what a console reports in resolution right after sceVideoOutOpen, before any buffer is registered, with a 4K display and with a 1080p display. A console measurement of that one field would decide it. Until then the ANYPS5_OUTPUT_4K fork switch remains only a workaround for this title.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6254349519 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/7635#issuecomment-6254349519). Originally posted by [ArielWolle](https://github.com/ArielWolle) on 2026-10-18T19:47:26Z. --- Follow-up on the discriminator: the shipped data has no `PS5_BASE` entry, so this is missing title data, not a load or path problem on our side. Checked statically against the shipped `Data/` and `Patch/` (update 01.003.001), and against a debugger dump of the runtime table taken just before the crash in a run without the 4K switch. Only ids and counts are given here, no game content. The table the title builds holds entries for these platform-mode ids: | id | entries | |----|---------| | `0x00` | 15 | | `0x0e` (`PS5_4K`) | 10 | | `0x0f` | 5 | | `0x10` | 5 | | `0x13` (`TRINITY_4K`) | 5 | | `0x0d` (`PS5_BASE`), `0x11`, `0x12` (`TRINITY_BASE`), `0x14`, `0x15` | none | - The entry kinds and levels in the shipped data match the runtime dump entry for entry. - The `Patch/` layer repeats the same references as `Data/` and adds no entry for `0x0d`, `0x11` or `0x12`. A scan of every asset of that size in both layers found no other entries of this class. - So there is nothing for AnyPS5 to serve differently. The shipped content treats an ordinary PS5 as the 4K class (`0x0e`); for this title to run, the console has to report `resolution` 2 in the status call. I'm not claiming `sceVideoOutGetOutputStatus` should report 4K by default. What is still unknown, and cannot be settled from the files, is what a console reports in `resolution` right after `sceVideoOutOpen`, before any buffer is registered, with a 4K display and with a 1080p display. A console measurement of that one field would decide it. Until then the `ANYPS5_OUTPUT_4K` fork switch remains only a workaround for this title.
MarcZX10 commented 2026-10-18 22:36:47 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-18T22:36:47Z.


Thanks for checking both shipped data layers and the runtime table. That confirms the crash follows the title’s missing PS5_BASE profile entry; it does not establish the console’s pre-buffer resolution value. I agree the ANYPS5_OUTPUT_4K override should remain a title workaround unless that console field is measured, so I see no source-side VideoOut change justified by this report yet.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6256022328 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/7635#issuecomment-6256022328). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-18T22:36:47Z. --- Thanks for checking both shipped data layers and the runtime table. That confirms the crash follows the title’s missing `PS5_BASE` profile entry; it does not establish the console’s pre-buffer resolution value. I agree the `ANYPS5_OUTPUT_4K` override should remain a title workaround unless that console field is measured, so I see no source-side VideoOut change justified by this report yet.
ionut27001 commented 2026-10-19 07:31:42 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by ionut27001 on 2026-10-19T07:31:42Z.


I'm working on this. Measured in a payload process on a PS5 (firmware 12.70), with libSceVideoOut.sprx loaded through sceKernelLoadStartModule, right after sceVideoOutOpen(0xff, 0, 0, NULL) and with no buffer registered:

Console resolution setting (4K HDR display) sceVideoOutGetOutputStatus sceVideoOutGetResolutionStatus
Automatic resolution 2, dynamicRange 2, refreshRate 3, flags 0 3840x2160 full and pane, refreshRate 3
1080p resolution 1, dynamicRange 2, refreshRate 3, flags 0 3840x2160 full and pane, refreshRate 3

So with no buffer registered, resolution follows the console's resolution setting. I'll open a PR that reports it from the host display the window is on instead of the port's buffer size, with the probe source and logs attached.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6262072952 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/7635#issuecomment-6262072952). Originally posted by [ionut27001](https://github.com/ionut27001) on 2026-10-19T07:31:42Z. --- I'm working on this. Measured in a payload process on a PS5 (firmware 12.70), with `libSceVideoOut.sprx` loaded through `sceKernelLoadStartModule`, right after `sceVideoOutOpen(0xff, 0, 0, NULL)` and with no buffer registered: | Console resolution setting (4K HDR display) | `sceVideoOutGetOutputStatus` | `sceVideoOutGetResolutionStatus` | |---|---|---| | Automatic | `resolution` 2, `dynamicRange` 2, `refreshRate` 3, `flags` 0 | 3840x2160 full and pane, `refreshRate` 3 | | 1080p | `resolution` 1, `dynamicRange` 2, `refreshRate` 3, `flags` 0 | 3840x2160 full and pane, `refreshRate` 3 | So with no buffer registered, `resolution` follows the console's resolution setting. I'll open a PR that reports it from the host display the window is on instead of the port's buffer size, with the probe source and logs attached.
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#7635
No description provided.