Jump to content

Researching Compost causes reproducible crash


CornCheeseDog
  • Pending

Found a reproducible server crash in which researching compost causes the server to crash.  After seeing this in our linux dedicated server I was able to reproduce the issue in the Mac Client+Server config on a new mod-less world.

Effected:
* linux stand-alone server (windows and mac clients)

* mac built-in client+server

 

Version:

New year of the beefalo release from 2021-02-04

 

Server stack (note this stack has mods, but this is reproducible without any server mods):

 

[00:20:37]: [string "scripts/networkclientrpc.lua"]:996: assertion failed!
LUA ERROR stack traceback:
=[C]:-1 in (global) assert (C) <-1--1>
scripts/networkclientrpc.lua:996 in (global) SendRPCToClient (Lua) <995-998>
   code = nil
   arg = nil
scripts/components/plantregistryupdater.lua:45 in (method) LearnFertilizer (Lua) <33-48>
   self =
      inst = 126886 - wathgrithr (valid:true)
      plantregistry = table: 0xf1c0590
   fertilizer = poop
   updated = true
scripts/prefabs/player_common_extensions.lua:662 in (local) fn (Lua) <659-664>
   inst = 126886 - wathgrithr (valid:true)
   data = table: 0x2024fbd0
   plantregistryupdater = table: 0xf1c07a0
scripts/entityscript.lua:1040 in (method) PushEvent (Lua) <1027-1054>
   self (valid:true) =
      DynamicShadow = DynamicShadow (0x1ef70370)
      inlimbo = false
      GetMoistureRateScale = function - scripts/prefabs/player_common.lua:197
      GetInspiration = function - scripts/prefabs/wathgrithr.lua:65
      ScreenFlash = function - scripts/prefabs/player_common.lua:1153
      player_classified = 126887 - player_classified (valid:true)
      playercolour = table: 0x259650a0
      IsOverheating = function - scripts/prefabs/player_common.lua:167
      Light = Light (0x227949f0)
      _isrezattuned = false
      OnRemoveEntity = function - scripts/prefabs/player_common.lua:724
      pendingtasks = table: 0x2d15de80
      CalcAvailableSlotsForInspiration = function - scripts/prefabs/wathgrithr.lua:85
      sg = sg="wilson", state="dolongaction", time=1.00, tags = "doing,nodangle,"
      IsHUDVisible = function - scripts/prefabs/player_common.lua:1069
      ApplyScale = function - scripts/prefabs/player_common.lua:1168
      SetGhostMode = function - scripts/prefabs/player_common.lua:637
      ShowActions = function - scripts/prefabs/player_common.lua:1073
      OnWakeUp = function - scripts/prefabs/player_common.lua:933
      Transform = Transform (0x1efb4c30)
      actionreplica = table: 0x2d0be480
      event_listening = table: 0x2d187c60
      actioncomponents = table: 0x2d08d990
      lower_components_shadow = table: 0x2d087ce0
      GetMaxMoisture = function - scripts/prefabs/player_common.lua:187
      CanUseTouchStone = function - scripts/prefabs/player_common.lua:137
      updatecomponents = table: 0xabd2980
      YOTB_issetunlocked = function - scripts/prefabs/player_common.lua:28
      ShakeCamera = function - scripts/prefabs/player_common.lua:1111
      OnDespawn = function - scripts/prefabs/player_common.lua:955
      persists = false
      MiniMapEntity = MiniMapEntity (0x18be4950)
      IsFreezing = function - scripts/prefabs/player_common.lua:157
      replica = table: 0x2d08d930
      GetTemperature = function - scripts/prefabs/player_common.lua:147
      GUID = 126886
      ghostenabled = true
      EnableMovementPrediction = function - scripts/prefabs/player_common.lua:581
      worldstatewatching = table: 0x2d226750
      SetCameraZoomed = function - scripts/prefabs/player_common.lua:1097
      bufferedaction = Research 123012 - poop (valid:true)
      killtask = PERIODIC 126886: 3.000000
      Network = Network (0x18f86880)
      ShowPopUp = function - scripts/prefabs/player_common.lua:1085
      GetMoisture = function - scripts/prefabs/player_common.lua:177
      OnPreLoad = function - scripts/prefabs/player_common.lua:809
      LightWatcher = LightWatcher (0x19193e00)
      name = amadochingu
      inherentactions = table: 0x1a588780
      spawntime = 0.13333334028721
      prefab = wathgrithr
      _hermit_music = table: 0xf17e700
      SaveForReroll = function - scripts/prefabs/player_common.lua:1201
      SnapCamera = function - scripts/prefabs/player_common.lua:1103
      SetCameraDistance = function - scripts/prefabs/player_common.lua:1091
      OnLoad = function - scripts/prefabs/player_common.lua:819
      OnSave = function - scripts/prefabs/player_common.lua:774
      OnSleepIn = function - scripts/prefabs/player_common.lua:905
      ScreenFade = function - scripts/prefabs/player_common.lua:1144
      Physics = Physics (0x2cc647d0)
      YO
[00:20:37]: [string "scripts/networkclientrpc.lua"]:996: assertion failed!
LUA ERROR stack traceback:
    =[C]:-1 in (global) assert (C) <-1--1>
    scripts/networkclientrpc.lua:996 in (global) SendRPCToClient (Lua) <995-998>
    scripts/components/plantregistryupdater.lua:45 in (method) LearnFertilizer (Lua) <33-48>
    scripts/prefabs/player_common_extensions.lua:662 in (local) fn (Lua) <659-664>
    scripts/entityscript.lua:1040 in (method) PushEvent (Lua) <1027-1054>
    scripts/components/fertilizerresearchable.lua:20 in (method) LearnFertilizer (Lua) <17-22>
    scripts/actions.lua:3476 in (field) fn (Lua) <3459-3484>
    scripts/bufferedaction.lua:25 in (method) Do (Lua) <21-35>
    scripts/entityscript.lua:1318 in (method) PerformBufferedAction (Lua) <1305-1328>
    scripts/stategraphs/SGwilson.lua:5205 in (field) ontimeout (Lua) <5198-5206>
    scripts/stategraph.lua:554 in (method) UpdateState (Lua) <540-584>
    scripts/stategraph.lua:611 in (method) Update (Lua) <603-631>
    scripts/stategraph.lua:128 in (method) Update (Lua) <109-153>
    scripts/update.lua:233 in () ? (Lua) <164-243>

[00:20:37]: Warning: Widget:SetFocusFromChild is happening on a widget outside of the screen/widget hierachy. This will cause focus moves to fail. Is     ScriptErrorWidget    not a screen?
[00:20:37]: stack traceback:
    scripts/widgets/widget.lua:605 in (method) SetFocusFromChild (Lua) <602-627>
    scripts/widgets/widget.lua:624 in (method) SetFocusFromChild (Lua) <602-627>
    scripts/widgets/widget.lua:624 in (method) SetFocusFromChild (Lua) <602-627>
    scripts/widgets/widget.lua:656 in (method) SetFocus (Lua) <629-665>
    scripts/widgets/menu.lua:83 in (method) SetFocus (Lua) <74-85>
    scripts/widgets/scripterrorwidget.lua:109 in (method) OnUpdate (Lua) <102-119>
    scripts/update.lua:95 in () ? (Lua) <33-134>
src/tier1/fileio.cpp (4914) : Assertion Failed: s_bExit
src/tier1/fileio.cpp (4914) : Assertion Failed: s_bExit
2021-02-05 17:22:57,532 INFO exited: dst-server-master (exit status 6; not expected)
2021-02-05 17:22:58,541 INFO spawned: 'dst-server-master' with pid 548
[00:00:00]: PersistRootStorage is now /data//DoNotStarveTogether/Cluster_1/Master/
[00:00:00]: Starting Up
[00:00:00]: Version: 450585
[00:00:00]: Current time: Fri Feb  5 17:22:58 2021
 

 


Steps to Reproduce
  1. Generate a new world (optional)
  2. Spawn or make a gardening hat "plantregistryhat"
  3. Spawn or make compost
  4. Put on hat
  5. Right-click on compost to "research"
  6. Observe all players disconnect a few seconds later



User Feedback


Oh looks like this bug might be the same and fixed in the next release?  Feel free to delete if this is a duplicate.

 

Also I'm not sure where the screenshot in this ticket came from - I didn't add it and it looks like someone else's server.

 

Edited by CornCheeseDog

Share this comment


Link to comment
Share on other sites



Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
  • Create New...