Overmind hung on creating directive for wiped out colony
Coolfeather2 opened this issue · 4 comments
Coolfeather2 commented
Issue summary
Based on my observations Overmind is stuck in a loop of creating and deleting objectives
Description of issue:
Steps to reproduce:
Colony wiped out?
Error message:
// Console output:
[4:41:40 PM][shard2]ALERT 14611720 Could not get colony for directive [invasionDefense:d4c04a]; removing flag!
[4:41:40 PM][shard2]TypeError: Cannot read property 'stage' of undefined
at DirectiveInvasionDefense.spawnMoarOverlords (main:23357:25)
at _Overmind.registerDirectives (main:25654:6097)
at _Overmind.refreshDirectives (main:25654:6480)
at _Overmind.refresh (main:25654:2200)
at main (main:26110:18)
at Object.wrap (main:969:16)
at Object.loop (main:26124:21)
at __mainLoop:1:52
at __mainLoop:2:3
[4:41:44 PM][shard2]WARNING 14611721 Too many requests for transports submitted by [E19S58>logistics]! (Check for errors.)
[4:41:44 PM][shard2]WARNING 14611721 Too many requests for broodlings submitted by [outpostDefense:38b499>outpostDefense]! (Check for errors.)
[4:41:44 PM][shard2]WARNING 14611721 Too many requests for broodlings submitted by [outpostDefense:38b805>outpostDefense]! (Check for errors.)
[4:41:44 PM][shard2]WARNING 14611721 Too many requests for upgraders submitted by [upgradeSite@E19S58>upgrade]! (Check for errors.)
[4:41:44 PM][shard2]ALERT 14611721 Creating invasionDefense directive at [E24S58, 43, 20]!
[4:41:47 PM][shard2]ERROR 14611722 Could not find colony match for invasionDefense:f32f3a in E24S58!Try setting memory.maxPathLength and memory.maxLinearRange.
[4:41:47 PM][shard2]ALERT 14611722 Could not get colony for directive [invasionDefense:f32f3a]; removing flag!
[4:41:47 PM][shard2]TypeError: Cannot read property 'stage' of undefined
at DirectiveInvasionDefense.spawnMoarOverlords (main:23357:25)
at _Overmind.registerDirectives (main:25654:6097)
at _Overmind.refreshDirectives (main:25654:6480)
at _Overmind.refresh (main:25654:2200)
at main (main:26110:18)
at Object.wrap (main:969:16)
at Object.loop (main:26124:21)
at __mainLoop:1:52
at __mainLoop:2:3
[4:41:50 PM][shard2]WARNING 14611723 Too many requests for transports submitted by [E19S58>logistics]! (Check for errors.)
[4:41:50 PM][shard2]WARNING 14611723 Too many requests for broodlings submitted by [outpostDefense:38b499>outpostDefense]! (Check for errors.)
[4:41:50 PM][shard2]WARNING 14611723 Too many requests for broodlings submitted by [outpostDefense:38b805>outpostDefense]! (Check for errors.)
[4:41:50 PM][shard2]WARNING 14611723 Too many requests for upgraders submitted by [upgradeSite@E19S58>upgrade]! (Check for errors.)
[4:41:50 PM][shard2]WARNING 14611723 [evolutionChamber@E15S53]: stuck in state 2 for 52 ticks, rebuilding reaction queue and reverting to idle state!
[4:41:50 PM][shard2]ALERT 14611723 Creating invasionDefense directive at [E24S58, 43, 20]!
[4:41:53 PM][shard2]ERROR 14611724 Could not find colony match for invasionDefense:8852b9 in E24S58!Try setting memory.maxPathLength and memory.maxLinearRange.
[4:41:53 PM][shard2]ALERT 14611724 Could not get colony for directive [invasionDefense:8852b9]; removing flag!
[4:41:53 PM][shard2]TypeError: Cannot read property 'stage' of undefined
at DirectiveInvasionDefense.spawnMoarOverlords (main:23357:25)
at _Overmind.registerDirectives (main:25654:6097)
at _Overmind.refreshDirectives (main:25654:6480)
at _Overmind.refresh (main:25654:2200)
at main (main:26110:18)
at Object.wrap (main:969:16)
at Object.loop (main:26124:21)
at __mainLoop:1:52
at __mainLoop:2:3
[4:41:57 PM][shard2]ALERT 14611725 [E19S58, 24, 36]: evacuation terminal state active!
[4:41:57 PM][shard2]WARNING 14611725 Too many requests for transports submitted by [E19S58>logistics]! (Check for errors.)
[4:41:57 PM][shard2]WARNING 14611725 Too many requests for broodlings submitted by [outpostDefense:38b499>outpostDefense]! (Check for errors.)
[4:41:57 PM][shard2]WARNING 14611725 Too many requests for broodlings submitted by [outpostDefense:38b805>outpostDefense]! (Check for errors.)
[4:41:57 PM][shard2]WARNING 14611725 Too many requests for upgraders submitted by [upgradeSite@E19S58>upgrade]! (Check for errors.)
[4:41:57 PM][shard2]WARNING 14611725 [evolutionChamber@E12S57]: stuck in state 2 for 52 ticks, rebuilding reaction queue and reverting to idle state!
[4:41:57 PM][shard2]INFO 14611725 E15S53: starting synthesis of O + H ⟶ OH
[4:41:57 PM][shard2]ALERT 14611725 Creating invasionDefense directive at [E24S58, 43, 20]!
[4:41:57 PM][shard2]ALERT 14611725 Creating colonize directive at [E24S58, 25, 24]!
// Offending line:
Suggested fix (optional):
Other information:
- Overmind version: {found in package.json or by typing
info()into console}- Commit hash: {optional, but helpful: include the commit hash (if known)} ca5721c
‣ Version: Overmind v0.5.2
‣ Checksum: 0x3b540f90edf
‣ Assimilated: No (clearance code: null) [WIP]
‣ Operating mode: automatic
Coolfeather2 commented
After Unclaiming room E24S58 to attempt and fix the problem:
[4:48:15 PM][shard2]WARNING 14611843 Too many requests for transports submitted by [E19S58>logistics]! (Check for errors.)
[4:48:15 PM][shard2]WARNING 14611843 Too many requests for broodlings submitted by [outpostDefense:38b499>outpostDefense]! (Check for errors.)
[4:48:15 PM][shard2]WARNING 14611843 Too many requests for broodlings submitted by [outpostDefense:38b805>outpostDefense]! (Check for errors.)
[4:48:15 PM][shard2]WARNING 14611843 Too many requests for upgraders submitted by [upgradeSite@E19S58>upgrade]! (Check for errors.)
[4:48:15 PM][shard2]TypeError: Cannot read property 'drops' of undefined
at Overseer.registerLogisticsRequests (main:25334:43)
at Overseer.init (main:25545:18)
at _Overmind.init (main:25654:6545)
at main (main:26113:14)
at Object.wrap (main:969:16)
at Object.loop (main:26124:21)
at __mainLoop:1:52
at __mainLoop:2:3
at Object.exports.evalCode (<runtime>:15990:76)
[4:48:18 PM][shard2]WARNING 14611844 Too many requests for transports submitted by [E19S58>logistics]! (Check for errors.)
[4:48:18 PM][shard2]WARNING 14611844 Too many requests for broodlings submitted by [outpostDefense:38b499>outpostDefense]! (Check for errors.)
[4:48:18 PM][shard2]WARNING 14611844 Too many requests for broodlings submitted by [outpostDefense:38b805>outpostDefense]! (Check for errors.)
[4:48:18 PM][shard2]WARNING 14611844 Too many requests for upgraders submitted by [upgradeSite@E19S58>upgrade]! (Check for errors.)
[4:48:18 PM][shard2]TypeError: Cannot read property 'drops' of undefined
at Overseer.registerLogisticsRequests (main:25334:43)
at Overseer.init (main:25545:18)
at _Overmind.init (main:25654:6545)
at main (main:26113:14)
at Object.wrap (main:969:16)
at Object.loop (main:26124:21)
at __mainLoop:1:52
at __mainLoop:2:3
at Object.exports.evalCode (<runtime>:15990:76)
Coolfeather2 commented
After Unclaiming room E19S58 to attempt and fix the problem:
[4:52:13 PM][shard2]ALERT 14611918 Could not get colony for directive [harvest:5b5193]; removing flag!
[4:52:13 PM][shard2]ALERT 14611918 Could not get colony for directive [outpost:5694f0]; removing flag!
[4:52:13 PM][shard2]ALERT 14611918 Could not get colony for directive [harvest:ec67ae]; removing flag!
[4:52:13 PM][shard2]ALERT 14611918 Could not get colony for directive [outpost:34b309]; removing flag!
[4:52:13 PM][shard2]ALERT 14611918 Could not get colony for directive [harvest:3b5782]; removing flag!
[4:52:13 PM][shard2]ALERT 14611918 Could not get colony for directive [harvest:214493]; removing flag!
[4:52:13 PM][shard2]ALERT 14611918 Could not get colony for directive [outpost:996d4b]; removing flag!
[4:52:16 PM][shard2]ALERT 14611919 Could not get colony for directive [harvest:5b5193]; removing flag!
[4:52:16 PM][shard2]TypeError: Cannot read property 'energyCapacityAvailable' of undefined
at new MiningOverlord (main:15420:35)
at DirectiveHarvest.spawnMoarOverlords (main:15782:31)
at _Overmind.registerDirectives (main:25654:6097)
at _Overmind.refreshDirectives (main:25654:6480)
at _Overmind.refresh (main:25654:2200)
at main (main:26110:18)
at Object.wrap (main:969:16)
at Object.loop (main:26124:21)
at __mainLoop:1:52
ahmedcharles commented
If you apply #82 it should stop the exceptions in spawnMoarOverlords.
Coolfeather2 commented
Fixed after manually removing the flags that did not have a colony + cleaning up colonies that were wiped
Might merge some of your PR's into my branch @ahmedcharles, but I think its just a cache issue?
Just logging this issue so Muon has a record