Skip to content

Conversation

@Susko3
Copy link
Member

@Susko3 Susko3 commented Jan 3, 2026

When SDL reports no displays, this PR simply ignores it, keeping the Displays stale. Previously, Displays would get set to an empty array, causing the next call of PrimaryDisplay to crash the game.

Note: it's possible to launch the game with zero displays. In that case, it'll just immediately crash, which is fine.

@Susko3 Susko3 force-pushed the fix-zero-displays-crashing-game branch from d598d13 to 0429fe4 Compare January 3, 2026 02:15
@ppy-sentryintegration
Copy link

Sentry issue: OSU-119X

@ppy-sentryintegration
Copy link

Sentry issue: OSU-2P4Z

@hwsmm
Copy link
Contributor

hwsmm commented Jan 3, 2026

Is it an alternative to #6501?

@peppy
Copy link
Member

peppy commented Jan 3, 2026

@Susko3 have you tested this on linux?

@Susko3
Copy link
Member Author

Susko3 commented Jan 3, 2026

I've tested this only on Linux.

@peppy peppy merged commit 44c4207 into ppy:master Jan 9, 2026
14 checks passed
@Susko3 Susko3 deleted the fix-zero-displays-crashing-game branch January 9, 2026 14:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants