rezecib / Global-Positions

A mod for Don't Starve Together that adds various ways to find your friends (or spot your enemies).
17 stars 4 forks source link

pos.portraitdirty:push() crash #5

Open rezecib opened 4 years ago

rezecib commented 4 years ago

From Steam comments:

There is bug : Don't Starve Together/mods/workshop-378160973/scripts/components/globalposition.lua linenum 105 pos.portraitdirty:push() pos is nil when user close share trigger RemoveServerEntity but timer in line: 102 self.inst:DoTaskInTime(1, function() did not cancel the inited code trigger PushPortraitDirty() then cause server crash It happems many times

log:

LUA ERROR stack traceback: ../mods/workshop-378160973/scripts/components/globalposition.lua:105 in (field) fn (Lua) <102-107> scripts/scheduler.lua:177 in (method) OnTick (Lua) <155-207> scripts/scheduler.lua:371 in (global) RunScheduler (Lua) <369-377> scripts/update.lua:180 in () ? (Lua) <159-238>

19:34:08: Warning: Widget:SetFocusFromChild is h