Skip to content

RankedPlay / Quickplay queue NullReferenceException - #38490

Merged
peppy merged 1 commit into
ppy:masterfrom
austin19moore:38482
Aug 7, 2026
Merged

RankedPlay / Quickplay queue NullReferenceException #38490
peppy merged 1 commit into
ppy:masterfrom
austin19moore:38482

Conversation

@austin19moore

@austin19moore austin19moore commented Jul 31, 2026

Copy link
Copy Markdown
Contributor

Resolves #38482

The original error in the logs refers to a NullReferenceException in UserActivity.cs::InLobby, but that is just the first place the null room is accessed when the ScreenQueue.cs moves the user to the RankedPlayScreen.

I initially assumed it was from the user getting disconnected and the room set to null during the BeginDelayedSequence(2000) in ScreenQueue.cs, but I couldn't replicate that regardless of what I tried (and there is a similar test case in TestSceneMatchmakingQueueScreen with a comment about this). What did end up recreating this was leaving the room first, then changing to an in room state after.

I added a new visual test which replicates the issue, and added a room null check to ScreenQueue.cs to prevent it. When it occurs the matchmaking screen will return to an idle state. My main question would be: what indication should be shown to the user that the queue failed and reset?

Any feedback is appreciated!

@austin19moore

austin19moore commented Jul 31, 2026

Copy link
Copy Markdown
Contributor Author

Went ahead and moved the testcase into TestSceneMatchmakingQueueScreen since the new file was reusing a lot of the logic anyways (and this is not just ranked play specific).

@bdach
bdach requested a review from smoogipoo August 3, 2026 06:50
@peppy
peppy self-requested a review August 7, 2026 07:33
…lReferenceException

Move TestRoomScreenPushNullHandling to TestSceneMatchmakingQueueScreen
@peppy

peppy commented Aug 7, 2026

Copy link
Copy Markdown
Member

@smoogipoo i'm going to get this in because it's an actual issue affecting users, but recommend you check on this when you get back.

@peppy
peppy merged commit 2bc7f99 into ppy:master Aug 7, 2026
7 of 10 checks passed
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.

[Ranked Play] Game Softlocks When Matched With Unhandled Issue

3 participants