Repository navigation
Description
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
- Build
SuperMarioRPGSNESRecompin debug config (tools/build-linux.sh --config debug) so the TCP debug server (port 4381) is available. - Launch with a verified ROM, boot to title, press Start.
- Advance through the "Your name?" entry screen (any name; confirming
"Done" works fine — cursor movement and letter selection are correctly
interactive here). - Advance the following cutscene with repeated
Apresses (via
set_controller a/clear_controllerover 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. - At the throne-room frame, further
A/Start/directional presses do
nothing.framecommand shows the frame counter climbing normally.
get_ppu_statepolled 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
evenFrameparity bit toggles as expected).unresolved_stub_getand
unresolved_goto_getboth 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). snesrecompcheckout:312b3664c723c07061aeb0ece6efda508f22dc6b
(branchws-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
seanstaggsQU commentedon Aug 21, 2026
Follow-up with a more precise lead: the per-run tier2 dispatch-miss journal (
--config debugbuild) 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: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 --
$C006AAis 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_statesnapshot, just not always at the identical frame count.mstan commentedon Nov 7, 2026
Your host-frame/PPU observations distinguish a live presentation loop from guest progress, and the supplied source/ROM/build identities are already useful. The
$C006AAdispatch-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.