Skip to content

Conversation

@mohammadsyuhada
Copy link

The issue was that when nextui.elf tried to exit (to launch a game), it got stuck in cleanupImageLoaderPool() because the animation worker thread was waiting for flipCond - a condition variable that signals frame readiness for animations. The main render loop normally signals this, but once the main loop exits (quit=1), it stops signaling, leaving the animation thread stuck forever.

Changes made:
cleanupImageLoaderPool(): Added SDL_CondSignal(flipCond) to wake up the animation thread during cleanup (Line 2158)
Animation frame loop: Added shutdown checks to break out early when workerThreadsShutdown is set (Line 2046 and 2066)

This allows nextui.elf to cleanly exit, the shell script's while loop to continue, and the game to launch via the /tmp/next command file.

This should fix #608

@frysee frysee merged commit 8ccb59d into LoveRetro:main Jan 29, 2026
62 checks passed
@mohammadsyuhada mohammadsyuhada deleted the multi-file-game-wont-launch branch January 29, 2026 09:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Trimui Brick - OS Freeze when opening multi disc playstation game.

2 participants