Adding more than 7 players to a team reliably crashes the game client
Description
(Description was updated based on further testing)
In custom games, when trying to add 8 or more players to any team, all game clients inevitably crash after the game's initial loading. The crash happens at some point between DOTA_GAMERULES_STATE_CUSTOM_GAME_SETUP and DOTA_GAMERULES_STATE_HERO_SELECTION.
To reiterate, this is a client crash; the game server continues running unimpeded, but then quickly ends the match once it realizes all players have disconnected.
The crash is often silent, but sometimes, upon being returned to the desktop, players will see error messages like this one:
This behavior was initially introduced after the 7.38 patch, where the "magic number" of players per team to crash a lobby was 21. Since yesterday's 7.39 patch, the "magic number" has been reduced to 8. It is not far-fetched to think that whatever causes this reliable crash will eventually become a problem for regular (5 vs 5) games, down the line.
Attached is a crash dump from a client involved in a crash caused by this issue.
crash_dota2.exe_20250523141753_1.dmp
p.s. I'm available to give more details, or help with reproduction, if beneficial. Best regards!
Example Match ID (and possibly Timestamp)
No response
Screenshots
No response
Extra note - happens specifically if you have more than 7 players (actual players, not bots) in one team (i.e. 8 v 8 v 8 or 12 v 12), game crashes as soon as 8th player is added to any team (regardless if it's radiant, dire, or custom ones)
Same here.
bump
Although no more details could be obtained due to the difficulty of testing with a large amount of players, the issue is theorized to be related to the Radiant team (the "first" team), with some kind of sorting shenanigans going wrong when there are too many players involved - in our testing, 7 players was the "safe" point, anything above that and the game would reliably crash for everyone involved.
this is incorrect, the crash still occurs if only custom teams are used. merely adding 7 players to any team causes it, not just radiant, and not dependent on any kind of team sorting since it happens with native and custom shuffles both disabled, and with only 1 team in the game.
To reiterate, this is a client crash (and silent, with no error message)
there is an error message:
@fcalife pls update the issue accordingly
Although no more details could be obtained due to the difficulty of testing with a large amount of players, the issue is theorized to be related to the Radiant team (the "first" team), with some kind of sorting shenanigans going wrong when there are too many players involved - in our testing, 7 players was the "safe" point, anything above that and the game would reliably crash for everyone involved.
this is incorrect, the crash still occurs if only custom teams are used. merely adding 7 players to any team causes it, not just radiant, and not dependent on any kind of team sorting since it happens with native and custom shuffles both disabled, and with only 1 team in the game.
To reiterate, this is a client crash (and silent, with no error message)
there is an error message:
@fcalife pls update the issue accordingly
Thank you, updated.