fix: OSK and message dialog crash from GU display list misuse#10
Merged
AndrewAltimit merged 3 commits intomainfrom Feb 16, 2026
Merged
fix: OSK and message dialog crash from GU display list misuse#10AndrewAltimit merged 3 commits intomainfrom
AndrewAltimit merged 3 commits intomainfrom
Conversation
sceUtilityOskUpdate() and sceUtilityMsgDialogUpdate() were called inside an open GU display list (between sceGuStart/sceGuFinish). Per PSPSDK convention, dialog update functions manage their own GU rendering and must be called after the caller's display list is closed. The incorrect ordering corrupts GE state and crashes on real PSP hardware when opening the OSK. Also adds screen clear each frame (matching PSPSDK samples) and breaks on negative status values (error conditions). Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
After the polling loop exits (timeout or error), check if the dialog is still active and force-shutdown to prevent subsequent utility calls from failing with UTILITY_INVALID_STATUS. This is particularly important in PPSSPP headless mode where no user input closes the dialog, but also protects against edge cases on real hardware. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
After the polling loop exits, if the dialog reached QUIT (3) or FINISHED (4) but didn't drain to NONE (0), complete the shutdown sequence. Only attempts shutdown from valid states -- ShutdownStart requires the dialog to be in QUIT state, not RUNNING. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Gemini AI Code ReviewIssues(none) Previous Issues(none) Suggestions
Notes
Generated by Gemini AI (gemini-3-flash-preview). Supplementary to human reviews. |
Owner
Author
Review Response Agent (Iteration 1)Status: No changes needed Fixed Issues
Ignored Issues
Deferred to Human
Notes
The agent reviewed feedback but determined no code changes were required. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
sceUtilityOskUpdateandsceUtilityMsgDialogUpdatecalls outside the open GU display list frame, matching the PSPSDK convention that utility dialog updates must not be called withinsceGuStart/sceGuFinishblocksShutdownStartand wait for the state machine to completeAffected files
psp/src/osk.rs-- On-Screen Keyboard dialogpsp/src/dialog.rs-- Message/confirm/error dialogsTest plan
RUST_PSP_BUILD_STD=1 cargo +nightly psp --releasescripts/test-osk-ppsspp.shin oasis-os)confirm_dialoginrmcommand) follows same fix patternGenerated with Claude Code