View Issue Details

IDProjectCategoryLast Update
0023123AI War 2Bug - GameplayApr 13, 2020 5:25 pm
Reporterchoam Assigned ToChris_McElligottPark  
Severityblock 
Status resolvedResolutionfixed 
Product Version2.023 Chat Hotfix 
Fixed in Version2.025 The Twenty Million Problem 
Summary0023123: strikecrafts stops responding.
DescriptionSomething happen, and I cant select most of strikecrafts, they dont respond, and dont move. I still can load/unload them, but nothing more.
Relstarting game doesnt help.
Here is savefile.
TagsNo tags attached.

Activities

choam

Apr 10, 2020 6:24 pm

reporter  

error.save (2,885,717 bytes)
error.savemet (79 bytes)

choam

Apr 12, 2020 4:43 pm

reporter   ~0056791

Update: looks like i found a possible problem: here is savefile right before this issue.
It happen immideadely after capturing Planet Prime wich have Major Data center and Spire frigate

choam

Apr 12, 2020 4:56 pm

reporter   ~0056792

update: no. that is not. But looks like it happen only with strike fleet N3 (Loki)

choam

Apr 12, 2020 6:27 pm

reporter   ~0056794

2.024 - still the same
here is save files few (2-3) minute before this issue (after I run this save, several minutes after - same issue. It reproducing again and again
autosave before error.save (2,917,489 bytes)

Strategic Sage

Apr 12, 2020 6:50 pm

reporter   ~0056795

Just an add-on; I checked this save and was able to reproduce. All strikecraft were frozen; players and AIs as well. They could still shoot, but not move. It makes for a very weird effect.

BadgerBadger

Apr 13, 2020 1:17 pm

manager   ~0056805

I started both of these saves and let them run for a few minutes without doing much of anything (periodically moving ships around on planets to see if they were stuck).

No sign of any problems. Were there any problems in the ArcenDebugLog.txt?

Strategic Sage

Apr 13, 2020 1:35 pm

reporter   ~0056806

I personally ran it for five minutes, moved to a nearby hostile planet and unloaded. Everything froze as soon as I did so.

BadgerBadger

Apr 13, 2020 1:49 pm

manager   ~0056807

Okay, I reproduced based on error.save. I ran the game for a few minutes, then selected all the Flagships on the planets with all the flagships. I sent them to an adjacent planet then hit "U" without moving my view. When I looked at the planet I'd moved all the flagships to, they were all very weirdly stacked on top of eachother and not moving.

Nothing in the error log.

Chris_McElligottPark

Apr 13, 2020 4:18 pm

administrator   ~0056825

I can duplicate... some strange version of this. The ships show as selected when they are not, and are frozen in place for some reason. I'm not sure what the exact cause is, but it might be unloading on a certain planet or unloading when you're not looking at the planet they are on. Investigating.

Strategic Sage

Apr 13, 2020 4:27 pm

reporter   ~0056826

*clapclap*. FYI it happened to me when I was looking at the planet they were on.

Chris_McElligottPark

Apr 13, 2020 4:44 pm

administrator   ~0056827

It looks like this is related to a bunch of entities having the same PrimaryKeyID... all of which are 20 million and 1. I'm looking into that. Just unloading fleet 4 immediately causes it for me.

Chris_McElligottPark

Apr 13, 2020 5:25 pm

administrator   ~0056828

Thank you!

* Fixed an issue where, inexplicably, if we had a primary key for ships or shots that was more than 20 million it would start just giving them all the same primarykeyid which would then lead to all manner of problems.
** This is not new, but it's only being encountered now, which is probably due to some particular factions in the specific savegame setup which cause a high ship PKID turnover. It still took 13 hours for this to come about.
** The new cap is now properly a bit over 2 billion, which is 100x as high (and nearing the limit of 32bit integers). In the same sort of extreme scenario, with the same amount of churn, we can then assume it would take 1300 hours in one campaign to hit that new limit, so that's... certainly okay.

* Because of the prior bug, when a savegame is loaded that has an entity with id 20000001, it now reassigns it on load. This will definitely cause some problems in those saves, but definitely fewer problems than them all sharing a primary key ID.
** The PKIDs are supposed to be unique, but in the case of one particular savegame we had 9895 ships with all the ID 20000001, which meant all sorts of problems like ships not being selectable, not able to decollide, not able to get movement orders in general, and not able to get orders from the player or other factions. Instead, they could kind of sit in place and autotarget and that was it.
** Reassigning PKIDs is itself one of those "never do this" things, so probably any save affected by this (very few, if any beyond the single one we have on hand) may find some inexplicable bugs like fire teams missing entries or pointing to the wrong thing, etc. Things seem to load and run fine, but if there are boogeymen in a save of this sort then you know it's probably related to this.

Issue History

Date Modified Username Field Change
Apr 10, 2020 6:24 pm choam New Issue
Apr 10, 2020 6:24 pm choam File Added: error.save
Apr 10, 2020 6:24 pm choam File Added: error.savemet
Apr 12, 2020 4:43 pm choam File Added: before error.savemet
Apr 12, 2020 4:43 pm choam File Added: before error.save
Apr 12, 2020 4:43 pm choam Note Added: 0056791
Apr 12, 2020 4:50 pm choam File Deleted: before error.savemet
Apr 12, 2020 4:50 pm choam File Deleted: before error.save
Apr 12, 2020 4:56 pm choam Note Added: 0056792
Apr 12, 2020 6:27 pm choam File Added: autosave before error.savemet
Apr 12, 2020 6:27 pm choam File Added: autosave before error.save
Apr 12, 2020 6:27 pm choam Note Added: 0056794
Apr 12, 2020 6:50 pm Strategic Sage Note Added: 0056795
Apr 13, 2020 1:17 pm BadgerBadger Note Added: 0056805
Apr 13, 2020 1:35 pm Strategic Sage Note Added: 0056806
Apr 13, 2020 1:49 pm BadgerBadger Note Added: 0056807
Apr 13, 2020 1:52 pm BadgerBadger Assigned To => Chris_McElligottPark
Apr 13, 2020 1:52 pm BadgerBadger Status new => assigned
Apr 13, 2020 4:18 pm Chris_McElligottPark Note Added: 0056825
Apr 13, 2020 4:27 pm Strategic Sage Note Added: 0056826
Apr 13, 2020 4:44 pm Chris_McElligottPark Note Added: 0056827
Apr 13, 2020 5:25 pm Chris_McElligottPark Status assigned => resolved
Apr 13, 2020 5:25 pm Chris_McElligottPark Resolution open => fixed
Apr 13, 2020 5:25 pm Chris_McElligottPark Fixed in Version => 2.025 The Twenty Million Problem
Apr 13, 2020 5:25 pm Chris_McElligottPark Note Added: 0056828