• Beebox action causes the crash


    Kova_
    • Pending
      Bug Type: General
      Game Version: 428382 
      CPU: 10 cores of Intel 2.0-4.0 GHz (idk)
      RAM: enough [32 GB or more]
      OS: Linux Ubuntu version from 2019
    [00:07:40]: [string "scripts/components/harvestable.lua"]:106: bad argument #1 to 'min' (number expected, got nil)
    LUA ERROR stack traceback:
    =[C]:-1 in (field) min (C) <-1--1>
    scripts/components/harvestable.lua:106 in (method) StartGrowing (Lua) <102-113>
       self =
          onharvestfn = function - scripts/prefabs/beebox.lua:114
          pausetime = 91.399989120662
          product = honey
          inst = 120306 - beebox (valid:true)
          ongrowfn = function - scripts/prefabs/beebox.lua:103
          _ = table: 0x2c24fd60
          maxproduce = 6
       time = nil
       growtime = nil
    scripts/components/harvestable.lua:95 in (method) Grow (Lua) <88-100>
       self =
          onharvestfn = function - scripts/prefabs/beebox.lua:114
          pausetime = 91.399989120662
          product = honey
          inst = 120306 - beebox (valid:true)
          ongrowfn = function - scripts/prefabs/beebox.lua:103
          _ = table: 0x2c24fd60
          maxproduce = 6
    scripts/prefabs/beebox.lua:133 in (local) fn (Lua) <127-135>
       inst = 120306 - beebox (valid:true)
       data = table: 0x268ba3d0
    scripts/entityscript.lua:1040 in (method) PushEvent (Lua) <1027-1054>
       self (valid:true) =
          GUID = 120306
          Transform = Transform (0x2c24a3c0)
          inlimbo = false
          actionreplica = table: 0x2c24a8b0
          event_listening = table: 0x2c250110
          actioncomponents = table: 0x2c24a0a0
          worldstatewatching = table: 0x2c2508a0
          lower_components_shadow = table: 0x2c249e90
          dfta_owner = table: 0xe550aa0
          entity = Entity (0x15c9c5a0)
          AnimState = AnimState (0x2c24a770)
          prefab = beebox
          OnEntitySleep = function - scripts/prefabs/beebox.lua:184
          pendingtasks = table: 0x2c252f70
          OnSave = function - ../mods/dft_announcer/scripts/fabrications.lua:93
          Network = Network (0x2c24a7c0)
          persists = true
          name = Bee Box
          MiniMapEntity = MiniMapEntity (0x2c24a820)
          SoundEmitter = SoundEmitter (0x2c24a7e0)
          LightWatcher = LightWatcher (0x26225ae0)
          OnEntityWake = function - scripts/prefabs/beebox.lua:180
          OnLoad = function - ../mods/dft_announcer/scripts/fabrications.lua:115
          spawntime = 0
          anims = table: 0x2c2510a0
          replica = table: 0x2c24a2a0
          event_listeners = table: 0x2c250030
          components = table: 0x2c249e20
          Physics = Physics (0x26225b20)
       event = childgoinghome
       data = table: 0x268ba3d0
       listeners = table: 0x2c250060
       tocall = table: 0x2cbca740
       i = 1
       fn = function - scripts/prefabs/beebox.lua:127
    scripts/components/childspawner.lua:514 in () ? (Lua) <512-535>
       self =
          _onchildkilled = function - scripts/components/childspawner.lua:95
          emergencychildreninside = 0
          spawning = true
          spawnoffscreen = false
          childreninside = 3.32
          spawnvariance = 2.8195488721805
          inst = 120306 - beebox (valid:true)
          task = PERIODIC 120306: 8.103384
          timetonextspawn = 10.990170788155
          regenperiod = 90.225563909774
          allowwater = true
          numemergencychildrenoutside = 0
          emergencydetectionradius = 10
          emergencychildrenoutside = table: 0x2c2507e0
          maxchildren = 5.32
          maxemergencycommit = 0
          rarechildchance = 0.1
          emergencychildrenperplayer = 1
          maxemergencychildren = 0
          regening = true
          spawnperiod = 28.195488721805
          regenvariance = 9.0225563909774
          numchildrenoutside = 2
          childrenoutside = table: 0x2c250240
          timetonextregen = 87.021155977404
          childname = bee
       child = 134260 - bee (valid:true)
    =(tail call):-1 in ()  (tail) <-1--1>
    =(tail call):-1 in ()  (tail) <-1--1>
    scripts/bufferedaction.lua:25 in (method) Do (Lua) <21-35>
       self (valid:true) =
          options = table: 0x22e7dbd0
          action = table: 0xb150d30
          doer = 134260 - bee (valid:true)
          onsuccess = table: 0x2c805030
          doerownsobject = false
          onfail = table: 0x22e7dba0
          target = 120306 - beebox (valid:true)
    scripts/entityscript.lua:1313 in (method) PerformBufferedAction (Lua) <1305-1323>
       self (valid:true) =
          GUID = 134260
          inlimbo = false
          brain = --brain--
    sleep 
    [00:07:40]: [string "scripts/components/harvestable.lua"]:106: bad argument #1 to 'min' (number expected, got nil)
    LUA ERROR stack traceback:
        =[C]:-1 in (field) min (C) <-1--1>
        scripts/components/harvestable.lua:106 in (method) StartGrowing (Lua) <102-113>
        scripts/components/harvestable.lua:95 in (method) Grow (Lua) <88-100>
        scripts/prefabs/beebox.lua:133 in (local) fn (Lua) <127-135>
        scripts/entityscript.lua:1040 in (method) PushEvent (Lua) <1027-1054>
        scripts/components/childspawner.lua:514 in () ? (Lua) <512-535>
        =(tail call):-1 in ()  (tail) <-1--1>
        =(tail call):-1 in ()  (tail) <-1--1>
        scripts/bufferedaction.lua:25 in (method) Do (Lua) <21-35>
        scripts/entityscript.lua:1313 in (method) PerformBufferedAction (Lua) <1305-1323>
        scripts/stategraphs/SGbee.lua:74 in (field) onenter (Lua) <71-75>
        scripts/stategraph.lua:505 in (method) GoToState (Lua) <456-515>
        scripts/stategraph.lua:382 in (method) StartAction (Lua) <374-394>
        scripts/entityscript.lua:1297 in (method) PushBufferedAction (Lua) <1260-1303>
        scripts/components/locomotor.lua:1027 in (method) OnUpdate (Lua) <949-1230>
        scripts/update.lua:202 in () ? (Lua) <159-238>
        
    [00:07:40]: 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:07:40]: 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:90 in () ? (Lua) <33-129>    

    Version: 428382 

    Happy bug haunting! 





    User Feedback


    So I regenerated the server and it should be okay now. Tho we lost 600+ days world because of this new hotfix :( 

     

    Edited by Kova_

    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