I did just find another replay, same error, on a different map. Error occurs at 18 minutes.
https://replay.faforever.com/20925235
Yeah, I don't know what is causing the OnDamage error that floods the logs. That shows up in some logs, but not in others.
Could it be related to this code in AI Wave Survival mod? This script attaches other units onto the bones of the boss units.
AttachedLandUnitSpawn = function(self, selfId, attachedUnitId, selfBoneId)
local platOrient = self:GetOrientation()
local location = self:GetPosition()
local StellarCore = CreateUnit(attachedUnitId, self:GetArmy(), location[1], location[2], location[3], platOrient[1], platOrient[2], platOrient[3], platOrient[4], 'Land')
WaitTicks(2)
IncreaseHPForAUnit(StellarCore)
if DamageBoost ~= 'Off - 0' then
ModifyWeaponDamageBuffAndRange(StellarCore)
end
StellarCore:AttachTo(self, selfBoneId)
StellarCore:SetCreator(self)
self.Trash:Add(StellarCore)
end