View Issue Details

IDProjectCategoryLast Update
0024207AI War 2Crash/ExceptionDec 21, 2020 11:56 am
ReporterCRCGamer Assigned ToChris_McElligottPark  
Status resolvedResolutionfixed 
Product Version2.701 Good Grief Hotfix Bonanza 
Fixed in Version2.708 Mapgen For Multiplayer 
Summary0024207: Go to build turrets to beachhead in multiplayer... game freezes up.
DescriptionAttached debug log with advanced logging options on.
TagsNo tags attached.

Relationships

related to 0024241 resolvedChris_McElligottPark Multiplayer: Client freezes completely every 5 minutes 

Activities

CRCGamer

Dec 6, 2020 5:27 pm

developer  

ArcenDebugLog.txt (510,519 bytes)

NRSirLimbo

Dec 6, 2020 5:30 pm

developer   ~0059892

The save involved
Autosave at 28m 51s.save (331,351 bytes)

Chris_McElligottPark

Dec 14, 2020 4:58 pm

administrator   ~0059989

A lot has changed... are you still able to replicate that in the latest versions, with the newest versions of all related mods, etc?

Chris_McElligottPark

Dec 18, 2020 11:36 am

administrator   ~0060077

For 2.707:

* Completely reworked the way we track long-running background threads. It's no longer just the faction planning threads, but instead is ALL of the background threads, even those that are only supposed to run for part of a second at a time.
** These all now will start showing on the interface as slow-running background threads after some warning interval (varies by thread), and then the main thread will forcibly kill them after a certain longer interval.
*** For the short-term threads, it generally warns you after 2 seconds and kills it after 10 seconds. For the longer-term stuff, it generally warns you after 10 seconds and kills them after 30 seconds.
** This provides a hopefully-foolproof way for us to find threads that are stuck in infinite loops, which is something we're aware some mutiplayer clients are experiencing at the moment. The only thread it can't detect this on is the main thread itself, but if in those instances the game program would appear entirely unresponsive (white screen, nothing displays, OS is worried, etc), and that's not what we're having reports of.
*** If you are having one of these slow background threads happen and it's causing an issue in multiplayer, please wait until it counts all the way up and actually throws an error. The error handling is designed to give us as close a view as possible of where the error actually is. Please then give us the error log that contains several detailed errors (usally between one and three) rather than a screenshot.
** We should then be able to fix whatever is going on, or if the problem is in a modder's code (in this instance it does not seem that is the case), then the modder can also find out and solve that.
** It's worth noting that the "main simulation thread" is actually on a background thread, and so that's a thread that we can indeed (and do) track.

Chris_McElligottPark

Dec 21, 2020 11:56 am

administrator   ~0060112

Going to mark this as resolved until I hear otherwise. I did find this:

* Fixed an infinite loop that would happen on multiplayer clients when certain unit types were used that build more units based on some sort of build points that they accumulate over time. Essentially the Von Neumann type ships, among a few others. Various base game units and mods use these mechanics, and it would be triggered by any of them. This is logic that should never be run on the client or else it leads to an infinite loop since it would never actually add ships on the client. Now it properly ignores that whole bit of logic on the client, just letting the host manage it instead.

Thanks!

Issue History

Date Modified Username Field Change
Dec 6, 2020 5:27 pm CRCGamer New Issue
Dec 6, 2020 5:27 pm CRCGamer File Added: ArcenDebugLog.txt
Dec 6, 2020 5:30 pm NRSirLimbo File Added: Autosave at 28m 51s.savemet
Dec 6, 2020 5:30 pm NRSirLimbo File Added: Autosave at 28m 51s.save
Dec 6, 2020 5:30 pm NRSirLimbo Note Added: 0059892
Dec 14, 2020 4:58 pm Chris_McElligottPark Assigned To => Chris_McElligottPark
Dec 14, 2020 4:58 pm Chris_McElligottPark Status new => feedback
Dec 14, 2020 4:58 pm Chris_McElligottPark Note Added: 0059989
Dec 17, 2020 5:08 pm Chris_McElligottPark Relationship added related to 0024241
Dec 18, 2020 11:36 am Chris_McElligottPark Note Added: 0060077
Dec 21, 2020 11:56 am Chris_McElligottPark Status feedback => resolved
Dec 21, 2020 11:56 am Chris_McElligottPark Resolution open => fixed
Dec 21, 2020 11:56 am Chris_McElligottPark Fixed in Version => 2.708 Mapgen For Multiplayer
Dec 21, 2020 11:56 am Chris_McElligottPark Note Added: 0060112