Skip to content

[BUG] Failed launch during a game switch leaves the title reserved; every managed title then fails with "launch mount unavailable ... Device busy" #183

Closed

Description

@JKamsker

Description
If a game launched over a running game (a game switch) fails to start, ShadowMountPlus keeps that title reserved in the prepared slot forever. From then on, every launch of a managed title fails with launch mount unavailable: <title> status=16 (Device busy) and the PS5 shows a launch error. Stock installed pkgs are unaffected. Nothing times out. It only clears when the stuck title is launched again with no game running, or when ShadowMountPlus is reloaded.

Seen 3 times in one day on the same console. The trigger is a title that never starts (here PPSA01494, a folder game), launched while another managed game is running.

Steps to reproduce

  1. Start a managed game A (e.g. PPSA02745, UFS image).
  2. While A runs, launch a managed title B whose launch fails (here PPSA01494).
  3. SM+ logs game switch prepared: outgoing=A incoming=B, then launch retry prepared during game switch: B twice. A is released (runtime release start: A), B never starts.
  4. Launch A (or any other managed title) again: launch mount unavailable: A status=16 (Device busy).

Expected: once the switch is over and B has failed, B is released and other titles launch normally.

Cause (from reading src/sm_shellcore_service.c on branch 1.7)

  • The switch path in claim_prepared_title() sets outgoing = A, prepared = B, launch_pending = true.
  • B's launch fails. In handle_launch_failed_request(), switch_pending is true (outgoing still set) and bound_pid == 0, so it only calls reset_switch_title_mount(B) and expects ShellCore to retry. It does not release B.
  • ShellCore gives up after the retries, and A's exit clears outgoing. prepared still holds B with app_id == 0, pid == 0, launch_pending == true.
  • Every later launch of another title reaches claim_prepared_title(). prepared doesn't match and prepared.app_id == 0, so it returns EBUSY.
  • Only these clear it: launching B again with no game running (then switch_pending is false and sm_shellcore_release_title_runtime(B) runs), or restarting the payload.

Possible fix: when a switch's outgoing title finishes its release while prepared still has no app_id/pid and its launch has failed, release the prepared title too. Alternatively, put a deadline on a pending switch launch.

Software Version

  • ShadowMountPlus Version: 1.7beta7 (loaded by PLDMGR 0.6.3). The relevant code is unchanged on 1.7 HEAD / 1.7beta8 as far as I can tell.
  • Path to the game that isn't working: every managed title after the failed switch, e.g. PPSA02745 (/mnt/ext1/homebrew/<name>.ffpkg), PPSA99058 (/data/Uploads/<name>.exfat), PPSA99180 and PPSA99000 (folders). The title whose failed launch triggers it is PPSA01494 (folder in /data/homebrew).
    • Image Type: happens with all of them
    • .fpkg
    • .exfat image
    • Folder games too
  • How was this image created? Not image-specific.
    • Does it work with any other software? n/a
    • Firmware Version & Backports: FW 13.60 (CFI-1216A), onionHEN 0.9.0 + kstuff. PPSA01494 never starts on this console, a separate problem; any title that fails to launch should trigger this.

Itemzflow History

  • Has Itemzflow been used for these games before?

    • Yes
    • No
  • If YES: Did you delete the game shortcuts using Itemzflow BEFORE installing ShadowMountPlus?

    • N/A

Debug Log
Excerpts with image filenames shortened. Full logs are available on request.

Click to expand debug.log content (incident 3: 10:10)
[09:56:39]   [GAME] started: PPSA02745 pid=349 app_id=0x0000C018
[10:10:23]   [SHELLCORE] game switch prepared: outgoing=PPSA02745 incoming=PPSA01494
[10:10:23]   [LINK] nullfs mounted: /data/homebrew/PPSA01494-... -> /system_ex/app/PPSA01494
[10:10:23]   [SHELLCORE] launch mount ready: PPSA01494
[10:10:23]   [LINK] runtime layers released: PPSA01494
[10:10:23]   [SHELLCORE] launch retry prepared during game switch: PPSA01494
[10:10:23]   [FAKELIB] game stopped: pid=349 title=PPSA02745 layers=7
[10:10:23]   [GAME] process exited, awaiting same-app handoff: PPSA02745 pid=349 app_id=0x0000C018
[10:10:24]   [LINK] nullfs mounted: /data/homebrew/PPSA01494-... -> /system_ex/app/PPSA01494
[10:10:24]   [SHELLCORE] launch mount ready: PPSA01494
[10:10:24]   [LINK] runtime layers released: PPSA01494
[10:10:24]   [SHELLCORE] launch retry prepared during game switch: PPSA01494
[10:10:24]   [GAME] finalizing stopped application: PPSA02745 pid=349
[10:10:24]   [SHELLCORE] runtime release awaiting sandbox removal: PPSA02745
[10:10:24]   [SHELLCORE] runtime release start: PPSA02745
[10:10:24]   [LINK] runtime layers released: PPSA02745
[10:10:24]   [IMG][LVD] unmount complete: source=/mnt/ext1/homebrew/<name>.ffpkg ... unit=1 error=0
[10:10:27]   [SHELLCORE] launch mount unavailable: PPSA02745 status=16 (Device busy)
[10:12:04]   [SHELLCORE] launch mount unavailable: PPSA02745 status=16 (Device busy)

Kernel log for the failed PPSA02745 launch:

[SceLncService] ...lnc_app_info.cpp(184) query: LNC_CHECK::0x80940033 (m_is_pkg value is false)
[SceLncService] ...lnc_manager.cpp(497) launchApp: LNC_ISOK::0x80940033
[SceShellUI] I/PSM.UI : SceneQ : Loaded[0.00msec] : LaunchFlowError.PPSA02745 : Scene
Incident 1 (04:13): cleared by launching the stuck title again from the home screen
[04:13:55]   [SHELLCORE] game switch prepared: outgoing=PPSA99000 incoming=PPSA01494
[04:13:55]   [SHELLCORE] launch retry prepared during game switch: PPSA01494
[04:13:56]   [SHELLCORE] launch retry prepared during game switch: PPSA01494
[04:13:56]   [SHELLCORE] runtime release start: PPSA99000
[04:14:11]   [SHELLCORE] launch mount unavailable: PPSA99058 status=16 (Device busy)
[04:14:14]   [SHELLCORE] launch mount unavailable: PPSA99058 status=16 (Device busy)
[04:15:32]   [SHELLCORE] launch mount unavailable: PPSA99058 status=16 (Device busy)
[04:15:37]   [SHELLCORE] launch mount ready: PPSA01494
[04:15:37]   [SHELLCORE] runtime release start: PPSA01494      <- B launched again, no switch -> released
[04:16:04]   [SHELLCORE] launch mount ready: PPSA99058
[04:16:04]   [GAME] started: PPSA99058 pid=104 app_id=0x0000A018
Incident 2 (04:50): stuck ~14 minutes until the payload was reloaded
[04:50:26]   [SHELLCORE] game switch prepared: outgoing=PPSA99058 incoming=PPSA01494
[04:50:26]   [SHELLCORE] launch retry prepared during game switch: PPSA01494
[04:50:27]   [SHELLCORE] launch retry prepared during game switch: PPSA01494
[04:50:28]   [SHELLCORE] runtime release start: PPSA99058
[04:50:29]   [SHELLCORE] launch mount unavailable: PPSA99058 status=16 (Device busy)
[04:52:01]   [SHELLCORE] launch mount unavailable: PPSA99058 status=16 (Device busy)
[04:53:59]   [SHELLCORE] launch mount unavailable: PPSA99058 status=16 (Device busy)
[04:54:37]   [SHELLCORE] launch mount unavailable: PPSA99000 status=16 (Device busy)
[04:57:28]   [SHELLCORE] launch mount unavailable: PPSA99058 status=16 (Device busy)
[05:04:26] [SHUTDOWN] stop requested during scanner wait
[05:04:26] ShadowMount+ v1.7beta7 ... FW: 13.60
[05:04:26]   [LINK] runtime layers released: PPSA01494
[05:18:13]   [GAME] started: PPSA99058 pid=175 app_id=0x00006018

Activity

  1. bobrass commented on Oct 30, 2026

    @bobrass

    Thanks for writing up the reproduction and tracing the state transitions; that makes this much easier to follow. I checked the current 1.7 source, and handle_launch_failed_request() does keep the incoming title in prepared while an outgoing title exists: it resets the incoming mount for ShellCore’s retry, but does not release that owner. I can’t confirm the console timing here, but that matches the stale-slot sequence you described if ShellCore eventually stops retrying before an app ID or PID is bound. Maintainer, could you confirm whether ShellCore sends a final failure/timeout notification after those retries? If there’s a build with cleanup for that case, the reporter’s A→failed-B→launch-A sequence looks like a clear way to validate it.

  2. JKamsker commented on Oct 30, 2026

    @JKamsker
    Author

    Will do as soon as it happens again - unfortunately i removed the game in question so i cannot reproduce it at the time. i will reopen this when it happens again

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions