Skip to content

Opening cutscene soft-locks in Bowser throne-room scene (frame loop alive, game state frozen) #1

Open

Description

@seanstaggsQU

Opening cutscene soft-locks (Bowser throne-room scene) — CPU/frame loop alive, game state frozen

Summary

Right after character-naming, during the opening cutscene (Bowser's forces
invading the castle — the throne-room scene, just before/around the point
Bowser's fist would smash through the wall), the game stops responding to
input and the visible frame stops changing entirely, while the host's own
render/audio loop keeps running normally. This isn't a crash/exit — the
process stays alive and the frame counter keeps incrementing at ~60fps —
but nothing in emulated game state advances, indefinitely (observed for
minutes).

Repro

  1. Build SuperMarioRPGSNESRecomp in debug config (tools/build-linux.sh --config debug) so the TCP debug server (port 4381) is available.
  2. Launch with a verified ROM, boot to title, press Start.
  3. Advance through the "Your name?" entry screen (any name; confirming
    "Done" works fine — cursor movement and letter selection are correctly
    interactive here).
  4. Advance the following cutscene with repeated A presses (via
    set_controller a / clear_controller over the debug TCP protocol).
    Cutscene renders correctly through several beats — Mario on a
    raft/barrel, the castle exterior, Princess Peach in a dark room, then
    Bowser's throne room with Mario on a rug facing Bowser's minions.
  5. At the throne-room frame, further A/Start/directional presses do
    nothing. frame command shows the frame counter climbing normally.
    get_ppu_state polled several real seconds apart returns byte-for-byte
    identical
    output (every field: inidisp, bgmode, bgXsc, hScroll/vScroll,
    screenEnabled, windowsel, cgadsub, cgwsel, vramPointer, etc. — only the
    evenFrame parity bit toggles as expected). unresolved_stub_get and
    unresolved_goto_get both report zero hits at this point, so it isn't a
    dispatch-miss the coverage capture is aware of.

What this looks like

The main-loop's rendering/audio pump is unaffected (proceeds at full
frame rate, no error/exit), but the emulated CPU appears to be stuck in a
wait-loop whose exit condition is never satisfied — consistent with an
event/flag/counter that's supposed to be set by an IRQ, a timer, or an
SA-1-side signal not being delivered correctly by the interpreter at this
specific point in the script, rather than an outright crash.

Environment

  • Game: Super Mario RPG (US), verified ROM (SHA-256 matches the one
    documented in the game repo's README).
  • snesrecomp checkout: 312b3664c723c07061aeb0ece6efda508f22dc6b
    (branch ws-baseline-prehistory-119-g312b366).
  • SMRPG game repo (fork): built from a checkout close to
    07b497d (release: prepare v0.0.3 mods coverage build).
  • Linux x86_64, built against SDL3 3.2.16, glibc 2.36 build environment.
  • Debug build (-DSNESRECOMP_ENABLE_TRACE=ON), TCP debug server on 4381.

What I haven't been able to determine yet

The exact stuck PC / instruction. The debug protocol's frame command
reports g_last_recomp_func as "(none)" throughout (expected, since
almost everything in this early-bring-up game runs through the
interpreter rather than an AOT-recompiled function), and there's no
simple "current PC" query in the debug protocol as far as I found — real
single-step/call-trace tooling (trace_addr/get_trace, step,
call_stack) would be needed to pin down exactly where execution is
looping, which I haven't done yet.

Activity

  1. seanstaggsQU commented on Aug 21, 2026

    @seanstaggsQU
    Author

    Follow-up with a more precise lead: the per-run tier2 dispatch-miss journal (--config debug build) stops gaining new discoveries right as the freeze begins. The last entries before the stall repeat from a single site alternating between two goto targets:

    site_pc24=0xC006AA -> target_pc24=0xC00724  (goto_gap, frame 6541)
    site_pc24=0xC006AA -> target_pc24=0xC006B3  (goto_gap, frame 6552)
    

    No further discoveries after frame ~6552 in a run that idled for many more thousands of frames at 60fps with zero forward progress. That repeated-goto-from-one-site pattern (alternating between two destinations depending on some checked condition) is a classic polling/spin-wait signature -- $C006AA is my best current guess for the stuck loop's decision point, worth checking first.

    Also: the freeze isn't 100% deterministic in exactly where it lands -- one repro run got measurably further (through an additional scene, Mario apparently just-launched from the castle) before reconverging on the same stuck throne-room-looking frame, while another repro stalled directly in the throne-room scene. Both repros ultimately end up spinning with an unchanging get_ppu_state snapshot, just not always at the identical frame count.

  2. mstan commented on Nov 7, 2026

    @mstan
    Owner

    Your host-frame/PPU observations distinguish a live presentation loop from guest progress, and the supplied source/ROM/build identities are already useful. The $C006AA dispatch-journal site is a concrete lead, but the last discovery record is not proof of the live stuck PC or an IRQ/SA-1 cause. Keeping this guest-progression stall open for that direct execution/return evidence; there is no need to resend the existing repro instructions. The later level-up crash in #2 remains a separate report.

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions