sceUsbdGetDeviceList (empty list) sends a title into unimplemented JpegDec, then it intermittently hangs at a loading screen #1837

Closed
opened 2026-11-26 10:06:51 +00:00 by github-bot · 0 comments
Owner

@⁠carbonimax on GitHub · 2026-10-22 18:53 UTC · original

Follow-up to #1831 (and the title tracked in #1451).

#1831 registers sceUsbdGetDeviceList / sceUsbdFreeDeviceList and returns an empty device list. The change looks correct for the API. We noticed a side effect while merging f5f4e7d4 into a fork that reaches in-game on this title.

What happens

  • With the two functions registered, the title takes a different path at the loading screen after the difficulty selection. It calls five JpegDec functions that are not implemented: LSinoSQH790, uNAUmANZMEw, JPh3Zgg0Zwc, 1kzQRoWEgSA, Hwh11+m5KoI (JpegDec_v1). No JpegDec library exists in the tree, so they resolve to unresolved import stubs.
  • Then no new frame is presented, while guest threads keep running: event-queue waits and flip events still show in the log. There is no crash and no device lost. The last log lines are the JpegDec stubs followed by repeated 9ddRUOV8Q5A[DeviceService_v1][Mbus_v1.1] stub calls.
  • With the two functions left unresolved, the title never calls JpegDec and loads the race every time.

Numbers (Windows 11, RX 6900 XT, same tree except the two LIB_FUNC lines)

build usbd device list runs reaching the race
fork + f5f4e7d4 registered 1 of 4 (3 hangs)
same tree, two registrations removed unresolved 4 of 4
before f5f4e7d4 unresolved 6 of 6

The run that did reach the race also called JpegDec (7 calls), so the path is taken every time and the hang is intermittent.

Caveat: pure upstream f5f4e7d4 crashes earlier on this machine, at the first pipeline compiles in runtimeLinker.cpp:715, so I couldn't reproduce the hang on unmodified upstream. It would be great if someone who owns the title (@⁠pjc2026, @⁠ReisenBagels?) could check whether the loading screen after the difficulty selection still loads on upstream.

Possible ways forward: implement a minimal JpegDec HLE (we're working on one and can upstream it), or keep the device-list functions unregistered until JpegDec exists.

**@⁠carbonimax** on GitHub · 2026-10-22 18:53 UTC · [original](https://github.com/KytyPS5/KytyPS5/issues/1837) Follow-up to #1831 (and the title tracked in #1451). #1831 registers `sceUsbdGetDeviceList` / `sceUsbdFreeDeviceList` and returns an empty device list. The change looks correct for the API. We noticed a side effect while merging f5f4e7d4 into a fork that reaches in-game on this title. **What happens** - With the two functions registered, the title takes a different path at the loading screen after the difficulty selection. It calls five JpegDec functions that are not implemented: `LSinoSQH790`, `uNAUmANZMEw`, `JPh3Zgg0Zwc`, `1kzQRoWEgSA`, `Hwh11+m5KoI` (JpegDec_v1). No JpegDec library exists in the tree, so they resolve to unresolved import stubs. - Then no new frame is presented, while guest threads keep running: event-queue waits and flip events still show in the log. There is no crash and no device lost. The last log lines are the JpegDec stubs followed by repeated `9ddRUOV8Q5A[DeviceService_v1][Mbus_v1.1]` stub calls. - With the two functions left unresolved, the title never calls JpegDec and loads the race every time. **Numbers** (Windows 11, RX 6900 XT, same tree except the two `LIB_FUNC` lines) | build | usbd device list | runs reaching the race | |---|---|---| | fork + f5f4e7d4 | registered | 1 of 4 (3 hangs) | | same tree, two registrations removed | unresolved | 4 of 4 | | before f5f4e7d4 | unresolved | 6 of 6 | The run that did reach the race also called JpegDec (7 calls), so the path is taken every time and the hang is intermittent. **Caveat:** pure upstream f5f4e7d4 crashes earlier on this machine, at the first pipeline compiles in `runtimeLinker.cpp:715`, so I couldn't reproduce the hang on unmodified upstream. It would be great if someone who owns the title (@⁠pjc2026, @⁠ReisenBagels?) could check whether the loading screen after the difficulty selection still loads on upstream. **Possible ways forward:** implement a minimal JpegDec HLE (we're working on one and can upstream it), or keep the device-list functions unregistered until JpegDec exists.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 10:06:51 +00:00
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#1837
No description provided.