Skip to content

fix for error 'NSInternalInconsistencyException'#23

Merged
jonathand-cf merged 1 commit intomainfrom
running-fix/macos-linux
Feb 3, 2026
Merged

fix for error 'NSInternalInconsistencyException'#23
jonathand-cf merged 1 commit intomainfrom
running-fix/macos-linux

Conversation

@jonathand-cf
Copy link
Copy Markdown
Collaborator

This pull request introduces an environment setup to address the threading issue with Pygame on POSIX systems (Linux/MacOS). Fixes Pygame so it can run in headless mode without requiring a display, which helps avoid errors related to threading and window management.

Environment and compatibility improvements:

  • Added logic at the top of lib/controller.py to set environment variables (PYGAME_HIDE_SUPPORT_PROMPT and SDL_VIDEODRIVER) when running on POSIX systems, allowing Pygame to operate without a display and preventing the 'NSInternalInconsistencyException' error related to threading.

Copy link
Copy Markdown
Collaborator

@Gutteerz Gutteerz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ser bra ut 👍

@jonathand-cf jonathand-cf merged commit 3e3a816 into main Feb 3, 2026
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.

2 participants