game freeze when trying to launch with Random spawn

This is for troubleshooting of problems with the FAF client and Forged Alliance game.

Moderator: PhilipJFry

game freeze when trying to launch with Random spawn

Postby Dess » 30 Mar 2020, 13:26

Hello

Game freeze when trying to launch with Random spawn.

tested on two different machines.

when starting a custom game on any 16 players map VS a AI or VS Players (with numbers of players 12-16) and the "Spawn" setting is changed from the default "Fixed" to "Random" , team option changed to "Manual Select", the game will not launch. After Pressing the "Launch" button game will freeze forever.

Aborting the game, relaunching it and changing the Spawn option back to "Fixed" or changing team option to "Top vs Bottom", will solve all these issues and let you launch the game as normal....

any 16 players map
If the numbers of players or AI on the map is 1-10, and the "Spawn" setting is changed from the default "Fixed" to "Random(Unbalanced)",team option changed to "Manual Select" - the game works OK

If the numbers of players or AI on the map is 12-16, and the "Spawn" setting is changed from the default "Fixed" to "Random(unbalanced)",team option changed to "Manual Select" - the game freeze and not launching.

If the numbers of players or AI on the map is 12-16, and the "Spawn" setting is changed from the default "Fixed" to "Random(unbalanced)",team option changed to "Top VS Bottom" - the game works OK


since this issue is so easy to test I didn't attach any logs....
Dess
 
Posts: 3
Joined: 30 Mar 2020, 12:55
Has liked: 0 time
Been liked: 0 time
FAF User Name: Desolator

Re: game freeze when trying to launch with Random spawn

Postby PhilipJFry » 30 Mar 2020, 20:17

please post logs
cats>dogs
post logs
User avatar
PhilipJFry
Supreme Commander
 
Posts: 2635
Joined: 23 Mar 2016, 21:16
Location: Austria
Has liked: 232 times
Been liked: 348 times
FAF User Name: PhilipJFry

Re: game freeze when trying to launch with Random spawn

Postby Uveso » 30 Mar 2020, 23:35

Dess wrote:since this issue is so easy to test I didn't attach any logs....


There is a big difference between just testing something or debugging and fix something.

So do us a favor and post your logs.

Thank's.
User avatar
Uveso
Supreme Commander
 
Posts: 1788
Joined: 11 Dec 2015, 20:56
Location: Germany
Has liked: 70 times
Been liked: 291 times
FAF User Name: Uveso

Re: game freeze when trying to launch with Random spawn

Postby Dess » 31 Mar 2020, 15:41

logs attached
Attachments
game.log
(101.06 KiB) Downloaded 14 times
downlords-faf-client.log
(101.85 KiB) Downloaded 13 times
Dess
 
Posts: 3
Joined: 30 Mar 2020, 12:55
Has liked: 0 time
Been liked: 0 time
FAF User Name: Desolator

Re: game freeze when trying to launch with Random spawn

Postby Uveso » 31 Mar 2020, 18:46

Thank's Dess,

it looks like you did not assign teams to all players/AIs.

Like the tooltip says:
AutoTeamOption.png
AutoTeamOption.png (7.69 KiB) Viewed 1182 times


Assign a team number to every Player:
(click on the map for assigning teams, don't use "teamcount" if you fill up slots with AIs)
MapTeams.png
MapTeams.png (28.29 KiB) Viewed 1182 times


Then try to start the game.

---

For programmers:
Deadloop in "\lua\ui\lobby\trueskill.lua"
function Matrix:getDeterminant() calls Matrix:getCofactor() and this function recalls Matrix:getDeterminant()
So these functions are playing pingpong forever (with 16 players.)

GitHub Issue: https://github.com/FAForever/fa/issues/3041
User avatar
Uveso
Supreme Commander
 
Posts: 1788
Joined: 11 Dec 2015, 20:56
Location: Germany
Has liked: 70 times
Been liked: 291 times
FAF User Name: Uveso

Re: game freeze when trying to launch with Random spawn

Postby Dess » 31 Mar 2020, 19:27

Thank for quick answer Uveso

i didnt assign teams, because it was 16 players FFA

does it possible to use 16 players random spawn and not assign a team number to every AI ? i want to spawn every AI in random location.

i just dont understand why,
with 10 players, random spawn and and not assign a team number to every AI everything works perfect
with 16 players random spawn and and not assign a team number to every AI not working

But anyway thank you for support.
Dess
 
Posts: 3
Joined: 30 Mar 2020, 12:55
Has liked: 0 time
Been liked: 0 time
FAF User Name: Desolator

Re: game freeze when trying to launch with Random spawn

Postby Uveso » 22 Apr 2020, 20:10

Well, these are the functions that will loop endless:

https://github.com/FAForever/fa/blob/720a72f5eca5330ba497320a618a57c7b981cda2/lua/ui/lobby/trueskill.lua#L83
https://github.com/FAForever/fa/blob/720a72f5eca5330ba497320a618a57c7b981cda2/lua/ui/lobby/trueskill.lua#L95

Sadly i have no clue how the trueskill calculation works, so i can't fix it.
But i added a bugreport to the FAF repository and it will be fixed, but don't ask me when ^^
User avatar
Uveso
Supreme Commander
 
Posts: 1788
Joined: 11 Dec 2015, 20:56
Location: Germany
Has liked: 70 times
Been liked: 291 times
FAF User Name: Uveso

Re: game freeze when trying to launch with Random spawn

Postby Davax » 22 Apr 2020, 21:27

Hey, I also was trying to host some FFA games with random spots.

After clicking "start game" button whole game freeze in lobby. But only for host. For everyone else it look like host is afk. Also connections are stable and the lobby is fully visible in the game list. Its imposobile to minimalize or do anything on that screen in windows. The game in the task manager has the status "not responding", and consumes 100% CPU power on one core.

I took a closer look and it turns out that the game just calculates the algorithm for random spots. If every player just wait, game will start after freeze.
For 11 FFA players, game freeze for 0:19 (tested multiple times)
For 12 FFA players, game freeze for 3:34 (tested multiple times)
For 13 FFA players, game freeze for 42:30 (tested only one time)
However, the problem is not related to the number of players but the number of "teams". After setting up 12 players in 11 teams, the game was loading as fast as it was with 11 players. For every more team, game freeze about 11 times longer. For 16 players, the game would freeze for over a month.


An easy solution may be to apply an exception for games over 11 teams (or over 8). I can't imagine a situation where the use of the current algorithm would make any sense to games with so many teams.
Davax
 
Posts: 6
Joined: 30 Nov 2019, 20:29
Has liked: 1 time
Been liked: 2 times
FAF User Name: Davax


Return to Tech Support

Who is online

Users browsing this forum: No registered users and 1 guest