2019-10-23 07:55 CEST

View Issue Details Jump to Notes ]
IDProjectCategoryView StatusLast Update
0006201Spring engineGeneralpublic2019-04-11 12:30
Reportersprung 
Assigned Tohokomoko 
PrioritynormalSeverityminorReproducibilityalways
StatusresolvedResolutionfixed 
Product Version104.0 +git 
Target VersionFixed in Version104.0 +git 
Summary0006201: CmdCescrCache overflow is caused by stockpile
DescriptionUsing maintenance-1200's debug mode:

[cmdDescr=315 hashIndex=<1700572634,449>]
[f=0074032] id =100
[f=0074032] type =0
[f=0074032] refc =2
[f=0074032] hash =612364489
[f=0074032]
[f=0074032] queueing =1
[f=0074032] hidden =0
[f=0074032] disabled =0
[f=0074032] showUnique =0
[f=0074032] onlyTexture=0
[f=0074032]
[f=0074032] name =7/102
[f=0074032] action =stockpile
[f=0074032] iconname =bitmaps/armsilo1.bmp
[f=0074032] mouseicon =
[f=0074032] tooltip =stockpile: Queue up ammunition for later use
[f=0074032]
[f=0074032] params={
[f=0074032] }

Look at the `name` field. I got a bunch of stockpile commands in the cache for various X/Y combinations.
Steps To ReproduceGet a stockpiling unit, queue up 1024 missiles (one by one, so it goes through all the tooltips: 0/0, 0/1, 0/2... etc).
TagsNo tags attached.
Checked infolog.txt for ErrorsYes
Attached Files

-Relationships
+Relationships

-Notes

~0019936

sprung (reporter)

https://github.com/spring/spring/blob/develop/rts/Sim/Units/CommandAI/CommandAI.cpp#L1627

~0019937

sprung (reporter)

Additionally, doing /nocost causes a second copy of most build commands because the costs change.

[f=0074032] [cmdDescr=21 hashIndex=<-1836451234,469>]
[f=0074032] id =-528
[f=0074032] type =20
[f=0074032] refc =1
[f=0074032] hash =-1090967416
[f=0074032]
[f=0074032] queueing =1
[f=0074032] hidden =0
[f=0074032] disabled =0
[f=0074032] showUnique =0
[f=0074032] onlyTexture=0
[f=0074032]
[f=0074032] name =staticmex
[f=0074032] action =buildunit_staticmex
[f=0074032] iconname =
[f=0074032] mouseicon =staticmex
[f=0074032] tooltip =Build: Metal Extractor - Produces Metal
Health 400
Metal cost 75
Energy cost 75
Build time 75
[f=0074032]
[f=0074032] params={
[f=0074032] }
[f=0074032]

and the one from after /nocost:

[f=0074032] [cmdDescr=143 hashIndex=<-423599523,116>]
[f=0074032] id =-528
[f=0074032] type =20
[f=0074032] refc =2
[f=0074032] hash =72205023
[f=0074032]
[f=0074032] queueing =1
[f=0074032] hidden =0
[f=0074032] disabled =0
[f=0074032] showUnique =0
[f=0074032] onlyTexture=0
[f=0074032]
[f=0074032] name =staticmex
[f=0074032] action =buildunit_staticmex
[f=0074032] iconname =
[f=0074032] mouseicon =staticmex
[f=0074032] tooltip =Build: Metal Extractor - Produces Metal
Health 400
Metal cost 1
Energy cost 1
Build time 10
[f=0074032]
[f=0074032] params={
[f=0074032] }
+Notes

-Issue History
Date Modified Username Field Change
2019-04-11 00:48 sprung New Issue
2019-04-11 00:53 sprung Note Added: 0019936
2019-04-11 01:19 sprung Note Added: 0019937
2019-04-11 03:05 Kloot Assigned To => Kloot
2019-04-11 03:05 Kloot Status new => resolved
2019-04-11 03:05 Kloot Resolution open => fixed
2019-04-11 03:05 Kloot Fixed in Version => 104.0 +git
2019-04-11 12:30 Kloot Assigned To Kloot => hokomoko
+Issue History